recovery: introduce new define RECOVERY_FILENAME_STRING for tftp in cmd_recovery
It's used to define a different recovery image for ap1 and ap2
This commit is contained in:
parent
d0ae6edf65
commit
847feac483
|
@ -100,11 +100,11 @@ static int do_run_recovery(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
|
||||||
return dhcp_failed();
|
return dhcp_failed();
|
||||||
|
|
||||||
rc = run_command("setenv filesize 0; "
|
rc = run_command("setenv filesize 0; "
|
||||||
"tftp 0x81000000 sysmocom-ap2-recovery", 0);
|
"tftp 0x81000000 " RECOVERY_FILENAME_STRING, 0);
|
||||||
if (rc < 0) {
|
if (rc < 0) {
|
||||||
rc = run_command("setenv filesize 0; "
|
rc = run_command("setenv filesize 0; "
|
||||||
"set serverip 255.255.255.255; "
|
"set serverip 255.255.255.255; "
|
||||||
"tftp 0x81000000 sysmocom-ap2-recovery", 0);
|
"tftp 0x81000000 " RECOVERY_FILENAME_STRING, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rc < 0)
|
if (rc < 0)
|
||||||
|
|
|
@ -50,6 +50,8 @@
|
||||||
#define CONFIG_ETHADDR 0x00:0xaa:0xbb:0xcc:0xdd:0xee
|
#define CONFIG_ETHADDR 0x00:0xaa:0xbb:0xcc:0xdd:0xee
|
||||||
#define CFG_FAULT_ECHO_LINK_DOWN 1
|
#define CFG_FAULT_ECHO_LINK_DOWN 1
|
||||||
|
|
||||||
|
#define RECOVERY_FILENAME_STRING "openwrt-ar71xx-generic-sysmo-sob-ap1-squashfs-sysupgrade.bin"
|
||||||
|
|
||||||
#define CFG_PHY_ADDR 0
|
#define CFG_PHY_ADDR 0
|
||||||
|
|
||||||
#define CFG_AG7240_NMACS 2
|
#define CFG_AG7240_NMACS 2
|
||||||
|
|
|
@ -49,6 +49,8 @@
|
||||||
#define CONFIG_ETHADDR 0x00:0xaa:0xbb:0xcc:0xdd:0xee
|
#define CONFIG_ETHADDR 0x00:0xaa:0xbb:0xcc:0xdd:0xee
|
||||||
#define CFG_FAULT_ECHO_LINK_DOWN 1
|
#define CFG_FAULT_ECHO_LINK_DOWN 1
|
||||||
|
|
||||||
|
#define RECOVERY_FILENAME_STRING "openwrt-ar71xx-generic-sysmo-sob-ap2-squashfs-sysupgrade.bin"
|
||||||
|
|
||||||
#define CFG_PHY_ADDR 0
|
#define CFG_PHY_ADDR 0
|
||||||
|
|
||||||
#define CFG_AG7240_NMACS 2
|
#define CFG_AG7240_NMACS 2
|
||||||
|
|
Loading…
Reference in New Issue