2007-08-13 12:42:07     u-boot on BF537-EZLite

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

2007-08-13 12:42:07     u-boot on BF537-EZLite

Turin Pollard (UNITED STATES)

Message: 42808    I'm trying to make u-boot work on the BF537 EZ Lite kit, and get this message when trying to write the u-boot.bin into the flash:

 

"bf537> cp.b 0x1000000 0x20000000 $(filesize)

Copy to Flash... Flash not erased at offset 0x0 Please erase to reprogram done"

 

I'm following the directions for Parallel flash found here: http://docs.blackfin.uclinux.org/doku.php?id=upgrading_u-boot.

 

I've compiled u-boot using the BF537-STAMP configuration files, as supplied.

 

Have I missed something obvious, or is the STAMP image incompatible with the EZLite board?

 

Thanks,

Turin Pollard

QuoteReplyEditDelete

 

 

2007-08-13 12:57:18     Re: u-boot on BF537-EZLite

Mike Frysinger (UNITED STATES)

Message: 42809    verify all of your async banks are actually hooked up (see SW6 on your board) and that you've actually erased the flash

 

if you arent sure you've erased the flash, try doing:

protect off all

erase all

QuoteReplyEditDelete

 

 

2007-08-13 14:47:36     Re: u-boot on BF537-EZLite

Turin Pollard (UNITED STATES)

Message: 42810    I have run the protect off all, and erase all commands.  SW6 is all on (switches are set to the side opposite the numbers).

 

Here is the result of running all the commands:

bf537> protect off all

Un-Protect Flash Bank # 1

 

bf537> erase all

Erase Flash Bank # 1

 

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

Copy to Flash... Flash not erased at offset 0x0 Please erase to reprogram

done

 

bf537> cmp.b 0x1000000 0x20000000 $(filesize)

byte at 0x01000214 (0x40) != byte at 0x20000214 (0x1c)

Total of 532 bytes were the same

bf537>

 

 

This is consistent each time I try.

 

 

Turin

QuoteReplyEditDelete

 

 

2007-08-13 16:05:27     Re: u-boot on BF537-EZLite

Mike Frysinger (UNITED STATES)

Message: 42811    the erase all command is clearly not working at all ... if it worked properly, you would have seen a huge line of dots

 

what version of u-boot are you using and what version of the ezkit lite ?  what does the 'flinfo' command show ?  how did you program u-boot into the flash originally ?

QuoteReplyEditDelete

 

 

2007-08-13 16:13:58     Re: u-boot on BF537-EZLite

Turin Pollard (UNITED STATES)

Message: 42812    I am using u-boot 1.1.6 (according to the install directory).

 

I'm using version 2.1 of the ez-kit, according to the silk screen on the board.

 

This is flinfo immediately after the commands I showed in my last post.

 

bf537> flinfo

 

Bank # 1: ST Microelectronics

    20000000      20002000      20004000      20006000      20008000

    2000A000      2000C000      2000E000      20010000      20020000

    20030000      20040000      20050000      20060000      20070000

    20080000      20090000      200A0000      200B0000      200C0000

    200D0000      200E0000      200F0000      20100000      20110000

    20120000      20130000      20140000      20150000      20160000

    20170000      20180000      20190000      201A0000      201B0000

    201C0000      201D0000      201E0000      201F0000      20200000

    20210000      20220000      20230000      20240000      20250000

    20260000      20270000      20280000      20290000      202A0000

    202B0000      202C0000      202D0000      202E0000      202F0000

    20300000      20310000      20320000      20330000      20340000

    20350000      20360000      20370000      20380000      20390000

    203A0000      203B0000      203C0000      203D0000      203E0000

    203F0000

bf537>

 

ETA: I've programmed the u-boot via the serial port, using the ldrviewer program, and the instructions found here: http://docs.blackfin.uclinux.org/doku.php?id=loading_u-boot

 

Turin

QuoteReplyEditDelete

 

 

2007-11-16 12:37:05     Re: u-boot on BF537-EZLite

Mike Frysinger (UNITED STATES)

Message: 46972    flinfo would show information regardless because of the way it was written in the last release ...

 

you could try the 2007R1 released binaries and if those still dont work, i would try compiling current trunk

QuoteReplyEditDelete

 

 

2008-02-19 10:35:16     Re: u-boot on BF537-EZLite

Holger Blum (GERMANY)

Message: 51277    Hi!

 

Sorry for warming up this old thread again, but today I got stuck at the same point as Turin.

 

