All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] macro substitution - can someone explain please
Date: Mon, 26 Oct 2009 04:11:18 -0400	[thread overview]
Message-ID: <200910260411.19677.vapier@gentoo.org> (raw)
In-Reply-To: <eedb5540910260044w1fe828d4x5a668be21f7ca28e@mail.gmail.com>

On Monday 26 October 2009 03:44:41 javier Martin wrote:
> I have a similar problem. In my environment:
> 
> bootcmd=cp.b c0040000 ${loadaddr} 280000;bootm ${loadaddr}
> mtdparts=mtdparts=mxc_nor_flash.0:256k(U-Boot),2560k(kernel),29312k(rootfs)
> ,512k(config),128k(env1) bootargs=noinitrd console=ttymxc0,115200
>  root=/dev/mtdblock2
> init=linuxrc rw ${mtdparts}
> 
> But when I execute 'run bootm', kernel boots but "mtdparts" variable
> is not substituted in kernel command line:

i dont think your issue is the same as David's.  you need to force expansion 
of the variable yourself.
set bootcmd "run do_args; run do_boot"
set do_args "set init linuxrc rw ${mtdparts}"
set do_boot "cp.b c0040000 ${loadaddr} 280000;bootm ${loadaddr}"
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20091026/f70df714/attachment.pgp 

  reply	other threads:[~2009-10-26  8:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-23 12:25 [U-Boot] macro substitution - can someone explain please David Collier
2009-10-26  7:44 ` javier Martin
2009-10-26  8:11   ` Mike Frysinger [this message]
2009-10-26  8:13 ` Mike Frysinger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200910260411.19677.vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.