EB675001DIP μCLinux notes |
|
©2004 Simtec Electronics
$Id: uclinux-20030909-notes.html,v 1.2 2006/01/10 20:32:59 vince Exp $
This document outlines how to retrieve, unpack, patch and build the μCLinux distribution for use with the Simtec EB675001DIP module.
The main steps are:
Because of the limitations of μCLinux native compiling is usually not possible, so a cross compiler must be employed, cross compiler tools are typically hosted on a more powerful X86 machine and generate ARM binaries.
A μCLinux toolchain can be obtained from the μCLinux website. and provides all the necessary tools to compile the distribution.
The arm-elf-tools-20030314.sh is the toolchain we have used to build our example images.
To install one of the pre-built uclinux toolchains the downloaded file must be executed as root.
# sh arm-elf-tools-20030314.shthis will install arm-elf-* tools into /usr/local/bin
# tar -xzf uClinux-dist-20030909.tar.gz
# cd uClinux-dist # tar -xjf linux-2.4.24.tar.bz2
# cd linux-2.4.24 # zcat uClinux-2.4.24-uc0.diff.gz | patch -p1
# zcat patch-2.4.24-uc0-eb675001dip.gz | patch -p1 # cd ..
# mv linux-2.4.x linux-2.4.x-orig # ln -s linux-2.4.24 linux-2.4.x
# zcat patch-uclinux20030909-vendor-eb675001dip.gz | patch -p1
# zcat patch-uclinux20030909-uclibc-ioperm.gz | patch -p1
# zcat patch-uclinux20030909-boacss.gz | patch -p1
Ensure the present working directory is the unpacked μCLinux directory
# cd uClinux-distThen make the xconfig target
# make xconfigPerform the following steps in the presented menu
# make dep # makeif successful, this will create the output images image.bin and romfs.img in the images directory.
Download and run on module, using ABLE, the following commands can be issued:
> setargs root=/dev/ram console=ttyS0,115200 ro > load (tftpboot)image.bin (tftpboot)romfs.img > boot
Simtec ElectronicsEmail:info@simtec.co.uk Simtec Electronics, Tel:+44 (0)1772 812863 |