Compile Linux kernel for Beaglebone

TurnToJPG -->

###SourceCode Preparation 1. Get the latest code of beaglebone kernel:

	git clone git://

2. Check for your cross-compiler:

	$ which arm-linux-gnueabi-gcc

3. Start a new branch

	$ git checkout origin/am33x-v3.2 -b am33x-v3.2
	Branch am33x-v3.2 set up to track remote branch am33x-v3.2 from origin.
	Switched to a new branch 'am33x-v3.2'

Since the latest kernel has been moved 3.12, we have to checkout am33x-v3.12

	$ git checkout origin/am33x-v3.12 -b am33x-v3.12

You also have to manually download the latest kernel source code from github:

	$ git clone git://

###Configure everything before compilation Edit the file

	$ cp

The should have following lines:

	echo "Using: Cross Compiler"
	##For TI: OMAP3/4/AM35xx

Then run ./ to see your kernel is under compiling, you will be prompted to asked “make menuconfig”, choose whatever you want.Wait patiently until all of your compilation is done.
###Install kernel Edit the destination for your installation, edit the file “”:

	# or whatever you found in your own system.

Then you simply input ./tools/, you will be asked some questions, answer then and your kernel will be installed to your sd card. Now use the SD card for booting system, you will get a brand-new system. ###Install Filesystem Download the pre-configured filesystems from:

	# For example, download the quantal related image, that's 12.10.
	$ wget
	$ unxz ubuntu-12.10-console-armhf-2013-07-22.tar.xz
	$ tar xvf ubuntu-12.10-console-armhf-2013-07-22.tar

Then insert your SD card, simply input:

	# take BeagleBoneBlack for example:
	$ sudo ./ --mmc /dev/sdX --uboot bone

After setup SD card, using the newly configured SD card for booting up the system, you will get the new system running the pre-configured rootfs.