[Home] [Credit Search] [Category Browser] [Staff Roll Call] | The LINUX.COM Article Archive |
Originally Published: Wednesday, 6 June 2001 | Author: Mike Baker |
Published to: develop_articles/Development Articles | Page: 8/9 - [Printable] |
OSDN Handheld Months: Installing Linux on a Casio E105
Linux.com Senior Developer Mike Baker takes us step-by-step through installing a Linux system on a MIPS-based Windows CE device. If pre-built distributions are not for you, then this article is.
|
<< Page 8 of 9 >> | |
X Server What fun would a handheld with no keyboard be at the command line? We need X on this thing. The X server in this case is a stripped down version referred to as kdrive. kdrive is supported as a standard part of the XFree86 source, so if you already have a copy there's no need to download another. If not, grab a copy from CVS with the following: $ cvs -d:pserver:anoncvs@anoncvs.xfree86.org:/cvs
login Before the touch panel will work we need to swap a few files. Make a quick visit to ftp://ftp.ltc.com/pub/linux/mips/ and grab tp.c, tptrans.h and tpcal. All but the last file go in xc/programs/Xserver/hw/kdrive/Linux/ of your XFree86 sources. The last one, tpcal is the calibration program and goes on the compact flash card. The next step is to adjust xc/config/cf/host.def to compile for the MIPS platform. #define CrossCompiling YES -D_BSD_SOURCE -D_GNU_SOURCE -DX_LOCALE \ -mcpu=r4600 -mips2 -Wa,-m4100,--trap After changing the host.def it's a simple matter of running make World install -iks from the xc directory to compile the XFree86 sources. After the compile you'll find the binaries in /usr/mipsel-linux/X11R6. You'll still have to copy them over to the compact flash card. When X loads on the CE device it'll be looking for /usr/mipsel-linux/X11R6 -- it's one of the downsides to cross compiling; symlink mipsel-linux to usr to keep your sanity. Don't worry too much about copying things to the compact flash yet. We've still got a few more things to compile. For instance, unless you're particularly thrilled with twm I'd strongly suggest building Blackbox.
| |
<< Page 8 of 9 >> |