Message ID | 20180831115828.15831-2-lukma@denx.de |
---|---|
State | Accepted |
Commit | 2d558da0d73af7329592a072bfe2c912af413f74 |
Delegated to: | Stefano Babic |
Headers | show |
Series | [U-Boot,1/4] ARM: bootscript: Remove hard-coded rootpath from K+P's tpcboot.cmd | expand |
diff --git a/board/k+p/bootscripts/tpcboot.cmd b/board/k+p/bootscripts/tpcboot.cmd index 9290317730..ebd2d4ec2a 100644 --- a/board/k+p/bootscripts/tpcboot.cmd +++ b/board/k+p/bootscripts/tpcboot.cmd @@ -52,7 +52,7 @@ fi;" # # Provide 'boot_tftp_kernel' command #------------------------------------------------------------ -setenv download_kernel "tftpboot ${loadaddr} ${kernel_file}" +setenv download_kernel "dhcp ${loadaddr} ${kernel_file}" setenv boot_tftp_kernel " if run download_kernel; then
The 'dhcp' command is more versatile as it allows working with the DHCP server to obtain serverip, ipaddress and other network parameters. The configuration necessary to obtain the serverip (dhcpd.conf): option option-150 code 150 = ip-address; and in the subnet definition: option option-150 192.168.X.Y; Signed-off-by: Lukasz Majewski <lukma@denx.de> --- board/k+p/bootscripts/tpcboot.cmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)