2007-10-09 18:46:58     Loading on BF548 EZKIT

Document created by Aaronwu Employee on Sep 18, 2013Last modified by Aaronwu Employee on Sep 18, 2013
Version 3Show Document
  • View in full screen mode

2007-10-09 18:46:58     Loading on BF548 EZKIT

Kris Dickie (CANADA)

Message: 45143    After working with a 537 EZKIT for a while, which already had U-boot preloaded, I have just received a new BF548 EZKIT and I am trying to load U-boot into flash.

 

successful steps:

- download nightly toolchain & install

- download and compile latest SVN U-boot (using the 548 ezkit config)

- Set BMODE=7 via BOOT dial and press RESET

- load the u-boot.ldr file via. ttyS0 (according to http://docs.blackfin.uclinux.org/doku.php?id=loading_u-boot)

 

So now I am at the point where it says to run minicom, and when I do, there is no communications, I cannot get to the u-boot prompt. When using minicom on my 537 EZKIT, there was no problems breaking and getting to the u-boot prompt.

 

I understand once I have the u-boot prompt I will have to write u-boot.bin file into flash.

 

Thanks,

Kris

QuoteReplyEditDelete

 

 

2007-10-09 20:11:06     Re: Loading on BF548 EZKIT

Mike Frysinger (UNITED STATES)

Message: 45149    the attached LDR i just tested and it boots my BF548-EZKIT via the UART

 

the way to do it is:

bfin-uclinux-ldr -l u-boot.ldr /dev/ttyS0 -p

 

and then wait a second after sending each block ... otherwise you risk overflowing the UART peripheral ...

u-boot.ldr

QuoteReplyEditDelete

 

 

2007-10-10 12:08:44     Re: Loading on BF548 EZKIT

Kris Dickie (CANADA)

Message: 45189    thanks that worked with your file. my compiled u-boot.ldr still won't let me break to the prompt. I don't want to write my u-boot.bin to flash if my .ldr file is not working, would it be possible to attach your corresponding .bin file as well.

 

thanks

QuoteReplyEditDelete

 

 

2007-10-10 12:52:21     Re: Loading on BF548 EZKIT

Mike Frysinger (UNITED STATES)

Message: 45191    it is not possible to use .bin on BF54x or BF52x parts ... they removed the "bypass" boot mode, so now you have to use LDR's

QuoteReplyEditDelete

 

 

2007-10-10 14:42:09     Re: Loading on BF548 EZKIT

Kris Dickie (CANADA)

Message: 45195    Is it possible to write to the burst flash memory and set BMODE=1 to load u-boot. Is burst-flash the same as the parallel flash in the 53x?

QuoteReplyEditDelete

 

 

2007-10-10 14:51:43     Re: Loading on BF548 EZKIT

Mike Frysinger (UNITED STATES)

Message: 45197    i'm sorry, i dont know what you mean by "burst flash" ... there is parallel flash mapped to the async banks and writing u-boot.ldr to that and using BMODE = 1 works fine

QuoteReplyEditDelete

 

 

2007-10-10 15:26:34     Re: Loading on BF548 EZKIT

Kris Dickie (CANADA)

Message: 45198    I was just referring to the terminology used in the EZKIT manual (page 2-16) http://www.analog.com/processors/blackfin/technicalLibrary/manuals/index.html

 

Thanks, I wrote the LDR file in flash and boot works good now.

QuoteReplyEditDelete

 

 

2007-10-10 15:48:10     Re: Loading on BF548 EZKIT

Mike Frysinger (UNITED STATES)

Message: 45199    got ya ... as for as u-boot is concerned, it doesnt care about marketing terminology from flash vendors.  the part is hooked up via the async bank and conforms to the CFI specification, so that's all we need to know in order to work with it.

QuoteReplyEditDelete

 

 

2007-10-17 15:55:59     Re: Loading on BF548 EZKIT

Kris Dickie (CANADA)

Message: 45558    Just a quick note to avoid confusion for BF54x users.

 

The LDR file must be used to download from serial and when writing to flash, however, when testing u-boot, the BIN file should be downloaded and executed.

 

Example:

 

// test u-boot build

bfin> tftp 0x1000000 u-boot.bin

bfin> go 0x1000000

 

// upgrade u-boot build

bfin> tftp 0x1000000 u-boot.ldr

bfin> protect off all

bfin> erase all

bfin> cp.b 0x1000000 0x20000000 $(filesize)

 

The docs say that the BIN file must be used for both, but as Mike mentioned, the LDR file must be used on the 54x, however, keep in mind that you will need to load the BIN file for testing still.

QuoteReplyEditDelete

 

 

2007-10-26 15:44:25     Re: Loading on BF548 EZKIT

Michael Morin (UNITED STATES)

Message: 46041    I am new to linux and the blackfin

 

I have a BF548 EZ-KIT and I am trying to use the UART to load u-boot as described in the "loading_u-boot" section in the Doc Wiki.  I first tried using a windows host with LdrViewer, I was able to Autobaud and get a reply from the 548 and I used Send DXE to send u-boot.ldr file that Frysinger posted above, but I did not get any feedback from the target when it was done transferring, nor did i get any response afterwards when connecting to it using hyperterminal. I also tried the u-boot-bf548-ezkit-uart-boot.ldr from the u-boot file page.

 

Seems like the same problem that Kris was having but im not sure what I am doing differently.

 

The "loading_u-boot" page describes setting some switches before trying to load u-boot. I have SW1 set to 7 for UART boot, but is that the only switch that has to be set for the 548?

 

 

Also,  I installed the toolchain on my Fedora machine using blackfin-toolchain-07r1.1-3.i386.rpm, but I do not have the bfin-uclinux-ldr command described in the "loading_u-boot" page to try this process in linux.  What am I missing?

 

Thanks

QuoteReplyEditDelete

 

 

2007-10-26 16:20:56     Re: Loading on BF548 EZKIT

Mike Frysinger (UNITED STATES)

Message: 46044    ldr-utils was not part of the 2007R1 release, but it will be part of all newer releases ... you can grab it from the toolchain svn repo and just build it up by hand real quick

 

ive booted up a couple of BF548-EZKits in the last day right out of the box and the only thing i had to change was to flip the bmode switch from the default "1" to "7" and hit the reset button

 

i'd suggest you try ldr-utils first as we can much more easily debug that than the ldrviewer utility

QuoteReplyEditDelete

 

 

2007-10-29 15:59:36     Re: Loading on BF548 EZKIT

Michael Morin (UNITED STATES)

Message: 46115   

 

I used SVN to get the latest u-boot, toolchain, and uclinux, then I compiled them and now I have the bfin-uclinux-ldr.  I complied u-boot with the bf548-ezkit_config then I tried to load it onto the ezkit.

 

I have the bf board connected directly to my usb serial adapter.  I am not using a NULL modem adapter. I loaded u-boot.ldr using the command suggested above: bfin-uclinux-ldr -l u-boot.ldr /dev/ttyUSB0 -p

 

I waited a sec after each block and all 13 send fine and i get "OK!" and it suggests to run minicom

 

I have minicom setup for 57600 8N1 with no software or hardware flow control. Minicom starts up and I get nothing back.  What do I need to do here once minicom is open?

 

I also tried the u-boot.ldr file Mike posted above with the same results.

 

Thoughts?

QuoteReplyEditDelete

 

 

2007-10-29 16:22:37     Re: Loading on BF548 EZKIT

Mike Frysinger (UNITED STATES)

Message: 46116    you wont get anything back ... after loading over the uart, u-boot just sits and waits for you to do something

QuoteReplyEditDelete

 

 

2007-11-02 16:34:29     Re: Loading on BF548 EZKIT

Michael Morin (UNITED STATES)

Message: 46338    I do not get any response from u-boot through minicom or kermit when I try to send it commands.  Is there an inital string or command I need to send when i first connect to it?  I probably have a problem with my u-boot file but I want to make sure I am using the right procedure first.

 

Thanks

QuoteReplyEditDelete

 

 

2007-11-02 16:41:26     Re: Loading on BF548 EZKIT

Mike Frysinger (UNITED STATES)

Message: 46340    there is no magic

 

you load u-boot over the UART and once it finishes, you connect up minicom or kermit and just hit enter or ctrl+c a few times.  that should give you a prompt where you can enter anything.

QuoteReplyEditDelete

 

 

2007-11-12 10:21:08     Re: Loading on BF548 EZKIT

Michael Morin (UNITED STATES)

Message: 46712   

 

I am still having no luck.  I can load a ldr file but I cannot get to the u-boot prompt afterwards. Suggestions? What are some problems that people usually run into that I can check? Thanks again

QuoteReplyEditDelete

 

 

2007-11-12 13:45:05     Re: Loading on BF548 EZKIT

Mike Frysinger (UNITED STATES)

Message: 46719    hook up with vdsp then and see where it's getting stuck

 

the BF548 EZKITs are so new we have no sense of "common problems" as we've had only two or three people using it so far (counting you)

QuoteReplyEditDelete

 

 

2007-11-12 17:21:35     Re: Loading on BF548 EZKIT

Michael Morin (UNITED STATES)

Message: 46728   

 

I load u-boot over the uart into memory and the blackfin kit should run that program once its loaded, right? Where in memory is it stored?  What can I do in VDSP to verify it is there and is trying to run?

 

Should I try loading a u-boot.hex file using VDSP instead of over the uart?

 

I have a Rev 1.3 board.  Are you guys using the same rev?

QuoteReplyEditDelete

 

 

2007-11-12 17:47:10     Re: Loading on BF548 EZKIT

Mike Frysinger (UNITED STATES)

Message: 46730    we've tested rev 1.2 and rev 1.3 ... neither should have a problem with loading over the UART

 

just load over the UART and then halt the CPU and see where the PC is ... if it's in 0xef00xxxx, then it's stuck in the bootrom and the loading step didnt work.  if it's in external memory, it means the ldr loading worked but u-boot screwed itself up.

QuoteReplyEditDelete

 

 

2007-11-12 18:36:33     Re: Loading on BF548 EZKIT

Michael Morin (UNITED STATES)

Message: 46733   

 

I tried loading the u-boot.ldr file you posted here earlier using the windows utility (since im in windows using VDSP).  I do not recieve any feedback from the board as the doc wiki page on loading u-boot suggests, this is probably not a good sign.

 

Then I connect to it using VDSP, the disassembly appears and shows it stopped at 0xFFA00000.  If I click run and and then halt a few times, it stays at 0xEF000598, so clearly it is not running anything.

 

Do I lose what I loaded over the UART when i connect to it in VDSP via the USB.  It comes back to FFA00000 when i disconnect and connect again.

 

 

QuoteReplyEditDelete

 

 

2007-11-12 19:15:18     Re: Loading on BF548 EZKIT

Mike Frysinger (UNITED STATES)

Message: 46734    connect VDSP, select the "reset" option from the menu, set the PC to 0xef000000 and then run (hit F5)

 

load the .ldr over the UART using the ldrviewer like normal

 

once things are finished, halt the cpu using VDSP and see where the PC is at

QuoteReplyEditDelete

 

 

2007-11-12 19:35:57     Re: Loading on BF548 EZKIT

Michael Morin (UNITED STATES)

Message: 46735    After going through those steps, the program counter is at 0xEF000480.  That means nothing was loaded?

QuoteReplyEditDelete

 

 

2007-11-12 20:06:24     Re: Loading on BF548 EZKIT

Mike Frysinger (UNITED STATES)

Message: 46736    that means it failed to load properly

 

did you remember to manually delay after loading each block ?  or did you just load it all in one shot ?

QuoteReplyEditDelete

 

 

2007-11-12 20:22:27     Re: Loading on BF548 EZKIT

Michael Morin (UNITED STATES)

Message: 46738   

 

We played with the board for a while before we decided to go with uclinux so some of the switches had been changed.  I know only sw7 and sw1 are important for loading u-boot but here is a list of what they are all currently set at just so I am not messing something simple up here:

 

SW 1 = 7

 

SW 2 = 1 1 1 1 1 1 1 1

 

SW 4 = 1 1 1 1

 

SW 5 = 1 1 1 1

 

SW 7 = 1 1 1 0

 

SW 8 = 1 1 1 1 1 1

 

SW 14 = 1 1 1 1

 

SW 16 = 1 1 1 1

 

SW 17 = 1 0 1 0

 

All jumpers are at defualt, they were never changed.

 

 

 

 

 

 

 

 

QuoteReplyEditDelete

 

 

2007-11-12 20:35:53     Re: Loading on BF548 EZKIT

Michael Morin (UNITED STATES)

Message: 46739   

 

At 9600 baud, I waited at least 5 seconds between sending each block, same result.

QuoteReplyEditDelete

 

 

2007-11-12 22:31:14     Re: Loading on BF548 EZKIT

Mike Frysinger (UNITED STATES)

Message: 46741    it will only work at 115200 baud

QuoteReplyEditDelete

 

 

2007-11-16 12:55:58     Re: Loading on BF548 EZKIT

Michael Morin (UNITED STATES)

Message: 46974   

 

I set ldrviewer to 115200 and sent u-boot over and I got a response back from the blackfin on the ldrviewer screen.  I have a serial data analyzer connected in line with the board and I see that the response from the board is information about u-boot version, ezkit info, clock speed, etc. 

 

Then I connect to it using hyperterminal at 57600, 8 data bit, no parity, 1 stop bit, and no flow control, I hit enter a few times and ctrl-c a few times and I do not get anything back from it and I do not see anything back on my serial analyzer.

 

Then I go back to VDSP and halt the board,  it gives me the message: "Core fault detected before halt at address: 0x03FD0C96.  Attempting to reset processor." and the program counter is at 0xEF000EEA.

 

 

 

 

QuoteReplyEditDelete

 

 

2007-11-16 13:12:20     Re: Loading on BF548 EZKIT

Mike Frysinger (UNITED STATES)

Message: 46975    make sure you connect right after loading in case the timeout is active

QuoteReplyEditDelete

 

 

2007-11-16 13:25:45     Re: Loading on BF548 EZKIT

Michael Morin (UNITED STATES)

Message: 46976    I connected to it in hpyerterminal within a few seconds of it saying its done, no difference.

QuoteReplyEditDelete

 

 

2007-11-16 13:45:10     Re: Loading on BF548 EZKIT

Mike Frysinger (UNITED STATES)

Message: 46977    then reset the board, connect with jtag and put a hardware breakpoint on 0x3fc0000, and load up over the uart ... that way you can see the output from the get go

 

otherwise, feel free to use the latest svn trunk and enable extra debugging

QuoteReplyEditDelete

 

 

2007-11-16 15:25:36     Re: Loading on BF548 EZKIT

Michael Morin (UNITED STATES)

Message: 46978   

 

I went back to my linux, svn up my u-boot, toolchain, uclinux. Then went into the bf548-ezkit.h file and set it for UART.  Then I used make mrproper, make bf548-ezkit_config, make, and it generated a new u-boot.ldr file.  I transferred this to my other machine in windows and opened it with ldrviewer.  I setup the board in VDSP again, set the PC to EF000000 and set a  hardware break point at 03FC0000 like you suggested. Then i hit Run,  when to my ldrviewer, sent my new u-boot.ldr file and VDSP came up halted at 03FC0000.  I disconnected ldrviewer and opened hyperterminal and then hit run on VDSP and I got the following message from the blackfin on hyperterminal:

 

U-Boot 1.1.6-svn1027 (ADI-2007R2-pre) (Nov 16 2007 - 13:38:38)

 

CPU:   ADSP bf548-0.0 (Detected Rev: 0.0)

Board: ADI BF548 EZ-Kit board

       Support: http://blackfin.uclinux.org/

Clock: VCO: 525 MHz, Core: 525 MHz, System: 131 MHz

RAM:   64 MB

 

Exception: IRQ 0x21 entered

seqstat=0x2021, stack frame=0x03f9be24, bad PC=0x03fc00b2

Unhandled IRQ or exceptions!

Please reset the board

 

 

QuoteReplyEditDelete

 

 

2007-11-16 15:45:59     Re: Loading on BF548 EZKIT

Mike Frysinger (UNITED STATES)

Message: 46980    make sure your parallel flash is hooked up

QuoteReplyEditDelete

 

 

2007-11-23 17:18:43     Re: Loading on BF548 EZKIT

Michael Morin (UNITED STATES)

Message: 47460    In the ezkit manual it does not mention being able to enable to disable either the "NAND Flash" or "Burst Flash" memory.  Do you mean set BMODE = 1 ?

QuoteReplyEditDelete

 

 

2007-11-23 19:27:13     Re: Loading on BF548 EZKIT

Robin Getz (UNITED STATES)

Message: 47462    Michael:

 

You can set the Boot Mode to whatever you want - but you still will need to remove one of the POST applications on the EZKit.

 

http://docs.blackfin.uclinux.org/doku.php?id=hw:boards:bf548-ezkit#memory_map

 

-robin

QuoteReplyEditDelete

 

 

2007-11-23 20:13:53     Re: Loading on BF548 EZKIT

Michael Morin (UNITED STATES)

Message: 47464   

 

You lost me, I need to remove one of the applications in order to run u-boot that has been loaded into memory over the UART?

QuoteReplyEditDelete

 

 

2007-11-24 08:29:25     Re: Loading on BF548 EZKIT

Robin Getz (UNITED STATES)

Message: 47480    Michael:

 

No - sorry - you need to remove one of the applications if you want to store U-Boot in flash somewhere.

 

-Robin

QuoteReplyEditDelete

 

 

2007-11-25 20:07:55     Re: Loading on BF548 EZKIT

Michael Morin (UNITED STATES)

Message: 47492   

 

It was my switch settings.  U-boot works now, i wrote it to flash using VDSP and it loads uclinux image great over tftp

 

Thanks for the help

QuoteReplyEditDelete

 

 

2008-06-23 19:23:10     Re: Loading on BF548 EZKIT

Michael Goodwin (UNITED STATES)

Message: 57743   

 

Hi,

 

Following this thread it isn't clear to me what actually fixed the problem.

 

I'm trying to load u-boot over the UART as well and I'm having the same problems.

 

I tried the Windows ldrviewer with the same results and the bfin-uclinux-ldr wouldn't autobaud...

 

mike@mike-desktop:~/uClinux/uClinux-dist/BF548$ bfin-uclinux-ldr -l /tftpboot/u-boot.ldr /dev/ttyUSB0 && kermit -l /dev/ttyUSB0 -b 57600 -C connect

Loading LDR /tftpboot/u-boot.ldr ... auto detected LDR as 'BF548'

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

 

 

Is the conclusion that the BF548 EZKIT uboot can't be loaded over the UART ?

 

Is there a switch setting that is not documented ???

 

I just got this BF548 EZKIT rev 1.4, any help would be appreciated.

 

Thanks,

 

Mike

QuoteReplyEditDelete

 

 

2008-06-23 23:19:30     Re: Loading on BF548 EZKIT

Mike Frysinger (UNITED STATES)

Message: 57747   

 

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

QuoteReplyEditDelete

 

 

2008-08-18 06:21:37     Re: Loading on BF548 EZKIT

Maha lakshmi (INDIA)

Message: 60567   

 

Hi,

 

   I too got the same error. I am not able to troubleshoot it. Can u plz tell me the procedure to resolve this problem??

 

 

 

Thanks,

 

maha

 

 

QuoteReplyEditDelete

 

 

2008-08-18 07:18:17     Re: Loading on BF548 EZKIT

Maha lakshmi (INDIA)

Message: 60570   

 

Hi Michael,

 

      I have changed the switch settings as you specified. I am new to blackfin. I need elaborate explanation to understand. I have connected one end of usb cable with device usb debug agent and the other end with the my usb port.

 

     I tried both in windows and linux. In windows, when reading autobaud I'm getting the error as 'Timeout. Check BMODE pins and reset processor before try again'.

 

    I linux,

 

        bfin-uclinux-ldr -l u-boot-bf548-ezkit-uart-2008R1.5.ldr /dev/tty0 -p

        Loading LDR u-boot-bf548-ezkit-uart-2008R1.5.ldr ... auto detected LDR as 'BF548'

        OK!

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

       Opening /dev/tty0 ... OK!

       Configuring terminal I/O ... OK!

 

       Press any key to send autobaud: Trying to send autobaud ... OK!

 

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

 

 

    Plz tell me how to sort out this issue.

 

Thanks,

 

Maha

 

 

 

 

 

 

QuoteReplyEditDelete

 

 

2008-08-18 14:36:48     Re: Loading on BF548 EZKIT

Robin Getz (UNITED STATES)

Message: 60590   

 

Maha:

 

Just like Mike pointed to:

 

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

 

If your need futher help - start a new thread.

QuoteReplyEditDelete

 

 

2008-08-18 20:08:57     Re: Loading on BF548 EZKIT

Mike Frysinger (UNITED STATES)

Message: 60606   

 

start new threads rather than working off of old ones ... and dont post the same question multiple times

Attachments

Outcomes