Dedicated web pages for Dragino 2
authorPiotr Dymacz <pepe2k@gmail.com>
Mon, 3 Feb 2014 16:25:56 +0000 (17:25 +0100)
committerPiotr Dymacz <pepe2k@gmail.com>
Mon, 3 Feb 2014 16:25:56 +0000 (17:25 +0100)
Makefile
u-boot/httpd/vendors/dragino/404.html [new file with mode: 0755]
u-boot/httpd/vendors/dragino/f.png [new file with mode: 0755]
u-boot/httpd/vendors/dragino/fail.html [new file with mode: 0755]
u-boot/httpd/vendors/dragino/flashing.html [new file with mode: 0755]
u-boot/httpd/vendors/dragino/index.html [new file with mode: 0755]
u-boot/httpd/vendors/dragino/l.png [new file with mode: 0755]
u-boot/httpd/vendors/dragino/style.css [new file with mode: 0755]

index 2f7a2b4668d8e7c907f0c0eefe23650906a07270..a0f067d3d8aa9b1740d05bbce2762b455ad39845 100755 (executable)
--- a/Makefile
+++ b/Makefile
@@ -165,6 +165,7 @@ gs-oolite_v1_dev:
 
 dragino_v2_ms14:       export UBOOT_FILE_NAME=uboot_for_dragino_v2_ms14
 dragino_v2_ms14:       export MAX_UBOOT_SIZE=192
+dragino_v2_ms14:       export DEVICE_VENDOR=dragino
 dragino_v2_ms14:
        @cd $(BUILD_TOPDIR)/u-boot/ && $(MAKECMD) dragino_v2_ms14_config
        @cd $(BUILD_TOPDIR)/u-boot/ && $(MAKECMD) ENDIANNESS=-EB V=1 all
