The project which I am currently working on requires building self-modified kernel. Here is how it goes.
After installing to your SD card. (Use dd for Linux, diskutil for mac)
Expand the root file system using "bananian-config"
Update your system apt-get update && apt-get upgrade
Install packages
apt-get install git
apt-get install build-essential u-boot-tools uboot-mkimage
apt-get install cmake fakeroot kernel-package zlib1g-dev libncurses5-dev
git clone https://github.com/Bananian/linux-bananapi
cd linux-bananapi
After downloading the source code of kernel, you can swap the files with your own modified version.
Then we can continue building the kernel.
make menuconfig
make sun7i_defconfig
make -j2 uImage modules
make modules_install
mount /dev/mmcblk0p1 /mnt
cp arch/arm/boot/uImage /mnt
sync
umount /mnt
reboot
No comments:
Post a Comment