Compile The Linux Kernel And The Modules

Discussion in 'Kernels' started by TonTon, Aug 22, 2015.

  1. TonTon

    TonTon New Member

    Joined:
    Aug 3, 2015
    Messages:
    19
    Likes Received:
    1
    Hi ! all,

    I have compiled the Linux Kernel and the modules based on http://www.udoo.org/docs/Advanced_Setup/Compile_The_Linux_Kernel_And_The_Modules

    When I use this command:
    make -j4 CROSS_COMPILE=../arm-fsl-linux-gnueabi/bin/arm-fsl-linux-gnueabi- ARCH=arm uImage modules

    It's looks like good, however I can't find uImage in arch/arm/boot/

    Screenshot from 2015-08-23 06:50:46.png

    Could somebody please give me an instruction ?

    Thank you !
     
  2. vpeter

    vpeter Active Member

    Joined:
    Nov 29, 2014
    Messages:
    303
    Likes Received:
    62
    Run again with make -j1 and you should spot some error.
     
  3. TonTon

    TonTon New Member

    Joined:
    Aug 3, 2015
    Messages:
    19
    Likes Received:
    1
    Hello ! many thanks for your reply again !!!!!

    I tried to use these command:
    make CROSS_COMPILE=../arm-fsl-linux-gnueabi/bin/arm-fsl-linux-gnueabi- ARCH=arm uImage modules
    and (select all default options)
    make -j1 CROSS_COMPILE=../arm-fsl-linux-gnueabi/bin/arm-fsl-linux-gnueabi- ARCH=arm uImage modules

    I got these result:
    Screenshot from 2015-08-23 16:07:26.png

    BTW, I only have used this command: make menuconfig to edit these two options:
    1.) IP: DHCP Support & IP: kernel level autoconfiguration
    Screenshot from 2015-08-20 19:39:59.png

    2.) Network File System --> Root File System on NFS
    Screenshot from 2015-08-23 16:33:13.png

    Also, I have tried follow these " build kernel " on this page:
    http://www.udoo.org/docs/Advanced_Setup/Compile_Android_From_Sources

    make bootimage
    Screenshot from 2015-08-23 17:42:05.png
     
  4. vpeter

    vpeter Active Member

    Joined:
    Nov 29, 2014
    Messages:
    303
    Likes Received:
    62
    You forgot to run command
    make ARCH=arm UDOO_defconfig

    because all this is already enabled.
     
  5. TonTon

    TonTon New Member

    Joined:
    Aug 3, 2015
    Messages:
    19
    Likes Received:
    1
    Hello, thank you !

    I use these command
    make ARCH=arm UDOO_defconfig
    and
    make -j1 CROSS_COMPILE=../arm-fsl-linux-gnueabi/bin/arm-fsl-linux-gnueabi- ARCH=arm uImage modules

    then get this result (I think it's a correct result)
    Screenshot from 2015-08-23 22:50:09.png

    However, when I tried build kernel with udoo-android-dev, again
    http://www.udoo.org/docs/Advanced_Setup/UDOO_Boot_From_SATA

    # make ARCH=arm imx6_udoo_android_defconfig
    or
    # make ARCH=arm UDOO_defconfig

    I got this result !!!
    Screenshot from 2015-08-23 23:32:04.png

    Could you please tell me why the same command get the different result ?

    Thank you !!!!
     
  6. vpeter

    vpeter Active Member

    Joined:
    Nov 29, 2014
    Messages:
    303
    Likes Received:
    62
    Because kernel used for Android is not the same as for Linux.
     
  7. TonTon

    TonTon New Member

    Joined:
    Aug 3, 2015
    Messages:
    19
    Likes Received:
    1
    sorry for my stubid question .... Orz

    How to build kernel for Android ... if I modified the NFS options as the above post ?

    I have not get uImage when I follow the http://www.udoo.org/docs/Advanced_Setup/Compile_Android_From_Sources

    Anyone know how to build a correct kernel for udoo and boot from nfs ?
     
    Last edited: Aug 23, 2015
  8. TonTon

    TonTon New Member

    Joined:
    Aug 3, 2015
    Messages:
    19
    Likes Received:
    1
    Now, I re-download and re-compile the UDOO_Android_4.4.2_Source_v1.0.tar.gz
    and then follows this page: http://www.udoo.org/docs/Advanced_Setup/Compile_Android_From_Sources

    Every section (including build u-boot, kernel, Android system, make bootimage etc...)

    I also have check my dhcp, nfs, tftp on my linux host which are successes.

    my u-boot config are:
    bootargs 'console=ttymxc1,115200n8 root=/dev/nfs rw rootfstype=nfs nfsroot=192.168.0.100:/nfsroot video=mxcfb0:dev=hdmi,1024x768M@60,bpp=16'
    bootcmd 'nfs 0x12000000 192.168.0.100:/androidudoo/uImage; bootm 0x12000000'

    Finally, Starting Kernel pass ... but get this error .... (I have tried use another Linux to mount this host's nfs, it is successed)
    Anyone know how to check nfs state of U-Boot ? or build kernel config ?
    Thank you !
    Screenshot from 2015-08-24 22:39:28.png
     

Share This Page