Download Print this page

Sharp Zaurus SL-C3000 Instruction Manual page 94

Zaurus pda instruction manual
Hide thumbs Also See for Zaurus SL-C3000:

Advertisement

my Zaurus SL-C3000 and SL-C3100
of DSL made by speculatrix. You can download is from
There are several on-board development images as well, but none had everything I needed, so I
built my own on-board development environment based on the zgcc 2.95.2 cramfs image
(zgcc2Bin.cramfs) which is derived from the Debian arm distribution. My zgcc development image
(zgcc2-95-2-lite) comes in a single cramfs image and includes necessary headers and libraries to
compile and build console based applications, Qtopia applications (QT/E 1.5) as well as kernel
modules for the 2.4.20 kernel. This image is as small as it gets and does not include
documentation.
I also made a bigger image (zgcc2-95-2) which is compressed as a squashfs image instead to save
space. This larger image includes X11 headers and libraries and supports compiling X/Qt
applications, especially pdaXqtrom (in fact pdaXqtrom was build using it). It can build many of the
opensource applications, both console and X based ones while also retaining the ability to build Qt/E
1.5 applications.
In addition, I also build a newer and even bigger image based on gcc 2.95.3 and a host of updated
tools including binutils 2.16, autoconf 2.59, automake 1.9.2, coreutils 5.0, diffutils 2.8.1, gawk
3.1.5, grep 2.5, sed 4.0.9, tar 1.15, texinfo 4.8. A patched glibc 2.2.2 is also bundled and used to
link against so applications requiring fesetenv/fegetenv can be successfully compiled with this
image. Additionally, this image also contains additional headers and libraries as well as tools to
build QT 3.3.6 applications under X11.
The zgcc image that I build is very simple to setup. All you need to do is mount the cramfs or
squashfs image and run zgcc-config. Here is an example for a squashfs image:
# su
# mkdir -p /mnt/zgcc
# mount -o loop /hdd3/zgcc2-95-2.squashfs /mnt/zgcc
# echo "/hdd3/zgcc2-95-2.squashfs /mnt/zgcc squashfs loop 0 0" >> /etc/fstab
# /mnt/zgcc/zgcc-config
# source /mnt/zgcc/zgcc-env
Note: You should install automounter [automounter-c3000_0.5.0_arm.ipk] which automates the
creation of additional loop devices and mounting of the cramfs/squashfs images.
Your zgcc is now ready and should get automatically mounted after each reboot (provided you
installed automounter, otherwise you will need to mount it manually) and the environment should
also be set for you automatically each time you start a new terminal session as the zaurus user.
Temporary files during compilation go to /tmp by default, which will give you problems with larger
compiles since the Sharp distro has a size of 1MB for /tmp. The easiest way to fix this is to set the
TMPDIR variable and point it to somewhere with more space such as /hdd2/tmp.
# mkdir -p /hdd2/tmp
# export TMPDIR=/hdd2/tmp
The zgcc development image also comes with some simple samples. There is a console helloworld
application and a sample Makefile to compile it. I also included a hello-qt sample which
demonstrates a simple Qtopia version of helloworld. And last but not least, I also included a sample
driver module and Makefile to test building kernel modules.
tmake also works for generating Makefile for Qtopia applications. You can even use configure to
generate the Makefile for compiling source packages for various Linux ports and projects, in
particular X/Qt and pdaXqtrom sources. Perl and xml-parser is also bundled with the larger images.
If you su to root user, then the environment variable for gcc are not set automatically. This was
done on purpose. If you want to enable gcc for the root user temporarily, then do the following:
# source /mnt/zgcc/zgcc-env
94 of 212
http://www.users.on.net/~hluc/myzaurus/
http://www.zaurus.org.uk/downloads.html
16/09/2007 12:23

Advertisement

loading

This manual is also suitable for:

Zaurus sl-c3100