Dear all, 
 
sorry, it was my fault. pls ignore the question. I can compile 2.6 kernel now.
 
thx a lot
CC YUEN
 

________________________________
寄件人﹕ Yuen Chi Chuen <yuenchich...@yahoo.com.hk>
收件人﹕ uClinux development list <uclinux-dev@uclinux.org>
傳送日期﹕ 2009/11月/6 (五) 9:09:21 AM
主題: Re: [uClinux-dev] Error about include/asm/memory.h in uClinux-dist-20090618


Thx Greg & Phil,
 
I now change the C library to uClibc (The configuration still is GDB/ARMulator 
for Vendor, 2.6 for kernel). By using arm-linux-tools-20070808, there's a 
syntax error, as shown in the attachment, about vmlinux.lds & arm-linux-ld.real?
 
Could any expert here give me some clues to solve the problem?
 
thx a lot,
CC YUEN



________________________________
寄件人﹕ Greg Ungerer <g...@snapgear.com>
收件人﹕ uClinux development list <uclinux-dev@uclinux.org>
傳送日期﹕ 2009/11月/5 (四) 7:08:47 PM
主題: Re: [uClinux-dev] Error about include/asm/memory.h in uClinux-dist-20090618

H Yuen,

On 11/05/2009 07:09 PM, Yuen Chi Chuen wrote:
> I am now compiling uClinux-dist-20090618 kernel 2..6 with the toolchain
> arm-linux-tools-20070808
> In make xconfig, I chose GDB/ARMulator for Vendor , 2.6 for kernel and
> uC-libc for the C library.. The compilation process can make use of

Choose uClibc. It is the only one kept up to date now..
uC-libc is very legacy and not kept working against 2.6 kernels.

Regards
Greg



> arm-linux-gcc to cross-compile the kernel. However, I encountered the
> following errors (highlighted in red) relating to include/asm/memory.h.
> I have no clue to solve the errors. Could any experts here can help?
> thx a lot,
> CC YUEN
> ------------------------------------------------------------------------------------------------------------------------------------------In
> file included from
> /root/Desktop/development/ARMulator_study/uClinux-dist/include/asm/page.h:189,
> from
> /root/Desktop/development/ARMulator_study/uClinux-dist/include/gcc/linux/a.out.h:140,
> from sysconf.c:6:
> /root/Desktop/development/ARMulator_study/uClinux-dist/include/asm/memory.h:18:25:
> error: mach/memory.h: No such file or directory
> In file included from
> /root/Desktop/development/ARMulator_study/uClinux-dist/include/asm/page.h:189,
> from
> /root/Desktop/development/ARMulator_study/uClinux-dist/include/gcc/linux/a.out.h:140,
> from sysconf.c:6:
> /root/Desktop/development/ARMulator_study/uClinux-dist/include/asm/memory.h:
> In function ‘virt_to_phys’:
> /root/Desktop/development/ARMulator_study/uClinux-dist/include/asm/memory.h:160:
> error: ‘CONFIG_DRAM_BASE’ undeclared (first use in this function)
> /root/Desktop/development/ARMulator_study/uClinux-dist/include/asm/memory.h:160:
> error: (Each undeclared identifier is reported only once
> /root/Desktop/development/ARMulator_study/uClinux-dist/include/asm/memory..h:160:
> error: for each function it appears in.)
> /root/Desktop/development/ARMulator_study/uClinux-dist/include/asm/memory.h:
> In function ‘phys_to_virt’:
> /root/Desktop/development/ARMulator_study/uClinux-dist/include/asm/memory.h:165:
> error: ‘CONFIG_DRAM_BASE’ undeclared (first use in this function)
> /root/Desktop/development/ARMulator_study/uClinux-dist/include/asm/memory.h:
> At top level:
> /root/Desktop/development/ARMulator_study/uClinux-dist/include/asm/memory.h:186:
> error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘unsigned’
> /root/Desktop/development/ARMulator_study/uClinux-dist/include/asm/memory.h:191:
> error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’
> make[4]: *** [sysconf..o] Error 1
> rm ltoa.o tempnam.o mkdtemp.o atoi.o rand.o ltostr.o gethostid.o itoa.o
> insremque.o tmpnam.o mkstemp.o mktemp.o atol.o atoll.o random.o sleep.o
> getlogin.o lsearch.o getopt.o qsort.o getpass.o bsearch.o
> make[4]: Leaving directory
> `/root/Desktop/development/ARMulator_study/uClinux-dist/lib/libc/misc'
> make[3]: *** [subdirs] Error 1
> make[3]: Leaving directory
> `/root/Desktop/development/ARMulator_study/uClinux-dist/lib/libc'
> make[2]: *** [libc] Error 2
> make[2]: Leaving directory
> `/root/Desktop/development/ARMulator_study/uClinux-dist/lib'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory
> `/root/Desktop/development/ARMulator_study/uClinux-dist/lib'
> make: *** [subdirs] Error 1
> -----------------------------------------------------------------------------------------------------------------------------------------
> I have no
>
>
> ------------------------------------------------------------------------
> Yahoo!香港提供網上安全攻略,教你如何防範黑客!*了解更多*
> <http://hk.promo.yahoo.com/security/>
>
>
>
> _______________________________________________
> uClinux-dev mailing list
> uClinux-dev@uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev@uclinux.org
> To unsubscribe see:
> http://mailman.uclinux.org/mailman/options/uclinux-dev

-- 
------------------------------------------------------------------------
Greg Ungerer  --  Principal Engineer        EMAIL:    g...@snapgear.com
SnapGear Group, McAfee                      PHONE:       +61 7 3435 2888  
+61 7 3435 2888 
825 Stanley St,                            FAX:        +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia        WEB: http://www.SnapGear.com
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

________________________________
Yahoo!香港提供網上安全攻略,教你如何防範黑客!了解更多


      Yahoo!香港提供網上安全攻略,教你如何防範黑客! 請前往 http://hk.promo.yahoo.com/security/ 了解更多!
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to