2008-10-06 08:22:56     Problem in building the uboot workspace for bf527-ezkit

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

2008-10-06 08:22:56     Problem in building the uboot workspace for bf527-ezkit

V Hemanth Kumar (INDIA)

Message: 63159   

 

Hi,

 

I downloaded the latest uboot-2008R1.5 release and 2008R1.5 toolchain.

 

I am not able to compile the uboot distribution. The error is CFG_ENV_SIZE undefined in environment.h

 

Steps:-

 

1. Configured for bf527 ezkit by giving

 

$> make bf527-ezkit_config

 

2. Then gave "make" for which I am getting the below error:-

 

/****************************************************************************************/

 

gcc -g -Wall -pedantic -idirafter /home/hemanth/uClinux_Blackfin/ubootloader/u-boot-1.1.6-2008R1.5/include -idirafter /home/hemanth/uClinux_Blackfin/ubootloader/u-boot-1.1.6-2008R1.5/include2 -idirafter /home/hemanth/uClinux_Blackfin/ubootloader/u-boot-1.1.6-2008R1.5/include -DTEXT_BASE= -DUSE_HOSTCC -O -c -o envcrc.o envcrc.c

gcc -g  -idirafter /home/hemanth/uClinux_Blackfin/ubootloader/u-boot-1.1.6-2008R1.5/include -idirafter /home/hemanth/uClinux_Blackfin/ubootloader/u-boot-1.1.6-2008R1.5/include2 -idirafter /home/hemanth/uClinux_Blackfin/ubootloader/u-boot-1.1.6-2008R1.5/include -DTEXT_BASE= -DUSE_HOSTCC -c -o environment.o environment.c

In file included from environment.c:30:

/home/hemanth/uClinux_Blackfin/ubootloader/u-boot-1.1.6-2008R1.5/include/environment.h:105: error: âCFG_ENV_SIZEâ undeclared here (not in a function)

make[1]: *** [environment.o] Error 1

