[U-Boot] default load addresses

the tftp command works with the default address set indirectly by CFG_LOAD_ADDR
the ext2load command doesn't, and I don't know how to specify the default load address by ${defload} or anything similar.
Is there an underlying reason why one command can use a default addr, and the other can't?
David Collier
www.dexdyne.com

Dear "David Collier",
In message <memo.20091026135931.2092o@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
participants (2)
-
David Collier
-
Wolfgang Denk