u-boot: translate Web UI to Chinese

Translate Web UI pages to Chinese for better usability.
This commit is contained in:
2026-03-10 16:47:51 +08:00
parent b62bb2fefb
commit 6bc682795c
27 changed files with 230 additions and 275 deletions

View File

@@ -4,14 +4,14 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="Cache-Control" content="no-cache" /> <meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="refresh" content="2; URL=/" /> <meta http-equiv="refresh" content="2; URL=/" />
<title>Page not found</title> <title>页面不存在</title>
<link rel="stylesheet" href="/style.css"> <link rel="stylesheet" href="/style.css">
<script src="/index.js"></script> <script src="/index.js"></script>
</head> </head>
<body onload="getversion()"> <body onload="getversion()">
<div id="m"> <div id="m">
<h1 class="red">PAGE NOT FOUND</h1> <h1 class="red">页面不存在</h1>
<div class="i e">The page you were looking for doesn't exist!</div> <div class="i e">您要查找的页面不存在!</div>
</div> </div>
<div id="version"></div> <div id="version"></div>
</body> </body>

View File

@@ -2,37 +2,34 @@
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>BL2 update</title> <title>BL2 更新</title>
<link rel="stylesheet" href="/style.css"> <link rel="stylesheet" href="/style.css">
<script src="/index.js"></script> <script src="/index.js"></script>
</head> </head>
<body onload="getversion()"> <body onload="getversion()">
<div id="m"> <div id="m">
<h1>BL2 UPDATE</h1> <h1>BL2 更新</h1>
<p id="hint"> <p id="hint">您将在这台设备上更新 <strong>BL2 引导加载程序</strong> <br>请从本地硬盘中选择文件,然后单击 <strong>更新</strong> 按钮.</p>
You are going to update <strong>BL2 (preloader)</strong> on the device.<br>
Please, choose file from your local hard drive and click <strong>Upload</strong> button.
</p>
<form id="form"> <form id="form">
<input id="file" type="file" name="bl2"> <input id="file" type="file" name="bl2">
<input type="button" value="Upload" onclick="upload('bl2')"> <input type="button" value="上传" onclick="upload('bl2')">
</form> </form>
<div> <div>
<div class="bar" id="bar" style="display: none; --percent: 0;"></div> <div class="bar" id="bar" style="display: none; --percent: 0;"></div>
</div> </div>
<div id="size" style="display: none;">Size: xxxx</div> <div id="size" style="display: none;">镜像大小: xxxx</div>
<div id="md5" style="display: none;">MD5: xxxx</div> <div id="md5" style="display: none;">MD5: xxxx</div>
<div id="upgrade" style="display: none;"> <div id="upgrade" style="display: none;">
<p>If all information above is correct, click "Update".</p> <p>bl2 已上传,请点击"更新"</p>
<button class="button" onclick="location = '/flashing.html'">Update</button> <button class="button" onclick="location = '/flashing.html'">更新</button>
</div> </div>
<div class="i w"> <div class="i w">
<strong>WARNINGS</strong> <strong>警告</strong>
<ul> <ul>
<li>do not power off the device during update</li> <li>更新期间不要关闭设备电源</li>
<li>if everything goes well, the device will restart</li> <li>如果一切顺利,设备将重新启动</li>
<li>you can upload whatever you want, so be sure that you choose proper BL2 image for your device</li> <li>你可以上传任何你想要的东西,所以一定要为你的设备选择合适的 U-Boot</li>
<li>updating BL2 is a very dangerous operation and may damage your device!</li> <li>更新BL2是一项非常危险的操作可能会损坏您的设备!</li>
</ul> </ul>
</div> </div>
</div> </div>

View File

@@ -2,7 +2,7 @@
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>Booting initramfs</title> <title>正在启动 initramfs</title>
<link rel="stylesheet" href="/style.css"> <link rel="stylesheet" href="/style.css">
<script src="/index.js"></script> <script src="/index.js"></script>
<script> <script>
@@ -17,8 +17,8 @@
return return
} }
document.getElementById('title').innerHTML = 'BOOT SUCCESS' document.getElementById('title').innerHTML = '启动成功'
document.getElementById('info').innerHTML = 'Your device was successfully booted into initramfs!' document.getElementById('info').innerHTML = '您的设备已成功进入 initramfs'
}, },
timeout: 30000 timeout: 30000
}) })
@@ -29,18 +29,18 @@
return return
} }
document.getElementById('title').innerHTML = 'BOOT SUCCESS' document.getElementById('title').innerHTML = '启动成功'
document.getElementById('info').innerHTML = 'Your device was successfully booted into initramfs!' document.getElementById('info').innerHTML = '您的设备已成功进入 initramfs'
}, 30000) }, 30000)
} }
</script> </script>
</head> </head>
<body onload="init()"> <body onload="init()">
<div id="m"> <div id="m">
<h1 id="title">BOOTING INITRAMFS</h1> <h1 id="title">正在启动 initramfs</h1>
<p id="info"> <p id="info">
Your file was successfully uploaded! Booting is in progress, please wait...<br> 您的文件已成功上传!正在启动,请稍候...<br>
This page may be in not responding status for a short time. 此页面可能在短时间内无响应.
</p> </p>
<div id="l"></div> <div id="l"></div>
</div> </div>

View File

@@ -2,14 +2,14 @@
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>Update failed</title> <title>更新失败</title>
<link rel="stylesheet" href="/style.css"> <link rel="stylesheet" href="/style.css">
<script src="/index.js"></script> <script src="/index.js"></script>
</head> </head>
<body onload="getversion()"> <body onload="getversion()">
<div id="m"> <div id="m">
<h1 class="red">UPDATE FAILED</h1> <h1 class="red">更新失败</h1>
<div class="i e"><strong>Something went wrong during update</strong>Probably you have chosen wrong file. Please, try again or contact with the author of this modification. You can also get more information during update in U-Boot console.</div> <div class="i e"><strong>更新过程中出现问题</strong>您可能选择了错误的文件。请重试或与此修改的作者联系。您还可以在U-Boot控制台的更新过程中获得更多信息。</div>
</div> </div>
<div id="version"></div> <div id="version"></div>
</body> </body>

View File

@@ -2,7 +2,7 @@
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>Update in progress</title> <title>正在更新ing</title>
<link rel="stylesheet" href="/style.css"> <link rel="stylesheet" href="/style.css">
<script src="/index.js"></script> <script src="/index.js"></script>
<script> <script>
@@ -17,8 +17,8 @@
return return
} }
document.getElementById('title').innerHTML = 'UPDATE COMPLETED' document.getElementById('title').innerHTML = '更新成功!'
document.getElementById('info').innerHTML = 'Your device was successfully updated! Now rebooting...' document.getElementById('info').innerHTML = '你的设备更新成功!正在重启设备...'
}, },
timeout: 180000 timeout: 180000
}) })
@@ -27,11 +27,8 @@
</head> </head>
<body onload="init()"> <body onload="init()">
<div id="m"> <div id="m">
<h1 id="title">UPDATE IN PROGRESS</h1> <h1 id="title">正在更新</h1>
<p id="info"> <p id="info">您的文件已成功上传!更新正在进行中,设备将自动重置<br>更新时间取决于更新文件大小,可能需要几分钟...</p>
Your file was successfully uploaded! Update is in progress and you should wait for automatic reset of the device.<br>
Update time depends on image size and may take up to a few minutes.
</p>
<div id="l"></div> <div id="l"></div>
</div> </div>
<div id="version"></div> <div id="version"></div>

View File

@@ -2,37 +2,34 @@
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>GPT update</title> <title>GPT 更新</title>
<link rel="stylesheet" href="/style.css"> <link rel="stylesheet" href="/style.css">
<script src="/index.js"></script> <script src="/index.js"></script>
</head> </head>
<body onload="getversion()"> <body onload="getversion()">
<div id="m"> <div id="m">
<h1>GPT UPDATE</h1> <h1>GPT 更新</h1>
<p id="hint"> <p id="hint">您将在这台设备上更新 <strong>GPT</strong> <br>请从本地硬盘中选择文件,然后单击 <strong>更新</strong> 按钮.</p>
You are going to update <strong>GPT (Partition Table)</strong> on the device.<br>
Please, choose file from your local hard drive and click <strong>Upload</strong> button.
</p>
<form id="form"> <form id="form">
<input id="file" type="file" name="gpt"> <input id="file" type="file" name="gpt">
<input type="button" value="Upload" onclick="upload('gpt')"> <input type="button" value="上传" onclick="upload('gpt')">
</form> </form>
<div> <div>
<div class="bar" id="bar" style="display: none; --percent: 0;"></div> <div class="bar" id="bar" style="display: none; --percent: 0;"></div>
</div> </div>
<div id="size" style="display: none;">Size: xxxx</div> <div id="size" style="display: none;">镜像大小: xxxx</div>
<div id="md5" style="display: none;">MD5: xxxx</div> <div id="md5" style="display: none;">MD5: xxxx</div>
<div id="upgrade" style="display: none;"> <div id="upgrade" style="display: none;">
<p>If all information above is correct, click "Update".</p> <p>U-Boot 已上传,请点击"更新"</p>
<button class="button" onclick="location = '/flashing.html'">Update</button> <button class="button" onclick="location = '/flashing.html'">Update</button>
</div> </div>
<div class="i w"> <div class="i w">
<strong>WARNINGS</strong> <strong>警告</strong>
<ul> <ul>
<li>do not power off the device during update</li> <li>更新期间不要关闭设备电源</li>
<li>if everything goes well, the device will restart</li> <li>如果一切顺利,设备将重新启动</li>
<li>you can upload whatever you want, so be sure that you choose proper GPT for your device</li> <li>你可以上传任何你想要的东西,所以一定要为你的设备选择合适的 U-Boot</li>
<li>updating GPT is a dangerous operation and may damage your device!</li> <li>更新GPT是一项非常危险的操作可能会损坏您的设备!</li>
</ul> </ul>
</div> </div>
</div> </div>

View File

@@ -2,44 +2,41 @@
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>Firmware update</title> <title>固件更新</title>
<link rel="stylesheet" href="/style.css"> <link rel="stylesheet" href="/style.css">
<script src="/index.js"></script> <script src="/index.js"></script>
</head> </head>
<body onload="startup()"> <body onload="startup()">
<div id="m"> <div id="m">
<h1>FIRMWARE UPDATE</h1> <h1>固件更新</h1>
<p id="hint"> <p id="hint">您将在这台设备上更新 <strong>固件</strong> <br>请从本地硬盘中选择文件,然后单击 <strong>更新</strong> 按钮.</p>
You are going to update <strong>firmware</strong> on the device.<br>
Please, choose file from your local hard drive and click <strong>Upload</strong> button.
</p>
<form id="form"> <form id="form">
<div id="mtd_layout" style="display: none;"> <div id="mtd_layout" style="display: none;">
<div id="current_mtd_layout"></div> <div id="current_mtd_layout"></div>
<br> <br>
Choose mtd layout: 选择mtd布局:
<select id="mtd_layout_label" name="mtd_layout_label"></select> <select id="mtd_layout_label" name="mtd_layout_label"></select>
<br><br> <br><br>
</div> </div>
<input id="file" type="file" name="firmware"> <input id="file" type="file" name="firmware">
<input type="button" value="Upload" onclick="upload('firmware')"> <input type="button" value="上传" onclick="upload('firmware')">
</form> </form>
<div> <div>
<div class="bar" id="bar" style="display: none; --percent: 0;"></div> <div class="bar" id="bar" style="display: none; --percent: 0;"></div>
</div> </div>
<div id="size" style="display: none;">Size: xxxx</div> <div id="size" style="display: none;">镜像大小: xxxx</div>
<div id="md5" style="display: none;">MD5: xxxx</div> <div id="md5" style="display: none;">MD5: xxxx</div>
<div id="mtd" style="display: none;">MTD layout: xxxx</div> <div id="mtd" style="display: none;">MTD 布局: xxxx</div>
<div id="upgrade" style="display: none;"> <div id="upgrade" style="display: none;">
<p>If all information above is correct, click "Update".</p> <p>固件 已上传,请点击"更新"</p>
<button class="button" onclick="location = '/flashing.html'">Update</button> <button class="button" onclick="location = '/flashing.html'">更新</button>
</div> </div>
<div class="i w"> <div class="i w">
<strong>WARNINGS</strong> <strong>警告</strong>
<ul> <ul>
<li>do not power off the device during update</li> <li>更新期间不要关闭设备电源</li>
<li>if everything goes well, the device will restart</li> <li>如果一切顺利,设备将重新启动</li>
<li>you can upload whatever you want, so be sure that you choose proper firmware image for your device</li> <li>你可以上传任何你想要的东西,所以一定要为你的设备选择合适的固件映像</li>
</ul> </ul>
</div> </div>
</div> </div>

View File

