2008-08-07 07:41:38     BF537 is not booting.

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

2008-08-07 07:41:38     BF537 is not booting.

Aravinda SH (INDIA)

Message: 60096   

 

Hi All,

By accidentally I executed the following commands given in the link "http://docs.blackfin.uclinux.org/doku.php?id=hw:boards:bf537-stamp"

bf537> protect off all

bf537> erase all

 

Now the processor is not booting at all. It does not communicate. Sorry I did it accidentally.

Is there any way to come out of this situation.

 

Thanks

Aravinda

 

QuoteReplyEditDelete

 

 

2008-08-07 08:19:09     Re: BF537 is not booting.

Appalayagari Sreedhar (INDIA)

Message: 60097   

 

Hi Aravinda,

 

I think u have written some wrong data, thats why nothing is working.

 

I suggest try to connect jtag and erase the flash contents and reprogram the u-boot.

 

If u are unable to open the emulator, please check with your Hardware team to resolve, they can change the boot mode to other and erase the flash.

 

Best Regards,Sreedhar.

QuoteReplyEditDelete

 

 

2008-08-07 08:35:20     Re: BF537 is not booting.

Aravinda SH (INDIA)

Message: 60099   

 

I did rebooting using ldr viewer, by loading "u-boot_stamp537_uart_boot.ldr". I  recieved the following hex in return.

 

BF 44 01 00 B4 98 33 1F E2 23 FA 40 0A 08 0A 08 92 84 62 63 2B 42 52 1A 48 6B 22 18 63 48 5A 6B 63 4B 6E 50 48 41 23 52 85 08 4A 28 D0 80 88 F8 0A 58 09 61 21 57 D8 F9 29 DE 08 00 6F 08 48 0A 29 1A 21 6B F8 02 02 02 02 02 FE 68 89 21 29 C9 69 4A 23 61 23 08 E2 FE

 

Loader  file address: 0x0001F358

 

Then I opened hyperterminal to see if I can se u-boot on the screen.  I am not seeing anything. By the way I changed BMODE button while loading ldr file, do I need to reset it back.

 

 

 

Thanks

 

Aravinda

QuoteReplyEditDelete

 

 

2008-08-07 14:06:12     Re: BF537 is not booting.

Robin Getz (UNITED STATES)

Message: 60116   

 

Aravinda:

 

Did you hit return a couple times?

 

-Robin

QuoteReplyEditDelete

 

 

2008-08-07 14:16:32     Re: BF537 is not booting.

Robin Getz (UNITED STATES)

Message: 60119   

 

Aravinda:

 

This is pretty easy to recover from - Have a look at the Linux tools:

 

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

 

https://docs.blackfin.uclinux.org/doku.php?id=toolchain:ldr-utils

QuoteReplyEditDelete

 

 

2008-08-08 00:52:57     Re: BF537 is not booting.

Aravinda SH (INDIA)

Message: 60133   

 

I went through these links and tried send u boot ldr file. I am not getting anything on the terminal even after hitting enter many times and reset button.

 

I am having ldr file named as "u-boot_stamp537_uart_boot.ldr", but the details of which shown in ldr IDE is "8-bit ADSP-533 Blackfin compatible (Binary) boot stream". I think I am supplied wrong file, even though name says 537, but details are showing 533.

 

I am stuck please help me get my board running.

 

Thanks

 

Aravinda

 

ldr.JPG

QuoteReplyEditDelete

 

 

2008-08-08 02:40:59     Re: BF537 is not booting.

Mike Frysinger (UNITED STATES)

Message: 60137   

 

i dont know where you're getting this "u-boot_stamp537_uart_boot.ldr", but you should be using files from our release page

QuoteReplyEditDelete

 

 

2008-08-08 05:23:52     Re: BF537 is not booting.

Aravinda SH (INDIA)

Message: 60158   

 

Mike,

 

I got this file from the CD came with the STAMP board. Now I downloaded the ldr file from blackfin website  an loaded it using "LdrViewer" in windows. No luck, I am still not getting my board working.

 

The file I downloaded is "u-boot-bf537-stamp-uart-2008R1.5.ldr". from Blackfin website.

 

Note: In the receive text box, feedback from the target is not as mentioned in the link http://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:loading&s[]=bf537&s[]=troubleshooting.

 

Also the test box will the message "BF 36 00 00". The message comes before loading and the same is there after loading completes.

 

What is next step?

QuoteReplyEditDelete

 

 

2008-08-08 10:46:10     Re: BF537 is not booting.

Mike Frysinger (UNITED STATES)

Message: 60170   

 

you will probably get feedback from the board near the end ... this is normal.  you need to then connect your serial console like the documentation says.

QuoteReplyEditDelete

 

 

2008-08-11 05:28:07     Re: BF537 is not booting.

Aravinda SH (INDIA)

Message: 60236   

 

Mike,

 

No luck I followed as per the document, still I am getting my board booted.

 

See the attached snap shots of each step using ldrviewer. My hyperterminal is blank, nothing is displayed after loading uboot file.

 

Thanks

 

Aravinda

 

uboot.zip

QuoteReplyEditDelete

 

 

2008-08-11 08:46:57     Re: BF537 is not booting.

Mike Frysinger (UNITED STATES)

Message: 60244   

 

your baud rate is wrong.  you need to load things at 115200 baud.

QuoteReplyEditDelete

 

 

2008-08-12 02:41:36     Re: BF537 is not booting.

Aravinda SH (INDIA)

Message: 60271   

 

Mike,

 

Thanks for the feedback. I have tried with 115200 baudrate and no luck here also.

 

I followed these steps to load uboot loader file.

 

1. Open the ldrviewer and open "u-boot-bf537-stamp-uart-2008R1.5.ldr" file.

 

2. Press UART boot, and set the baudrate to 115200.

 

3. Press Test port

 

4. Now press 'autobaud' button and  press 'reset' button (SW9) on the target.

 

5. Press 'sendDXE' button. Wait for feedback from board.

 

This is the feedback from board

 

BF 1B 00 00 E6 80 98 80 E6 80 98 80 66 66 9E 18 80 E6 9E FE 9E 60 06 98

E0 18 86 06 18 86 78 98 9E 98 F8 86 7E F8 9E 06 18 78 7E 98 78 00 18 86

06 06 60 86 98 E6 86 18 18 18 18 18 98 66 18 86 66 98 98 18 18 86 98 98

66 06 9E 00 18 78 06 18 18 78 00 18 18 18 98 9E 18 18 18 18 7E 1E 18 1E

98 18 78 7E 98 98 98 1E 98 80 E6 80 98 80 1E 06 66 66 86 7E 00 18 18 98

00 06 60 1E 66 66 18 E0 86 78 66 98 78 7E 98 9E 18 18 86 18 18 18 86 60

66 78 60 66 78 1E 06 7E 66 06 78 00 18 98 66 78 78 86 7E 00 18 18 86 18

98 98 98 1E 98 80 18 E6 9E 06 86 F8 06 78 98 18 98 00 06 60 86 98 00 18

80 86 60 66 98 78 7E 18 98 F8 06 7E 06 66 9E 00 06 18 E0 E6 9E 06 86 F8

06 78 E6 80 98 80 00 18 18 18 18 18 18 98 98 66 7E 00 06 E6 9E 18 06 7E

98 18 18 9E 60 06 7E 00 86 7E FE 86 FE 86 18 06 9E 06 E6 E0 E6 E6 86 78

86 9E F8 9E F8 86 66 E6 E0 06 9E 86 9E F8 9E 66 06 86 86 FE 9E 18 E6 78

FE 86 E6 80 98 80 1E 06 9E FE 9E 1E E6 E6 86 7E 00 18 66 1E E6 98 98 18

98 E6 18 18 18 98 1E 06 98 98 06 86 00 98 80 E6 9E 18 66 78 98 18 98 E6

18 18 18 98 1E 06 98 98 06 86 00 98 98 66 E6 F8 06 7E 66 66 9E 98 18 98

E0 18 18 18 98 1E 06 98 98 66 80 98 80 18 66 00 66 98 98 18 18 18 38 1E

60 18 98 1E 86 80 66 80 98 80 78 06 9E 06 E6 F8 06 9E 98 18 F8 00 18 1E

00 98 1E 86 80 66 80 98 80 98 86 98 86 98 86 00 98 66 06 86 F8 86 9E 86

9E F8 9E 7E 06 98 9E 18 18 E0 66 06 78 00 98 80 86 98 E6 80 06 86 00 98

E6 E6 F8 66 9E F8 9E 7E 06 18 78 66 86 78 06 66 7E E0 9E 60 06 98 86 86

9E 78 66 9E 18 E6 9E F8 9E E6 9E 66 86 9E 60 66 80 98 80 E6 80 98 80 7E

66 80 86 F8 86 9E 86 9E F8 9E 7E 86 7E 00 98 60 66 86 9E 66 86 F8 66 06

7E 86 9E F8 9E 7E 06 98 18 18 66 86 9E 60 E6 9E E6 9E 7E 18 98 1E 66 E6

80 06 98 80 06 78 60 86 F8 66 78 1E E6 F8 66 80 98 80 86 98 F8 9E 98 18

18 18 18 98 F8 66 78 18 66 9E 06 06 9E E6 80 98 80 FE 98 66 06 7E 98 18

18 18 98 F8 66 78 18 66 9E 06 06 9E E6 80 98 80 66 86 F8 86 F8 86 7E 00

18 18 98 F8 66 78 18 66 9E 06 06 9E E6 80 98 80 F8 98 66 06 7E 98 18 18

18 F8 18 06 9E 06 E6 E0 E6 E6 86 78 86 9E F8 9E 00 98 06 66 98 06 E6 80

FE E6 80 98 80 E6 98 06 E6 80 86 7E 00 18 18 18 80 86 78 98 18 1E 66 86

7E 60 98 1E 98 98 E0 18 80 86 7E 7E 98 F8 18 7E 78 98 00 66 80 98 80 18

86 78 86 9E F8 9E F8 18 F8

 

6. Press close one you observe 'done' message on ldr viewer.

 

7. Now open hyperterminal or if it is already open just press on call button.

 

8. Press reset button (SW9) few times and hit enter.

 

Nothing is displayed after following all these steps. Please see the attached zip file for messages and other snap shots of ldrviewer.

 

Did I miss anything here

 

Thanks

 

Aravinda

 

Uboot.zip

QuoteReplyEditDelete

 

 

2008-08-12 08:31:35     Re: BF537 is not booting.

Mike Frysinger (UNITED STATES)

Message: 60325   

 

umm, the documentation does not tell you to hit reset.  resetting the board after autobauding will cause the process to fail.

QuoteReplyEditDelete

 

 

2008-08-13 02:26:23     Re: BF537 is not booting.

Aravinda SH (INDIA)

Message: 60364   

 

Thanks Mike, it worked.

 

After which I wanted to load linux image which I did by executing loadb on the command prompt which also loaded succefully.

 

When I want to reset the processor to go back to bf537 command prompt, it did not allow by pressing reset button. How to from this point. I want my board to work as normal. Are there any steps which I should follow after doing uboot.

 

Beyond this I cannot boot my board. Do I need to change the BMODE button after loading linux image so that it will boot from the image. This information I did not find anywhere. Actually I want my board behave as it was earlier. Means on reset button it should boot on its own and lod linux image and display command prompt.

 

Thanks

 

Aravinda

 

 

QuoteReplyEditDelete

 

 

2008-08-13 07:22:35     Re: BF537 is not booting.

Mike Frysinger (UNITED STATES)

Message: 60390   

 

please read the intro chapter in the documentation again:

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

QuoteReplyEditDelete

 

 

2008-08-13 09:42:44     Re: BF537 is not booting.

Aravinda SH (INDIA)

Message: 60399   

 

I am new to this environment and not getting synced with it. Sorry for replyinh agaain.

 

If I understand correctly what you are refering to is.

 

The section "Boot Via The UART" and in that there is a link called "upgrading" before ldr-utils. I went to upgrading section adn loaded binary file using loadb at addess 0x1000000 and exercised other erase and copy command given here. After which I typed loade to boot. I got the banner and working fine, after which I changed the booting mode to 0 using SW16 and then hit reset button.

 

Thats all the board again went blank. Ia m not getting correct sequence where I used hit reset button to restart or reboot. Now even after loading image I am not able to boot.

 

I am not getting the exact sequence.

 

Thanks

 

Aravinda

 

 

