Nokia N900 >> Native Debian >> Kernel 4.9.0

build kernel 4.9.0


Debian x64

$ sudo apt-get install gcc-arm*
$ cd
$ 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 (Kernel: lib/modules/4.9.0)

$ cd 
$ wget https://github.com/steward-fu/n900/releases/download/v1.0/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

完成


返回上一頁