aboutsummaryrefslogtreecommitdiffstats
path: root/package/boot/uboot-lantiq/patches
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2017-08-12 19:04:52 +0200
committerJohn Crispin <john@phrozen.org>2017-08-18 18:47:27 +0200
commit3e6d303d61861734e8d7da731971f46e004cfbde (patch)
treec4c0c2d1e618c17be048d06007ed1ca96a518c5e /package/boot/uboot-lantiq/patches
parent0997185ffddf7a596ced2eb56754a628c828056e (diff)
downloadupstream-3e6d303d61861734e8d7da731971f46e004cfbde.tar.gz
upstream-3e6d303d61861734e8d7da731971f46e004cfbde.tar.bz2
upstream-3e6d303d61861734e8d7da731971f46e004cfbde.zip
uboot-lantiq: Enable TFTP PUT support for backups
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@gmx.net>
Diffstat (limited to 'package/boot/uboot-lantiq/patches')
-rw-r--r--package/boot/uboot-lantiq/patches/0022-MIPS-lantiq-add-default-openwrt-config.patch3
1 files changed, 2 insertions, 1 deletions
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 3b50c981c9..20bff445da 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@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@openwrt.org>
+ *
@@ -21,6 +21,7 @@ Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
+/* Commands */
+#if defined(CONFIG_LTQ_SUPPORT_ETHERNET)
+#define CONFIG_CMD_PING
++#define CONFIG_CMD_TFTPPUT
+#endif
+
+/* Compression */