@@ -2,35 +2,35 @@
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>Load initramfs</title> <title>加载 initramfs</title>
<link rel="stylesheet" href="/style.css"> <link rel="stylesheet" href="/style.css">
<script src="/index.js"></script> <script src="/index.js"></script>
</head> </head>
<body onload="startup()"> <body onload="startup()">
<div id="m"> <div id="m">
<h1>LOAD INITRAMFS</h1> <h1>加载 initramfs<</h1>
<p id="hint"> <p id="hint">
You are going to load <strong>initramfs</strong> on the device.<br> 您将要在设备上加载 <strong>initramfs</strong> .<br>
Please, choose file from your local hard drive and click <strong>Upload</strong> button. 请选择本地硬盘中的文件,然后点击 <strong>上传</strong> 按钮。
</p> </p>
<form id="form"> <form id="form">
<input id="file" type="file" name="initramfs"> <input id="file" type="file" name="initramfs">
<input type="button" value="Upload" onclick="upload('initramfs')"> <input type="button" value="上传" onclick="upload('initramfs')">
</form> </form>
<div> <div>
<div class="bar" id="bar" style="display: none; --percent: 0;"></div> <div class="bar" id="bar" style="display: none; --percent: 0;"></div>
</div> </div>
<div id="size" style="display: none;">Size: xxxx</div> <div id="size" style="display: none;">镜像大小: xxxx</div>
<div id="md5" style="display: none;">MD5: xxxx</div> <div id="md5" style="display: none;">MD5: xxxx</div>
<div id="upgrade" style="display: none;"> <div id="upgrade" style="display: none;">
<p>If all information above is correct, click "Boot".</p> <p>如果以上信息均正确,请点击 "Boot".</p>
<button class="button" onclick="location = '/booting.html'">Boot</button> <button class="button" onclick="location = '/booting.html'">Boot</button>
</div> </div>
<div class="i w"> <div class="i w">
<strong>WARNINGS</strong> <strong>警告</strong>
<ul> <ul>
<li>if everything goes well, the device will boot into the initramfs</li> <li>如果一切顺利,设备将启动进入 initramfs</li>
<li>you can upload whatever you want, so be sure that you choose proper initramfs image for your device</li> <li>您可以上传任意文件,但请确保选择适合设备的 initramfs 镜像</li>
</ul> </ul>
</div> </div>
</div> </div>

View File

@@ -2,37 +2,34 @@
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>U-Boot update</title> <title>U-Boot 更新</title>
<link rel="stylesheet" href="/style.css"> <link rel="stylesheet" href="/style.css">
<script src="/index.js"></script> <script src="/index.js"></script>
</head> </head>
<body onload="getversion()"> <body onload="getversion()">
<div id="m"> <div id="m">
<h1>U-BOOT UPDATE</h1> <h1>U-BOOT 更新</h1>
<p id="hint"> <p id="hint">您将在这台设备上更新 <strong>U-Boot 引导加载程序</strong> <br>请从本地硬盘中选择文件,然后单击 <strong>更新</strong> 按钮.</p>
You are going to update <strong>U-Boot (bootloader)</strong> on the device.<br>
Please, choose file from your local hard drive and click <strong>Upload</strong> button.
</p>
<form id="form"> <form id="form">
<input id="file" type="file" name="fip"> <input id="file" type="file" name="fip">
<input type="button" value="Upload" onclick="upload('fip')"> <input type="button" value="上传" onclick="upload('fip')">
</form> </form>
<div> <div>
<div class="bar" id="bar" style="display: none; --percent: 0;"></div> <div class="bar" id="bar" style="display: none; --percent: 0;"></div>
</div> </div>
<div id="size" style="display: none;">Size: xxxx</div> <div id="size" style="display: none;">镜像大小: xxxx</div>
<div id="md5" style="display: none;">MD5: xxxx</div> <div id="md5" style="display: none;">MD5: xxxx</div>
<div id="upgrade" style="display: none;"> <div id="upgrade" style="display: none;">
<p>If all information above is correct, click "Update".</p> <p>U-Boot 已上传,请点击"更新"</p>
<button class="button" onclick="location = '/flashing.html'">Update</button> <button class="button" onclick="location = '/flashing.html'">更新</button>
</div> </div>
<div class="i w"> <div class="i w">
<strong>WARNINGS</strong> <strong>警告</strong>
<ul> <ul>
<li>do not power off the device during update</li> <li>更新期间不要关闭设备电源</li>
<li>if everything goes well, the device will restart</li> <li>如果一切顺利,设备将重新启动</li>
<li>you can upload whatever you want, so be sure that you choose proper U-Boot image for your device</li> <li>你可以上传任何你想要的东西,所以一定要为你的设备选择合适的 U-Boot</li>
<li>updating U-Boot is a very dangerous operation and may damage your device!</li> <li>更新U-Boot是一项非常危险的操作可能会损坏您的设备!</li>
</ul> </ul>
</div> </div>
</div> </div>

View File

@@ -4,14 +4,14 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="Cache-Control" content="no-cache" /> <meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="refresh" content="2; URL=/" /> <meta http-equiv="refresh" content="2; URL=/" />
<title>Page not found</title> <title>页面不存在</title>
<link rel="stylesheet" href="/style.css"> <link rel="stylesheet" href="/style.css">
<script src="/main.js"></script> <script src="/main.js"></script>
</head> </head>
<body onload="getversion()"> <body onload="getversion()">
<div id="m"> <div id="m">
<h1 class="red">PAGE NOT FOUND</h1> <h1 class="red">页面不存在</h1>
<div class="i e">The page you were looking for doesn't exist!</div> <div class="i e">您要查找的页面不存在!</div>
</div> </div>
<div id="version"></div> <div id="version"></div>
</body> </body>

View File

