Tuesday, January 30, 2018

Bananian Kernel Building

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
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

The Good, the Bad, and the Ugly of Working as a Software Engineer at AWS

After 5 incredible years at AWS, I have recently decided to join Zscaler. Working at Amazon Web Services is like being on a roller coaster y...