* [flasher PATCH] Add a command to specify post flash u-boot command
@ 2014-11-25 22:14 James Thomas
[not found] ` <1416953692-28963-1-git-send-email-james.thomas-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: James Thomas @ 2014-11-25 22:14 UTC (permalink / raw)
To: linux-tegra-u79uwXL29TY76Z2rM5mHXA
Simple patch to allow a post-flash-cmd to be used after flashing is complete,
e.g --post-flash-cmd 'ums 0 mmc 0'
This defaults to 'reset' if not passed
James Thomas (1):
Add a --post-flash-cmd command line argument
tegra-uboot-flasher | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
--
1.9.3
^ permalink raw reply [flat|nested] 3+ messages in thread
* [flasher PATCH] Add a --post-flash-cmd command line argument
[not found] ` <1416953692-28963-1-git-send-email-james.thomas-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org>
@ 2014-11-25 22:14 ` James Thomas
[not found] ` <1416953692-28963-2-git-send-email-james.thomas-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: James Thomas @ 2014-11-25 22:14 UTC (permalink / raw)
To: linux-tegra-u79uwXL29TY76Z2rM5mHXA
This allows a user to specify the u-boot command to run after flashing
is complete (e.g 'ums 0 mmc 0'), defaults to 'reset' if not set
---
tegra-uboot-flasher | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/tegra-uboot-flasher b/tegra-uboot-flasher
index b71f967..39a077a 100755
--- a/tegra-uboot-flasher
+++ b/tegra-uboot-flasher
@@ -218,7 +218,10 @@ def func_flash():
bootcmd += 'echo >>> Flashing OK, rebooting... ; '
# To update the bootloader, reset.
# If wanting to run installer, set installer_args.configname in environment, 'run bootcmd'
- bootcmd += 'reset'
+ if args.post_flash_cmd:
+ bootcmd += args.post_flash_cmd
+ else:
+ bootcmd += 'reset'
print 'bootcmd:', bootcmd
cmd = ['fdtput', '-p', '-t', 's', u_boot_dtb_runflash, '/config', 'bootcmd', bootcmd]
run(workdir, cmd)
@@ -307,6 +310,8 @@ parser_flash.add_argument('--env', type=str, nargs=2, action='append',
metavar=("VAR", "VALUE"),
help='Set a U-Boot environment variable after flashing. This option ' +
'may be given multiple times')
+parser_flash.add_argument('--post-flash-cmd', type=str,
+ help='The U-Boot command to run after flashing, defaults to \'reset\'')
parser_exec = subparsers.add_parser('exec',
help='Download and execute an unmodified bootloader binary, named ' +
--
1.9.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [flasher PATCH] Add a --post-flash-cmd command line argument
[not found] ` <1416953692-28963-2-git-send-email-james.thomas-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org>
@ 2014-12-01 18:35 ` Stephen Warren
0 siblings, 0 replies; 3+ messages in thread
From: Stephen Warren @ 2014-12-01 18:35 UTC (permalink / raw)
To: James Thomas, linux-tegra-u79uwXL29TY76Z2rM5mHXA
On 11/25/2014 03:14 PM, James Thomas wrote:
> This allows a user to specify the u-boot command to run after flashing
> is complete (e.g 'ums 0 mmc 0'), defaults to 'reset' if not set
You need to add a Signed-off-by line here to indicate that you're
willing to license the patch according to the license at the top of the
tegra-uboot-flasher file. We use the s-o-b line in the same way as e.g.
the Linux kernel, although the actual license of the file is different. See:
http://developercertificate.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-12-01 18:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-25 22:14 [flasher PATCH] Add a command to specify post flash u-boot command James Thomas
[not found] ` <1416953692-28963-1-git-send-email-james.thomas-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org>
2014-11-25 22:14 ` [flasher PATCH] Add a --post-flash-cmd command line argument James Thomas
[not found] ` <1416953692-28963-2-git-send-email-james.thomas-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org>
2014-12-01 18:35 ` Stephen Warren
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.