Kernel compile

Discussion in 'Kernels' started by Thnesko, Oct 28, 2013.

  1. Thnesko

    Thnesko New Member

    Joined:
    Oct 27, 2013
    Messages:
    5
    Likes Received:
    0
    Hello,

    I am having some issue with the cross compiler, i am following this guide (http://udoo.org/download/files/Document ... 0_2013.pdf) when i go to start the build its throwing an error

    Code:
    root@VOID-LINUX:/home/kieran/kernel# make -j4 CROSS_COMPILE=../arm-fsl-linux-gnueabi/bin/arm-fsl-linux-gnueabi- ARCH=arm uImage modules > compile.log
    make: ../arm-fsl-linux-gnueabi/bin/arm-fsl-linux-gnueabi-gcc: Command not found
    make: execvp: /home/kieran/kernel/scripts/setsecoversion: Permission denied
    /bin/sh: 1: ../arm-fsl-linux-gnueabi/bin/arm-fsl-linux-gnueabi-gcc: not found
    make[2]: *** [scripts/mod/empty.o] Error 127
    make[2]: *** Waiting for unfinished jobs....
    make[1]: *** [scripts/mod] Error 2
    make[1]: *** Waiting for unfinished jobs....
    make: *** [scripts] Error 2
    make: *** Waiting for unfinished jobs....
    root@VOID-LINUX:/home/kieran/kernel# 
    
    Also when i go to run that exe directly it still is saying command not found even though that files exists

    Code:
    root@VOID-LINUX:/home/kieran/arm-fsl-linux-gnueabi/bin# arm-fsl-linux-gnueabi-gcc
    arm-fsl-linux-gnueabi-gcc: command not found
    root@VOID-LINUX:/home/kieran/arm-fsl-linux-gnueabi/bin# 
    
    Has anybody else successfully built the kernel with the cross compiler yet? Any help would be greatly appreciated :)

    Code:
    kieran@VOID-LINUX:~$ uname -a
    Linux VOID-LINUX 3.8.0-23-generic #34-Ubuntu SMP Wed May 29 20:22:58 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
    
     
  2. miousername

    miousername New Member

    Joined:
    Jun 23, 2013
    Messages:
    73
    Likes Received:
    0
    Your problem is quite difficult!

    You installed the crosscompiler but you can't execute it!

    Try this:

    apt-get install ia32-libs

    And then try to execute again the crosscompilation!
    ;-)
     
  3. Thnesko

    Thnesko New Member

    Joined:
    Oct 27, 2013
    Messages:
    5
    Likes Received:
    0
    Ah! Thank you! :)

    All working well now! (All this for CIFS :p)

    Code:
    Linux udoo 3.0.35-ga93e2dc #1 SMP PREEMPT Mon Oct 28 21:17:43 GMT 2013 armv7l GNU/Linux
     
  4. celtic762

    celtic762 New Member

    Joined:
    Oct 25, 2013
    Messages:
    16
    Likes Received:
    0
    I'm stuck at the third step:

    Code:
    ubuntu@imx6-qsdl:~/kernel$ dir -a
    .  ..  uImage
    ubuntu@imx6-qsdl:~/kernel$ sudo make ARCH=arm UDOO_deconfig
    make: *** No rule to make target `UDOO_deconfig'.  Stop.
    
    
    I'm running a quad that is booting from a sata drive.

    Any ideas that would help a complete noob?
     
  5. voltagex

    voltagex New Member

    Joined:
    Oct 31, 2013
    Messages:
    5
    Likes Received:
    0
    make ARCH=arm UDOO_defconfig

    You had a typo. sudo should not be needed for a kernel compile.

    Wait, are you even in a kernel source directory? Are you compiling on the board, or cross-compiling?
     
  6. tibmeister

    tibmeister New Member

    Joined:
    Oct 20, 2013
    Messages:
    19
    Likes Received:
    0
    Forget cross-compiling, use the Linaro 11.10 image provided as your compiling environment. It greately simplifies many things and get's rid of the errors you are seeing. I have compiled a kernel several times under 12.04, the problem is I can't get ANY custom kernel to boot. I wish that the Udoo team would stick with the GPL license and make the U-Boot source available and make the kernel .config available so that we can help them make the Udoo platform better and on a supported OS.
     
  7. angel

    angel New Member

    Joined:
    Feb 12, 2015
    Messages:
    2
    Likes Received:
    0
    i hav this error . help me out
    user@user-OptiPlex-7010:~/kernel_imx$ export ARCH=arm
    user@user-OptiPlex-7010:~/kernel_imx$ export CROSS_COMPILE=/home/user/wandboard-4.4.2_1-presource/wand-4.4.2_1/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-
    user@user-OptiPlex-7010:~/kernel_imx make wandboard_defconfig
    #
    # configuration written to .config
    #
    user@user-OptiPlex-7010:~/kernel_imx$ make -j6
    make: /home/user/wandboard-4.4.2_1-presource/wand-4.4.2_1/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-gcc: Command not found
    scripts/kconfig/conf --silentoldconfig Kconfig
    make: /home/user/wandboard-4.4.2_1-presource/wand-4.4.2_1/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-gcc: Command not found
    CHK include/linux/version.h
    CHK include/generated/utsrelease.h
    CC scripts/mod/empty.o
    /bin/sh: 1: /home/user/wandboard-4.4.2_1-presource/wand-4.4.2_1/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-gcc: not found
    make[2]: *** [scripts/mod/empty.o] Error 127
    make[1]: *** [scripts/mod] Error 2
    Code:
    
    
    make: *** [scripts] Error 2
    make: *** Waiting for unfinished jobs....
     
  8. vpeter

    vpeter Active Member

    Joined:
    Nov 29, 2014
    Messages:
    303
    Likes Received:
    62
    As you can see you didn't set path correctly - gcc is not there.
     
  9. angel

    angel New Member

    Joined:
    Feb 12, 2015
    Messages:
    2
    Likes Received:
    0
    wr i hav to include -gcc?
    can u plz be specific
    i m struck in this
    i tried export CROSS_COMPILE=/home/user/wandboard-4.4.2_1-presource/wand-4.4.2_1/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-gcc
    also .. i hav the same error:
    make: /home/user/wandboard-4.4.2_1-presource/wand-4.4.2_1/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-gcc-gcc: Command not found
    scripts/kconfig/conf --silentoldconfig Kconfig
    make: /home/user/wandboard-4.4.2_1-presource/wand-4.4.2_1/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-gcc-gcc: Command not found
     
  10. vpeter

    vpeter Active Member

    Joined:
    Nov 29, 2014
    Messages:
    303
    Likes Received:
    62
    You don't have
    Code:
    /home/user/wandboard-4.4.2_1-presource/wand-4.4.2_1/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-gcc-gc
    I don't know what is wrong. Maybe you set wrong path in CROSS_COMPILE?
     

Share This Page