UBOOT compile error for JZ4750 device

Xiangfu Liu xiangfu at qi-hardware.com
Tue Oct 27 23:23:46 EDT 2009


Hi 

check your configure file (like: "include/configs/apus.h")
it should have some line like:

#define CFG_ENV_SIZE         CFG_NAND_BLOCK_SIZE 

you can add this line to your configure file.
make sure the NAND BLOCK SIZE is correct?

Some question:
  where you got the u-boot source code and toolchain?


K2C)김상무 wrote:
> Error code like below...
> 
> make
> for dir in tools examples post post/cpu ; do make -C $dir _depend ; done
> make[1]: Entering directory `/data/www_cn/dev/u-boot-1.1.6/tools'
> make[1]: Nothing to be done for `_depend'.
> make[1]: Leaving directory `/data/www_cn/dev/u-boot-1.1.6/tools'
> make[1]: Entering directory `/data/www_cn/dev/u-boot-1.1.6/examples'
> make[1]: Nothing to be done for `_depend'.
> make[1]: Leaving directory `/data/www_cn/dev/u-boot-1.1.6/examples'
> make[1]: Entering directory `/data/www_cn/dev/u-boot-1.1.6/post'
> make[1]: Nothing to be done for `_depend'.
> make[1]: Leaving directory `/data/www_cn/dev/u-boot-1.1.6/post'
> make[1]: Entering directory `/data/www_cn/dev/u-boot-1.1.6/post/cpu'
> make[1]: Nothing to be done for `_depend'.
> make[1]: Leaving directory `/data/www_cn/dev/u-boot-1.1.6/post/cpu'
> make -C tools all
> make[1]: Entering directory `/data/www_cn/dev/u-boot-1.1.6/tools'
> gcc -g  -idirafter /data/www_cn/dev/u-boot-1.1.6/include -idirafter
> /data/www_cn/dev/u-boot-1.1.6/include2 -idirafter
> /data/www_cn/dev/u-boot-1.1.6/include -DTEXT_BASE=0x80100000
> -DUSE_HOSTCC -c -o environment.o environment.c
> In file included from environment.c:30:
> /data/www_cn/dev/u-boot-1.1.6/include/environment.h:117: error:
> `CFG_ENV_SIZE' undeclared here (not in a function)
> make[1]: *** [environment.o] Error 1
> make[1]: Leaving directory `/data/www_cn/dev/u-boot-1.1.6/tools'
> make: *** [tools] Error 2
> [u-boot-1.1.6]#
> 
> 
> ----- Original Message ----- From: "Xiangfu Liu" <xiangfu at qi-hardware.com>
> To: "Hard- and Software Development, Kernel, Distribution,Roadmap"
> <developer at lists.qi-hardware.com>
> Sent: Wednesday, October 28, 2009 3:53 AM
> Subject: Re: UBOOT compile error for JZ4750 device
> 
> 
>> K2C)김상무 wrote:
>>> I want to use linux on my device CUBE B53 wi-fi.
>>> is there anyone who can help me for this?
>>>
>>> I tried to compile u-boot for this.
>>> But when I try to compile, it call errors like below.
>>>
>>> I did "make apus_nand_config".
>>> and "make"
>>> and errors like below.
>>>
>>> /bin/sh: line 1:  8892 Floating point exceptionmipsel-linux-gcc -M -g
>>> -Os -D__KERNEL__ -DTEXT_BASE=0x88000000
>>> -I/data/www_cn/dev/u-boot-1.1.6/include -fno-builtin -ffreestanding
>>> -nostdinc -isystem -pipe -DCONFIG_MIPS -D__MIPS__ -mtune=r4600 -mips32
>>> -O2 -mabicalls -I/data/www_cn/dev/u-boot-1.1.6 -MQ $g $f >>.depend
>>> /bin/sh: line 1:  8896 Floating point exceptionmipsel-linux-gcc -M -g
>>> -Os -D__KERNEL__ -DTEXT_BASE=0x88000000
>>> -I/data/www_cn/dev/u-boot-1.1.6/include -fno-builtin -ffreestanding
>>> -nostdinc -isystem -pipe -DCONFIG_MIPS -D__MIPS__ -mtune=r4600 -mips32
>>> -O2 -mabicalls -I/data/www_cn/dev/u-boot-1.1.6 -MQ $g $f >>.depend
>>> /bin/sh: line 1:  8900 Floating point exceptionmipsel-linux-gcc -M -g
>>> -Os -D__KERNEL__ -DTEXT_BASE=0x88000000
>>> -I/data/www_cn/dev/u-boot-1.1.6/include -fno-builtin -ffreestanding
>>> -nostdinc -isystem -pipe -DCONFIG_MIPS -D__MIPS__ -mtune=r4600 -mips32
>>> -O2 -mabicalls -I/data/www_cn/dev/u-boot-1.1.6 -MQ $g $f >>.depend
>>> make[1]: *** [.depend] Error 136
>>> make[1]: Leaving directory `/data/www_cn/dev/u-boot-1.1.6/post/cpu'
>>>
>>
>> which toolchain you use? download from Ingenic website?
>> seems something wrong with you toolchain.
>>
>>>
>>> ------------------------------------------------------------------------




More information about the discussion mailing list


interactive