[U-Boot] variable substitution not working with cp.b

André Schwarz andre.schwarz at matrix-vision.de
Wed Sep 22 10:21:34 CEST 2010


I'm running on MVBLM7 board using CONFIG_SYS_HUSH_PARSER.

While working on some scripts using env-variables holding some physical
address values I stumbled over this :


my env-variables used :

loadaddr=0x400000
kernel_addr=0xff81000
kernel_len=0x200000



mvBL-M7> erase $kernel_addr +$kernel_len

................................ done
Erased 32 sectors

################# -> using variable as source doesn't work.
mvBL-M7> cp.b $load_addr $kernel_addr $kernel_len
cp - memory copy

Usage:
cp [.b, .w, .l] source target count


################# -> using addr as source works fine.
mvBL-M7> cp.b 0x400000 $kernel_addr $kernel_len
Copy to Flash... done
mvBL-M7>



Why does $load_addr not get expanded ?
Any ideas ?


Regards,
André


MATRIX VISION GmbH, Talstrasse 16, DE-71570 Oppenweiler
Registergericht: Amtsgericht Stuttgart, HRB 271090
Geschaeftsfuehrer: Gerhard Thullner, Werner Armingeon, Uwe Furtner


More information about the U-Boot mailing list