[LEDE-DEV] [PATCH] uboot-lantiq: Enable TFTP PUT support for backups
Carl-Daniel Hailfinger
c-d.hailfinger.devel.2006 at gmx.net
Sat Aug 12 10:04:52 PDT 2017
Backing up the current firmware from U-Boot over serial can take hours.
Booting a working Linux image for backup purposes is not always an option.
Using the tftpput command in U-Boot is the fastest and easiest way.
tftpput will upload the contents of a memory region to the TFTP server.
The IP address of the server is stored in the serverip variable.
Usage:
tftpput <memaddr> <length> <filename>
Example for a complete flash backup of an o2 Box 6431 (VGV7510KW22):
VGV7510KW22 # tftpput 0xB0000000 0x1000000 o2boxbackup.bin
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>
---
.../patches/0022-MIPS-lantiq-add-default-openwrt-config.patch | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/package/boot/uboot-lantiq/patches/0022-MIPS-lantiq-add-default-openwrt-config.patch b/package/boot/uboot-lantiq/patches/0022-MIPS-lantiq-add-default-openwrt-config.patch
index 3b50c98..20bff44 100644
--- a/package/boot/uboot-lantiq/patches/0022-MIPS-lantiq-add-default-openwrt-config.patch
+++ b/package/boot/uboot-lantiq/patches/0022-MIPS-lantiq-add-default-openwrt-config.patch
@@ -8,7 +8,7 @@ Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck at gmail.com>
--- /dev/null
+++ b/include/configs/openwrt-lantiq-common.h
-@@ -0,0 +1,39 @@
+@@ -0,0 +1,40 @@
+/*
+ * Copyright (C) 2013 Luka Perkov <luka at openwrt.org>
+ *
@@ -21,6 +21,7 @@ Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck at gmail.com>
+/* Commands */
+#if defined(CONFIG_LTQ_SUPPORT_ETHERNET)
+#define CONFIG_CMD_PING
++#define CONFIG_CMD_TFTPPUT
+#endif
+
+/* Compression */
--
2.7.4
More information about the Lede-dev
mailing list