UBOOT compile error for JZ4750 device

K2C)김상무 sangmu at k2ci.com
Tue Oct 27 23:50:06 EDT 2009


make sure the NAND BLOCK SIZE is correct? <----

where can I write nand block size???

I checked my configure file (like: "include/configs/apus.h")
and it has some line like:
> #define CFG_ENV_SIZE         CFG_NAND_BLOCK_SIZE


Here are answers for your question.
I got the toolchain form below address
ftp://ftp.ingenic.cn/3sw/01linux/00toolchain/

U-boot
ftp://ftp.ingenic.cn/3sw/01linux/01loader/u-boot/u-boot-1.1.6.tar.bz2
U-boot patch
ftp://ftp.ingenic.cn/3sw/01linux/01loader/u-boot/u-boot-1.1.6-jz-20090903.patch.gz
I think that I have patched it successfully.

And I tested toolchain too.
I make a test file " helloworld.c"
#include <stdio.h>
int main(void)
{
printf("llo world");
return 0;
}

And I compiled it successfully with this command.
mipsel-linux-gcc -O2 -o hellloworld hellloworld.c



----- 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 12:23 PM
Subject: Re: UBOOT compile error for JZ4750 device


> 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.
>>>
>>>>
>>>> ------------------------------------------------------------------------
>
> _______________________________________________
> Qi Developer Mailing List
> Mail to list (members only): developer at lists.qi-hardware.com
> Subscribe or Unsubscribe: 
> http://lists.qi-hardware.com/cgi-bin/mailman/listinfo/developer 





More information about the discussion mailing list


interactive