BBB Rebuilding Kernel

From Wiki
Jump to: navigation, search

Rebuilding Kernel

http://eewiki.net/display/linuxonarm/BeagleBone+Black

I was unable to build the kernel on the BBB itself. I ended up creating a Lubuntu VM under Paralells.

At the top of the page, it's indicated that you'll need to install the GCC ARM cross-compiler. This may be true if you're building U-Boot or something else, but the kernel builder specifically installs the Linaro 1.13.1-4.7-2013.04-20130415 tool chain for building the kernel.

When building the kernel, you do not need to be root. Everything is done in a directory called 'linux-dev' that's created in the current directory when the 'git' command is executed.

Note that the first time 'build_kernel.sh' is run, it may indicate there are missing Debian packages that need to be installed via apt-get. Do what it says.

To build latest 3.13 kernel:

git clone git://github.com/RobertCNelson/linux-dev.git
cd linux-dev
git checkout origin/am33x-v3.13 -b tmp
./build_kernel.sh

To build latest 3.8 kernel (bone36 as of 2014/01/16)

git clone git://github.com/RobertCNelson/linux-dev.git
cd linux-dev
git checkout origin/am33x-v3.8 -b tmp
./build_kernel.sh

To build 3.8.13-bone32

git clone git://github.com/RobertCNelson/linux-dev.git
cd linux-dev
git checkout 3.8.13-bone32 -b tmp
./build_kernel.sh

Other available releases: https://github.com/RobertCNelson/linux-dev/releases