EBC Exercise 08 Installing Development Tools 3.8

From eLinux.org
Revision as of 05:12, 22 October 2012 by Yoder (Talk | contribs) (Installing on a Remote Machine: Moved to own page)

Jump to: navigation, search

thumb‎ Embedded Linux Class by Mark A. Yoder

Early in the class most of the exercises we will do will all run on the BeagleBoard. You'll be able to edit (gedit), compile (gcc) and run all on the Beagle. Later, when we start compiling the kernel [1] or the boot loader, (U-boot) you will need to cross compile on a Linux machine and copy the results to the Beagle.

The purpose of this exercise is to install all the tools needed for compiling on your host so they will be ready when you need them.

Instructions for building Ångström are given here; however there are a few changes you have to make. Here's what I did.

Tip: Run this exercise using a wired connection if you can. The Ubuntu wireless driver can be finicky, and if it stops working you'll have to restart some of this.

Install development environment v2

Follow these v2 instructions. They work for the 3.2.25 kernel.

Using Jason's instructions

These are notes on following instructions Beagleboard kernel git site.

host$ sudo apt-get install -y git lzop gcc-arm-linux-gnueabi uboot-mkimage

25 seconds

host$ git clone git://github.com/beagleboard/kernel.git

2.5 seconds

host$ ./patch.sh

38.5 minutes

host$ make -j9

4 minutes

host$ make uImage

18 seconds

host$ make uImage
host$ mkdir ~/kernel/rootfs
host$ make INSTALL_MOD_PATH=~/kernel/rootfs modules_install
host$ cd

12 seconds

host$ scp kernel/kernel/arch/arm/boot/uImage root@beaglebone.local:/boot/uImage-3.2.25+

10 seconds

host$ cd kernel/rootfs
host$ find -H -depth | cpio -o -H crc | ssh root@beaglebone.local 'cd /; cpio -id' 

1 minute 16 seconds

host$ cd
host$ ssh root@beaglebone.local 'cd /boot; rm uImage' 
host$ ssh root@beaglebone.local 'cd /boot; ln -s uImage-3.2.25+ uImage'
host$ ssh root@beaglebone.local 'mount /dev/mmcblk0p1 /mnt'
host$ ssh root@beaglebone.local 'cp /boot/uImage-3.2.25+ /mnt/uImage'

Download and Compile U-boot

While were' at it, let's get the boot loader we'll be using...

host$ git clone git://git.denx.de/u-boot.git

Mine took about 3 minutes.

Once installed you are ready for kernel work.

thumb‎ Embedded Linux Class by Mark A. Yoder