mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 18:19:02 +00:00
3e6d303d61
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>
52 lines
1.2 KiB
Diff
52 lines
1.2 KiB
Diff
From 8f584936adad0fca8beece5f55eadcdcd02fad0a Mon Sep 17 00:00:00 2001
|
|
From: Luka Perkov <luka@openwrt.org>
|
|
Date: Sat, 17 Aug 2013 03:44:46 +0200
|
|
Subject: MIPS: lantiq: add default openwrt config
|
|
|
|
Signed-off-by: Luka Perkov <luka@openwrt.org>
|
|
Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
|
|
|
|
--- /dev/null
|
|
+++ b/include/configs/openwrt-lantiq-common.h
|
|
@@ -0,0 +1,40 @@
|
|
+/*
|
|
+ * Copyright (C) 2013 Luka Perkov <luka@openwrt.org>
|
|
+ *
|
|
+ * SPDX-License-Identifier: GPL-2.0+
|
|
+ */
|
|
+
|
|
+#ifndef __OPENWRT_LANTIQ_COMMON_H
|
|
+#define __OPENWRT_LANTIQ_COMMON_H
|
|
+
|
|
+/* Commands */
|
|
+#if defined(CONFIG_LTQ_SUPPORT_ETHERNET)
|
|
+#define CONFIG_CMD_PING
|
|
+#define CONFIG_CMD_TFTPPUT
|
|
+#endif
|
|
+
|
|
+/* Compression */
|
|
+#define CONFIG_LZMA
|
|
+
|
|
+/* Auto boot */
|
|
+#define CONFIG_BOOTDELAY 2
|
|
+
|
|
+/* Environment */
|
|
+#if !defined(CONFIG_SYS_BOOT_RAM)
|
|
+#define CONFIG_BOOTCOMMAND \
|
|
+ "bootm ${kernel_addr}"
|
|
+#endif
|
|
+
|
|
+/* Ethernet */
|
|
+#if defined(CONFIG_LTQ_SUPPORT_ETHERNET)
|
|
+#define CONFIG_ETHADDR 00:01:02:03:04:05
|
|
+#define CONFIG_SERVERIP 192.168.1.2
|
|
+#define CONFIG_IPADDR 192.168.1.1
|
|
+#endif
|
|
+
|
|
+/* Unnecessary */
|
|
+#undef CONFIG_BOOTM_NETBSD
|
|
+#undef CONFIG_BOOTM_PLAN9
|
|
+#undef CONFIG_BOOTM_RTEMS
|
|
+
|
|
+#endif /* __OPENWRT_LANTIQ_COMMON_H */
|