forked from gumstix/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Building Kernel
Philip Trauner edited this page Apr 16, 2017
·
2 revisions
Recommended OS: Ubuntu 17.04 (I don't want to use Ubuntu either, cross-compiling is just simpler)
- Download this repo
apt-get install gcc-arm-linux-gnueabi g++-arm-linux-gnueabi
-
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- oldconfig
- Use the default answer if questions come up
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- modules_prepare
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- zImage modules -j 8
- Mount Wallaby SD card
- Override zImage (
/boot/zImage
on data partition) with the one in/arch/arm/boot
, ignore .dtb's INSTALL_MOD_PATH=../modules make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- modules_install
- Replace
build
folder in../modules/lib/modules/3.18.21-custom/
with the whole kernel source - Symlink
source
to build with relative path
-
cd /lib/modules/3.18.21-custom/build && make scripts
on Wallaby if you want to compile kernel modules