[U-Boot] bootfile environment variable
Simon Glass
sjg at chromium.org
Sun Jun 1 18:30:50 CEST 2014
Hi,
On 26 May 2014 21:05, l3iggs . <l3iggs at live.com> wrote:
> Hello,I have a DHCP server set up to provide all of the environment variables listed at the bottom of this page: http://www.denx.de/wiki/view/DULG/UBootEnvVariablesSpecifically, I've configure my DHCP server to provide option #67, Bootfile name, as "zImage"u-boot picks up on this nicely and so when I run=> dhcpu-boot downloads zImage from my TFTP server. However, I've found it impossible to download any other file with this setup. For example, I expect that when I execute=> dhcp 0x120000000 192.168.1.1:zImage2or=> dhcp zImage2I should get the zImage2 file. Unfortunately, zImage is downloaded in all cases. I've been unable to find any command (DHCP, TFTP) that I can issue that will allow me to download any file other than the DHCP provided default file. Removing/disabling option #67 from my DHCP server solves the problem and u-boot can download any file I ask from my TFTP server.
> I'm running commit 9665fa8f9e1488209d5e01d0792c243e0a220c5a
> It seems like the proper behavior would be be that the DHCP provided file name is overridden by a file name given at the u-boot prompt and the DHCP provided file name is only downloaded when no file name is specified at the command line.
> Can anyone else confirm this issue?
You can 'setenv autoload n' and then it will not load anything. You
can then use the 'tftpboot' command to load what you want.
But for your case you can find the code in net/bootp.c. If you
'#define DEBUG' at the top of that file you might get some clues.
It looks like this is supported, but there are strange server
differences which you might be hitting. See for example line 779 of
net/bootp.c below the comment '/* vendor opt bootfile */'.
Regards,
Simon
More information about the U-Boot
mailing list