December 7, 2013

Getting the kernel sources

My BBB is running the 3.8.13 kernel for the ARM armv7l architecture.

The following link explained how to get the kernel sources:

What I did was this:
git clone git://github.com/beagleboard/kernel.git
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
mkdir rootfs

The first git clone is very fast and just gets the patch.sh script,
which does the serious work.  I did not do the following because I have
not set up an arm cross compiler on the machine I am using to host these
files (which I simply want to examine, not build a kernel from).

cd kernel
make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- beaglebone_defconfig
make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- -j4 uImage dtbs
make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- -j4 modules
make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- INSTALL_MOD_PATH=$HOME/kernel/kernel/rootfs modules_install
make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- uImage-dtb.am335x-bone
make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- uImage-dtb.am335x-boneblack

Feedback? Questions? Drop me a line!

Tom's Computer Info / tom@mmto.org