wrtu54g-tm:uboot
This is an old revision of the document!
U-Boot
Okay, we can attempt a TFTP download if and only if $serverip is alive on WAN. Here is example, executed at serial console:
ADM8668 # set if_tftp 'ping $(serverip)' ADM8668 # set do_tftp 'run tftp_boot' ADM8668 # set bootcmd 'run if_tftp do_tftp; run flash_flash' ADM8668 # save Saving Environment to Flash... Un-Protected 1 sectors Erasing Flash... done Erased 1 sectors Writing to Flash... done Protected 1 sectors
Then upon a normal boot:
Hit any key to stop autoboot: 0 TX error status2 = 0x04000008 Using adm8668_net device ping failed; host 10.42.43.1 is not alive ## Booting image at b0040000 ...
If I bring up my TFTP server (I set mine to 10.42.43.1 as you see, since my cable company allows internal IPs to be visible locally, WTF!)
Hit any key to stop autoboot: 0 TX error status2 = 0x04000008 Using adm8668_net device host 10.42.43.1 is alive TX error status2 = 0x04000008 Using adm8668_net device TFTP from server 10.42.43.1; our IP address is 10.42.43.10 Filename 'vmlinuz-8668'. Load address: 0x600000 Loading: T T ######################etc...
Now this will only execute an image from RAM. More helpful would be to replace do_tftp with command such as 'run update_kernel' to actually flash it.
But there is a big problem. Say I kept default IP, which I think was 192.168.0.1, and there is a device on the WAN port that answers to this. You will receive the following:
TX error status2 = 0x04000008 Using adm8668_net device host 192.168.0.1 is alive TX error status2 = 0x04000008 Using adm8668_net device TFTP from server 192.168.0.1; our IP address is 192.168.0.2 Filename 'vmlinuz-8668'. Load address: 0x600000 Loading: T T T T T T T T T T Retry count exceeded; starting again TX error status2 = 0x04000008 Using adm8668_net device TFTP from server 192.168.0.1; our IP address is 192.168.0.2 Filename 'vmlinuz-8668'. Load address: 0x600000 Loading: T T T T T T T T T T Retry count exceeded; starting again
Indefinitely So this is maybe a dumb idea.
wrtu54g-tm/uboot.1289686314.txt.gz · Last modified: 2023/11/04 22:29 (external edit)