Yet another set of notes on building BeagleBone kernel

This is for building the current “production” 3.8 kernel. I’ll follow-up with building a mainline kernel in a few days. I’m only documenting this here temporarily to see if there really are any gaps in the kernel build documentation that are causing people to stumble. I got a query on #beagle yesterday that I haven’t been able to reproduce and I want to share all my steps here just in case someone can find out where some issue is at.

This was run on an Ubuntu 12.04 machine:

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.3 LTS"
$ uname -a
Linux ip-10-228-35-177 3.2.0-54-virtual #82-Ubuntu SMP Tue Sep 10 20:31:18 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

Here are the steps I took.


sudo apt-get install gcc-arm-linux-gnueabihf lzop pastebinit ncurses-dev
git clone git://git.denx.de/u-boot.git
cd u-boot
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- am335x_evm_config
cp tools/mkimage ~/bin
cd
git clone git://github.com/beagleboard/kernel
cd kernel
git checkout 3.8
./patch.sh
cd kernel
cp ../configs/beaglebone .config
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- menuconfig

I added the ALSA SoC drivers as modules to match the users’ supposedly desired configuration.


make -j8 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- uImage dtbs modules
pastebinit .config

The resulting config file is at http://paste.ubuntu.com/7588376/

About these ads

5 thoughts on “Yet another set of notes on building BeagleBone kernel”

  1. Hi Jason,

    A few questions regarding these instructions:

    Is the config file now “am335x_evm_defconfig” for the first make line?

    I see a mkimage.c and mkimage.h in tools, was this supposed to get made in the previous step?

    Thank you for your time!

  2. thanks,

    maybe not still useful but these bracket tags will format code on wordpress.com anyway:

      var js = "will have numbered lines and no wrap";  
      console.log(js);
    
      root@beaglebone:echo "no line numbers but still no wrap"
    
  3. Oops, they even work in the comment, here is the markdown with html codes for the square brackets
    [code language=”css” htmlscript=”true”]
    var js = “will have numbered lines and no wrap”;
    console.log(js);
    #91;/code#93;

    #91;code language=”css” gutter=”false”#93;
    root@beaglebone:echo “no line numbers but still no no wrap”
    #91;/code#93;

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s