How to Reloading u-boot.bin???

Apr 10, 2008 at 10:18 PM
Could someone provide a walk through on how to reload u-boot? I was able to convert u-boot.bin into the srec format using bin2srec.exe however I have been unable to successfully transfer it over the hyper terminal. It always fails on the last line of the file with the error you will find posted below.

....Error com timeout.
Error timeout reading SREC file at line 5046.
SpinForever...

I don't want to brick this board so could someone provide some pointers?

R
Coordinator
Apr 11, 2008 at 1:59 PM
Edited Apr 15, 2008 at 9:44 PM
The documentation on how to do this is online.
I have done it many times.

Make sure the "offset" is correct to load correctly to on board buffer.

You can edit the SREC file as it is just ASCII.

Look at the last line and see if you see anything unusual.
It should be a "termination record" which the loader program looks for to know when to end.

Make sure the line is fomatted correctly. SREC protocol documentation is available on the web.


Apr 13, 2008 at 6:40 PM
No matter what I do I can't seem to get past this. I have tried sending both the u-boot image I backed up when I first put CE on the board and a srec u-boot image I created from u-boot.bin. Each time the transfer results in a timeout error.

I used this command to generate the srec from the the u-boot.bin file.
bin2srec -a 4 -l 16 -s u-boot-verdex-600-r1578.bin > u-boot-verdex-600-r1578.txt

No matter how many lines there are in the srec image I try to send it always fails on the last line.

Some help on this would be very much appreciated.

Microsoft Windows CE Bootloader Common Library Version 1.4 Built Feb 9 2008 14:36:09
Hardware or Power-on Reset
For GumstixIII Verdex Platform 1.2 Built Feb 11 2008 20:41:51
PLATFORM INFO: XL6 Verdex @624Mhz
RAM INFO:Size 134217728
FLASH INFO:Size 33423360
FLASH INFO:Bytes per blocks: 131072 Number of blocks: 255
FLASH INFO:Sectors per blocks: 256 Data bytes per sector: 512
Serial number: 310F006644ABedd8
Persistent registry support enabled.
Configuring ConsoleLCD...Configured w/USB host.
Configuring netMicro-SD...LAN9118: Chip Id 117 Revision 2
Auto Negotiation Failed
LAN9117 Mac = 00-00-00-00-00-00
Configured w/WiFi.
XL6 platform Configured!

Press ENTER to launch image stored on SD/MMC or SPACE to cancel.

Initiating image launch in 3 seconds.

Boot Loader Configuration:

0) IP configuration: DHCP
1) SMSC MAC address: 00-00-00-00-00-00
2) USB RNDIS MAC address: 00-00-00-00-00-00
3) Boot delay: 3 seconds
4) Hardware configuration: 0x8000F0C2
5) Startup: Launch SD/MMC resident image
6) Download device: FFUART SRecord (Download Only)
7)
8) Reset default configuration
9) Edit memory
C) Clean registry boot: NO
U) Unlock boot blocks
R) Reset
S) Store and lock configuration/boot blocks
D) Download image now
L) Launch SD/MMC resident image now

Enter your selection: 9


Edit Flash/Virtual Memory
Commands: (all addresses in hex,num in decimal)
r <a> <num=1> Read decimal # <num> DWORDS at address <a>
w <a> <hexval> Write hex DWORD <hexval> at address <a>
f <a> <hexval> <num=1> Fill hex DWORD(s) <hexval> at address <a>
m <sa> <da> <num=1> Move source address <sa> to dest <da> # <num> bytes
e <b> <num=1> Erase Flash # <num> blocks at decimal <b>
p <secta> <ma> <num=1> Pgm Flash # <num> sectors at <secta> buffer <ma>
o Dump OEMAddressTable
g Dump GPIO registers
R <a> Read BYTE at address <a>
W <a> <hexval> Write hex BYTE <hexval> at address <a>
l <a> Launch at physical address <a>
x Quit Memory Editor

>f a2000000 ffffffff 98304
>x




Boot Loader Configuration:

