Skip to contentSkip to conversation

offer: program to deal with kirkwood "boot from UART"

U-Boot JPT 4 participants 5 messages Apr 8, 2013 – Apr 12, 2013

lore
Share & tools
lore

JPT

author
#0 lore raw

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 
Quoted 1 line

/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

#1 lore raw

Jan,

Quoted 3 lines · JPT

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 ;-)

Quoted 2 lines

It's highly configurable, since the external calls to Xmodem and terminal go to shell scripts.

I like it.

Quoted 20 lines

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
Quoted 1 line

/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

Quoted 5 lines

?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.

author
#2 lore raw

Am 08.04.2013 21:17, schrieb Jason Cooper:

Quoted 8 lines

Jan,

Quoted 3 lines · JPT

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

Quoted 3 lines

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...

Quoted 3 lines

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

#3 lore raw
In reply to JPT
Quoted 28 lines · JPT

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
Quoted 1 line

/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

Quoted 5 lines

?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).

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130408/63e7136a/attachment.pgp>
#4 lore raw
In reply to JPT
Quoted 21 lines

-----Original Message-----
From: u-boot-bounces at lists.denx.de [mailto:u-boot- bounces at lists.denx.de] On Behalf Of JPT
Sent: 08 April 2013 14:44
To: u-boot at 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.

Quoted 2 lines

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 . . .

Quoted 40 lines

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
Quoted 1 line

/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 at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot