************************************************************************************
CFXGA Linux Driver compilation method	Ver1.01E

Copyright (C) 2002 I-O DATA DEVICE,INC.
************************************************************************************


1. Search the following items on this site, and prepare your develpment environment
	Cross compiling program
	Library
	Header file
	Utility
  http://developer.ezaurus.com/sl_j/tool/tools.htm#Linux


2. Set up the environment of compiling program and header files by refering the following sample
	Make a script
	% source "script name"
	has been done.

--
# !/bin/bash
CROSSCOMPILE=/opt/Embedix/tools
QTDIR=/opt/Qtopia/sharp
QPEDIR=/opt/Qtopia/sharp
PATH=$QTDIR/bin:$QPEDIR/bin:$CROSSCOMPILE/bin:$PATH
TMAKEPATH=/opt/Qtopia/tmake/lib/qws/linux-sharp-g++
LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
export CROSSCOMPILE QTDIR QPEDIR PATH TMAKEPATH LD_LIBRARY_PATH
echo "Altered environment for sharp Zaurus Development ARM"
--


3. Download kernel source codes at this site
  http://developer.ezaurus.com/sl_j/source/source_dl.htm#source-B500-150J


4. Decompress this downloaded files to "/usr/src" and then rename it.
  % bzcat "the downloaded file name" | tar xvf -
  % mv "the decompressed directry name" "any directry name"


5. Make a link to the directry name
  % ln -s "assigned directry name on 2." linux


6. Move to directry, and compile a kernel module
  % cd linux
  % make menuconfig
	[NOTE]
	Choose [Load an Alternate Configuration File] on changing a display.
	And input "arch/arm/def-configs/corgi", and do [OK].
	And then, choose [exit], and do [yes]
  % make dep


7. Download PCMCIA source codes at this site, and decompress it.
  http://pcmcia-cs.sourceforge.net/

  % tar zxvf pcmcia-cs-3.2.7.tar.gz


8. Move to directry made, and make an environment

  % cd pcmcia-cs-3.2.7
  % make config
	[NOTE]
	Set [/usr/src/linux] on the kernel source directry
	Set "y" on Build 'trusting' ... 
	Set "n" on include 32-bit ... 
	Set "n" on include PnP BIOS ... 
	Set "2(Read from the Linux Source tree)" on How would you ... 
	Don't do anything on Module install ... 
	And push an enter key
	Make sure of a comment "Configuration successful"


9. Edit "config.mk" file made
  % vi config.mk

  KCC=cc
  UCC=cc
  These "cc" are changed "arm-linux-gcc", and then save them


10. Copy a CFXGA driver source to [clients] folder, and make it
  % cd client
  % cp memory_cs.c .
  % cp memory_cs.h .
  % make clean
  % make memory_cs.o


11. Copy a made driver file to Zaurus folder

  The Zaurus copy folder is [/lib/modules/$(uname -r)/pcmcia]

---------------------------------------------------------------------------------------