@@ -2,37 +2,34 @@
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>BL2 update</title> <title>BL2 更新</title>
<link rel="stylesheet" href="/style.css"> <link rel="stylesheet" href="/style.css">
<script src="/main.js"></script> <script src="/main.js"></script>
</head> </head>
<body onload="getversion()"> <body onload="getversion()">
<div id="m"> <div id="m">
<h1>BL2 UPDATE</h1> <h1>BL2 更新</h1>
<p id="hint"> <p id="hint">您将在这台设备上更新 <strong>BL2 引导加载程序</strong> <br>请从本地硬盘中选择文件,然后单击 <strong>更新</strong> 按钮.</p>
You are going to update <strong>BL2 (preloader)</strong> on the device.<br>
Please, choose file from your local hard drive and click <strong>Upload</strong> button.
</p>
<form id="form"> <form id="form">
<input id="file" type="file" name="bl2"> <input id="file" type="file" name="bl2">
<input type="button" value="Upload" onclick="upload('bl2')"> <input type="button" value="上传" onclick="upload('bl2')">
</form> </form>
<div> <div>
<div class="bar" id="bar" style="display: none; --percent: 0;"></div> <div class="bar" id="bar" style="display: none; --percent: 0;"></div>
</div> </div>
<div id="size" style="display: none;">Size: xxxx</div> <div id="size" style="display: none;">镜像大小: xxxx</div>
<div id="md5" style="display: none;">MD5: xxxx</div> <div id="md5" style="display: none;">MD5: xxxx</div>
<div id="upgrade" style="display: none;"> <div id="upgrade" style="display: none;">
<p>If all information above is correct, click "Update".</p> <p>bl2 已上传,请点击"更新"</p>
<button class="button" onclick="location = '/flashing.html'">Update</button> <button class="button" onclick="location = '/flashing.html'">更新</button>
</div> </div>
<div class="i w"> <div class="i w">
<strong>WARNINGS</strong> <strong>警告</strong>
<ul> <ul>
<li>do not power off the device during update</li> <li>更新期间不要关闭设备电源</li>
<li>if everything goes well, the device will restart</li> <li>如果一切顺利,设备将重新启动</li>
<li>you can upload whatever you want, so be sure that you choose proper BL2 image for your device</li> <li>你可以上传任何你想要的东西,所以一定要为你的设备选择合适的 U-Boot</li>
<li>updating BL2 is a very dangerous operation and may damage your device!</li> <li>更新BL2是一项非常危险的操作可能会损坏您的设备!</li>
</ul> </ul>
</div> </div>
</div> </div>

View File

@@ -2,7 +2,7 @@
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>Booting initramfs</title> <title>正在启动 initramfs</title>
<link rel="stylesheet" href="/style.css"> <link rel="stylesheet" href="/style.css">
<script src="/main.js"></script> <script src="/main.js"></script>
<script> <script>
@@ -17,8 +17,8 @@
return return
} }
document.getElementById('title').innerHTML = 'BOOT SUCCESS' document.getElementById('title').innerHTML = '启动成功'
document.getElementById('info').innerHTML = 'Your device was successfully booted into initramfs!' document.getElementById('info').innerHTML = '您的设备已成功启动并进入 initramfs!'
}, },
timeout: 30000 timeout: 30000
}) })
@@ -27,10 +27,10 @@
</head> </head>
<body onload="init()"> <body onload="init()">
<div id="m"> <div id="m">
<h1 id="title">BOOTING INITRAMFS</h1> <h1 id="title">正在启动 INITRAMFS</h1>
<p id="info"> <p id="info">
Your file was successfully uploaded! Booting is in progress, please wait...<br> 您的文件已成功上传!启动正在进行中,请稍候...<br>
This page may be in not responding status for a short time. 本页面可能在短时间内无响应。
</p> </p>
<div id="l"></div> <div id="l"></div>
</div> </div>

View File

@@ -2,14 +2,14 @@
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>Update failed</title> <title>更新失败</title>
<link rel="stylesheet" href="/style.css"> <link rel="stylesheet" href="/style.css">
<script src="/main.js"></script> <script src="/main.js"></script>
</head> </head>
<body onload="getversion()"> <body onload="getversion()">
<div id="m"> <div id="m">
<h1 class="red">UPDATE FAILED</h1> <h1 class="red">更新失败</h1>
<div class="i e"><strong>Something went wrong during update</strong>Probably you have chosen wrong file. Please, try again or contact with the author of this modification. You can also get more information during update in U-Boot console.</div> <div class="i e"><strong>更新过程中出现问题</strong>您可能选择了错误的文件。请重试或与此修改的作者联系。您还可以在U-Boot控制台的更新过程中获得更多信息。</div>
</div> </div>
<div id="version"></div> <div id="version"></div>
</body> </body>

View File

@@ -2,7 +2,7 @@
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>Update in progress</title> <title>正在更新</title>
<link rel="stylesheet" href="/style.css"> <link rel="stylesheet" href="/style.css">
<script src="/main.js"></script> <script src="/main.js"></script>
<script> <script>
@@ -17,8 +17,8 @@
return return
} }
document.getElementById('title').innerHTML = 'UPDATE COMPLETED' document.getElementById('title').innerHTML = '更新成功!'
document.getElementById('info').innerHTML = 'Your device was successfully updated! Now rebooting...' document.getElementById('info').innerHTML = '你的设备更新成功!正在重启设备...'
}, },
timeout: 1800000 timeout: 1800000
}) })
@@ -27,11 +27,8 @@
</head> </head>
<body onload="init()"> <body onload="init()">
<div id="m"> <div id="m">
<h1 id="title">UPDATE IN PROGRESS</h1> <h1 id="title">正在更新</h1>
<p id="info"> <p id="info">您的文件已成功上传!更新正在进行中,设备将自动重置<br>更新时间取决于更新文件大小,可能需要几分钟...</p>
Your file was successfully uploaded! Update is in progress and you should wait for automatic reset of the device.<br>
Update time depends on image size and may take up to a few minutes.
</p>
<div id="l"></div> <div id="l"></div>
</div> </div>
<div id="version"></div> <div id="version"></div>

View File

@@ -2,37 +2,34 @@
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>GPT update</title> <title>GPT 更新</title>
<link rel="stylesheet" href="/style.css"> <link rel="stylesheet" href="/style.css">
<script src="/main.js"></script> <script src="/main.js"></script>
</head> </head>
<body onload="getversion()"> <body onload="getversion()">
<div id="m"> <div id="m">
<h1>GPT UPDATE</h1> <h1>GPT 更新</h1>
<p id="hint"> <p id="hint">您将在这台设备上更新 <strong>GPT</strong> <br>请从本地硬盘中选择文件,然后单击 <strong>更新</strong> 按钮.</p>
You are going to update <strong>GPT (Partition Table)</strong> on the device.<br>
Please, choose file from your local hard drive and click <strong>Upload</strong> button.
</p>
<form id="form"> <form id="form">
<input id="file" type="file" name="gpt"> <input id="file" type="file" name="gpt">
<input type="button" value="Upload" onclick="upload('gpt')"> <input type="button" value="上传" onclick="upload('gpt')">
</form> </form>
<div> <div>
<div class="bar" id="bar" style="display: none; --percent: 0;"></div> <div class="bar" id="bar" style="display: none; --percent: 0;"></div>
</div> </div>
<div id="size" style="display: none;">Size: xxxx</div> <div id="size" style="display: none;">镜像大小: xxxx</div>
<div id="md5" style="display: none;">MD5: xxxx</div> <div id="md5" style="display: none;">MD5: xxxx</div>
<div id="upgrade" style="display: none;"> <div id="upgrade" style="display: none;">
<p>If all information above is correct, click "Update".</p> <p>如果以上信息均正确,请点击 "更新"</p>
<button class="button" onclick="location = '/flashing.html'">Update</button> <button class="button" onclick="location = '/flashing.html'">Update</button>
</div> </div>
<div class="i w"> <div class="i w">
<strong>WARNINGS</strong> <strong>警告</strong>
<ul> <ul>
<li>do not power off the device during update</li> <li>更新期间请勿断电</li>
<li>if everything goes well, the device will restart</li> <li>如果一切正常,设备将自动重启</li>
<li>you can upload whatever you want, so be sure that you choose proper GPT for your device</li> <li>您可以上传任意文件,但请确保选择适合您设备的 GPT 镜像</li>
<li>updating GPT is a dangerous operation and may damage your device!</li> <li>更新 GPT 是一项危险操作,可能会损坏您的设备!</li>
</ul> </ul>
</div> </div>
</div> </div>

