2008-07-11 03:49:33     configuration file for New board

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

2008-07-11 03:49:33     configuration file for New board

Kaustubh Vaidya (INDIA)

Message: 58661   

 

Hi, I am developing new Blackfin533 based board for general pupose application . I am thinking to port u-boot on the board.

 

I reffered to document (URL=https://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:porting#board_linker_script)

 

& I downloaded u-boot-trunk-svn.src.tar from U-boot project . After reading document I have query;

 

For porting U-boot to this new board whether I have to create new  Board configuration file according to above document or just modify the files provided in .tar document?

 

If I want to refer .tar document then which files I must use for porting U-boot on board?

 

THANK YOU...............................................

QuoteReplyEditDelete

 

 

2008-07-11 04:47:45     Re: configuration file for New board

Yi Li (CHINA)

Message: 58674   

 

As the document said:

 

Here is a quick list of the files/directories in U-Boot that you will need to modify/create:

 

    *

      top-level Makefile and MAKEALL and MAINTAINERS

    *

      board configuration file: include/configs/bf537-cow.h

    *

      board directory: boards/bf537-cow/

 

The file you need to create are those *-cow (example files).

QuoteReplyEditDelete

 

 

2008-07-11 05:36:20     Re: configuration file for New board

Kaustubh Vaidya (INDIA)

Message: 58677   

 

Thanks Mr.Li

 

But in the same  help  document  ,under Board  Configuration File point format of the file is given . In that format  they have written

 

/* this must come after the definition of CONFIG_COMMANDS */

 

What are these CONFIG_COMMANDS?

 

Where can I find information on them?

 

Thank You...............................................................

 

 

QuoteReplyEditDelete

 

 

2008-07-11 11:21:49     Re: configuration file for New board

Robin Getz (UNITED STATES)

Message: 58692   

 

In the file you referenced, there will be a "#define CONFIG_COMMANDS ...."

 

rgetz@imhotep:~/blackfin/trunk/u-boot/u-boot-1.1.6> grep CONFIG_COMMANDS include/configs/bf* | grep define

include/configs/bf537-minotaur.h:#define CONFIG_COMMANDS                (CONFIG_BFIN_CMD| \

include/configs/bf537-minotaur.h:#define CONFIG_COMMANDS                (( CONFIG_BFIN_CMD| \

include/configs/bf537-pnav.h:#define CONFIG_COMMANDS                    (CONFIG_BFIN_CMD| \

include/configs/bf537-pnav.h:#define CONFIG_COMMANDS                    (CONFIG_BFIN_CMD| \

include/configs/bf537-srv1.h:#define CONFIG_COMMANDS            (CONFIG_BFIN_CMD| \

include/configs/bf537-srv1.h:#define CONFIG_COMMANDS            (( CONFIG_BFIN_CMD| \

include/configs/bfin_adi_common.h:# define CONFIG_COMMANDS \

 

 

Just include it after that line.

QuoteReplyEditDelete

 

 

2008-07-14 08:40:35     Re: configuration file for New board

Kaustubh Vaidya (INDIA)

Message: 58758   

 

As Mr Li pointed , I want to create my board name folder in 'board'  folder present in .tar file. So in that folder I want to create files like "config.mak, Makefile & other files "as they are in other boards folder.As my design based on BF533 Stamp board but may be using some diffrent Flash memory.So;

 

Can I include files given in "bf533-stamp" folder as it is in my board's folder or  I want create them totally new ?

 

If some files can be used as it is ,then what should I do for other files?

 

 

 

THANK YOU................................................................

QuoteReplyEditDelete

 

 

2008-07-14 22:25:41     Re: configuration file for New board

Mike Frysinger (UNITED STATES)

Message: 58785   

 

do not use the svn tarball.  that is not meant for general use.  always use the latest release instead.

QuoteReplyEditDelete

 

 

2008-07-14 22:26:18     Re: configuration file for New board

Mike Frysinger (UNITED STATES)

Message: 58786   

 

create your own directories with your own files with your own code using existing files as reference only

QuoteReplyEditDelete

 

 

2008-07-15 01:49:25     Re: configuration file for New board

Kaustubh Vaidya (INDIA)

Message: 58795   

 

In order to develop own files in board directory I want to first understand what is the purpose of some files & what information must be included. I am not understanding what information should I inclde in  files like " Config.mk, Makefile, u-boot.lds " for my board.

 

So where can I find guidelines for programming files I mentioned above?

 

 

 

Thank You.............................................................

QuoteReplyEditDelete

 

 

2008-07-15 02:10:19     Re: configuration file for New board

Mike Frysinger (UNITED STATES)

Message: 58803   

 

you already have the document that shows how to port u-boot to your board

Attachments

    Outcomes