[U-Boot] default load addresses

Wolfgang Denk wd at denx.de
Mon Oct 26 15:18:11 CET 2009


Dear "David Collier",

In message <memo.20091026135931.2092o at postmaster+dexdyne.com.cix.co.uk> you wrote:
> the tftp command works with the default address set indirectly by
> CFG_LOAD_ADDR

CFG_LOAD_ADDR has long been obsoleted. It's CONFIG_SYS_LOAD_ADDR now.

> the ext2load command doesn't, and I don't know how to specify the default
> load address by ${defload} or anything similar.

Yes, it does. Or what do you think this code from "common/cmd_ext2.c"
is doing?

126 int do_ext2load (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
127 {
...
140         case 3:
141                 addr_str = getenv("loadaddr");
142                 if (addr_str != NULL)
143                         addr = simple_strtoul (addr_str, NULL, 16);
144                 else
145                         addr = CONFIG_SYS_LOAD_ADDR;
146
147                 filename = getenv ("bootfile");
148                 count = 0;
149                 break;

?

> Is there an underlying reason why one command can use a default addr, and
> the other can't?

People just complaining and not submitting patches?

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"What is wanted is not the will to believe, but the will to find out,
which is the exact opposite." - Bertrand Russell, _Sceptical_Essays_,
1928


More information about the U-Boot mailing list