View File

@@ -2,44 +2,41 @@
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>Firmware update</title> <title>固件更新</title>
<link rel="stylesheet" href="/style.css"> <link rel="stylesheet" href="/style.css">
<script src="/main.js"></script> <script src="/main.js"></script>
</head> </head>
<body onload="startup()"> <body onload="startup()">
<div id="m"> <div id="m">
<h1>FIRMWARE UPDATE</h1> <h1>固件更新</h1>
<p id="hint"> <p id="hint">您将在这台设备上更新 <strong>固件</strong> <br>请从本地硬盘中选择文件,然后单击 <strong>更新</strong> 按钮.</p>
You are going to update <strong>firmware</strong> on the device.<br>
Please, choose file from your local hard drive and click <strong>Upload</strong> button.
</p>
<form id="form"> <form id="form">
<div id="mtd_layout" style="display: none;"> <div id="mtd_layout" style="display: none;">
<div id="current_mtd_layout"></div> <div id="current_mtd_layout"></div>
<br> <br>
Choose mtd layout: 选择mtd布局:
<select id="mtd_layout_label" name="mtd_layout_label"></select> <select id="mtd_layout_label" name="mtd_layout_label"></select>
<br><br> <br><br>
</div> </div>
<input id="file" type="file" name="firmware"> <input id="file" type="file" name="firmware">
<input type="button" value="Upload" onclick="upload('firmware')"> <input type="button" value="上传" onclick="upload('firmware')">
</form> </form>
<div> <div>
<div class="bar" id="bar" style="display: none; --percent: 0;"></div> <div class="bar" id="bar" style="display: none; --percent: 0;"></div>
</div> </div>
<div id="size" style="display: none;">Size: xxxx</div> <div id="size" style="display: none;">镜像大小: xxxx</div>
<div id="md5" style="display: none;">MD5: xxxx</div> <div id="md5" style="display: none;">MD5: xxxx</div>
<div id="mtd" style="display: none;">MTD layout: xxxx</div> <div id="mtd" style="display: none;">MTD 布局: xxxx</div>
<div id="upgrade" style="display: none;"> <div id="upgrade" style="display: none;">
<p>If all information above is correct, click "Update".</p> <p>固件 已上传,请点击"更新"</p>
<button class="button" onclick="location = '/flashing.html'">Update</button> <button class="button" onclick="location = '/flashing.html'">更新</button>
</div> </div>
<div class="i w"> <div class="i w">
<strong>WARNINGS</strong> <strong>警告</strong>
<ul> <ul>
<li>do not power off the device during update</li> <li>更新期间不要关闭设备电源</li>
<li>if everything goes well, the device will restart</li> <li>如果一切顺利,设备将重新启动</li>
<li>you can upload whatever you want, so be sure that you choose proper firmware image for your device</li> <li>你可以上传任何你想要的东西,所以一定要为你的设备选择合适的固件映像</li>
</ul> </ul>
</div> </div>
</div> </div>

View File

@@ -2,35 +2,35 @@
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>Load initramfs</title> <title>加载 initramfs</title>
<link rel="stylesheet" href="/style.css"> <link rel="stylesheet" href="/style.css">
<script src="/main.js"></script> <script src="/main.js"></script>
</head> </head>
<body onload="startup()"> <body onload="startup()">
<div id="m"> <div id="m">
<h1>LOAD INITRAMFS</h1> <h1>加载 INITRAMFS</h1>
<p id="hint"> <p id="hint">
You are going to load <strong>initramfs</strong> on the device.<br> 您将要在设备上加载 <strong>initramfs</strong> <br>
Please, choose file from your local hard drive and click <strong>Upload</strong> button. 请选择本地硬盘中的文件,并点击 <strong>上传</strong> 按钮。
</p> </p>
<form id="form"> <form id="form">
<input id="file" type="file" name="initramfs"> <input id="file" type="file" name="initramfs">
<input type="button" value="Upload" onclick="upload('initramfs')"> <input type="button" value="上传" onclick="upload('initramfs')">
</form> </form>
<div> <div>
<div class="bar" id="bar" style="display: none; --percent: 0;"></div> <div class="bar" id="bar" style="display: none; --percent: 0;"></div>
</div> </div>
<div id="size" style="display: none;">Size: xxxx</div> <div id="size" style="display: none;">镜像大小: xxxx</div>
<div id="md5" style="display: none;">MD5: xxxx</div> <div id="md5" style="display: none;">MD5: xxxx</div>
<div id="upgrade" style="display: none;"> <div id="upgrade" style="display: none;">
<p>If all information above is correct, click "Boot".</p> <p>如果以上信息均正确,请点击“启动”。</p>
<button class="button" onclick="location = '/booting.html'">Boot</button> <button class="button" onclick="location = '/booting.html'">启动</button>
</div> </div>
<div class="i w"> <div class="i w">
<strong>WARNINGS</strong> <strong>警告</strong>
<ul> <ul>
<li>if everything goes well, the device will boot into the initramfs</li> <li>如果一切正常,设备将进入 initramfs</li>
<li>you can upload whatever you want, so be sure that you choose proper initramfs image for your device</li> <li>您可以上传任意文件,但请确保为您的设备选择了正确的 initramfs 镜像</li>
</ul> </ul>
</div> </div>
</div> </div>

View File

@@ -2,37 +2,34 @@
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>U-Boot update</title> <title>U-Boot 更新</title>
<link rel="stylesheet" href="/style.css"> <link rel="stylesheet" href="/style.css">
<script src="/main.js"></script> <script src="/main.js"></script>
</head> </head>
<body onload="getversion()"> <body onload="getversion()">
<div id="m"> <div id="m">
<h1>U-BOOT UPDATE</h1> <h1>U-BOOT 更新</h1>
<p id="hint"> <p id="hint">您将在这台设备上更新 <strong>U-Boot 引导加载程序</strong> <br>请从本地硬盘中选择文件,然后单击 <strong>更新</strong> 按钮.</p>
You are going to update <strong>U-Boot (bootloader)</strong> on the device.<br>
Please, choose file from your local hard drive and click <strong>Upload</strong> button.
</p>
<form id="form"> <form id="form">
<input id="file" type="file" name="fip"> <input id="file" type="file" name="fip">
<input type="button" value="Upload" onclick="upload('fip')"> <input type="button" value="上传" onclick="upload('fip')">
</form> </form>
<div> <div>
<div class="bar" id="bar" style="display: none; --percent: 0;"></div> <div class="bar" id="bar" style="display: none; --percent: 0;"></div>
</div> </div>
<div id="size" style="display: none;">Size: xxxx</div> <div id="size" style="display: none;">镜像大小: xxxx</div>
<div id="md5" style="display: none;">MD5: xxxx</div> <div id="md5" style="display: none;">MD5: xxxx</div>
<div id="upgrade" style="display: none;"> <div id="upgrade" style="display: none;">
<p>If all information above is correct, click "Update".</p> <p>如果以上信息均正确,请点击“更新”。</p>
<button class="button" onclick="location = '/flashing.html'">Update</button> <button class="button" onclick="location = '/flashing.html'">更新</button>
</div> </div>
<div class="i w"> <div class="i w">
<strong>WARNINGS</strong> <strong>警告</strong>
<ul> <ul>
<li>do not power off the device during update</li> <li>更新期间不要关闭设备电源</li>
<li>if everything goes well, the device will restart</li> <li>如果一切顺利,设备将重新启动</li>
<li>you can upload whatever you want, so be sure that you choose proper U-Boot image for your device</li> <li>你可以上传任何你想要的东西,但请确保一定要为你的设备选择合适的 U-Boot</li>
<li>updating U-Boot is a very dangerous operation and may damage your device!</li> <li>更新U-Boot是一项非常危险的操作可能会损坏您的设备!</li>
</ul> </ul>
</div> </div>
</div> </div>

View File

@@ -4,14 +4,14 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="Cache-Control" content="no-cache" /> <meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="refresh" content="2; URL=/" /> <meta http-equiv="refresh" content="2; URL=/" />
<title>Page not found</title> <title>页面不存在</title>
<link rel="stylesheet" href="/style.css"> <link rel="stylesheet" href="/style.css">
<script src="/main.js"></script> <script src="/main.js"></script>
</head> </head>
<body onload="getversion()"> <body onload="getversion()">
<div id="m"> <div id="m">
<h1 class="red">PAGE NOT FOUND</h1> <h1 class="red">页面不存在</h1>
<div class="i e">The page you were looking for doesn't exist!</div> <div class="i e">您要查找的页面不存在!</div>
</div> </div>
<div id="version"></div> <div id="version"></div>
</body> </body>

View File

@@ -2,37 +2,34 @@
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>BL2 update</title> <title>BL2 更新</title>
<link rel="stylesheet" href="/style.css"> <link rel="stylesheet" href="/style.css">
<script src="/main.js"></script> <script src="/main.js"></script>
</head> </head>
<body onload="getversion()"> <body onload="getversion()">
<div id="m"> <div id="m">
<h1>BL2 UPDATE</h1> <h1>BL2 更新</h1>
<p id="hint"> <p id="hint">您将在这台设备上更新 <strong>BL2 引导加载程序</strong> <br>请从本地硬盘中选择文件,然后单击 <strong>更新</strong> 按钮.</p>
You are going to update <strong>BL2 (preloader)</strong> on the device.<br>
Please, choose file from your local hard drive and click <strong>Upload</strong> button.
</p>
<form id="form"> <form id="form">
<input id="file" type="file" name="bl2"> <input id="file" type="file" name="bl2">
<input type="button" value="Upload" onclick="upload('bl2')"> <input type="button" value="上传" onclick="upload('bl2')">
</form> </form>
<div> <div>
<div class="bar" id="bar" style="display: none; --percent: 0;"></div> <div class="bar" id="bar" style="display: none; --percent: 0;"></div>
</div> </div>
<div id="size" style="display: none;">Size: xxxx</div> <div id="size" style="display: none;">镜像大小: xxxx</div>
<div id="md5" style="display: none;">MD5: xxxx</div> <div id="md5" style="display: none;">MD5: xxxx</div>
<div id="upgrade" style="display: none;"> <div id="upgrade" style="display: none;">
<p>If all information above is correct, click "Update".</p> <p>bl2 已上传,请点击"更新"</p>
<button class="button" onclick="location = '/flashing.html'">Update</button> <button class="button" onclick="location = '/flashing.html'">更新</button>
</div> </div>
<div class="i w"> <div class="i w">
<strong>WARNINGS</strong> <strong>警告</strong>
<ul> <ul>
<li>do not power off the device during update</li> <li>更新期间不要关闭设备电源</li>
<li>if everything goes well, the device will restart</li> <li>如果一切顺利,设备将重新启动</li>
<li>you can upload whatever you want, so be sure that you choose proper BL2 image for your device</li> <li>你可以上传任何你想要的东西,所以一定要为你的设备选择合适的 U-Boot</li>
<li>updating BL2 is a very dangerous operation and may damage your device!</li> <li>更新BL2是一项非常危险的操作可能会损坏您的设备!</li>
</ul> </ul>
</div> </div>
</div> </div>

View File

@@ -2,7 +2,7 @@
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>Booting initramfs</title> <title>正在启动 initramfs</title>
<link rel="stylesheet" href="/style.css"> <link rel="stylesheet" href="/style.css">
<script src="/main.js"></script> <script src="/main.js"></script>
<script> <script>
@@ -17,8 +17,8 @@
return return
} }
document.getElementById('title').innerHTML = 'BOOT SUCCESS' document.getElementById('title').innerHTML = '启动成功'
document.getElementById('info').innerHTML = 'Your device was successfully booted into initramfs!' document.getElementById('info').innerHTML = '您的设备已成功启动并进入 initramfs!'
}, },
timeout: 30000 timeout: 30000
}) })
@@ -27,10 +27,10 @@
</head> </head>
<body onload="init()"> <body onload="init()">
<div id="m"> <div id="m">
<h1 id="title">BOOTING INITRAMFS</h1> <h1 id="title">正在启动 INITRAMFS</h1>
<p id="info"> <p id="info">
Your file was successfully uploaded! Booting is in progress, please wait...<br> 您的文件已成功上传!启动正在进行中,请稍候...<br>
This page may be in not responding status for a short time. 本页面可能在短时间内无响应。
</p> </p>
<div id="l"></div> <div id="l"></div>
</div> </div>

View File

@@ -2,14 +2,14 @@
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>Update failed</title> <title>更新失败</title>
<link rel="stylesheet" href="/style.css"> <link rel="stylesheet" href="/style.css">
<script src="/main.js"></script> <script src="/main.js"></script>
</head> </head>
<body onload="getversion()"> <body onload="getversion()">
<div id="m"> <div id="m">
<h1 class="red">UPDATE FAILED</h1> <h1 class="red">更新失败</h1>
<div class="i e"><strong>Something went wrong during update</strong>Probably you have chosen wrong file. Please, try again or contact with the author of this modification. You can also get more information during update in U-Boot console.</div> <div class="i e"><strong>更新过程中出现问题</strong>您可能选择了错误的文件。请重试或与此修改的作者联系。您还可以在U-Boot控制台的更新过程中获得更多信息。</div>
</div> </div>
<div id="version"></div> <div id="version"></div>
</body> </body>

View File

@@ -2,7 +2,7 @@
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>Update in progress</title> <title>正在更新</title>
<link rel="stylesheet" href="/style.css"> <link rel="stylesheet" href="/style.css">
<script src="/main.js"></script> <script src="/main.js"></script>
<script> <script>
@@ -17,8 +17,8 @@
return return
} }
document.getElementById('title').innerHTML = 'UPDATE COMPLETED' document.getElementById('title').innerHTML = '更新成功!'
document.getElementById('info').innerHTML = 'Your device was successfully updated! Now rebooting...' document.getElementById('info').innerHTML = '你的设备更新成功!正在重启设备...'
}, },
timeout: 1800000 timeout: 1800000
}) })
@@ -27,11 +27,8 @@
</head> </head>
<body onload="init()"> <body onload="init()">
<div id="m"> <div id="m">
<h1 id="title">UPDATE IN PROGRESS</h1> <h1 id="title">正在更新</h1>
<p id="info"> <p id="info">您的文件已成功上传!更新正在进行中,设备将自动重置<br>更新时间取决于更新文件大小,可能需要几分钟...</p>
Your file was successfully uploaded! Update is in progress and you should wait for automatic reset of the device.<br>
Update time depends on image size and may take up to a few minutes.
</p>
<div id="l"></div> <div id="l"></div>
</div> </div>
<div id="version"></div> <div id="version"></div>

View File

@@ -2,37 +2,34 @@
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>GPT update</title> <title>GPT 更新</title>
<link rel="stylesheet" href="/style.css"> <link rel="stylesheet" href="/style.css">
<script src="/main.js"></script> <script src="/main.js"></script>
</head> </head>
<body onload="getversion()"> <body onload="getversion()">
<div id="m"> <div id="m">
<h1>GPT UPDATE</h1> <h1>GPT 更新</h1>
<p id="hint"> <p id="hint">您将在这台设备上更新 <strong>GPT</strong> <br>请从本地硬盘中选择文件,然后单击 <strong>更新</strong> 按钮.</p>
You are going to update <strong>GPT (Partition Table)</strong> on the device.<br>
Please, choose file from your local hard drive and click <strong>Upload</strong> button.
</p>
<form id="form"> <form id="form">
<input id="file" type="file" name="gpt"> <input id="file" type="file" name="gpt">
<input type="button" value="Upload" onclick="upload('gpt')"> <input type="button" value="上传" onclick="upload('gpt')">
</form> </form>
<div> <div>
<div class="bar" id="bar" style="display: none; --percent: 0;"></div> <div class="bar" id="bar" style="display: none; --percent: 0;"></div>
</div> </div>
<div id="size" style="display: none;">Size: xxxx</div> <div id="size" style="display: none;">镜像大小: xxxx</div>
<div id="md5" style="display: none;">MD5: xxxx</div> <div id="md5" style="display: none;">MD5: xxxx</div>
<div id="upgrade" style="display: none;"> <div id="upgrade" style="display: none;">
<p>If all information above is correct, click "Update".</p> <p>如果以上信息均正确,请点击 "更新"</p>
<button class="button" onclick="location = '/flashing.html'">Update</button> <button class="button" onclick="location = '/flashing.html'">Update</button>
</div> </div>
<div class="i w"> <div class="i w">
<strong>WARNINGS</strong> <strong>警告</strong>
<ul> <ul>
<li>do not power off the device during update</li> <li>更新期间请勿断电</li>
<li>if everything goes well, the device will restart</li> <li>如果一切正常,设备将自动重启</li>
<li>you can upload whatever you want, so be sure that you choose proper GPT for your device</li> <li>您可以上传任意文件,但请确保选择适合您设备的 GPT 镜像</li>
<li>updating GPT is a dangerous operation and may damage your device!</li> <li>更新 GPT 是一项危险操作,可能会损坏您的设备!</li>
</ul> </ul>
</div> </div>
</div> </div>

View File

