From: =?ISO-8859-1?Q?Andr=E9?= Schwarz Date: Wed, 22 Sep 2010 10:21:34 +0200 Subject: [U-Boot] variable substitution not working with cp.b Message-ID: <1285143694.1891.47.camel@swa-m460> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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