From: "Thomas Dörfler" <Thomas.Doerfler@embedded-brains.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [Patch] bootelf should allow arguments passing to called program
Date: Sun, 19 Jul 2009 17:28:14 +0200 [thread overview]
Message-ID: <4A633B8E.8060802@embedded-brains.de> (raw)
The bootelf command is written to pass the command line arguments to the
called program, but the command list entry limits the number of
arguments to 2 (including the command itself and the image address).
Changing the command list entry allows passing command line arguments to
the called program.
Signed-off-by: Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
---
diff --git a/common/cmd_elf.c b/common/cmd_elf.c
index abec7dd..e67938f 100644
--- a/common/cmd_elf.c
+++ b/common/cmd_elf.c
@@ -311,9 +311,10 @@ unsigned long load_elf_image (unsigned long addr)
/*
====================================================================== */
U_BOOT_CMD(
- bootelf, 2, 0, do_bootelf,
+ bootelf,CONFIG_SYS_MAXARGS, 0, do_bootelf,
"Boot from an ELF image in memory",
- " [address] - load address of ELF image."
+ " [address] [arg ...] - load address of ELF image.\n"
+ " passing 'arg' as arguments"
);
U_BOOT_CMD(
---
--------------------------------------------
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
next reply other threads:[~2009-07-19 15:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-19 15:28 Thomas Dörfler [this message]
2009-07-23 19:24 ` [U-Boot] [Patch] bootelf should allow arguments passing to called program 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=4A633B8E.8060802@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