2008-06-09 09:43:59     U-boot not executing from Flash (BF527)

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

2008-06-09 09:43:59     U-boot not executing from Flash (BF527)

Maniyan SVS (INDIA)

Message: 56867   


We have BF527 EZ-Kit for our project development purpose. We have downloaded the "u-boot-1.1.6-2008R1" and compiled with the tool chain "08R1".


We programmed the u-boot code in flash using Jtag (Peedi). We have loaded the u-boot in 0x20000000 (start address of flash) .While rebooting the board, we found that the PC register is set to "0xFFA08000", thus the u-boot is not executed by the processor. Since the u-boot at 0x20000000, we would like to know the default value of RESET vector table. Can we configure the same?


But when we load the u-boot in RAOM, we could able to execute to notice the u-boot progress and the u-boot prompt. (inconsistent, but sometimes it works). This confirms that the u-boot compilation is proper.


Note: With RAM, it breaks at location 0x20000E10 / E12 sometimes (We did not set any breakpoint). We would like to know whether the exception has ocurred) 


Pls help us to resolve this.









2008-06-09 14:58:13     Re: U-boot not executing from Flash (BF527)

Mike Frysinger (UNITED STATES)

Message: 56878   


the booting chapter of the HRM, as well as the bootloader documentation on docs.blackfin.uclinux.org, explains the booting process.  please read that first.  you need to make sure your bootmode is set properly.  there is no "bypass" mode anymore where the processor executes things directly out of flash.


if you're having trouble booting things, use the precompiled u-boot image posted as part of the release.  that has been tested and verified to work.




2008-06-23 09:01:07     Re: U-boot not executing from Flash (BF527)

Maniyan SVS (INDIA)

Message: 57727   


Thanks for your reply Mike.


I have gone through the BF527 HWR and u-boot help documents posted in this site.  I have compiled u-boot application in LDR format as I have compiled for BOOT_PARA mode.  This file format is  generated using bfin-uclinux-ldr utility.


I have loaded this LDR file in flash (0x2000 0000). But when we program this in flash and reboot the board, the u-boot progress and prompt is not appearing. I would like to clarify, if the LDR format is generated properly. Pls find the dump of ldr -s as follows:


Showing LDR u-boot.ldr ...

auto detected LDR as 'BF548'

  DXE 1 at 0x00000000:

    Block  1 at 0x00000000

         Addr: 0xFFA00000 BCode: 0xADB05001 Bytes: 0x00000000 Args: 0x0002B5A4 ( 8bit-dma-from-8bit ignore first )

    Block  2 at 0x00000010

         Addr: 0xFFA00000 BCode: 0xADA20801 Bytes: 0x00000378 Args: 0xDEADBEEF ( 8bit-dma-from-8bit init )

    Block  3 at 0x00000398

         Addr: 0xFFA00000 BCode: 0xADDD0001 Bytes: 0x0000000C Args: 0xDEADBEEF ( 8bit-dma-from-8bit )

    Block  4 at 0x000003B4

         Addr: 0x03FA0000 BCode: 0xAD670001 Bytes: 0x00003C2C Args: 0xDEADBEEF ( 8bit-dma-from-8bit )

    Block  5 at 0x00003FF0

         Addr: 0x00000000 BCode: 0xAD761001 Bytes: 0x00002000 Args: 0xBAADF00D ( 8bit-dma-from-8bit ignore )

    Block  6 at 0x00006000

         Addr: 0x03FA3C2C BCode: 0xADF00001 Bytes: 0x000043D4 Args: 0xDEADBEEF ( 8bit-dma-from-8bit )

    Block  7 at 0x0000A3E4

         Addr: 0x03FA8000 BCode: 0xAD770001 Bytes: 0x00008000 Args: 0xDEADBEEF ( 8bit-dma-from-8bit )

    Block  8 at 0x000123F4

         Addr: 0x03FB0000 BCode: 0xADF60001 Bytes: 0x00008000 Args: 0xDEADBEEF ( 8bit-dma-from-8bit )

    Block  9 at 0x0001A404

         Addr: 0x03FB8000 BCode: 0xAD760001 Bytes: 0x00008000 Args: 0xDEADBEEF ( 8bit-dma-from-8bit )

    Block 10 at 0x00022414

         Addr: 0x03FC0000 BCode: 0xADF10001 Bytes: 0x00008000 Args: 0xDEADBEEF ( 8bit-dma-from-8bit )

    Block 11 at 0x0002A424

         Addr: 0x03FC8000 BCode: 0xADCC0001 Bytes: 0x0000112C Args: 0xDEADBEEF ( 8bit-dma-from-8bit )

    Block 12 at 0x0002B560

         Addr: 0xFFA0000C BCode: 0xADF90001 Bytes: 0x00000024 Args: 0xDEADBEEF ( 8bit-dma-from-8bit )

    Block 13 at 0x0002B594

         Addr: 0x03FC9150 BCode: 0xADA30101 Bytes: 0x0002D2E0 Args: 0x00000000 ( 8bit-dma-from-8bit fill )

    Block 14 at 0x0002B5A4

         Addr: 0xFFA00000 BCode: 0xAD738001 Bytes: 0x00000000 Args: 0x00000000 ( 8bit-dma-from-8bit final )




