- Test board: aesop-2440a
- 2006.02.06
- godori from http://www.aesop-embedded.org
download source: xfree86_4.4.0_for_aesop2440a.zip
1. toolchain link to cross toolchain arm-linux/bin
ln -s /korea-dokdo/aesoptool/gcc-3.3.4-glibc-2.3.3/arm-linux/bin/arm-linux-cpp /korea-dokdo/aesoptool/gcc-3.3.4-glibc-2.3.3/arm-linux/arm-linux/bin/cpp
ln -s /korea-dokdo/aesoptool/gcc-3.3.4-glibc-2.3.3/arm-linux/bin/arm-linux-gcc /korea-dokdo/aesoptool/gcc-3.3.4-glibc-2.3.3/arm-linux/arm-linux/bin/cc
2. source unzip & untar
gzip -d < XFree86-4.4.0-src-1.tgz | tar xf -
gzip -d < XFree86-4.4.0-src-2.tgz | tar xf -
gzip -d < XFree86-4.4.0-src-3.tgz | tar xf -
// one line command...^^
gzip -d < XFree86-4.4.0-src-1.tgz | tar xf - ;gzip -d < XFree86-4.4.0-src-2.tgz | tar xf - ;gzip -d < XFree86-4.4.0-src-3.tgz | tar xf -
2. prepare build directory & configuration fix
(¡Ø required tslib)
mkdir build
(cd build && lndir ../xc)
vi build/config/cf/host.def
edit below ==========================================
#define KDriveXServer YES
#define TinyXServer YES
#define BuildFonts NO
#define HasTsLib YES
#define ProjectRoot /usr/X11R6
#define NothingOutsideProjectRoot YES
#define UseInstalledOnCrossCompile YES
#define HasFreetype2 YES
#define HasFontconfig YES
#define HasExpat YES
#define HasNCurses NO
#define HasZlib YES
#define TouchScreen YES
#define XfbdevServer YES
¡Ø compiling time ==> error
in compiler.h
Because of inb function. ==> temporary fix
vi /korea-dokdo/aesoptool/gcc-3.3.4-glibc-2.3.3/arm-linux/arm-linux/sys-include/sys/io.h
#if 0
/* The functions that actually perform reads and writes. */
extern unsigned char inb (unsigned long int port) __THROW;
extern unsigned short int inw (unsigned long int port) __THROW;
extern unsigned long int inl (unsigned long int port) __THROW;
extern void outb (unsigned char value, unsigned long int port) __THROW;
extern void outw (unsigned short value, unsigned long int port) __THROW;
extern void outl (unsigned long value, unsigned long int port) __THROW;
#endif
3. make Xfree86
(cd build && make World CROSSCOMPILEDIR=/korea-dokdo/aesoptool/gcc-3.3.4-glibc-2.3.3/arm-linux/arm-linux/bin)
4. install
If root filesystem directory is /scratchbox/users/aesop/targets/AESOP.
(cd build && make DESTDIR=/scratchbox/users/aesop/targets/AESOP install)
// one line command for make & install........^^
(cd build && make World CROSSCOMPILEDIR=/korea-dokdo/aesoptool/gcc-3.3.4-glibc-2.3.3/arm-linux/arm-linux/bin && make DESTDIR=/scratchbox/users/aesop/targets/AESOP install)
¡Ø 2006.02.06
Port tslib.c of Xkdrive to Xfree86 4.4.0 for kernel 2.6 input device.
Because Xfree86 4.4.0's tslib module not support input device's style touchscreen.