For this tutorial I am using Bananian 16.04
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
After downloading the source code of kernel, you can swap the files with your own modified version.
Then we can continue building the kernel.
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-devgit clone https://github.com/Bananian/linux-bananapi
cd linux-bananapiAfter 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
Comments
Post a Comment