[U-Boot] offer: program to deal with kirkwood "boot from UART"
Jason Cooper
u-boot at lakedaemon.net
Mon Apr 8 21:17:41 CEST 2013
Jan,
On Mon, Apr 08, 2013 at 11:14:25AM +0200, JPT wrote:
> during my dealing with the bricked kirkwood board I wrote an app
> which automates the process of booting from UART.
> It's rather stable now, except right now it doesn't work any more.
Never was a more contradictory sentence uttered ;-)
> It's highly configurable, since the external calls to Xmodem and
> terminal go to shell scripts.
I like it.
> Wolfgang, do you want to provide this app somewhere on your site?
>
> looks like this now:
>
> $ ./marvellserialboot --mode bb --device /dev/ttyUSB0 --baud 115200
> Waiting for /dev/ttyUSB0: OK
> Open /dev/ttyUSB0: OK
> Set Parameters to 115200, 8, N, 1, SoftwareFlow: FALSE,
> HardwareFlow: FALSE: OK
> Clear Recieve Buffer: OK
> Sending Command Code BB11223344556677: .0x15 OK. Device is
> requesting Xmodem transfer now.
> Close /dev/ttyUSB0: OK
> Starting Xmodem Upload:
> sx -vv -b u-boot-1.1.4-netgear-533ddr3db-uart.bin </dev/ttyUSB0
> >/dev/ttyUSB0
> Sende u-boot-1.1.4-netgear-533ddr3db-uart.bin, 12288 Blöcke:Starten
> Sie nun Ihr XMODEM-Empfangsprogramm.
> Bytes gesendet:1572992 BPS:9666
>
> Übertragung abgeschlossen
> Xmodem Upload successful.
> Starting Terminal program:
> gtkterm
> Terminal program successful.
Very nice! Please take a look at tools/kwboot.c. It is the current
in-tree tool doing the job you have set out. However, it doesn't have
as many features as your code appears to have.
Could you lay out your patches to add missing features to kwboot? It
would facilitate review, and would avoid duplicate tools in the source
tree.
thx,
Jason.
More information about the U-Boot
mailing list