2008-07-14 19:18:14     how to enable LDR_FLAGS-BFIN_BOOT_UART ?

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

2008-07-14 19:18:14     how to enable LDR_FLAGS-BFIN_BOOT_UART ?

Vivek Vaid (UNITED STATES)

Message: 58770   

 

Hi,

 

In the config.mk for BF537 stamp, the HWAIT gpio port is defined (as shown below), which i hope would be passed to bfin-uclinux-ldr  while ldr of uboot is created.

 

LDR_FLAGS-BFIN_BOOT_UART       := --port g --gpio 6

 

But in the finally created ldr, (i tried creating for UART boot mode), this parameter seems to be absent.

 

1. how can i enable this flag in uboot ?

 

Also following is the information of uboot UART ldr, which i downloaded from this website. This flag seems absent in this  ldr too -

 

-------------

 

Showing LDR u-boot-bf537-stamp-uart-2008R1.ldr ...

  DXE 1 at 0x00000000:

    Block  1 at 0x00000000

         Addr: 0xFFA00000 Bytes: 0x00000138 Flags: 0x000A ( resvect init )

    Block  2 at 0x00000142

         Addr: 0xFFA00000 Bytes: 0x0000000C Flags: 0x0002 ( resvect )

    Block  3 at 0x00000158

         Addr: 0x03FC0000 Bytes: 0x00008000 Flags: 0x0002 ( resvect )

    Block  4 at 0x00008162

         Addr: 0x03FC8000 Bytes: 0x00008000 Flags: 0x0002 ( resvect )

    Block  5 at 0x0001016C

         Addr: 0x03FD0000 Bytes: 0x00008000 Flags: 0x0002 ( resvect )

    Block  6 at 0x00018176

         Addr: 0x03FD8000 Bytes: 0x0000707C Flags: 0x0002 ( resvect )

    Block  7 at 0x0001F1FC

         Addr: 0xFFA0000C Bytes: 0x00000024 Flags: 0x0002 ( resvect )

    Block  8 at 0x0001F22A

         Addr: 0x03FDF0A0 Bytes: 0x0000634C Flags: 0x8003 ( zerofill resvect final )

 

-------------------(nibble 2 of all Flags is 0)

 

2.  Does this also mean that HWAIT signal is not practically required while booting from UART ?

 

I am trying to figure out why uboot does not load and show prompt on my custom board . Simple blink code, which resides in internal L1, runs ok.

 

Thank you,

 

Vivek

 

 

 

 

 

 

QuoteReplyEditDelete

 

 

2008-07-15 00:25:09     Re: how to enable LDR_FLAGS-BFIN_BOOT_UART ?

Mike Frysinger (UNITED STATES)

Message: 58792   

 

most likely you didnt properly change your board configuration file to use the uart boot mode, or you didnt copy all of the right lines in your config.mk

 

building the u-boot.ldr for the bf537-stamp after changing the boot mode in the configuration file yeilded the correct result:

$ bfin-elf-ldr -qs u-boot.ldr

  DXE 1 at 0x00000000:

              Offset      Address     Bytes    Flags

    Block  1 0x00000000: 0xFFA00000 0x00000138 0x04CA ( portg gpio6 resvect init )

    Block  2 0x00000142: 0xFFA00000 0x0000000C 0x04C2 ( portg gpio6 resvect )

    Block  3 0x00000158: 0x03FC0000 0x00008000 0x04C2 ( portg gpio6 resvect )

    Block  4 0x00008162: 0x03FC8000 0x00008000 0x04C2 ( portg gpio6 resvect )

    Block  5 0x0001016C: 0x03FD0000 0x00008000 0x04C2 ( portg gpio6 resvect )

    Block  6 0x00018176: 0x03FD8000 0x000072F0 0x04C2 ( portg gpio6 resvect )

    Block  7 0x0001F470: 0xFFA0000C 0x00000028 0x04C2 ( portg gpio6 resvect )

    Block  8 0x0001F4A2: 0x03FDF318 0x00006354 0x84C3 ( portg gpio6 zerofill resvect final )

 

u-boot itself does not parse the port/gpio settings in the ldr.  the bootrom does.

QuoteReplyEditDelete

 

 

2008-07-15 19:40:56     Re: how to enable LDR_FLAGS-BFIN_BOOT_UART ?

Vivek Vaid (UNITED STATES)

Message: 58877   

 

 

 

I tried to just compile the original Bf537-stamp uboot, downloaded from this site with only modification in

 

bf537-stamp.h as- #define BFIN_BOOT_MODE       BFIN_BOOT_UART

 

but still i get the ldr with flag nibble 2 = 0. Did i need to make any other changes, just to get an ldr which is UART bootable ?

 

Moreover, the UART ldr from this website also has flag nibble 2 = 0, as shown below.

 

bfin-uclinux-ldr -qs u-boot-bf537-stamp-uart-2008R1.ldr

  DXE 1 at 0x00000000:

              Offset      Address     Bytes    Flags

    Block  1 0x00000000: 0xFFA00000 0x00000138 0x000A ( resvect init )

    Block  2 0x00000142: 0xFFA00000 0x0000000C 0x0002 ( resvect )

    Block  3 0x00000158: 0x03FC0000 0x00008000 0x0002 ( resvect )

    Block  4 0x00008162: 0x03FC8000 0x00008000 0x0002 ( resvect )

    Block  5 0x0001016C: 0x03FD0000 0x00008000 0x0002 ( resvect )

    Block  6 0x00018176: 0x03FD8000 0x0000707C 0x0002 ( resvect )

    Block  7 0x0001F1FC: 0xFFA0000C 0x00000024 0x0002 ( resvect )

    Block  8 0x0001F22A: 0x03FDF0A0 0x0000634C 0x8003 ( zerofill resvect final )

 

 

my toolchain version is -

 

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 $

 

Could you please verify the flags of the BF537 UART ldr on this website for comparison with my result ?

 

thank you

 

 

 

 

QuoteReplyEditDelete

 

 

2008-07-15 21:11:01     Re: how to enable LDR_FLAGS-BFIN_BOOT_UART ?

Mike Frysinger (UNITED STATES)

Message: 58883   

 

it would seem the older ldr-utils ignored the --port and --gpio flags.  update your ldr binary with the current one from svn and it should work fine.

QuoteReplyEditDelete

 

 

2008-07-15 22:03:42     Re: how to enable LDR_FLAGS-BFIN_BOOT_UART ?

Vivek Vaid (UNITED STATES)

Message: 58886   

 

 

 

What path should i use in svn command to get only the binary/ies ?

 

i tried the command listed on the SVN page,

 

svn checkout svn://sources.blackfin.uclinux.org/toolchain

 

but it appears this begins to send me full source.

 

 

 

meanwhile i will download the full svn file and try ..blackfin-toolchain-elf-SVN.i386.tar.bz2

 

 

 

thank you,

 

 

QuoteReplyEditDelete

 

 

2008-07-15 22:09:39     Re: how to enable LDR_FLAGS-BFIN_BOOT_UART ?

Mike Frysinger (UNITED STATES)

Message: 58887   

 

you only need the ldr-utils sub directory ... just run `make` in there to get the ldr binary

QuoteReplyEditDelete

 

 

2008-07-16 01:24:11     Re: how to enable LDR_FLAGS-BFIN_BOOT_UART ?

Vivek Vaid (UNITED STATES)

Message: 58898   

 

thanks,

 

the latest svn ldr tool considers those flags.

Attachments

    Outcomes