nmhw21: apply dynamic link detection to recovery boot

- replace fixed delay for pxe boot with mdio up command
- increase dhcp/bootp timeout to 10 seconds.
  5 seconds have shown to be close when DHCP server observes link
  by itself.

BugzID: 55019
This commit is contained in:
Rene Straub 2019-01-05 12:51:14 +01:00
parent d6cecc7f62
commit 49e124efb4
1 changed files with 3 additions and 2 deletions

View File

@ -117,16 +117,17 @@ Memory map:
"serverip=192.168.1.254\0" \
"tftptimeout=2000\0" \
"tftptimeoutcountmax=5\0" \
"bootpretryperiod=5000\0" \
"bootpretryperiod=10000\0" \
"autoload=false\0" \
"tftp_recovery=tftpboot $kernel_addr recovery-image; tftpboot $fdt_addr_r recovery-dtb; " \
"setenv bootargs rdinit=/etc/preinit console=$defaultconsole,115200 " \
"debug ti_cpsw.rx_packet_max=1526; " \
"bootz $kernel_addr - $fdt_addr_r\0" \
"pxe_recovery=sleep 3 && dhcp && pxe get && pxe boot\0" \
"pxe_recovery=mdio up $ethprime && dhcp && pxe get && pxe boot\0" \
"recovery=run pxe_recovery || setenv ipaddr $ipaddr; setenv serverip $serverip; run tftp_recovery\0" \
/* setenv ipaddr and serverip is necessary, because dhclient can destroy the IPs internally */
#endif
#define CONFIG_ZERO_BOOTDELAY_CHECK
/* UART Configuration */
#define CONFIG_SYS_NS16550_COM1 0x44e09000 /* UART0: XModem Boot */