[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [microblaze-uclinux] Re: Invalid SREC Image
- To: <microblaze-uclinux@xxxxxxxxxxxxxx>
- Subject: RE: [microblaze-uclinux] Re: Invalid SREC Image
- From: Matt Staniszewski <matt.staniszewski@xxxxxxxxx>
- Date: Wed, 4 Mar 2009 09:02:55 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:mime-version :content-class:from:subject:date:importance:x-priority:to :content-transfer-encoding:content-type; bh=Ya5e+SoD9W/CwoQ7b1IK9yW2Jm1S61Hi7pZ4hvtBOFI=; b=M0QKOkIbqLlsryqmzwzNESuUDRa7ZdLKJXp7hQAUxa0+bvoi+VTtShzSWGFpEtJelD V6Z1pXRXOjhlsk1lWBTpO84oZWcR/mxOPIcRmuCcCyOF/y2JXz+PjH/VTg8kx/vwa5zk 3zjzjrc0ZQ1FRz2GXlZulOtf+IoFAQLrQ3UXk=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:mime-version:content-class:from:subject:date:importance :x-priority:to:content-transfer-encoding:content-type; b=ixbfHmEUbh4nuupUS+DgsZbOvgp3rKb3alZDgT8ZlC4sLak9VGaGPHLspS+mmYYtuB 1McBcxAeXreIQZjcedENDOlsgyJrRDaIAt7BTK2oZOxnICQLuwLWbYJF5ACa2uWi8jRu J28/MGEo/TDnVCyPWOepg833RZyyxl1s/99nk=
- Importance: normal
- Reply-to: microblaze-uclinux@xxxxxxxxxxxxxx
- Sender: owner-microblaze-uclinux@xxxxxxxxxxxxxx
Hi Pablo,
Glad to help. I tried a lot of different things to try and get the VM to work. In the end, I repartitioned my hard drive, installed linux on a separate partition from windows, and then used my laptop with both windows and linux (dual boot).
Matt
-----Original Message-----
From: pcolodron@xxxxxxxx
Sent: Wednesday, March 04, 2009 1:06 AM
To: microblaze-uclinux@xxxxxxxxxxxxxx
Subject: Re: [microblaze-uclinux] Re: Invalid SREC Image
Hi Matt,
Thanks a lot for your help. I'm experiencing the same problem that
you've said. I am using a VM and I'have tested the serial port as you
told me. You were right! The buffer is dropping bits and the u-boot
file is not send correctly, so now I know what's wrong.
However I am not sure about how you solved this problem. You mentioned
that you switched to a dual boot system. Do you mean that you were not
using fs-boot and u-boot together? I am sorry about not understanding
too much about this..
Thanks a lot again Matt,
Kind regards,
Pablo
Matt Staniszewski escribió:
> Hi Pablo,
>
> My problem was that I was using a Linux VM with a virtual serial
> port. I found out the problem after testing the serial port using a
> loopback (short pins 2 and 3) on the cable and try the following in
> 2 separate terminal windows:
>
> Terminal Window 1:
> cat somefile > /dev/ttyS0
>
> Terminal Window 2:
> cat /dev/ttyS0
>
> Where 'somefile' is any file you choose to send over the serial port
> (i.e. u-boot.srec).
>
> In my case, the buffers for the virtual serial port were dropping
> bits when they filled, so the input and output from the 2 terminals
> differed greatly. In the end, I switched to a dual boot system, and
> I haven't had a problem since.
>
> Hope this helps. Even if you're not using a VM, I'd test the serial
> port with the loopback.
>
> Good luck!
>
> Matt
>
>
>
> On Tue, Mar 3, 2009 at 04:03, <pcolodron@xxxxxxxx> wrote:
>
> Hi,
>
> Has anybody found out how to solve this error? I am facing the same
> problem and I couldn fix it. What I obtain when I download the file
> u-boot.srec is the following:
>
> FS-BOOT: Waiting for SREC image....
> DEBUG:SREC Type:0
> DEBUG:Line Length:32
> DEBUG:Load Address:0x0
> DEBUG:Binary Length:11
> DEBUG:SREC_START:0x0
> DEBUG:SREC Type:99
> DEBUG:Line Length:0
> DEBUG:Load Address:0x0
> DEBUG:Binary Length:11
> DEBUG:SREC Type:-1
> DEBUG:Line Length:36
> DEBUG:Load Address:0x8FFC0000
> DEBUG:Binary Length:16
>
> FS-BOOT: Invalid SREC!
> FS-BOOT: Image download failed.
> FS-BOOT: Please reset target.
>
>
> I have already checked that nobody else is accessing this port and the
> .kermrc file is the same as the one which appears in the
> petalogix webpage.
>
> I think there is a problem related with the .srec file. My file
> has the following structure:
>
> S00E0000752D626F6F742E73726563C0
> S3158FFC00009400C001B0008FF6202000002021FFFC59
> S3158FFC0010B0008FFD20A05738B0008FFD20807498DC
> S3158FFC002014C52001BC060014F805000020A50004A9
> (it continues with similar lines...)
> .
> .
> .
> .
> (and it ends like this)
> S3158FFD57088FFD3CA800000010000000018FFC875814
> S3158FFD57188FFD3CB08FFD3CD08FFD3D0C0000000109
> S3158FFD5728000000018FFC87248FFD3D1400000000CB
> S7058FFC00006F
>
> I've had a look at the files fs-boot.c and srec.c and the
> structure of my file u-boot.srec looks fine buf who knows.
>
> It would be fantastic that you could give me some advices.
>
> Thank you very much in advance.
>
> Kind regards,
>
> Pablo Colodron.
>
>
>
>
> Yeoh Chun Yeow wrote:
>
> Dear all,
>
> I have tried to download the SREC image of U-boot but
> encounter the following errors:
>
> =================================================
> FS-BOOT First Stage Bootloader (c) 2006 PetaLogix
> =================================================
> FS-BOOT: System initialisation completed.
> FS-BOOT: No existing image in FLASH. Starting image download.
> FS-BOOT: Waiting for SREC image....
> DEBUG:SREC Type:0
> DEBUG:Line Length:32
> DEBUG:Load Address:0x0
> DEBUG:Binary Length:11
> DEBUG:SREC_START:0x0
> DEBUG:SREC Type:99
> DEBUG:Line Length:0
> DEBUG:Load Address:0x0
> DEBUG:Binary Length:11
> DEBUG:SREC Type:-1
> DEBUG:Line Length:18
> DEBUG:Load Address:0x27FFC000
> DEBUG:Binary Length:16
>
> FS-BOOT: Invalid SREC!
> FS-BOOT: Image download failed.
> FS-BOOT: Please reset target.
>
> Is that my U-Boot image is corrupted? Please advice.
>
>
> a.) if you think the u-boot.srec is corrupted, just open it in the
> editor. It is a textfile, and most lines should have the same lengths
> (not the first few and the last)
>
> b.) It looks more like a problem with your serial connection. Did you
> check, that nobody else is accessing this port ? (minicoms,
> gettys, ect ?)
>
> c.) did you use the kermc file which is proposed on the petalogix
> webpage ? Probably something is wrong on your kermit or line setup ?
>
> Hope it helps
>
>
>
>
> ___________________________
> microblaze-uclinux mailing list
> microblaze-uclinux@xxxxxxxxxxxxxx
> Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
> Mailing List Archive :
> http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
>
>
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/