public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Thomas Dörfler" <Thomas.Doerfler@embedded-brains.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] bootelf and command line arguments
Date: Sat, 18 Jul 2009 22:08:54 +0200	[thread overview]
Message-ID: <4A622BD6.2070303@embedded-brains.de> (raw)

Hello,

up to now I have worked in private with U-Boot and adapted it to a
user-specific MPC5121e based board. We have worked out how we want to
use U-Boot and soon would like to commit the board specific (and not so
specific) source code changes and additions.

Now we have hit a strange point. the "bootelf" command obviously is
prepared to pass argc/argv to the called program. But in its command
list entry, the number of maximum arguments is limited to 2, which
allows only the command itself and the address of the elf image in
memory to be specified.

I have modified the maxargs field to be CONFIG_SYS_MAXARGS, which works
fine. So my questions are:

- Is there any useful reason why the bootelf command is limited to
maxargs=2?

- Would anybody mind if I commit a patch to change maxargs to
CONFIG_SYS_MAXARGS?

wkr,
Thomas Doerfler.

-- 

--------------------------------------------
Embedded Brains GmbH
Thomas Doerfler        Obere Lagerstrasse 30
D-82178 Puchheim       Germany
email: Thomas.Doerfler at embedded-brains.de
Phone: +49-89-18908079-2
Fax:   +49-89-18908079-9

             reply	other threads:[~2009-07-18 20:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-18 20:08 Thomas Dörfler [this message]
2009-07-18 20:21 ` [U-Boot] bootelf and command line arguments Wolfgang Denk

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=4A622BD6.2070303@embedded-brains.de \
    --to=thomas.doerfler@embedded-brains.de \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox