From: Jens Gehrlein Date: Wed, 22 Sep 2010 10:36:05 +0200 Subject: [U-Boot] variable substitution not working with cp.b In-Reply-To: <1285143694.1891.47.camel@swa-m460> References: <1285143694.1891.47.camel@swa-m460> Message-ID: <4C99BFF5.3020001@tqs.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Andr?, Andr? Schwarz schrieb: > 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 ? Just some ideas: - Mixed up "loadaddr" with "load_addr"? - And do "loadaddr" resp. "load_addr" really exist? - Tried using ${variable}, instead of $variable? Kind regards, Jens