Help correcting nandboot string for EA4500

I need this line:

nandboot=nand read.e 0x2000000 0x200000 0x400000

to be:

nandboot=nand read.e 0x2000000 0x200000 0x300000; setenv bootargs $(console) $(mtdparts) $(fs_bootargs_root) serial_number=$(sn) uuid=$(uuid) hw_version=$(hw) device_mac=$(mac) factory_date=$(date) wps_pin=$(wps); bootm 0x2000000;

I have tried 3 commands :
1
fw_setenv nandboot nand read.e 0x2000000 0x200000 0x300000; setenv bootargs $(console) $(mtdparts) $(fs_bootargs_root) serial_number=$(sn) uuid=$(uuid) hw_version=$(hw) device_mac=$(mac) factory_date=$(date) wps_pin=$(wps); bootm 0x2000000;
2
fw_setenv nandboot nand read.e 0x2000000 0x200000 0x300000; "setenv bootargs $(console) $(mtdparts) $(fs_bootargs_root) serial_number=$(sn) uuid=$(uuid) hw_version=$(hw) device_mac=$(mac) factory_date=$(date) wps_pin=$(wps); bootm 0x2000000;"

3
fw_setenv nandboot nand read.e 0x2000000 0x200000 0x300000; "$ (setenv bootargs $(console) $(mtdparts) $(fs_bootargs_root) serial_number=$(sn) uuid=$(uuid) hw_version=$(hw) device_mac=$(mac) factory_date=$(date) wps_pin=$(wps); bootm 0x2000000;)"

none of the 3 worked , appreciate any help

should we guess which device this is for ?

you should however try something like

fw_setenv nandboot 'string..'
1 Like

Should not make a big difference, they are common commands , and I just need to put that line exacly how i described it since wrongly changed it and that is the configuration it was before. So basically im "restoring a backup".

Device is Linksys EA4500.

the original one appears to be posted in https://openwrt.org/toh/linksys/ea4500, but I guess you already knew this.

This worked! Thank you very much !!

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.