[U-Boot] [PATCH 1/1] test/py: use default load address for tftp

Heinrich Schuchardt xypron.glpk at gmx.de
Sat Jan 26 21:40:25 UTC 2019


On 1/26/19 9:33 PM, Stephen Warren wrote:
> On 1/26/19 7:25 AM, Heinrich Schuchardt wrote:
>> On x86_64 the size of the file u-boot loaded by the tftp test has grown in
>> size such that when loading the file to 0x200000 it overwrites a memory
>> area reserved for PCI.
>>
>> If no load address is specified for tftp do not use the ram base address
>> (or if zero 0x200000) but the default address.
> 
> I assume that default is $loadaddr? If so, then this patch seems fine.
> 

Thanks for reviewing.

Yes, the address `tftp filename` uses is environment variable loadaddr.

This is specified in cmd/net.c, function netboot_common():

188	/* pre-set load_addr */
189	s = env_get("loadaddr");

Best regards

Heinrich Schuchardt


More information about the U-Boot mailing list