Difference between revisions of "Hammer How to buildroot"

From eLinux.org
Jump to: navigation, search
Line 31: Line 31:
  export PATH=$(pwd)/buildroot/build_arm/staging_dir/bin:${PATH}
  export PATH=$(pwd)/buildroot/build_arm/staging_dir/bin:${PATH}
Now [[Hammer_How_to_build_Kernel|build the kernel]]
Now [[Hammer_How_to_build_Kernel|build the kernel]].

Revision as of 03:24, 10 January 2008

The following steps were successful using the Gutsy Gibbon release (7.10) of ubuntu. All commands are executed from the command line.

First, you need to install the compilers and tools.

sudo apt-get install build-essential libncurses-dev bison flex texinfo zlib1g-dev gettext libssl-dev wget

Decide where you're going to build everything. I decided to create a directory called hammer in my home directory.

cd ~
mkdir -p hammer/source
cd hammer/source

Note: these files are also found on the cd shipped with your Hammer_Board under the hammer/source directory

Grab the latest files (these were from the Hammer_Board_Software page). This assumes that you're still in the source directory

wget http://www.elinux.org/images/4/4c/Buildroot-01032008.tar.gz
wget http://www.elinux.org/images/f/ff/Hammer-linux-2.6.22-09122007.diff.gz
wget http://www.elinux.org/images/e/ef/Hammer-kernel-config
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.22.tar.gz

Build buildroot

tar xzf Buildroot-01032008.tar.gz
cd buildroot
cp Hammer-config .config
make oldconfig
cd ..

Add the cross compiler tools into your path. You may want to add this to your ~/.bashrc, although you should replace $(pwd) with the absolute path to your hammer/source directory.

export PATH=$(pwd)/buildroot/build_arm/staging_dir/bin:${PATH}

Now build the kernel.