background image

Linux - Debian—Kernel

June 2005

Intel

®

 I/O Processors

Linux-Debian Installation Guide

14

Order Number: 306507001US

Kernel

5

The next step is to build an appropriate kernel. IOP Kernel patches are available at 

http://

sourceforge.net/projects/xscaleiop/

. Grab the latest 2.6 kernel patch, and the corresponding kernel 

source tarball from 

http://www.kernel.org/

The following commands will configure the 2.6.10 IOP kernel for an IQ80331 platform.

$ mkdir ~/work

$ cd ~/work

$ wget 

http://aleron.dl.sourceforge.net/sourceforge/xscaleiop/patch-2.6.10-iop1.bz2

$ wget 

http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.10.tar.bz2

$ tar xjvf linux-2.6.10.tar.bz2

$ cd linux-2.6.10/

$ bzcat ../patch-2.6.10-iop1.bz2 | patch -p1

$ make iq80331_defconfig

– substitute the board name here when it is not the 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 
default setup does not require INITRD support in the kernel so once the base installation is 
complete, it is possible to remove INITRD support from the kernel

$ make menuconfig

– Scroll down to “Block Devices” and press Return.

– Scroll down to “Initial RAM disk (initrd) support” and press the space bar until it is 
selected with an '*'.

– At this point it is necessary to enable other drivers that might be needed.

– Exit all the way out of the menuconfig and save the new kernel configuration.

Now build the kernel

$ make zImage

With a multiprocessor system, increase the speed of the kernel build by allowing make to issue 
multiple jobs at one. A 4-processor system has run;

$ make -j 4 zImage

Now copy the kernel to the TFTP directory

$ cp arch/arm/boot/zImage /tftpboot/zImage.iq80331

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: