The Siap-uClinux Kernel
4-2 AT75C220-DK-SMEC Dev Board User Guide
An important location is where the application read-only file system is stored. This is
under prods/at75c220dk-smec/romdisk/romdisk. Change to this directory to find the
exact image of the read-only part of the application. This includes the target bin, dev and
lib sub-directories. As explained in Section 2, the bin directory should contain all the
executable files required by the application. These files are updated each time the appli-
cations are compiled (see Section 4.3).
4.2 Building the
Kernel
The siap-uClinux software set is delivered with a pre-fabricated kernel. However, the
user may develop one himself. This is necessary if the kernel is to be used in a specific
application and particularly if the device drivers are created or customized, as they are
part of the kernel.
To clean up all the results of previous compilations in the siap-uClinux software set,
change to the siap-uClinux software set root directory and type:
host-PC> make PRODUCT=at75c220dk-smec clean
After this step, all the binaries and object files are erased and only sources are pre-
served. The kernel can then be re-constructed by typing:
host-PC> make PRODUCT=at75c220dk-smec linux
Compilation may require several minutes.
The result is a file executable by the siap-uClinux kernel named linux/linux.bin. Note that
variants of this file are also produced with other convenient formats (linux/linux contains
debug symbols, linux/linux.bin.gz is compressed).
4.3 Building the
Applications
As described in Section 4.1, the source code of all applications to be installed on the tar-
get system must reside in the apps directory. The process of building the applications
compiles all the sources, copies the binary code into the bin subdirectory of the applica-
tion image directory and constructs a new Flash image file. The Flash image file is a
binary dump of the Flash memory of the target system. It can be used directly by the
Flash programming software (see Section 5).
In general, application code contains references to one or more libraries (e.g., libc).
Before compiling applications, it necessary to build and install the libraries. This step is
carried out only once unless the developer modifies the libraries themselves.
Note, however, that modification of the libraries is not recommended.
To build and install the libraries, change to the siap-uClinux root directory, and type:
host-PC> make PRODUCT=at75c220dk-smec libc
Then type:
host-PC> make PRODUCT=at75c220dk-smec installibs
Note that this requires root privileges since the libraries are installed under the /usr
directory of the system.
1789A–11/01