Philips Philips Semiconductors, ISP1362 Linux Stack User’s Guide, arm_toolchaintar.bz2, 16 of

Models: ISP1362

1 35
Download 35 pages 27.09 Kb
Page 16
Image 16

Philips Semiconductors

ISP1362 Linux Stack User’s Guide

#cp

/mnt/cdrom/tools/tool_chain/arm_toolchaintar.bz2 /

#cd

/

 

#tar jxvf arm_toolchaintar.bz2

(Older versions of tar might not accept this, then try using #tar Ixvf

arm_toolchaintar.bz2)

 

Be careful about the root directory of the ARM cross compiler. arm-linux-gcc will invoke cpp0 and cc1 assuming they reside in certain directories relative to the compiler’s root directory. To be on the safe side, unzip the ARM tool chain in the root directory /.

Copy the utilities bin2bin, foxfox, mkfs.jffs2, padkernel.py from tools\utils directory of Accelent CD to your execution path (like maybe /bin). These tools are needed to prepare Linux kernel and root file system for loading into the target.

#cp /mnt/cdrom/tools/utils/* /bin

#cd /bin

#chmod +x bin2bin foxfox mkfs.jffs2 padkernel.py

3.3.2.10.Linux Kernel source

The Linux kernel can be installed in to the PC host from the source code provided by the Accelent CD. Copy the source code (linuxtar.bz2) from Accelent CD to known directory (example /usr/src).

#cd /usr/src

#bzip2 –cd /mnt/cdrom/source/linuxtar.bz2 tar xfv –

#mv linux-2.4.18-rmk3-pxa2-asi1 /usr/src/linux-otg

Copy the ISP1362 stack related source to the kernel directory (isp1362_linux_sw_stack.tar.gz). Apply the ISP1362 specific kernel patch, otg_kernel_patch_rev2 from the ISP1362 Linux stack release to kernel source.

#cd /usr/src/linux-otg

#tar –zxvf isp1362_linux_sw_stack.tar.gz

#patch -p1 <1362/misc/accelent_rev2/otg_kernel_patch_rev2

3.3.2.11.Root File System

Root file system for the IDP is provided in the Accelent CD. Copy the root file system rootfstar.bz2 to the /usr/src/linux-otgdirectory.

#cp /mnt/cdrom/source/rootfstar.bz2 /usr/src/linux-otg

UM10012-_2

 

© Koninklijke Philips Electronics N.V. 2003. All rights reserved.

User’s Guide

Rev. 1.2—July 2003

16 of 34

Page 16
Image 16
Philips manual Philips Semiconductors, ISP1362 Linux Stack User’s Guide, arm_toolchaintar.bz2, Rev. 1.2—July2003, 16 of