@@ -2,44 +2,41 @@
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>Firmware update</title> <title>固件更新</title>
<link rel="stylesheet" href="/style.css"> <link rel="stylesheet" href="/style.css">
<script src="/main.js"></script> <script src="/main.js"></script>
</head> </head>
<body onload="startup()"> <body onload="startup()">
<div id="m"> <div id="m">
<h1>FIRMWARE UPDATE</h1> <h1>固件更新</h1>
<p id="hint"> <p id="hint">您将在这台设备上更新 <strong>固件</strong> <br>请从本地硬盘中选择文件,然后单击 <strong>更新</strong> 按钮.</p>
You are going to update <strong>firmware</strong> on the device.<br>
Please, choose file from your local hard drive and click <strong>Upload</strong> button.
</p>
<form id="form"> <form id="form">
<div id="mtd_layout" style="display: none;"> <div id="mtd_layout" style="display: none;">
<div id="current_mtd_layout"></div> <div id="current_mtd_layout"></div>
<br> <br>
Choose mtd layout: 选择mtd布局:
<select id="mtd_layout_label" name="mtd_layout_label"></select> <select id="mtd_layout_label" name="mtd_layout_label"></select>
<br><br> <br><br>
</div> </div>
<input id="file" type="file" name="firmware"> <input id="file" type="file" name="firmware">
<input type="button" value="Upload" onclick="upload('firmware')"> <input type="button" value="上传" onclick="upload('firmware')">
</form> </form>
<div> <div>
<div class="bar" id="bar" style="display: none; --percent: 0;"></div> <div class="bar" id="bar" style="display: none; --percent: 0;"></div>
</div> </div>
<div id="size" style="display: none;">Size: xxxx</div> <div id="size" style="display: none;">镜像大小: xxxx</div>
<div id="md5" style="display: none;">MD5: xxxx</div> <div id="md5" style="display: none;">MD5: xxxx</div>
<div id="mtd" style="display: none;">MTD layout: xxxx</div> <div id="mtd" style="display: none;">MTD 布局: xxxx</div>
<div id="upgrade" style="display: none;"> <div id="upgrade" style="display: none;">
<p>If all information above is correct, click "Update".</p> <p>固件 已上传,请点击"更新"</p>
<button class="button" onclick="location = '/flashing.html'">Update</button> <button class="button" onclick="location = '/flashing.html'">更新</button>
</div> </div>
<div class="i w"> <div class="i w">
<strong>WARNINGS</strong> <strong>警告</strong>
<ul> <ul>
<li>do not power off the device during update</li> <li>更新期间不要关闭设备电源</li>
<li>if everything goes well, the device will restart</li> <li>如果一切顺利,设备将重新启动</li>
<li>you can upload whatever you want, so be sure that you choose proper firmware image for your device</li> <li>你可以上传任何你想要的东西,所以一定要为你的设备选择合适的固件映像</li>
</ul> </ul>
</div> </div>
</div> </div>

View File

@@ -2,35 +2,35 @@
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>Load initramfs</title> <title>加载 initramfs</title>
<link rel="stylesheet" href="/style.css"> <link rel="stylesheet" href="/style.css">
<script src="/main.js"></script> <script src="/main.js"></script>
</head> </head>
<body onload="startup()"> <body onload="startup()">
<div id="m"> <div id="m">
<h1>LOAD INITRAMFS</h1> <h1>加载 INITRAMFS</h1>
<p id="hint"> <p id="hint">
You are going to load <strong>initramfs</strong> on the device.<br> 您将要在设备上加载 <strong>initramfs</strong> <br>
Please, choose file from your local hard drive and click <strong>Upload</strong> button. 请选择本地硬盘中的文件,并点击 <strong>上传</strong> 按钮。
</p> </p>
<form id="form"> <form id="form">
<input id="file" type="file" name="initramfs"> <input id="file" type="file" name="initramfs">
<input type="button" value="Upload" onclick="upload('initramfs')"> <input type="button" value="上传" onclick="upload('initramfs')">
</form> </form>
<div> <div>
<div class="bar" id="bar" style="display: none; --percent: 0;"></div> <div class="bar" id="bar" style="display: none; --percent: 0;"></div>
</div> </div>
<div id="size" style="display: none;">Size: xxxx</div> <div id="size" style="display: none;">镜像大小: xxxx</div>
<div id="md5" style="display: none;">MD5: xxxx</div> <div id="md5" style="display: none;">MD5: xxxx</div>
<div id="upgrade" style="display: none;"> <div id="upgrade" style="display: none;">
<p>If all information above is correct, click "Boot".</p> <p>如果以上信息均正确,请点击“启动”。</p>
<button class="button" onclick="location = '/booting.html'">Boot</button> <button class="button" onclick="location = '/booting.html'">启动</button>
</div> </div>
<div class="i w"> <div class="i w">
<strong>WARNINGS</strong> <strong>警告</strong>
<ul> <ul>
<li>if everything goes well, the device will boot into the initramfs</li> <li>如果一切正常,设备将进入 initramfs</li>
<li>you can upload whatever you want, so be sure that you choose proper initramfs image for your device</li> <li>您可以上传任意文件,但请确保为您的设备选择了正确的 initramfs 镜像</li>
</ul> </ul>
</div> </div>
</div> </div>

View File

@@ -2,37 +2,34 @@
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>U-Boot update</title> <title>U-Boot 更新</title>
<link rel="stylesheet" href="/style.css"> <link rel="stylesheet" href="/style.css">
<script src="/main.js"></script> <script src="/main.js"></script>
</head> </head>
<body onload="getversion()"> <body onload="getversion()">
<div id="m"> <div id="m">
<h1>U-BOOT UPDATE</h1> <h1>U-BOOT 更新</h1>
<p id="hint"> <p id="hint">您将在这台设备上更新 <strong>U-Boot 引导加载程序</strong> <br>请从本地硬盘中选择文件,然后单击 <strong>更新</strong> 按钮.</p>
You are going to update <strong>U-Boot (bootloader)</strong> on the device.<br>
Please, choose file from your local hard drive and click <strong>Upload</strong> button.
</p>
<form id="form"> <form id="form">
<input id="file" type="file" name="fip"> <input id="file" type="file" name="fip">
<input type="button" value="Upload" onclick="upload('fip')"> <input type="button" value="上传" onclick="upload('fip')">
</form> </form>
<div> <div>
<div class="bar" id="bar" style="display: none; --percent: 0;"></div> <div class="bar" id="bar" style="display: none; --percent: 0;"></div>
</div> </div>
<div id="size" style="display: none;">Size: xxxx</div> <div id="size" style="display: none;">镜像大小: xxxx</div>
<div id="md5" style="display: none;">MD5: xxxx</div> <div id="md5" style="display: none;">MD5: xxxx</div>
<div id="upgrade" style="display: none;"> <div id="upgrade" style="display: none;">
<p>If all information above is correct, click "Update".</p> <p>如果以上信息均正确,请点击“更新”。</p>
<button class="button" onclick="location = '/flashing.html'">Update</button> <button class="button" onclick="location = '/flashing.html'">更新</button>
</div> </div>
<div class="i w"> <div class="i w">
<strong>WARNINGS</strong> <strong>警告</strong>
<ul> <ul>
<li>do not power off the device during update</li> <li>更新期间不要关闭设备电源</li>
<li>if everything goes well, the device will restart</li> <li>如果一切顺利,设备将重新启动</li>
<li>you can upload whatever you want, so be sure that you choose proper U-Boot image for your device</li> <li>你可以上传任何你想要的东西,但请确保一定要为你的设备选择合适的 U-Boot</li>
<li>updating U-Boot is a very dangerous operation and may damage your device!</li> <li>更新U-Boot是一项非常危险的操作可能会损坏您的设备!</li>
</ul> </ul>
</div> </div>
</div> </div>