background image

Cross Toolchain—Linux - Debian

Linux-Debian Installation Guide

Intel

®

 I/O Processors

June 2005

Order Number: 306507001US

13

Cross Toolchain

4

The next step in building a Linux system for running on Intel XScale

®

 microarchitecture is to 

generate a cross-toolchain for building the kernel and applications from the IA Linux host. 
Currently, we use a toolchain built using the crosstool build scripts (

http://kegel.com/crosstool

). 

We currently build for the armv5l-linux target.

After the latest version of the script is downloaded a couple changes need to be made:

1. Edit the arm-xscale.dat file to change the following line:

TARGET=arm-xscale-linux-gnu

To

TARGET=armv5l-linux

2. Edit the demo-arm-xscale.sh to select which versions of gcc and glibc are to be used. 

Comment out or remove all of the statements starting with "eval `cat" and replace them with 
the following statement:

eval `cat arm-xscale.dat gcc-3.4.3-glibc-2.3.5.dat` sh all.sh --notest 

Change the RESULTS_TOP variable to the directory where the tools are to be installed (the default 
is "/opt/crosstool")

After the changes are made the demo-arm-xscale.sh script needs to be run.  Next, add the /opt/
crosstool/bin (or the path where the tools were built) to your PATH variable.

Summary of Contents for I/O Processor

Page 1: ...Order Number 306507001US June 2005 Intel I O Processors Linux Debian Installation Guide June 2005...

Page 2: ...s or incompatibilities arising from future changes to them Intel processor numbers are not a measure of performance Processor numbers differentiate features within each processor family not across dif...

Page 3: ...Target Firmware Setup 11 4 Cross Toolchain 13 5 Kernel 14 6 Distributions 17 6 1 Installing Debian 18 6 1 1 Installing Debian Stable on a NFS Root File System 18 6 1 2 Initial Debian System Configura...

Page 4: ...Linux Debian Contents June 2005 Intel I O Processors Installation Guide 4 Order Number 306507001US Revision History Date Revision Description June 2005 001 Initial Release...

Page 5: ...tions were validated using an IA host system running Fedora Core 3 The target is an IQ80331 booted in a Cyclone Microsystems PCI Backplane These instructions are also useful to those using a different...

Page 6: ...rimenting with the builds to ensure that all the dependencies are installed NFS server The target system may have its root file system mounted over NFS This is not necessary when the target uses a Fla...

Page 7: ...3 9 gcc 3 4 2 6 fc3 gcc c 3 4 2 6 fc3 grep 2 5 1 31 2 libgcc 3 4 2 6 fc3 lrzsz 0 12 20 19 make 3 80 5 minicom 2 00 0 19 openssh 3 9p1 7 openssh clients 3 9p1 7 openssh server 3 9p1 7 nfs utils 1 0 6 4...

Page 8: ...setup as dfl to save setup as default 6 Select Exit to exit setup and enter minicom 7 Log out as root 2 2 Host Networking Setup These instructions assume there are two ethernet controllers and are us...

Page 9: ...C address here and replace 0 s hardware ethernet 00 00 00 00 00 00 fixed address 192 168 0 100 option host name myiop option root path exports fs xscale Ensure that the var lib dhcp dhcpd leases file...

Page 10: ...e nfs start Ensure that the NFS server will be automatically run at boot time as follows on a Fedora or Mandrake server sbin chkconfig portmap on sbin chkconfig nfslock on sbin chkconfig nfs on When t...

Page 11: ...ons below will vary from board to board Table 1 gives the values for each of the SCD CRBs To download via XModem RedBoot load m xmodem Note download via xmodem board ram install bin redboot srec RedBo...

Page 12: ...ec Then issue the following command sequence RedBoot load m tftp redboot ram srec RedBoot fis unlock f flash addr ram img l img_len RedBoot fis create RedBoot backup f flash addr ram img b ram addr ra...

Page 13: ...s downloaded a couple changes need to be made 1 Edit the arm xscale dat file to change the following line TARGET arm xscale linux gnu To TARGET armv5l linux 2 Edit the demo arm xscale sh to select whi...

Page 14: ...IQ80331 When planning on installing Debian ARM it is necessary to add INITRD support to the kernel Note INITRD support is only necessary for running the installer or when creating INITRD images The de...

Page 15: ...oad r v b kernel load addr zImage iq80331 Using default protocol TFTP Raw file loaded 0x 0x assumed entry at 0x RedBoot exec kernel run addr Using base address 0x and length 0x The boot tags are locat...

Page 16: ...Point Emulator V0 97 double precision Installing knfsd copyright C 1996 okir monad swb de SGI XFS with ACLs security attributes no debug enabled Serial 8250 16550 driver Revision 1 90 4 ports IRQ sha...

Page 17: ...ill likely be inappropriate for installation into a flash disk Applications are typically distributed as precompiled binaries with little configuration of optimization levels etc Some distributions su...

Page 18: ...nd then make sure that the NFS server is exporting the correct directory rm rf exports fs xscale when not caringabout what is there currently mkdir exports fs xscale exportfs rav Now download the inst...

Page 19: ...s step of the installation so an IP address ex 12 34 56 78 is required a domain name ex proxy domain com will NOT work 13 This takes some time since it downloads the base packages and installs them wh...

Page 20: ...teps 5 6 and 15 are not necessary It is necessary to create the resolv conf file on the disk To boot the new Debian NFS root based system issue the following commands at the RedBoot prompt RedBoot lo...

Page 21: ...of this is that for every login there is a prompted to change the password This is because password aging is enabled be default and the date is wrong thus confusing the system 6 1 3 Maintaining System...

Page 22: ...install ntpdate To install and run the NTP daemon issue the following commands apt get install ntp Now we can rerun tasksel and dselect applications to select other programs and finish our installati...

Reviews: