2010-01-11 08:13:06     adding board ?

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

2010-01-11 08:13:06     adding board ?

Filip Vanalme (BELGIUM)

Message: 84409   

 

Hi,

 

I downloaded the current version of the u-boot and was able to build a version for the bf561-ezkit board. Withou errors.

 

Now, I would add my specific board. Therefor, I created a new directory bf561-mycomp in the board directory and copied all files from bf561-ezkit to that new directory. In the new directory, I renamed bf561-ezkit.c to bf561-televic.c and adjusted the file u-boot.lds.S to use the files of the new directory. In the main Makefile, I added 'BFIN_BOARDS += bf561-mycomp'.

 

Then executed 'make clean', 'make distclean', 'make bf561-mycomp_config' and 'make'. It stops with the following problem :

 

lib_blackfin/libblackfin.a(board.o): In function `board_init_r':

/home/FVA/XT100G2/build/u-boot/lib_blackfin/board.c:315: undefined reference to `flash_init'

/home/FVA/XT100G2/build/u-boot/lib_blackfin/board.c:315: relocation truncated to fit: R_pcrel24 against undefined symbol `flash_init'

/home/FVA/XT100G2/build/u-boot/lib_blackfin/board.c:317: undefined reference to `flash_info'

/home/FVA/XT100G2/build/u-boot/lib_blackfin/board.c:317: undefined reference to `flash_info'

/home/FVA/XT100G2/build/u-boot/lib_blackfin/board.c:361: undefined reference to `misc_init_r'

/home/FVA/XT100G2/build/u-boot/lib_blackfin/board.c:361: relocation truncated to fit: R_pcrel24 against undefined symbol `misc_init_r'

make: *** [u-boot] Error 1

 

 

Although I copied all files from the existing bf561-ezkit directory, it looks like the building process can't find some files anymore. Is there something else I have to change to make it build with my newly added board ? Or maybe it's simply not possible to create a new board like that ?

 

 

 

Filip

TranslateQuoteReplyEditDelete

 

 

2010-01-11 10:33:41     Re: adding board ?

Filip Vanalme (BELGIUM)

Message: 84411   

 

Found the problem : missing #define CONFIG_FLASH_CFI_DRIVER in my boards header file.

Attachments

    Outcomes