ADI Xscale unit toolchain instructions

Donated by Intel

Toolchains for ADI Boards


A new toolchain (newer than the TimeSys Linux toolchain) has been installed in /usr/local/xscalebe/ on all CoC Linux machines. (eg, RH 7.3 based systems) This path is actually a symlink to /net/hp31/adibrh/toolchain/xscalebe/ ... but more on that later. gcc and g++ have been built from gcc-3.2.2 sources, with glibc-2.3.1 and binutils-2.13.90.0.18. These are relatively current releases (as of late March, 2003) of the tools. Some patches have been applied.

NOTE: The toolchain on the rootfs when in the ADI BRH boards is NOT the same as the toolchain that's cross-hosted. The ADI BRH boards are booting the old TimeSys linux rootfs images at present, and these use gcc-2.95.2, glibc-2.1.x, and other ancient software. I'm in the process of replacing this. BE FOREWARNED!


     Building a custom linux kernel

  1. You need to make a target directory in /net/hp31 for your kernel code copy (eg, /net/hp31//kernels)
  2. Make a directory to store bootable kernels (eg, /net/hp31/.../kernels/built)
  3. cp -r /net/hp31/adibrh/kernel-sources/linux-2.4.19-rmk4-ds2 /net/hp31/<..>/kernels
  4. cd /net/hp31/.../kernels/linux-2.4.19-rmk4-ds2
  5. Edit as necessary, run make xconfig, etc, etc
  6. make clean && make dep && make zImage
  7. cp arch/arm/boot/zImage /net/hp31/.../kernels/built/zImage.foo HINT: make "foo" descriptive, like "voltscaling" so that when you have a dozen kernels in your directory, you can tell them apart.
  8. now follow the steps for loading a custom kernel, as above. (Note special instructions for adi1 below.)


     Building your own toolchain


If you want to roll you own toolchain for, say, your home machine, then follow these simple steps.
  1. Build a tarball of /net/hp31/adibrh/toolchain -- excepting only "xscalebe"
  2. Build a tarball of /net/hp31/adibrh/kernel-sources/linux-2.4.19-rmk4-ds2
  3. Copy the default kernel config file of /net/hp31/adibrh/kernel-sources/config.adibrh
  4. Transfer these (very large) files to your home system or some other destination
  5. Mimic the /net/hp31/adibrh tree setup on your home system (you can name it or locate it as you desire.)
  6. Fix the paths in the toolchain/script/build-crosstools.sh script.
  7. Run the toolchain/script/build-crosstools.sh script.
  8. Note you'll probably have to do this twice, configuring the linux kernel part way through. You will also need to fix the path to your cross-hosted toolchain in the linux-2.4.19-rmk4-ds2 top-level Makefile under "CROSS".
  9. If you encounter problems, read the script build-crosstools.sh. It should be self explanatory.