User manual

Linux Guide taskit GmbH
Then go to the busybox directory: cd /develop/sysapps/busybox-1.00 .
You can configure the make options using a graphical interface by entering:
make menuconfig
You can select individual commands and features here.
Enter the path to the cross-compiler under „Build options1“ (normally /usr/bin ). You also
need to enter the path to the root file system ( /develop/rootfs in this example) under
„Installation options“.
Finish by compiling and installing:
make dep
make
make install
The functionality of the TinyLogin package has been integrated into newer versions of
Busybox. If you select these functions (e.g., passwd etc.) in the configuration, the compiled
Busybox binary must have setuid root permissions in order for these applets to work
correctly.
chmod 4755 /develop/rootfs/bin/busybox
As an alternative, you can install TinyLogin separately and leave out the section
Login/Password Management Utilities in the Busybox configuration.
7.3. Installing the MTD-utilities
The MTD (memory technology devices) utilities are required for partitioning, copying and
erasing the flash memory.
To be able to install the MTD utilities on the target system, you need the compression
library zlib.
Copy zlib from the software CD and unpack it:
cp /dev/cdrom/build-tools.tgz /tmp (where /dev/cdrom is the starterkit-CD)
tar -xzvf build-tools.tar
mv /tmp/build-tools /develop
Then go to the directory and set it up to compile:
cd /develop/build-tools/zlib-1.2.1/
CC=arm-linux-3.4.2-gcc LDSHARED=“arm-linux-3.4.2-gcc -shared“
./configure –shared
The variable CC sets the cross-compiler and zlib is compiled as a dynamic library by
setting LDSHARED.
Next, compile zlib and install it in the directory indicated by prefix:
make
make prefix=/usr/arm-linux/lib install
After the library has been installed, you can copy it to the target system:
cd /usr/arm-linux/lib
cp -d libz.so* /develop/rootfs/lib
Now you can install the MTD utilities (skip these steps if you have already installed the
busybox before):
cp /dev/cdrom/sysapps.tgz /tmp
tar -xzvf sysapps.tar
Page 23 of 65 Version 1.26 (2008-04-30)