After not having used the BF537-Stamp for a while I wanted to clean the board up before passing it to a colleague, but it refuses to work completely, it hangs while executing u-boot.

 

U-Boot 1.1.6-svn1029 (ADI-2007R2-pre) (Nov 28 2007 - 14:45:41)

 

CPU:   ADSP bf537-0.2 (Detected Rev: 0.2)

Board: ADI BF537 stamp board

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

Clock: VCO: 500 MHz, Core: 500 MHz, System: 100 MHz

RAM:   64 MB

Flash:  4 MB

In:    serial

Out:   serial

Err:   serial

Net:   Blackfin EMAC

I2C:   ready

Hit any key to stop autoboot:  0

DCPLB exception outside of memory map at 0x5a000000

### ERROR ### Please RESET the board ###

 

The two LEDs at the RJ-45 are blinking alternately and infrequently and my switch indicates no link, so I assume that the MAC of the Blackfin is not being initialized correctly. I also remember that the last thing I did with the board was adjusting it to new network settings, maybe I've messed something up at that time.

 

So I got LdrViewer and u-boot_stamp537_uart_boot.ldr from http://blackfin.uclinux.org/gf/project/u-boot/frs/?action=index and ended up with the same problems as described by Turin. The erase command in this u-boot image doesn't seem to work, so I've loaded and executed u-boot_stamp537.bin by tftp.

 

Erase seems to work with this version, at least it shows the dots,

bf537> erase 0x20000000 0x200fffff

 

Erasing Flash locations, Please Wait

.......................

Erased 23 sectors

 

but copying to flash brings:

bf537> cp.b 0x1000000 0x200fffff 1f420

Copy to Flash... Flash not erased at offset 0x100000 Please erase to reprogram

done

$(filesize) doesnt work here, so I've used the size shown by the tftp operation.

 

Then I've tried

bf537> erase all

Erase Flash Bank # 1

Erasing Flash locations, Please Wait

.......................................................................

bf537> cp.b 0x1000000 0x200fffff 1f420

Copy to Flash... .done

bf537> cmp.b 0x1000000 0x200fffff 1f420

Total of 128032 bytes were the same

 

