步驟如下:
$ cd $ sudo apt-get install gcc-arm* $ git clone https://github.com/pali/linux-n900 $ cd linux-n900 $ git checkout v4.9-n900 $ ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- make rx51_defconfig $ ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- make menuconfig
編譯
$ ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- make zImage dtbs modules $ INSTALL_MOD_PATH=out ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- make modules_install
uImage
$ cat arch/arm/boot/dts/omap3-n900.dtb >> arch/arm/boot/zImage $ mkimage -A arm -O linux -T kernel -C none -a 80008000 -e 80008000 -n uImage -d arch/arm/boot/zImage uImage
initird.img
$ cd $ wget https://github.com/steward-fu/website/releases/download/n900/jessie-boot.tar.gz $ tar xvf jessie-boot.tar.gz $ cd debian8 $ mkdir unpack $ cd unpack $ zcat ../initrd.img-4.9.0 | cpio -idmv lib/modules/4.9.0 $ find . | cpio -o -c | gzip -9 > ../new_initrd.img
uInitrd
$ mkimage -A arm -T ramdisk -C none -a 0 -e 0 -n uInitrd -d new_initrd.img uInitrd