mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] scripts/kwboot: document -n option
@ 2017-06-30  9:51 Uwe Kleine-König
  2017-06-30  9:51 ` [PATCH 2/2] docs: mvebu: describe -n more accurately in the sphinx document Uwe Kleine-König
  2017-06-30 11:33 ` [PATCH 1/2] scripts/kwboot: document -n option Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Uwe Kleine-König @ 2017-06-30  9:51 UTC (permalink / raw)
  To: barebox

This was forgotten in the commit that added support for that option

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 scripts/kwboot.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/scripts/kwboot.c b/scripts/kwboot.c
index 4c6b19aa219e..db177ceb5f2e 100644
--- a/scripts/kwboot.c
+++ b/scripts/kwboot.c
@@ -716,7 +716,7 @@ static void
 kwboot_usage(FILE *stream, char *progname)
 {
 	fprintf(stream,
-		"Usage: %s [-d | -b <image> | -D <image> ] [ -t ] [-B <baud> ] <TTY>\n",
+		"Usage: %s [-d | -b <image> [ -n <naks> ] | -D <image> ] [ -t ] [-B <baud> ] <TTY>\n",
 		progname);
 	fprintf(stream, "\n");
 	fprintf(stream,
@@ -724,6 +724,8 @@ kwboot_usage(FILE *stream, char *progname)
 	fprintf(stream,
 		"  -D <image>: boot <image> without preamble (Dove)\n");
 	fprintf(stream, "  -d: enter debug mode\n");
+	fprintf(stream,
+		"  -n <naks>: wait for <naks> NAK before uploading image (default: 1)\n");
 	fprintf(stream, "\n");
 	fprintf(stream, "  -t: mini terminal\n");
 	fprintf(stream, "\n");
-- 
2.11.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* [PATCH 2/2] docs: mvebu: describe -n more accurately in the sphinx document
  2017-06-30  9:51 [PATCH 1/2] scripts/kwboot: document -n option Uwe Kleine-König
@ 2017-06-30  9:51 ` Uwe Kleine-König
  2017-06-30 11:33 ` [PATCH 1/2] scripts/kwboot: document -n option Sascha Hauer
  1 sibling, 0 replies; 3+ messages in thread
From: Uwe Kleine-König @ 2017-06-30  9:51 UTC (permalink / raw)
  To: barebox

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 Documentation/boards/mvebu.rst | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/Documentation/boards/mvebu.rst b/Documentation/boards/mvebu.rst
index 8e5612283e7a..b28fd443b668 100644
--- a/Documentation/boards/mvebu.rst
+++ b/Documentation/boards/mvebu.rst
@@ -37,9 +37,15 @@ Booting from UART
 
 The mvebu SoCs support booting from UART. For this there is a tool available in
 barebox called ``kwboot``. Quite some mvebu boards are reset once more when
-they already started to read the first block of the image to boot. If you want
-to boot such a board, use the parameter ``-n 15`` for ``kwboot``. (The number
-might have to be adapted per board.)
+they already started to read the first block of the image to boot which
+obviously results in a failure to boot this image. If you want to boot such a
+board, use the parameter ``-n 15`` for ``kwboot`` to delay uploading the image
+and try to hit the right (i.e. second) window harder.
+(The number might have to be adapted per board. The semantic is that the magic
+string is sent until the 15th NAK is seen and only then the image is sent.) A
+typical commandline is:
+
+  kwboot -b barebox.img -n 15 -B 115200 -t /dev/ttyUSB
 
 mvebu boards
 ------------
-- 
2.11.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: [PATCH 1/2] scripts/kwboot: document -n option
  2017-06-30  9:51 [PATCH 1/2] scripts/kwboot: document -n option Uwe Kleine-König
  2017-06-30  9:51 ` [PATCH 2/2] docs: mvebu: describe -n more accurately in the sphinx document Uwe Kleine-König
@ 2017-06-30 11:33 ` Sascha Hauer
  1 sibling, 0 replies; 3+ messages in thread
From: Sascha Hauer @ 2017-06-30 11:33 UTC (permalink / raw)
  To: Uwe Kleine-König; +Cc: barebox

On Fri, Jun 30, 2017 at 11:51:44AM +0200, Uwe Kleine-König wrote:
> This was forgotten in the commit that added support for that option
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> ---
>  scripts/kwboot.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)

Applied, thanks

Sascha

> 
> diff --git a/scripts/kwboot.c b/scripts/kwboot.c
> index 4c6b19aa219e..db177ceb5f2e 100644
> --- a/scripts/kwboot.c
> +++ b/scripts/kwboot.c
> @@ -716,7 +716,7 @@ static void
>  kwboot_usage(FILE *stream, char *progname)
>  {
>  	fprintf(stream,
> -		"Usage: %s [-d | -b <image> | -D <image> ] [ -t ] [-B <baud> ] <TTY>\n",
> +		"Usage: %s [-d | -b <image> [ -n <naks> ] | -D <image> ] [ -t ] [-B <baud> ] <TTY>\n",
>  		progname);
>  	fprintf(stream, "\n");
>  	fprintf(stream,
> @@ -724,6 +724,8 @@ kwboot_usage(FILE *stream, char *progname)
>  	fprintf(stream,
>  		"  -D <image>: boot <image> without preamble (Dove)\n");
>  	fprintf(stream, "  -d: enter debug mode\n");
> +	fprintf(stream,
> +		"  -n <naks>: wait for <naks> NAK before uploading image (default: 1)\n");
>  	fprintf(stream, "\n");
>  	fprintf(stream, "  -t: mini terminal\n");
>  	fprintf(stream, "\n");
> -- 
> 2.11.0
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2017-06-30 11:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-30  9:51 [PATCH 1/2] scripts/kwboot: document -n option Uwe Kleine-König
2017-06-30  9:51 ` [PATCH 2/2] docs: mvebu: describe -n more accurately in the sphinx document Uwe Kleine-König
2017-06-30 11:33 ` [PATCH 1/2] scripts/kwboot: document -n option Sascha Hauer

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