Wednesday, September 2, 2015

BBB: Kernel - Source code and Cross Compiling

BBB Linux Kernel:
1) Download tool chain
Arm GCC build tool: Linaro
https://wiki.linaro.org/WorkingGroups/ToolChain

2) Download kernel for beagleboard
git clone git://github.com/beagleboard/kernel.git

3) Cross compiling

cd kernel
git checkout 3.8
./patch.sh

cp configs/beaglebone kernel/arch/arm/configs/beaglebone_defconfig

wget http://arago-project.org/git/projects/?p=am33x-cm3.git\;a=blob_plain\;f=bin/am335x-pm-firmware.bin\;hb=HEAD -O kernel/firmware/am335x-pm-firmware.bin

cd kernel
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- beaglebone_defconfig
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- uImage dtbs
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- uImage-dtb.am335x-boneblack
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- modules


No comments:

Post a Comment