[U-Boot] offer: program to deal with kirkwood "boot from UART"

Hi,
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. It's highly configurable, since the external calls to Xmodem and terminal go to shell scripts.
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.
regards,
Jan

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.

Am 08.04.2013 21:17, schrieb Jason Cooper:
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 ;-)
LOL
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.
as soon as I realized Kirkwood boot is integrated into u-boot, I should have searched for a kw client... o.O Well, didn't...
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.
Well. I am sorry, I wasn't planning integration into u-boot source tree. - it's pascal (I don't know c/cpp very well) - it uses a rather fat opensource communication library (synapse, 1.5 MB of pascal source)
Since I am done with recovering my NAS, I won't continue work on this.
Any idea where to anyway provide the source? I could upload it where I wrote the guide on upgrading my Netgear NAS. http://netgear.nas-central.org/wiki/ReadyNasDUO-200_customisation_guide
But... xmodem boot solves only far less problems than the custom emergency boot holding the backup button. So for the Netgear NAS it's useless. But maybe it's of use if I put it into a more general section on http://www.nas-central.org/
Jan

On Mon, Apr 08, 2013 at 11:14:25AM +0200, JPT wrote:
Hi,
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. It's highly configurable, since the external calls to Xmodem and terminal go to shell scripts.
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.
You're probably best just posting the script as a reply here so that the archives pick it up (and search engines).

-----Original Message----- From: u-boot-bounces@lists.denx.de [mailto:u-boot- bounces@lists.denx.de] On Behalf Of JPT Sent: 08 April 2013 14:44 To: u-boot@lists.denx.de Subject: [U-Boot] offer: program to deal with kirkwood "boot from UART"
Hi,
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. It's highly configurable, since the external calls to Xmodem and terminal go to shell scripts.
Wolfgang, do you want to provide this app somewhere on your site?
We already have kwboot in u-boot that supports boot from UART from kirkwood, If your work enables some additional functionality/features to it. You are welcomed to send patch for the same?
Regards... Prafulla . . .
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.
regards,
Jan
U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
participants (4)
-
Jason Cooper
-
JPT
-
Prafulla Wadaskar
-
Tom Rini