Difference between revisions of "Kernel compiling"

From odroid US
Jump to: navigation, search
Line 11: Line 11:
 
mv linux-odroid* linux
 
mv linux-odroid* linux
 
cd linux</pre>
 
cd linux</pre>
make sure to select the right config for your device in the next step:
+
make sure to select the right config for your device in the next step.
 +
these are currently available (2013-01-11):
 +
<pre>
 +
odroidq2_android_defconfig
 +
odroidq_android_defconfig
 +
odroidq_ubuntu_defconfig
 +
odroidu2_android_emmc_defconfig
 +
odroidu2_android_sdmmc_defconfig
 +
odroidu2_ubuntu_defconfig
 +
odroidu_android_emmc_defconfig
 +
odroidu_android_sdmmc_defconfig
 +
odroidu_ubuntu_defconfig
 +
odroidx2_android_emmc_defconfig
 +
odroidx2_android_sdmmc_defconfig
 +
odroidx2_ubuntu_defconfig
 +
odroidx_android_42Inch_demo_defconfig
 +
odroidx_android_emmc_defconfig
 +
odroidx_android_sdmmc_defconfig
 +
odroidx_ubuntu_defconfig</pre>
 
<pre>
 
<pre>
 
cp arch/arm/configs/odroidx2_ubuntu_defconfig .config
 
cp arch/arm/configs/odroidx2_ubuntu_defconfig .config

Revision as of 11:51, 11 January 2013

WATCH THE SIZE OF YOUR BOOT PARTITION, MAYBE YOU HAVE TO DELETE SOME OF THE BACKUP FILES!

DO THIS ON YOUR ODROID, NOT ON YOUR PC!

you can easily build the kernel on your own:

wget https://github.com/hardkernel/linux/archive/odroid-3.0.y.zip
mv odroid-3.0.y.zip /usr/src/linux.zip
apt-get install p7zip-full
cd /usr/src
7z x -y linux.zip > /dev/null
mv linux-odroid* linux
cd linux

make sure to select the right config for your device in the next step. these are currently available (2013-01-11):

odroidq2_android_defconfig
odroidq_android_defconfig
odroidq_ubuntu_defconfig
odroidu2_android_emmc_defconfig
odroidu2_android_sdmmc_defconfig
odroidu2_ubuntu_defconfig
odroidu_android_emmc_defconfig
odroidu_android_sdmmc_defconfig
odroidu_ubuntu_defconfig
odroidx2_android_emmc_defconfig
odroidx2_android_sdmmc_defconfig
odroidx2_ubuntu_defconfig
odroidx_android_42Inch_demo_defconfig
odroidx_android_emmc_defconfig
odroidx_android_sdmmc_defconfig
odroidx_ubuntu_defconfig
cp arch/arm/configs/odroidx2_ubuntu_defconfig .config

ncurses:

apt-get install ncurses-dev
make menuconfig

GUI:

apt-get install qt4-dev-tools
make xconfig

change everything to your needs (use / for searching)

make -j8
make modules_install
make zImage
mount -o bind /media/boot/ /boot
cp /media/boot/zImage /media/boot/zImage.prev
cp /media/boot/uInitrd /media/boot/uInitrd.prev
cp arch/arm/boot/zImage /media/boot
cp .config /boot/config-3.0.51

optionally:

cp System.map /boot/System.map-3.0.51

NOT optional:

mkinitramfs -c gzip -o ./initramfs-3.0.51 3.0.51
mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n initramfs -d ./initramfs-3.0.51 ./uInitrd
cp uInitrd /media/boot

halt:

shutdown -h 0

power cycle after that.