diff --git a/u-boot/httpd/vendors/dragino/404.html b/u-boot/httpd/vendors/dragino/404.html
new file mode 100755 (executable)
index 0000000..1f0263f
--- /dev/null
@@ -0,0 +1,17 @@
+<!DOCTYPE HTML>
+<html>
+       <head>
+               <meta charset="utf-8">
+               <title>Page not found</title>
+               <link rel="stylesheet" href="style.css">
+               <link rel="shortcut icon" href="f.png">
+       </head>
+       <body>
+               <div id="h"><img src="l.png"></div>
+               <div id="m">
+                       <h1 class="red">Page not found</h1>
+                       <p>The page you were looking for doesn't exist!<br>Go back to <a href="index.html">firmware update</a> page.</p>
+               </div>
+               <div id="f">You can find more information about this project on <a href="https://github.com/pepe2k/u-boot_mod" target="_blank">GitHub</a></div>
+       </body>
+</html>
\ No newline at end of file
diff --git a/u-boot/httpd/vendors/dragino/f.png b/u-boot/httpd/vendors/dragino/f.png
new file mode 100755 (executable)
index 0000000..5e3840f
Binary files /dev/null and b/u-boot/httpd/vendors/dragino/f.png differ
diff --git a/u-boot/httpd/vendors/dragino/fail.html b/u-boot/httpd/vendors/dragino/fail.html
new file mode 100755 (executable)
index 0000000..3a0ab51
--- /dev/null
@@ -0,0 +1,17 @@
+<!DOCTYPE HTML>
+<html>
+       <head>
+               <meta charset="utf-8">
+               <title>Update failed</title>
+               <link rel="stylesheet" href="style.css">
+               <link rel="shortcut icon" href="f.png">
+       </head>
+       <body>
+               <div id="h"><img src="l.png"></div>
+               <div id="m">
+                       <h1 class="red">Update failed</h1>
+                       <p>Please, try again or contact with the author of this modification.<br>You can also get more information during update in U-Boot console.</p>
+               </div>
+               <div id="f">You can find more information about this project on <a href="https://github.com/pepe2k/u-boot_mod" target="_blank">GitHub</a></div>
+       </body>
+</html>
\ No newline at end of file
diff --git a/u-boot/httpd/vendors/dragino/flashing.html b/u-boot/httpd/vendors/dragino/flashing.html
new file mode 100755 (executable)
index 0000000..1e81123
--- /dev/null
@@ -0,0 +1,18 @@
+<!DOCTYPE HTML>
+<html>
+       <head>
+               <meta charset="utf-8">
+               <title>Update in progress</title>
+               <style>
+                       h1,p,body{margin:0;padding:0}html,body{font:13px/20px Tahoma,sans-serif;background:#135B72;color:#FFF;text-align:center;height:100%}#m{padding:30px 0}#m>*{padding:20px}#f{font-size:11px;position:absolute;bottom:0;width:100%;padding:15px 0}a{color:#FEDD12;text-decoration:none}h1{font:bold 40px/40px Arial}#l{height:30px;width:30px;margin:30px auto;-webkit-animation:r 1s infinite linear;-moz-animation:r 1s infinite linear;-o-animation:r 1s infinite linear;animation:r 1s infinite linear;border-left:5px solid #FEDD12;border-right:5px solid #FEDD12;border-bottom:5px solid #135B72;border-top:5px solid #135B72;border-radius:100%}@-webkit-keyframes r{from{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(359deg)}}@-moz-keyframes r{from{-moz-transform:rotate(0deg)}to{-moz-transform:rotate(359deg)}}@-o-keyframes r{from{-o-transform:rotate(0deg)}to{-o-transform:rotate(359deg)}}@keyframes r{from{transform:rotate(0deg)}to{transform:rotate(359deg)}}
+               </style>
+       </head>
+       <body>
+               <div id="m">
+                       <h1>Update in progress</h1>
+                       <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. You can close this page.</p>
+                       <div id="l"></div>
+               </div>
+               <div id="f">You can find more information about this project on <a href="https://github.com/pepe2k/u-boot_mod" target="_blank">GitHub</a></div>
+       </body>
+</html>
\ No newline at end of file
diff --git a/u-boot/httpd/vendors/dragino/index.html b/u-boot/httpd/vendors/dragino/index.html
new file mode 100755 (executable)
index 0000000..34408b9
--- /dev/null
@@ -0,0 +1,18 @@
+<!DOCTYPE HTML>
+<html>
+       <head>
+               <meta charset="utf-8">
+               <title>Firmware update</title>
+               <link rel="stylesheet" href="style.css">
+               <link rel="shortcut icon" href="f.png">
+       </head>
+       <body>
+               <div id="h"><img src="l.png"></div>
+               <div id="m">
+                       <h1>Firmware update</h1>
+                       <p>You are going to upload new firmware to the device.<br>Choose a proper file from your local hard drive and click <strong>"Update firmware"</strong> button.<br>Please, do not power off the device during update, if everything goes well, the device will restart.</p>
+                       <form method="post" enctype="multipart/form-data"><input type="file" name="firmware"><input type="submit" value="Update firmware"></form>
+               </div>
+               <div id="f">You can find more information about this project on <a href="https://github.com/pepe2k/u-boot_mod" target="_blank">GitHub</a></div>
+       </body>
+</html>
\ No newline at end of file
diff --git a/u-boot/httpd/vendors/dragino/l.png b/u-boot/httpd/vendors/dragino/l.png
new file mode 100755 (executable)
index 0000000..13df04b
Binary files /dev/null and b/u-boot/httpd/vendors/dragino/l.png differ
diff --git a/u-boot/httpd/vendors/dragino/style.css b/u-boot/httpd/vendors/dragino/style.css
new file mode 100755 (executable)
index 0000000..20a9105
--- /dev/null
@@ -0,0 +1,49 @@
+h1,
+p,
+form,
+body {
+       margin: 0;
+       padding: 0;
+}
+
+html,
+body {
+       font: 13px/20px Tahoma, sans-serif;
+       background: #135B72;
+       color: #FFF;
+       text-align: center;
+       height: 100%;
+}
+
+#m, #h {
+       padding: 30px 0;
+}
+
+#h {
+       background: #FFF;
+}
+
+#m > * {
+       padding: 20px;
+}
+
+#f {
+       font-size: 11px;
+       position: absolute;
+       bottom: 0;
+       width: 100%;
+       padding: 15px 0;
+}
+
+a {
+       color: #FEDD12;
+       text-decoration: none;
+}
+
+h1 {
+       font: bold 40px/40px Arial;
+}
+
+.red {
+       color: #ED0000;
+}
\ No newline at end of file