[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] Fwd: SREC File Upload Issues



Hello,
i am using almost the same hardware as you do so let me show you my .kermrc (which is working pretty fine):

set line /dev/ttyUSB0
set speed 115200
set carrier-watch off
set handshake none
set flow-control none
robust
set file type bin
set file name lit
set rec pack 1000
set send pack 1000
set key \127 \8
set key \8 \127
set escape ^a

it is important to define the right escape key, otherwise you won't be able to use the kermit-menu.
maybe you have to adapt /dev/ttyUSB0 to /dev/ttyS0...

i think your kernel was already booting as you mentioned here:
> Found romfs @ 0x2414a000 (0x00235000)
> #### klimit 2415b000 ####
>
> Moving 0x00235000 bytes from 0x2414a000 to 0x2415a5c0
> New klimit: 0x24390000

the problem is, the console has no output to the serial line.
to fix this select the following when configuring kernel:

>Device drivers>Caracter Devices>
select Xilinx Uartlite serial port support AND Support for console on Xilinx uartlite serial port

another inportant thing is that you enter the Physical address of your uartlite device in the >Kernel hacking menu.

after these two steps, recompile the kernel and you're good to go!

2009/1/26 Michal Simek <monstr@xxxxxxxxx>
Hi Matt,

> Hi,
>
> I'm having problems uploading my u-boot.srec file.  I've followed
> instructions as outlined on Petlogix's website for setting up uClinux
> for my Xilinx Spartan 3E Starter Kit.  Also, I used their example for
> my .kermrc file for Kermit:
>
> set line /dev/ttyS0
> set speed 115200
>
> set carrier-watch off
> set handshake none
>
> set flow-control none
> robust
>
> set file type bin
> set file name lit
>
> set rec pack 1000
> set send pack 1000
>
> set key \127 \8
> set key \8 \127

remove these two line above
>
> set window 5
>
> However, if I download my .bit file to my S3E, press 's' to load my
> SREC image, then issue the following command:
>
>
> cat /tftpboot/u-boot.srec > /dev/ttyS0
>
> Kermit immediately reports "Invalid SREC Image!"  This happens as both
> root and a normal user.


which Petalinux version do you use? Uarlite IP right? Look to your srec file and
look at CR-LF and try combinations. I think in latest svn version should work
any combination.


> However, I tried using Cutecom instead to upload the SREC file, and
> then the twirler started and the image got uploaded.  I feel like
> there's something wrong with my Kermit settings that is sending extra
> control characters.  Also, even though Cutecom uploaded the file,
> Kermit shows that my board gets hung up at:
>
>
> Found romfs @ 0x2414a000 (0x00235000)
> #### klimit 2415b000 ####
>
> Moving 0x00235000 bytes from 0x2414a000 to 0x2415a5c0
> New klimit: 0x24390000


I think that work. Just console doesn't work.
cat linux-2.6.x/System.map | grep __log_buf
0xXXXXXXXX __log_buf

in U-boot md 0xXXXXXXXX


The second test could be if you use emaclite or ll_temac -> try to  connect
through telnet.

Regards,
Michal



> Thanks for any suggestions.
>
> Matt
> ___________________________
> 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/