bootelf should allow arguments passing to called program
PATCH 1/1 bootelf should allow arguments passing to called program
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.
---
common/cmd_elf.c +0 -0
@@ -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
PATCH 1/1 bootelf should allow arguments passing to called program
Dear =?ISO-8859-15?Q?Thomas_D=F6rfler?=,
Quoted 16 lines · In message <[email protected]> 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 <[email protected]>---
common/cmd_elf.c +0
-0@@ -311,9 +311,10 @@ unsigned long load_elf_image (unsigned long addr)/*
Quoted 1 line
====================================================================== */
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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
Signature · 5 lines
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