2009-12-09 11:38:24     uboot gpio assisted flash for BF527

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

2009-12-09 11:38:24     uboot gpio assisted flash for BF527

Debra Sessler (UNITED STATES)

Message: 83307   

 

We are building a board with the BF527 processor.  I have been researching gpio assisted flash capability for BF527

 

in U-Boot.  From what I can tell it is available.  Can you provide some direction as to how to download and install

 

the proper release/patch that includes this capability?  Is this a blackfin.uclinux.org 'approved' release for  this?

 

Currently what I have is the 'official' release recommended on the blackfin.uclinux.org- u-boot-2008.10-2009R1-rc3.

 

Thank you.

QuoteReplyEditDelete

 

 

2009-12-09 15:38:34     Re: uboot gpio assisted flash for BF527

Mike Frysinger (UNITED STATES)

Message: 83312   

 

look at the few files under board/cm-bf527/

QuoteReplyEditDelete

 

 

2009-12-09 16:24:49     Re: uboot gpio assisted flash for BF527

Debra Sessler (UNITED STATES)

Message: 83318   

 

Which u-boot release?  The release I have only has gpio.c, spi_flash.c, flash.c.  I believe the gpio assisted flash

 

design for cm-bf527 includes a file called gpio_cfi_flash.c, correct?  Do I need to apply a patch to get this?

QuoteReplyEditDelete

 

 

2009-12-09 16:36:32     Re: uboot gpio assisted flash for BF527

Mike Frysinger (UNITED STATES)

Message: 83320   

 

it isnt in any release.  you'll have to use trunk.

QuoteReplyEditDelete

 

 

2009-12-16 10:59:02     Re: uboot gpio assisted flash for BF527

Debra Sessler (UNITED STATES)

Message: 83604   

 

OK.  So, I grabbed the files from SVN-> trunk -> u-boot-2009.08/board/cm-bf527.  u-Boot would not compile so I also

 

copied cm-527.h, then [old] u-boot.lds.S, config-pre.h, flash.h, /cpu/start.S to try and resolve compile errors. 

 

But I am still stuck with this u-boot compile error:

 

# make cm-bf527

....

....

make[2]: Entering directory `/home/blackfin/u-boot-2008.10-2009R1-rc3/cpu/blackfin'

bfin-uclinux-gcc  -D__ASSEMBLY__ -g  -Os   -ffixed-P5 -fomit-frame-pointer -mno-fdpic -ffunction-sections -fdata-sections -mcpu=bf527-0.0 -D__KERNEL__ -I/home/blackfin/u-boot-2008.10-2009R1-rc3/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/uClinux/bfin-uclinux/lib/gcc/bfin-uclinux/4.1.2/include -pipe  -DCONFIG_BLACKFIN -c -o start.o start.S

start.S: Assembler messages:

start.S:191: Error: reloc 582 not supported by object file format

start.S:191: Error: reloc 583 not supported by object file format

start.S:191: Error: reloc 590 not supported by object file format

start.S:191: Error: reloc 583 not supported by object file format

start.S:191: Error: reloc 591 not supported by object file format

start.S:192: Error: reloc 582 not supported by object file format

start.S:192: Error: reloc 583 not supported by object file format

start.S:192: Error: reloc 591 not supported by object file format

make[2]: *** [start.o] Error 1

make[2]: Leaving directory `/home/blackfin/u-boot-2008.10-2009R1-rc3/cpu/blackfin'

make[1]: *** [cpu/blackfin/start.o] Error 2

make[1]: Leaving directory `/home/blackfin/u-boot-2008.10-2009R1-rc3'

make: *** [cm-bf527] Error 2

 

 

Do I need to upgrade the whole source tree?  What do you recommend for upgrading my u-boot-2008.10-2009R1-rc3 release (for BF527), in order to get the gpio assisted flash capability?

 

Is there an official release coming out soon for blackfin?

QuoteReplyEditDelete

 

 

2009-12-16 12:30:09     Re: uboot gpio assisted flash for BF527

Mike Frysinger (UNITED STATES)

Message: 83605   

 

i dont know why you're copying random files.  attempting to do this means you're on your own.

 

use trunk or wait for the next release.

QuoteReplyEditDelete

 

 

2009-12-16 13:16:24     Re: uboot gpio assisted flash for BF527

Debra Sessler (UNITED STATES)

Message: 83606    I didn't copy random files. I copied the files you suggested from board/cm-bf527 and then

u-boot wouldn't compile. So, I was trying to find the reasons. gpio_cfi_flash.c needs

CONFIG_SYS_FLASH_BASE; not defined in old cm-bf527.h but is defined in new cm-bf527.h, etc.

 

When is the next release?

QuoteReplyEditDelete

 

 

2009-12-16 13:44:03     Re: uboot gpio assisted flash for BF527

Mike Frysinger (UNITED STATES)

Message: 83607   

 

i told you that you'll have to use trunk.  i only showed you were the driver is ... as for all the other files, there's no reason as to why they'd possibly work in the branch.

 

there isnt going to be a release from trunk for a while.  the current 2009.08 version is stable though.

Attachments

    Outcomes