Skip to content

zoobab/buildroot-beaglebone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Buildroot for the BeagleBone
============================

This README contains basic instructions for creating a system image
for the BeagleBone using Buildroot. The image created is minimal, boots
quickly, is fairly small, but doesn't do much. Packages can easily be
added using Buildroot's "make menuconfig" configuration editor. 

Preparing your system
---------------------

Buildroot requires several packages to be installed on the system 
before it can work. On Ubuntu, the following apt-get line is sufficient:

sudo apt-get install git-core bison flex g++ gettext texinfo libncurses5-dev

Building
--------

Select the Buildroot configuration. Two BeagleBone configurations are
available depending on the desired C library. The uclibc system is
self-contained and builds host-side tools such as the cross-compiler. 
The glibc system requires the TI AM335x SDK to be installed and is a
work in progress. 

To select the uclibc system, run:

make beaglebone_uclibc_defconfig

To build everything, run:

make

The initial build takes a while since many packages need to be downloaded and 
built. The downloads are cached in the dl directory. Subsequent builds are
faster.

The build output is stored in the output/images directory.

Creating a BeagleBone MicroSD card
----------------------------------

The MicroSD card that comes with the BeagleBone is partitioned properly for
the BuildRoot image. To format a new MicroSD card, the following will work:

sudo sfdisk -H 255 -S 63 /dev/XXXXXX << EOF
0,9,c,*
,124
EOF
 
sudo mkfs.vfat /dev/XXXXXX -n boot

Then copy the built images to the SD Card:

# Copy the bootloads and the Linux kernel
cp MLO u-boot.img uImage /media/boot

# Copy the root file system (replace sdd2 with the second partition of right
# device)
sudo dd if=rootfs.ext2 of=/dev/sdd2 bs=128k

Notes
-----

Bring up the ethernet interface: 

# udhcp
 

About

Buildroot additions to support the BeagleBone

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published