QuoteReplyEditDelete

 

 

2008-08-13 10:08:56     Re: BF537 is not booting.

Mike Frysinger (UNITED STATES)

Message: 60402   

 

as the upgrading document states, you need to pick the correct file that matches the boot mode.  the same file you used to boot over the UART will not work when booting out of flash in bmode 0.

QuoteReplyEditDelete

 

 

2008-08-14 01:09:37     Re: BF537 is not booting.

Aravinda SH (INDIA)

Message: 60433   

 

Mike if I understand correctly, I am using "u-boot-bf537-stamp-uart-2008R1.5.ldr" to boot over the UART. The bfin> command prompt is displayed. After which I execute "loadb" to execute "linux" image to flash. After I execute "boote" command, which boot properly.

 

Then I change bmode to 0 to boot again from flash, where it fails to boot again. This I do by pressing reset button. When I load 'linux' image at 0x1000000, it should allow me to boot from flash right?

 

Also after loading the linux image using loadb command if I execute go 0x1000000 I am getting series of message with error

 

Please reset the board

 

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

 

I am getting what is going wrong here. I am not able to boot from flash.

 

Thanks

 

Aravinda

QuoteReplyEditDelete

 

 

2008-08-14 08:03:37     Re: BF537 is not booting.

Mike Frysinger (UNITED STATES)

Message: 60468   

 

you're loading files into *memory*.  you never actually wrote anything to flash.  please read the upgrading document completely instead of stopping after the first section.

 

doing "go" on an ELF will of course crash.  it's an ELF, not a stream of Blackfin opcodes.

QuoteReplyEditDelete

 

 

2008-08-19 02:08:04     Re: BF537 is not booting.

Aravinda SH (INDIA)

Message: 60630   

 

Mike,

 

First I loaded ldr file using ldrviewer and uboot has started bfin command prompt is started showing up.

 

Then I went through the upgrading document fully and follwed the steps, here are the results.

 

From u-boot via serail:

 

bfin> loadb         

## Ready for binary (kermit) download to 0x01000000 at 57600 bps...                                                                 

## Total Size      = 0x00023c30 = 146480 Bytes                                            

## Start Addr      = 0x01000000                             

 

 

Loaded latest u-boot-bf537-stamp-bypass-2008R1.5.bin file.

 

bfin> protect off all

Un-Protect Flash Bank # 1

....................................................................... done

 

bfin> erase 0x20000000 0x200fffff

 

....................... done

Erased 23 sectors

 

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

Copy to Flash... done

 

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

Total of 146480 bytes were the same                                 

 

 

After which I execute bfin<reset command, then CPU never gest reset. I am doing something wrong here, but I follwed the upgrade document as it is.

 

Thanks

 

Aravinda

QuoteReplyEditDelete

 

 

2008-08-19 11:07:14     Re: BF537 is not booting.

Mike Frysinger (UNITED STATES)

Message: 60654   

 

if you dont change the boot mode, then it's going to keep booting over the UART

QuoteReplyEditDelete

 

 

2008-08-19 11:44:49     Re: BF537 is not booting.

Robin Getz (UNITED STATES)

Message: 60658   

 

Aravinda:

 

> Copy to Flash... Outside available Flash

 

You can't copy an image that is larger than the size of flash.

 

This needs to be fixed. (see the "my uImage is too big"

 

https://docs.blackfin.uclinux.org/doku.php?id=faq

 

-Robin

QuoteReplyEditDelete

 

 

2008-08-20 02:08:26     Re: BF537 is not booting.

Aravinda SH (INDIA)

Message: 60711   

 

Thank you mike, I changed the boot mode and it started booting properly.

 

Then I loaded linux image using loadb and booted using boote command. I hope the image now sits at 0x1000000. Which location should I copy so that it will boot automatically when I press reset button.

 

Now I need to come to bf537 propmt and give boote command.

 

Thanks

 

Aravinda

QuoteReplyEditDelete

 

 

2008-08-20 02:25:01     Re: BF537 is not booting.

Mike Frysinger (UNITED STATES)

Message: 60713   

 

that's really up to you.  u-boot is scriptable so you can have u-boot automatically load/boot/do whatever you want.

QuoteReplyEditDelete

Attachments

Outcomes