0) IP configuration: DHCP
1) SMSC MAC address: 00-00-00-00-00-00
2) USB RNDIS MAC address: 00-00-00-00-00-00
3) Boot delay: 3 seconds
4) Hardware configuration: 0x8000F0C2
5) Startup: Launch SD/MMC resident image
6) Download device: FFUART SRecord (Download Only)
7)
8) Reset default configuration
9) Edit memory
C) Clean registry boot: NO
U) Unlock boot blocks
R) Reset
S) Store and lock configuration/boot blocks
D) Download image now
L) Launch SD/MMC resident image now

Enter your selection: d
SRecord offset in hex
>A2000000
Download SRecord file with offset A2000000
Waiting for SRecord file...
Error com timeout.
Waiting for SRecord file...
Error com timeout.
Waiting for SRecord file...
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................
<removed a bunch of dots>
........................................................................................................................
..........Error com timeout.
Error timeout reading SREC file at line 10090.
SpinForever...

Coordinator
Apr 13, 2008 at 8:52 PM
You can contact me throught the "people" section.

Include the first 5 and last 5 or so lines of the SREC file and I will try to help sort it out.

Is 10090 the last line of the file? Did you only backup the first two or three flash blocks?

DV
Coordinator
Apr 13, 2008 at 9:01 PM
Edited Apr 13, 2008 at 9:05 PM
Another thing you can try is adding a "paceing" delay to Hyperterminal.
You can do this through the "ASCII Setup" tab on the property page for the connectoid.

It is very easy to "overrun" the Gumstix's serial buffer which results in errors like this as they have no handshake flow control.
This is especially true if you have a fast host PC.
I found setting the "ASCII Sending" "Character delay" to 1ms does the trick.

Let me know if this helps.

DV
Coordinator
Apr 15, 2008 at 9:47 PM
Looks like you indeed do not have a "termination record".

If you add this as your last line it should work:

S70500000000FA


DV
Aug 4, 2008 at 5:05 PM
Hello Tungten Steel,  i have tha same problem.
how did you solve it? i have a question, the comand  bin2srec -a 4 -l 16 -s u-boot-verdex-600-r1578.bin > u-boot-verdex-600-r1578.txt  creates a txt file is that the file i should send to the EBOOT?
should i use bin2srec -a 4 -l 16 -s u-boot-verdex-600-r1578.bin > u-boot-verdex-600-r1578.srec intead the txt format?

Can you help me?

Thanks...


 
Aug 6, 2008 at 12:59 PM
I was never able to successful load an image I created using the bin
tools, I think I was having finger trouble. David Vescovi sent me an
image he created and I was able to load that on the gumstix. It is not
the latest version of uboot but you can install the latest once you
have it loaded.

Drop me your email address and I will forward you the uboot image he sent me.

R



On Mon, Aug 4, 2008 at 7:24 PM, [email removed] wrote:
> From: rortega
>
> Hello Tungten Steel, i have tha same problem.
> how did you solve it? i have a question, the comand bin2srec -a 4 -l 16 -s
> u-boot-verdex-600-r1578.bin > u-boot-verdex-600-r1578.txt creates a txt
> file is that the file i should send to the EBOOT?
> should i use bin2srec -a 4 -l 16 -s u-boot-verdex-600-r1578.bin >
> u-boot-verdex-600-r1578.srec intead the txt format?
>
> Can you help me?
>
> Thanks...
>
>
>
>
> Read the full discussion online.
>
> To add a post to this discussion, reply to this email
> ([email removed])
>
> To start a new discussion for this project, email
> [email removed]
>
> You are receiving this email because you subscribed to this discussion on
> CodePlex. You can unsubscribe on codePlex.com.
>
> Please note: Images and attachments will be removed from emails. Any posts
> to this discussion will also be available online at codeplex.com
Aug 6, 2008 at 4:59 PM
Hello, my mail is ricardo.ortega@witech.com.co, it would be helpfull.

thanks a lot....

Aug 14, 2009 at 1:48 AM

Hi

is there a declared solution for this problem???

i used the u-boot_1_1_4 offset a2000000.srec available from the source tree and it still fails with "Error timeout reading SREC file at line 630. SpinForever..."

 

 

Aug 17, 2009 at 4:51 AM

Hello, I encounter this matter too.How do you solve it? Any experience that can share????Thank you!

Can you  send me the u-boot?

Thanks a lot.

email:

newscape@live.com.au