diff options
author | Dongjin Kim <tobetter@gmail.com> | 2017-05-31 22:16:39 -0400 |
---|---|---|
committer | codewalker <codewalker@hardkernel.com> | 2017-06-01 17:48:44 +0900 |
commit | 84d16a7a731cb71c83c628f65c23872f9d0e6a5d (patch) | |
tree | c47fc5f8881bbd472549e1be568a78f00b6ecfb5 | |
parent | 6a9e36913c62173e8a407fc304e004cf8c0ddbc7 (diff) | |
download | u-boot-odroid-c1-84d16a7a731cb71c83c628f65c23872f9d0e6a5d.tar.gz |
ODROID-C2: dhcp: set 'autoload' to 'no' by defaults905_6.0.1_v3.1s905_6.0.1_v3.0
The command 'dhcp' tries to download a boot file by default, no matter DHCP
request is failed since internally it's same as BOOTP. So before starting DHCP
to obtain IP address, it might be good excercise to run 'setenv autoload no'.
So, this patch just does the command by default before invoking DHCP command.
Change-Id: Iaf547095a2752229df19243bfd133c280fd3965c
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
-rw-r--r-- | common/cmd_net.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/cmd_net.c b/common/cmd_net.c index 09489d404e..1c04c7cdc5 100644 --- a/common/cmd_net.c +++ b/common/cmd_net.c @@ -90,6 +90,10 @@ U_BOOT_CMD( #if defined(CONFIG_CMD_DHCP) static int do_dhcp(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) { +#if defined(CONFIG_MACH_ODROIDC2) + setenv("autoload", "no"); +#endif + return netboot_common(DHCP, cmdtp, argc, argv); } |