That looked promising, so I've made the necessary network configurations, set SW16 back to 0 and power-cycled the board. Now it doesn't print one single character on the console. Well done. :-(

 

I'll keep on trying, but if anyone has solved this problem before I'd be very thankful for a hint.

 

Holger

 

edit: the destination address in the cp.b above is of course wrong, in my other tries I have used the right one.

TranslateQuoteReplyEditDelete

 

 

2008-02-19 12:01:10     Re: u-boot on BF537-EZLite

Mike Frysinger (UNITED STATES)

Message: 51285    please program the 2008R1 release into the board ... if it crashes, it'll give a traceback

 

the current crash message is pretty useless

QuoteReplyEditDelete

 

 

2008-02-20 09:12:46     Re: u-boot on BF537-EZLite

Holger Blum (GERMANY)

Message: 51344    Hi Mike,

 

I can boot uImage-bf537-stamp-2008R1-RC1 with the serially loaded u-boot, but booting from flash still doesn't work.

 

After having erased the whole flash again I have reprogrammed the MAC according to the wiki and repeated the steps described in the last post (load the .ldr with LdrViewer, then tftp the u-boot_stamp537.bin from the 2007 Release, execute it, erase the first sectors in flash, tftp it again into another RAM location for making shure not to interfere with the running u-boot and finally store it into flash with successful compare)

 

But the board still refuses to boot from flash, there is no message on the console at all. What can I do now? Is there a new version of the .ldr and .bin I can try? I'd like to use a prebuilt version for not having another source of uncertanity when building it on my own, but I can't find one in the new distri or on the web. Any hints?

 

Holger

TranslateQuoteReplyEditDelete

 

 

2008-02-20 09:44:14     Re: u-boot on BF537-EZLite

Robin Getz (UNITED STATES)

Message: 51349    Holger:

 

Just to confirm:

- you set the Boomode to 7, and hit the reset button

- you load the following file to Boot from UART:

http://blackfin.uclinux.org/gf/download/frsrelease/40/3026/u-boot_stamp537_uart_boot.ldr

- you then use the running U-Boot to program this file into flash:

http://blackfin.uclinux.org/gf/download/frsrelease/40/2800/u-boot_stamp537.bin

- you set the Bootmode to 0, and hit the reset button?

 

-Robin

QuoteReplyEditDelete

 

 

2008-02-20 10:33:16     Re: u-boot on BF537-EZLite

Holger Blum (GERMANY)

Message: 51354    Hi Robin,

 

This is exactly what I did, respectivly what I've been doing for the last two days :-/

 

Now I have tried again, with one difference: I have started to have a look at some memory locations to compare the flash contents and the data in the .bin file after a reboot, which should be identical. But they were different, so there must be something that manipulates the data after the compare. So before rebooting the next time, I have made a "protect 0x20000000 0x200fffff" and voilà, it works.

 

Regrettably my colleague needs the board urgently, so I can't examine this behaviour further. But I can send you the session logs if you expect to find useful information in it.

 

Holger

TranslateQuoteReplyEditDelete

 

 

2008-02-20 11:03:41     Re: u-boot on BF537-EZLite

Robin Getz (UNITED STATES)

Message: 51357    Holger:

 

I'm glad you got things going.

 

Nothing should write to the flash, unless you were doing a "save" after the "cp.b memory flash len"....

 

If you could upload the session logs here to have, it would be helpful.

 

Thanks

-Robin

QuoteReplyEditDelete

 

 

2008-02-22 08:17:02     Re: u-boot on BF537-EZLite

Holger Blum (GERMANY)

Message: 51501    Hi Robin,

 

I've found out why the board didn't boot: I have programmed the data starting at 0x100000 into the flash instead of 0x1000000. Of course cmp.b shows no errors then, but it can't work like this. My mistake.

 

But the .ldr still can't erase and program the flash properly:

 

serial boot u-boot_stamp537_uart_boot.ldr, addresses set:

 

bf537> tftp 0x1000000 u-boot_stamp537.bin

Using BF537 ETHERNET device

TFTP from server 192.168.11.15; our IP address is 192.168.10.218

Filename 'u-boot_stamp537.bin'.

Load address: 0x1000000

Loading: ##########################

done

Bytes transferred = 128032 (1f420 hex)

bf537> protect off all

Un-Protect Flash Bank # 1

 

bf537> erase 0x20000000 0x200fffff

 

Erased 23 sectors

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

Copy to Flash... Flash not erased at offset 0x0 Please erase to reprogram

done

 

bf537> cmp.b 0x1000000 0x20000000 $(filesize)

byte at 0x01000000 (0x90) != byte at 0x20000000 (0x0e)

Total of 0 bytes were the same

 

When using the tftp'ed u-boot_stamp537.bin it works.

 

bf537> go 0x1000000

## Starting application at 0x01000000 ...

icache_enable

U-Boot 1.1.6-svn737 (ADI-2007R1) (Apr  4 2007 - 11:42:51)

 

CPU:   ADSP BF537 Rev.: 0.2

Board: ADI BF537 stamp board

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

Clock: VCO: 500 MHz, Core: 500 MHz, System: 100 MHz

SDRAM: 64 MB

FLASH:   4 MB

In:    serial

Out:   serial

Err:   serial

Net:    BF537 ETHERNET

I2C:   ready

Hit any key to stop autoboot:  0

 

bf537> set ipaddr 192.168.10.218

bf537> set netmask 255.255.254.0

bf537> set serverip 192.168.11.15

bf537> set ethaddr 00:e0:22:fe:51:77

Can't overwrite "ethaddr"

bf537> print ethaddr

ethaddr=00:e0:22:fe:51:77

bf537> tftp 0x2000000 u-boot_stamp537.bin

Using BF537 ETHERNET device

TFTP from server 192.168.11.15; our IP address is 192.168.10.218

Filename 'u-boot_stamp537.bin'.

Load address: 0x2000000

Loading: ##########################

done

Bytes transferred = 128032 (1f420 hex)

bf537> protect off all

Un-Protect Flash Bank # 1

 

bf537> erase 0x20000000 0x200fffff

 

Erasing Flash locations, Please Wait

.......................

Erased 23 sectors

bf537> cp.b 0x2000000 0x20000000 $(filesize)

Copy to Flash... .done

bf537> cmp.b 0x2000000 0x20000000 $(filesize)

Total of 128032 bytes were the same

 

Sorry for the confusion I may have caused!

 

Holger

TranslateQuoteReplyEditDelete

 

 

2008-02-22 14:08:48     Re: u-boot on BF537-EZLite

Mike Frysinger (UNITED STATES)

Message: 51518    the problem with accessing async banks when booting an ldr has been fixed in the 2008R1 release

Attachments

    Outcomes