make[1]: Leaving directory `/home/hemanth/uClinux_Blackfin/ubootloader/u-boot-1.1.6-2008R1.5/tools'

make: *** [tools] Error 2

/****************************************************************************************/

 

Temporary alternative:-

 

If I include the below line in environment.h the above error vanishes:

 

#include "config.h" (which inturn included "bf527ezkit.h").

 

 

 

So is the above error a known issue or am I doing something wrong here.

 

Regards,

 

Hemanth.V

 

 

QuoteReplyEditDelete

 

 

2008-10-06 14:16:30     Re: Problem in building the uboot workspace for bf527-ezkit

Mike Frysinger (UNITED STATES)

Message: 63168   

 

did you modify anything ?

QuoteReplyEditDelete

 

 

2008-10-06 14:39:49     Re: Problem in building the uboot workspace for bf527-ezkit

Christopher Edmonds (UNITED STATES)

Message: 63172   

 

I am having the same problem. Clean checkout of the same versions of the toolchain and u-boot. I am running on RedHat Linux with gcc 4.1.2.

 

-Chris

QuoteReplyEditDelete

 

 

2008-10-06 15:12:12     Re: Problem in building the uboot workspace for bf527-ezkit

Mike Frysinger (UNITED STATES)

Message: 63176   

 

clean means you have not made any changes at all to the source, right ?  and you're talking about using the 2008R1.5 svn branch ?  what is your host distro exactly ?

QuoteReplyEditDelete

 

 

2008-10-06 17:19:27     Re: Problem in building the uboot workspace for bf527-ezkit

Christopher Edmonds (UNITED STATES)

Message: 63186   

 

Sorry for the confusion with the word checkout. I downloaded the following files:

 

    u-boot-1.1.6-2008R1.5.tar.bz2

    blackfin-toolchain-08r1.5-14.i386.tar.bz2

    blackfin-toolchain-uclibc-default-08r1.5-14.i386.tar.bz2

 

I then:

 

    Extracted the contents of the tarballs

    Added the bin folder for the toolchain to my path

    make bf537-stamp_config

    make

 

Notes:

 

    I do not have root access on the machine I was compiling on so the toolchain was in my home folder rather than the /opt location.

    No changes were made to the source code.

    Distro: Red Hat Enterprise Linux Client release 5.2 (Tikanga)

 

-Chris Edmods

QuoteReplyEditDelete

 

 

2008-10-07 01:30:41     Re: Problem in building the uboot workspace for bf527-ezkit

V Hemanth Kumar (INDIA)

Message: 63194   

 

Hi, I have not modified any thing.

 

Regards,

 

Hemanth.V

QuoteReplyEditDelete

 

 

2008-10-07 02:24:48     Re: Problem in building the uboot workspace for bf527-ezkit

Mike Frysinger (UNITED STATES)

Message: 63196   

 

what distribution exactly are you using ?

QuoteReplyEditDelete

 

 

2008-10-08 01:20:39     Re: Problem in building the uboot workspace for bf527-ezkit

V Hemanth Kumar (INDIA)

Message: 63236   

 

Hi, I am using u-boot-1.1.6-2008R1.5 release.

QuoteReplyEditDelete

 

 

2008-10-08 01:22:20     Re: Problem in building the uboot workspace for bf527-ezkit

Mike Frysinger (UNITED STATES)

Message: 63237   

 

that isnt a distro.  what distribution of Linux are you running on your development system ?

QuoteReplyEditDelete

 

 

2008-10-08 01:23:25     Re: Problem in building the uboot workspace for bf527-ezkit

Mike Frysinger (UNITED STATES)

Message: 63238   

 

please post a full log.  so run:

make clean

make bf537-stamp >& log

 

and then post the "log" file as an attachment

QuoteReplyEditDelete

 

 

2008-10-08 09:37:12     Re: Problem in building the uboot workspace for bf527-ezkit

V Hemanth Kumar (INDIA)

Message: 63269   

 

Sorry for the late response, I use the uClinux-dist-2008R1.5-RC3 linux distribution.

 

But I am not compiling the uClinux distribution.

QuoteReplyEditDelete

 

 

2008-10-08 09:39:30     Re: Problem in building the uboot workspace for bf527-ezkit

V Hemanth Kumar (INDIA)

Message: 63270   

 

Sorry I got confused, the linux host development system which I use is CentOS.

QuoteReplyEditDelete

 

 

2008-10-08 13:42:49     Re: Problem in building the uboot workspace for bf527-ezkit

Christopher Edmonds (UNITED STATES)

Message: 63277   

 

Here is the log file.

 

log

QuoteReplyEditDelete

 

 

2008-10-08 14:42:52     Re: Problem in building the uboot workspace for bf527-ezkit

Mike Frysinger (UNITED STATES)

Message: 63285   

 

but what version

QuoteReplyEditDelete

 

 

2008-10-08 18:39:00     Re: Problem in building the uboot workspace for bf527-ezkit

Christopher Edmonds (UNITED STATES)

Message: 63293   

 

Didn't seem to attach the first time.

 

log.txt

QuoteReplyEditDelete

 

 

2008-10-09 03:11:54     Re: Problem in building the uboot workspace for bf527-ezkit

Mike Frysinger (UNITED STATES)

Message: 63302   

 

i cant install RHEL since it requires a license, but i just installed Centos 5.2 and it worked fine

 

go into the tools/ directory and run this:

gcc -g  -idirafter /nfs/guille/project/tekbots/students/edmondsc/DSPBoard/Code/final_checkin/u-boot/include -idirafter /nfs/guille/project/tekbots/students/edmondsc/DSPBoard/Code/final_checkin/u-boot/include2 -idirafter /nfs/guille/project/tekbots/students/edmondsc/DSPBoard/Code/final_checkin/u-boot/include -DTEXT_BASE= -DUSE_HOSTCC -E -dD -o environment.i environment.c

 

then post the "environment.i" file as an attachment

 

 

QuoteReplyEditDelete

 

 

2008-10-13 07:01:55     Re: Problem in building the uboot workspace for bf527-ezkit

V Hemanth Kumar (INDIA)

Message: 63552   

 

Sorry for very late reply (was on long leave).

 

The version is CentOS5 (5.0.0) linux kernel version 2.6.18-8.el5-i686.

Attachments

Outcomes