diff options
author | Lukasz Majewski <lukma@denx.de> | 2018-08-31 13:58:26 +0200 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2018-09-14 15:22:52 +0200 |
commit | 2d558da0d73af7329592a072bfe2c912af413f74 (patch) | |
tree | 9c42319a6e8b9c9498bdba2fac7dcb67df4dee39 /board/k+p | |
parent | 21c22db014a7c5d9c182a6da15f365b4d4f26774 (diff) | |
download | u-boot-2d558da0d73af7329592a072bfe2c912af413f74.tar.gz |
ARM: bootscript: Replace tftpboot with dhcp when downloading kernel
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>
Diffstat (limited to 'board/k+p')
-rw-r--r-- | board/k+p/bootscripts/tpcboot.cmd | 2 |
1 files changed, 1 insertions, 1 deletions
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 |