Join Today
+ Reply to Thread
Results 1 to 10 of 10
  1. #1

    Default Help!Kernel compile problem!!!!!!

    i was compile the kernel-source from sourceforge,but i got a error when i type
    make zImage
    in the kernel source directory!!!!
    the result message:
    PHP Code:
    make all_targets
    make
    [2]: Entering directory `/usr/src/ez/linux-2.4.17/arch/arm/mach-ezx'
    make[2]: Nothing to be done for 
    `all_targets'.
    make[2]: Leaving directory `/usr/src/ez/linux-2.4.17/arch/arm/mach-ezx'
    make[1]: Leaving directory `/usr/src/ez/linux-2.4.17/arch/arm/mach-ezx'
    make CFLAGS="-D__KERNEL__ -I/usr/src/ez/linux-2.4.17/include -Wall -Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common -Uarm -fno-common -pipe -mapcs -mno-sched-prolog -mapcs-32 -D__LINUX_ARM_ARCH__=5 -mcpu=xscale -mtune=xscale -msoft-float " -C  arch/arm/kernel
    make[1]: Entering directory 
    `/usr/src/ez/linux-2.4.17/arch/arm/kernel'
    arm-linux-gcc -D__ASSEMBLY__ -D__KERNEL__ -I/usr/src/ez/linux-2.4.17/include -mapcs-32 -D__LINUX_ARM_ARCH__=5 -mcpu=xscale -msoft-float  -Wa,-mcpu=iwmmxt -c -o wmmx.o wmmx.S
    wmmx.S: Assembler messages:
    wmmx.S:168: Error: undefined symbol I_BIT used as an immediate value
    wmmx.S:210: Error: undefined symbol I_BIT used as an immediate value
    wmmx.S:247: Error: undefined symbol I_BIT used as an immediate value
    wmmx.S:306: Error: undefined symbol I_BIT used as an immediate value
    make[1]: *** [wmmx.o] 错误 1
    make[1]: Leaving directory `/usr/src/ez/linux-2.4.17/arch/arm/kernel'
    make: *** [_dir_arch/arm/kernel错误 2 
    my system is Gentoo 2005.1,and my host compiler's configure is
    PHP Code:
    bash-2.05b# gcc -v
    Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/specs
    Configured with
    : /var/tmp/portage/gcc-3.3.6/work/gcc-3.3.6/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3.6 --includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.6 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.6/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.6/info --with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/include/g++-v3 --host=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --disable-libgcj --enable-languages=c,c++,f77 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
    Thread model
    posix
    gcc version 3.3.6 
    (Gentoo 3.3.6ssp-3.3.6-1.0pie-8.7.8)
    bash-2.05b# as -v
    GNU assembler version 2.15.92.0.2 (i686-pc-linux-gnuusing BFD version 2.15.92.0.2 20040927

    bash
    -2.05b# ld -v
    GNU ld version 2.15.92.0.2 20040927 
    but i can build lot of any userspace program,any the flashkit kernel module,and run perfect!!!
    any body tell me why?

  2. #2

    Default Re: Help!Kernel compile problem!!!!!!

    addtional , my cross compiler's configure
    PHP Code:
    bash-2.05b# arm-linux-gcc -v
    Reading specs from /opt/toolchain/gcc-3.3.2-glibc-2.3.2/arm-linux/lib/gcc-lib/arm-linux/3.3.2/specs
    Configured with
    : /opt/toolchain/crosstool-0.38/src/gcc-3.3.2/configure --target=arm-linux --host=i686-host_pc-linux-gnu --prefix=/opt/toolchain/gcc-3.3.2-glibc-2.3.2/arm-linux --with-float=soft --with-cpu=xscale --enable-cxx-flags=-mcpu=xscale --with-headers=/opt/toolchain/gcc-3.3.2-glibc-2.3.2/arm-linux/arm-linux/include --with-local-prefix=/opt/toolchain/gcc-3.3.2-glibc-2.3.2/arm-linux/arm-linux --disable-nls --enable-threads=posix --enable-symvers=gnu --enable-__cxa_atexit --enable-languages=c,c++ --enable-shared --enable-c99 --enable-long-long
    Thread model
    posix
    gcc version 3.3.2 

  3. #3

    Default Re: Help!Kernel compile problem!!!!!!

    As I know You can compile the kernel just only using the crosstool provide by Montavista.

  4. #4
    Join Date
    Jun 2005
    Location
    Bangalore,India
    Posts
    93

    Default Re: Help!Kernel compile problem!!!!!!

    Hi All,

    Sorry for double posting!!!

    I was able to generate a Toolchain!! Hello World works on Phone..

    Was wondering whether anybody would shared with a copy of Kernel config file .config so that I can try compiling the kernel modules for my A780..

    Thanks

    Regs
    Ravindran
    _________________
    ----------------------------------
    Linux Rocks!!
    ----------------------------------
    Linux Rocks!!

  5. #5

    Default Re: Help!Kernel compile problem!!!!!!

    See the README file (E680\ README.txt) in the tar you downloaded. The .config used for the A780 can be generated by the appropriate make command.

    However, with the normal toolchain you'll be able to 'make modules' but not 'make zImage'. It fails on one assembly file that uses some unknown instructions. Other than that, the kernel compiles fine, but its useless without a working scheduler.

  6. #6

    Default Re: Help!Kernel compile problem!!!!!!

    Maybe some wmmx instructions? hehe

  7. #7

    Default Re: Help!Kernel compile problem!!!!!!

    Yeah, but do you know how to build a toolchain that supports WMMX ?
    Is there a public release of gcc that supports it ?

  8. #8
    Join Date
    May 2005
    Location
    europe
    Posts
    170

    Default Re: Help!Kernel compile problem!!!!!!

    try google, there are wmmx extensions in gcc 3.4 but i'm not sure if you'll be able to compile kernel.

  9. #9

    Default Re: Help!Kernel compile problem!!!!!!

    Quote Originally Posted by Ravindran
    Hi All,

    Sorry for double posting!!!

    I was able to generate a Toolchain!! Hello World works on Phone..

    Was wondering whether anybody would shared with a copy of Kernel config file .config so that I can try compiling the kernel modules for my A780..

    Thanks

    Regs
    Ravindran
    _________________
    ----------------------------------
    Linux Rocks!!
    U can get the pre .config in kernel direction in which linux-2.4.17/arch/arm/def-configs/ezx-780, What u need do is:
    1 cd /usr/src/linux-2.4.17/
    2 cp arch/arm/def-configs/ezx-780 .config
    3 make oldconfig
    4 make modules
    Then u get the modules, And u can modify .config before u make oldconfig to create ur own modules.

  10. #10

    Default Re: Help!Kernel compile problem!!!!!!

    Quote Originally Posted by superlau
    i was compile the kernel-source from sourceforge,but i got a error
    PHP Code:
    make[1]: Entering directory `/usr/src/ez/linux-2.4.17/arch/arm/kernel'
    arm-linux-gcc -D__ASSEMBLY__ -D__KERNEL__ -I/usr/src/ez/linux-2.4.17/include -mapcs-32 -D__LINUX_ARM_ARCH__=5 -mcpu=xscale -msoft-float  -Wa,-mcpu=iwmmxt -c -o wmmx.o wmmx.S
    wmmx.S: Assembler messages:
    wmmx.S:168: Error: undefined symbol I_BIT used as an immediate value
    wmmx.S:210: Error: undefined symbol I_BIT used as an immediate value
    wmmx.S:247: Error: undefined symbol I_BIT used as an immediate value
    wmmx.S:306: Error: undefined symbol I_BIT used as an immediate value
    make[1]: *** [wmmx.o] 错误 1
    make[1]: Leaving directory 
    `/usr/src/ez/linux-2.4.17/arch/arm/kernel
    make
    : *** [_dir_arch/arm/kernel错误 2 
    you need to add an

    #include <asm/proc/ptrace.h>

    to the top of arch/arm/kernel/wmmx.S

    and it will compile like a charm.


 
+ Reply to Thread

Similar Threads

  1. problem after flashing with sdhc kernel
    By regan20072000 in forum E6 General Chat
    Replies: 0
    Last Post: 08-06-2009, 10:09 AM
  2. mkezx and ncurses compile problem
    By kpa1200e in forum Development
    Replies: 2
    Last Post: 05-15-2008, 11:31 AM
  3. build e680g kernel problem
    By hch680 in forum E680i General Chat
    Replies: 1
    Last Post: 08-19-2007, 10:44 AM
  4. Replies: 0
    Last Post: 08-19-2006, 09:49 AM
  5. e680 kernel compile/upgrade
    By silvio in forum Development
    Replies: 10
    Last Post: 08-20-2005, 05:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Single Sign On provided by vBSSO

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1