I would like to know, how to make sure


    LDR format is  compiled properly (to compare with ELF, as LDR is generated from ELF format).

    LDR blocks are copied in Target address and get executed.


Pls help me in resolving the same.


Note 1:  Version details of LDR


ldr-utils-svn-1905: /usr/src/packages/BUILD/ldr-utils/ldr.c compiled Jan 30 2008

$Id: ldr.c 1866 2007-10-18 02:18:19Z vapier $.


Note2: Elf details of the same u-boot application (for reference)Elf file type is EXEC (Executable file)

Entry point 0x3fa0000

There are 3 program headers, starting at offset 52


Program Headers:

  Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align

  LOAD           0x001000 0x03fa0000 0x03fa0000 0x2912c 0x2912c RWE 0x1000

  LOAD           0x02b00c 0xffa0000c 0x03fc912c 0x00024 0x00024 R E 0x1000

  LOAD           0x02a150 0x03fc9150 0x03fc9150 0x00000 0x2d2e0 RW  0x1000


Section to Segment mapping:

  Segment Sections...

   00     .text .rodata .data .u_boot_cmd

   01     .text_l1

   02     .bss








2008-06-23 09:13:31     Re: U-boot not executing from Flash (BF527)

Mike Frysinger (UNITED STATES)

Message: 57728   


did you verify that the precompiled versions we've posted work ?  please validate that first before spending any time fighting with from source.




2008-06-24 03:46:03     Re: U-boot not executing from Flash (BF527)

Maniyan SVS (INDIA)

Message: 57754   


I have tried with the pre-compiled version of u-boot  (boot-para mode: LDR format). I could not able to notice the u-boot status in serial console.


I wonder whether the BOOT ROM kernel is able to fetch the boot stream blocks (u-boot application) from flash (0x2000 0000). Pls let me know how to confirm the same.




2008-06-24 04:07:38     Re: U-boot not executing from Flash (BF527)

Mike Frysinger (UNITED STATES)

Message: 57761   


if the default image isnt working, then your board/setup isnt configured properly (or is broken)


make sure your UART jumpers are setup properly, as is your boot mode switch, and that you have the correct serial cable in the first place






2008-06-24 04:54:51     Re: U-boot not executing from Flash (BF527)

Maniyan SVS (INDIA)

Message: 57802   


I have BF527 custom board.


    I have verified the UART jumper by shorting RX and TX pin, It is working properly.

    BMODE is hard wired at processor level and it is set to 0x001 (BOOT_PARA).


We have 24.576MHz CLKIN. I belive the pre-compiled u-boot is compiled for 25MHz. Pls let us know, if this could be a blocker. Also pls help us with board set-up configuration details that you have refered in your previous post.


Note: Pls find the configuration as follows:


CLKIN = 24.576MHz


VCO = 294.912MHz (MSEL: 12)


SCLK = 73.72MHz (SCLK DIV: 4)


CCLK = 294.912MHz (Div: 1)












2008-06-24 05:32:50     Re: U-boot not executing from Flash (BF527)

Mike Frysinger (UNITED STATES)

Message: 57804   


you said in your original post you were using the BF527-EZKIT, not a custom board.  which is it ?




2008-06-24 05:58:54     Re: U-boot not executing from Flash (BF527)

Maniyan SVS (INDIA)

Message: 57806   


We have customized the BF527 as per our project requirment. As part of this, we have modified the CLKIN to 24.576MHz.




2008-06-24 06:58:07     Re: U-boot not executing from Flash (BF527)

Mike Frysinger (UNITED STATES)

Message: 57808   


then none of the BF527-EZKIT files can be used.  please read the documentation as it covers porting and debugging:





2008-06-24 07:44:52     Re: U-boot not executing from Flash (BF527)


Message: 57810   




Can you build from source, and try it out on a standard hardware we know works (like the EZKit?)


That way we know your build process is OK.