Running Gentoo on BeagleBone

From Tim's Wiki
Jump to: navigation, search

These are instructions on how to compile and load Gentoo on a BeagleBone with OS X.

Install cross-compiler

sudo port install arm-none-eabi-gcc
sudo port install libelf # <- maybe not necessary?
cd /usr/include
sudo wget http://www.swissdisk.com/~bcollins/macosx/elf.h

Compile U-Boot

wget ftp://ftp.denx.de/pub/u-boot/u-boot-latest.tar.bz2
tar xjvf u-boot-latest.tar.bz2
cd u-boot-*
make ARCH=arm CROSS_COMPILE=arm-none-eabi- am335x_evm_config
make ARCH=arm CROSS_COMPILE=arm-none-eabi-

Compile Kernel (vanilla kernel doesn't work as of November 2012, in progress)

git clone git://arago-project.org/git/projects/linux-am33x.git
cd linux-am33x
# find up-to-date branch
git branch -a
git checkout -f v3.2-staging
# download firmware
wget "http://arago-project.org/git/projects/?p=am33x-cm3.git;a=blob_plain;f=bin/am335x-pm-firmware.bin;hb=HEAD" -O firmware/am335x-pm-firmware.bin
make ARCH=arm CROSS_COMPILE=arm-none-eabi- am335x_evm_defconfig
make ARCH=arm CROSS_COMPILE=arm-none-eabi- menuconfig
# change options if necessary (in particular file-system drivers and default CPU frequency scaling algorithm)