2010-11-15 07:31:36     cant load uboot ezkit 537

Document created by Aaronwu Employee on Sep 25, 2013
Version 1Show Document
  • View in full screen mode

2010-11-15 07:31:36     cant load uboot ezkit 537

Eugene Shvets (RUSSIAN FEDERATION)

Message: 95847   

 

Hey everyone!

 

I want to load uboot into ezkit 537.

 

I tried to do it 2 ways:

 

1.via Visual DSP

 

First, it very hard to connect the target (when visual dsp is loaded I choose new session, then chose 537 processor, choose "configurator" and then I am not sure what I should choose in "platform properties"->type menu/ I choose either HPUSB-ICE or USB-ICE or bf537 usb-ezkit and then there is an error connecting "open device driver failed")

 

Sometimes it works randomly, although very rare

 

I tried to flash-program u-boot-bf537-stamp-spi-2009R1.1-rc1.ldr(switched bootmode to 1)

 

and u-boot-bf537-stamp-bypass-2009R1.1-rc1.bin (switched bootmode to 0)

 

After that I rebooted the board and tried minicom -s

 

Set speed to 115200 and this didn't work

 

Also tried 9600 speed and 57600

 

I tried bootmodes 1 and 0 because I wasn't sure which I should select, it worked neither way.

 

Also tried converting image to hex:

 

bfin-uclinux-objcopy --gap-fill=0xff -I binary -O ihex ../../stamp/u-boot-bf537-stamp-spi-2009R1.1-rc1.ldr u-boot.ldr.hex

 

It didn't work

 

2.via UART serial port

 

took u-boot-bf537-stamp-uart-2009R1.1-rc1.ldr image .

 

set boot mode switcher to 7

 

put jumpers and switchers as shown in http://www.analog.com/static/imported-files/eval_kit_manuals/ADSP-BF537_EZ-KIT_Lite_Manual_Rev_2_4.pdf on page 2-9

 

connected via usb-serial port adapter and executed

 

"bfin-uclinux-ldr -l ~/Downloads/stamp/u-boot-bf537-stamp-uart-2009R1.1-rc1.ldr /dev/ttyUSB0 "

 

Then I got error:

 

Loading LDR /home/leednee/Downloads/stamp/u-boot-bf537-stamp-uart-2009R1.1-rc1.ldr ... OK!

Removing stale lock '//var/lock/LCK..ttyUSB0'

Opening /dev/ttyUSB0 ... OK!

Configuring terminal I/O ... OK!

Trying to send autobaud ... OK!

Trying to read autobaud ... bfin-uclinux-ldr: received signal 14: timeout while sending; aborting

 

I saw similar error but it was only for 2.6.31 kernel, however I use 2.6.32-24-generic ubuntu kernel

 

So i couldn't load via UART either

 

.

 

3.I don't have a jtag cable, although I borrowed it for some time and got "run detect first" error, although I had just run it.

 

===

 

So how is it possible to load u-boot into bf537 ezkit?

QuoteReplyEditDelete

 

 

2010-11-15 07:42:44     Re: cant load uboot ezkit 537

Mike Frysinger (UNITED STATES)

Message: 95848   

 

please review the documents:

http://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:loading

http://docs.blackfin.uclinux.org/doku.php?id=serial_cable

 

you want bmode 0 and 57600 baud

QuoteReplyEditDelete

 

 

2010-11-15 09:12:48     Re: cant load uboot ezkit 537

Eugene Shvets (RUSSIAN FEDERATION)

Message: 95851   

 

It didn't help.

 

I placed switchers and jumpers as said in manual.(except 5 jumper,I dont havea jumper for it, but it is necessary for power over USB\ethernet , and I don't need that)

 

boot mode to 7 (boot from uart), reset

 

then typed

 

kermit -l /dev/ttyUSB0 -C connect

Removing stale lock /var/lock/LCK..ttyUSB0 (pid 10024 terminated)

Connecting to /dev/ttyUSB0, speed 57600

Escape character: Ctrl-\ (ASCII 28, FS): enabled

Type the escape character followed by C to get back,

or followed by ? to see other options.

 

 

Then hit space and nothing happened.

 

Does this mean UART cable is corrupted?

 

=========

 

Also, what the difference between "run from flash" - bmode 0

 

and "boot from flash" - bmode 1 ?

 

Why do we choose bmode 0?

QuoteReplyEditDelete

 

 

2010-11-15 15:26:46     Re: cant load uboot ezkit 537

Mike Frysinger (UNITED STATES)

Message: 95865   

 

i dont know what manual you're referring to, but you should be following our wiki first:

http://docs.blackfin.uclinux.org/doku.php?id=hw:boards:bf537-stamp

 

what rev of Blackfin silicon exactly are you using ?

 

review the documentation for bmode meanings:

http://docs.blackfin.uclinux.org/doku.php?id=bootloaders:bootrom

QuoteReplyEditDelete

 

 

2010-11-17 07:03:01     Re: cant load uboot ezkit 537

Eugene Shvets (RUSSIAN FEDERATION)

Message: 95920   

 

Wow, thanks! I had 4th switcher placed wrong on SW4 part.

 

Can you please give me a link to a good U-Boot manual? I need to load an elf file into flash and execute it. I am currently reading http://www.denx.de/wiki/DULG/Manual

 

But I am being overwhelmed by the information there, so the help is highly desired.

QuoteReplyEditDelete

 

 

2010-11-17 07:52:15     Re: cant load uboot ezkit 537

Eugene Shvets (RUSSIAN FEDERATION)

Message: 95921   

 

I found some instructions at http://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:serial_port_loading_files

 

Is ELF file loadedthe same way ?

QuoteReplyEditDelete

 

 

2010-11-17 12:57:50     Re: cant load uboot ezkit 537

Mike Frysinger (UNITED STATES)

Message: 95927   

 

you can use the upstream manual or our stuff:

http://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot

Attachments

    Outcomes