public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [Patch] bootelf should allow arguments passing to called program
@ 2009-07-19 15:28 Thomas Dörfler
  2009-07-23 19:24 ` Wolfgang Denk
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Dörfler @ 2009-07-19 15:28 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [Patch] bootelf should allow arguments passing to called program
  2009-07-19 15:28 [U-Boot] [Patch] bootelf should allow arguments passing to called program Thomas Dörfler
@ 2009-07-23 19:24 ` Wolfgang Denk
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2009-07-23 19:24 UTC (permalink / raw)
  To: u-boot

Dear =?ISO-8859-15?Q?Thomas_D=F6rfler?=,

In message <4A633B8E.8060802@embedded-brains.de> you wrote:
> 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)
> 
>  /*
> ====================================================================== */
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Line wrapped.


Sorry, your mailer wrapped long lines:

Applying: bootelf should allow arguments passing to called program
fatal: corrupt patch at line 9
Patch failed at 0001.


Please clean up and resubmit. Use git-send-email to submit the
patch.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
To live is always desirable.
	-- Eleen the Capellan, "Friday's Child", stardate 3498.9

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-07-23 19:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-19 15:28 [U-Boot] [Patch] bootelf should allow arguments passing to called program Thomas Dörfler
2009-07-23 19:24 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox