2009-02-27 11:38:46     problem building u-boot tools

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

2009-02-27 11:38:46     problem building u-boot tools

ian davidson (UNITED KINGDOM)

Message: 70104   

 

I am trying to get the U-Boot tools to build.

I have a kernel (Linux version 2.6.22.19-ADI-2008R1.5-svn ) that builds OK, and I have

followed the guide in

 

http://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:env

 

i.e. in Vendor User settings/Blackfin app programs select U-Boot tools

save new configuration

make clean

make

 

The build fails reporting this:

 

make[4]: Entering directory `/home/iand/DPL/kernel_dev/DigitalPL/uClinux-dist-2008R1.5-RC3/user/blkfin-apps/u-boot-tools/env'

romfs-inst.sh -d /bin/fw_printenv

cp: cannot stat `fw_printenv': No such file or directory

make[4]: *** [romfs] Error 1

 

What else do I need to do to get this utility to build?

 

Thanks

 

Ian Davidson

 

QuoteReplyEditDelete

 

 

2009-02-27 11:54:47     Re: problem building u-boot tools

Phil Wilshire (UNITED STATES)

Message: 70106   

 

Hi David,

 

Change the user/blkfin-apps/u-boot-tools/env/Makefile  as shown

 

    $(ROMFSINST) -d /bin/fw_printenv  << change this

 

    $(ROMFSINST) -d fw_env /bin/fw_printenv  << to this

 

===================================================================

 

 

 

CPPFLAGS += -DUSE_HOSTCC

 

all: fw_env

 

fw_env: crc32.o fw_env.o fw_env_main.o

 

clean:

    rm -f *.o fw_env *.gdb

 

romfs:

    $(ROMFSINST) -d fw_env /bin/fw_printenv

    $(ROMFSINST) -s fw_printenv /bin/fw_setenv

 

.PHONY: all clean romfs

 

====================================================================

 

 

Patch attached

 

Phil Wilshire

 

 

 

u-boot-tools.patch

QuoteReplyEditDelete

 

 

2009-03-02 05:54:18     Re: problem building u-boot tools

ian davidson (UNITED KINGDOM)

Message: 70212   

 

Thanks Phil, works a treat!

 

Ian

Attachments

Outcomes