Previous Up Next

2  Configuration and Build Process

After downloading the release file (see [1] for details), please unpack it and cd into the new directory. All operations should be done as normal user to avoid conflicts with you native libraries and programs!

ab@mycable> tar -jxvf jade_rootfs_build-0.8.4.tar.bz2
ab@mycable> cd jade_rootfs_build-0.8.3/

With only four commands you start the entire build process:

ab@mycable> autoconf (only if sources from subversion)
ab@mycable> ./configure
ab@mycable> make menuconfig (--> exit)
ab@mycable> make

The build system will check now if the ARM toolchain is available at the expected location in ~/opt/crosstool/gcc-4.2.3-glibc-2.7/. If not, it will start to compile the toolchain first which may take about one hour depending on your hardware and your internet connection.

To follow the progress you can tail the buildinfo.txt:

tail -f buildinfo.txt

There are two options to clean the source-trees:

ab@mycable> make clean
ab@mycable> make distclean

Simple clean will do a "make clean" in every source package. The distclean option will remove the entire source package. If you call make again, the packages will be unpacked and patched again.

The clean-options won’t affect the built and installed toolchain!

2.1  Toolchain

The used cross-toolchain supports already the new "Embedded" ABI (EABI) by ARM ltd. (See e.g. http://wiki.debian.org/ArmEabiPort). If the kernel is compiled for EABI and OABI (old ABI) support, it can handle both binary types. Mixing soft and hardfloat code is possible and should be much faster.

With Dan Kegels crosstool-0.43 and minor patches for NPTL it is possible to build a toolchain with:

The CROSS_COMPILE-prefix is arm-unknown-linux-gnueabi-.

2.2  Kernel

The kernel is based on vanilla-2.6.22.19. You may obtain it from http://www.kernel.org or local mirror (e.g. for Europe: http://www.eu.kernel.org).

The patches for the Jade-processor and the extension boards are in this package in ./patches/xxsvideo/linux-2.6.22.19/.

There is alternative kernel version 2.6.27.21. We try to keep them up-to-date both.

2.3  Rootfile-System

Core component of the rootfile-system is the busybox. Dropbear is used as sshd. The created image is in jffs2-format for the NOR-flash on the XXSvideo-board.

2.4  u-boot

The used bootload is a patched version of u-boot 1.3.0. The u-boot project web-site is http://www.denx.de/wiki/UBoot/WebHome and the download resource ftp://ftp.denx.de/pub/u-boot/.

The mycable patches are part of the build system and are located in ./patches/u-boot-1.3.0.

————————-
©mycable GmbH, 8thMay, 2009
Previous Up Next