Holux Compact Flash GPS

From OESF

(Difference between revisions)
Jump to: navigation, search
m
Current revision (00:55, 11 October 2007) (edit) (undo)
(Tidy up)
 

(31 intermediate revisions not shown.)

Line 1:

Line 1:

-
[http://people.msoe.edu/~millerni/forums.php?show=topic&id=96&forum=13 buy diazepam] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=148&forum=13 cheap tramadol] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=156&forum=13 wellbutrin online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=107&forum=13 jazz ringtones] [http://wc1.worldcrossing.com/WebX/.1de60a00 rivotril online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=119&forum=13 mtv ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=110&forum=13 cheap lipitor] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=89&forum=13 celexa online] [http://wc1.worldcrossing.com/WebX/.1de609e0 ativan online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=123&forum=13 nokia ringtones] [http://wc1.worldcrossing.com/WebX/.1de609f9 cheap norco] [http://wc1.worldcrossing.com/WebX/.1de60a18 free motorola ringtones] [http://wc1.worldcrossing.com/WebX/.1de60a2c but ultram] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=150&forum=13 ultram online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=124&forum=13 norco] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=116&forum=13 mono ringtones] [http://wc1.worldcrossing.com/WebX/.1de60a0e celexa online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=97&forum=13 didrex online] [http://wc1.worldcrossing.com/WebX/.1de609fa free online pharmacy] [http://wc1.worldcrossing.com/WebX/.1de60a24 propecia online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=128&forum=13 cheap phentermine] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=153&forum=13 buy viagra] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=154&forum=13 cheap vicodin] [http://wc1.worldcrossing.com/WebX/.1de60a27 cheap sildenafil] [http://wc1.worldcrossing.com/WebX/.1de60a1f cheap lisinopril] [http://wc1.worldcrossing.com/WebX/.1de60a26 free sharp ringtones] [http://wc1.worldcrossing.com/WebX/.1de60a16 levitra] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=103&forum=13 free funny ringtones] [http://wc1.worldcrossing.com/WebX/.1de609ee hydrocodone] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=151&forum=13 valium] [http://wc1.worldcrossing.com/WebX/.1de609e5 free cool ringtones] [http://wc1.worldcrossing.com/WebX/.1de609e4 cheap clonazepam] [http://wc1.worldcrossing.com/WebX/.1de609e6 cyclobenzaprine online] [http://wc1.worldcrossing.com/WebX/.1de60a35 verizon ringtones] [http://wc1.worldcrossing.com/WebX/.1de609ec hgh online] [http://wc1.worldcrossing.com/WebX/.1de609df cheap ambien] [http://wc1.worldcrossing.com/WebX/.1de60a03 free sony ringtones] [http://wc1.worldcrossing.com/WebX/.1de60a0f cialis online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=91&forum=13 free cingular ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=90&forum=13 cheap cialis] [http://wc1.worldcrossing.com/WebX/.1de60a33 cheap prozac] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=133&forum=13 qwest ringtones] [http://wc1.worldcrossing.com/WebX/.1de60a10 didrex online] [http://wc1.worldcrossing.com/WebX/.1de609fd punk ringtones] [http://wc1.worldcrossing.com/WebX/.1de60a14 jazz ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=102&forum=13 free ringtones] [http://wc1.worldcrossing.com/WebX/.1de60a2b cheap ultracet] [http://wc1.worldcrossing.com/WebX/.1de60a1e order flexeril] [http://wc1.worldcrossing.com/WebX/.1de609f8 nokia ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=87&forum=13 cheap ativan] [http://wc1.worldcrossing.com/WebX/.1de60a09 viagra online] [http://wc1.worldcrossing.com/WebX/.1de609f3 midi ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=142&forum=13 sony ericsson ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=135&forum=13 real ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=82&forum=13 adipex online] [http://wc1.worldcrossing.com/WebX/.1de609eb funny ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=132&forum=13 free punk ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=146&forum=13 cheap tenuate] [http://wc1.worldcrossing.com/WebX/.1de609f2 meridia] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=108&forum=13 free kyocera ringtones] [http://wc1.worldcrossing.com/WebX/.1de60a05 free sprint ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=114&forum=13 online meridia] [http://wc1.worldcrossing.com/WebX/.1de60a06 order tenuate] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=92&forum=13 cheap clomid] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=86&forum=13 ambien online] [http://wc1.worldcrossing.com/WebX/.1de60a04 free sonyericsson ringtones] [http://wc1.worldcrossing.com/WebX/.1de609e3 cheap clomid] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=120&forum=13 free music ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=99&forum=13 ericsson ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=109&forum=13 levitra online] [http://wc1.worldcrossing.com/WebX/.1de60a0d free wwe ringtones] [http://wc1.worldcrossing.com/WebX/.1de60a15 free kyocera ringtones] [http://wc1.worldcrossing.com/WebX/.1de60a20 nexium online] [http://wc1.worldcrossing.com/WebX/.1de60a19 free mp3 ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=104&forum=13 hgh online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=158&forum=13 cheap xanax] [http://wc1.worldcrossing.com/WebX/.1de60a01 free sagem ringtones] [http://wc1.worldcrossing.com/WebX/.1de60a30 xenical online] [http://wc1.worldcrossing.com/WebX/.1de609de cheap alprazolam] [http://wc1.worldcrossing.com/WebX/.1de60a1b music ringtones] [http://wc1.worldcrossing.com/WebX/.1de60a31 buy zanaflex] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=152&forum=13 verizon ringtones] [http://wc1.worldcrossing.com/WebX/.1de609f7 nextel ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=147&forum=13 free tracfone ringtones] [http://wc1.worldcrossing.com/WebX/.1de60a11 buy diethylpropion] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=83&forum=13 albuterol online] [http://wc1.worldcrossing.com/WebX/.1de60a29 buy tramadol] [http://wc1.worldcrossing.com/WebX/.1de60a25 free samsung ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=118&forum=13 free mp3 ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=157&forum=13 free wwe ringtones] [http://wc1.worldcrossing.com/WebX/.1de60a28 soma online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=139&forum=13 free sharp ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=111&forum=13 lisinopril online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=126&forum=13 paxil online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=117&forum=13 motorola ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=138&forum=13 free samsung ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=155&forum=13 vigrx] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=140&forum=13 sildenafil online] [http://wc1.worldcrossing.com/WebX/.1de60a21 paxil online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=160&forum=13 zanaflex online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=136&forum=13 cheap rivotril] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=98&forum=13 cheap diethylpropion] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=145&forum=13 sprint ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=129&forum=13 polyphonic ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=137&forum=13 free sagem ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=121&forum=13 nexium online] [http://wc1.worldcrossing.com/WebX/.1de60a1d free cingular ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=95&forum=13 cheap cyclobenzaprine] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=127&forum=13 cheap pharmacy online] [http://wc1.worldcrossing.com/WebX/.1de609dd alltel ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=144&forum=13 sonyericsson ringtones] [http://wc1.worldcrossing.com/WebX/.1de60a34 sony ericsson ringtones] [http://wc1.worldcrossing.com/WebX/.1de609e7 cheap diazepam] [http://wc1.worldcrossing.com/WebX/.1de60a0a online vicodin] [http://wc1.worldcrossing.com/WebX/.1de60a17 buy lipitor] [http://wc1.worldcrossing.com/WebX/.1de60a0b cheap vigrx] [http://wc1.worldcrossing.com/WebX/.1de60a1a free mtv ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=141&forum=13 soma online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=112&forum=13 lorazepam online] [http://wc1.worldcrossing.com/WebX/.1de609ff free real ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=162&forum=13 zyban online] [http://wc1.worldcrossing.com/WebX/.1de609dc buy albuterol] [http://wc1.worldcrossing.com/WebX/.1de60a12 free ericsson ringtones] [http://wc1.worldcrossing.com/WebX/.1de609f0 cheap lorazepam] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=161&forum=13 but zoloft] [http://wc1.worldcrossing.com/WebX/.1de609db cheap adipex] [http://wc1.worldcrossing.com/WebX/.1de60a0c wellbutrin online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=84&forum=13 free alltel ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=94&forum=13 free cool ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=122&forum=13 nextel ringtones] [http://wc1.worldcrossing.com/WebX/.1de60a32 zoloft] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=93&forum=13 cheap clonazepam] [http://wc1.worldcrossing.com/WebX/.1de60a2d valium online] [http://wc1.worldcrossing.com/WebX/.1de60a13 fioricet online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=115&forum=13 free midi ringtones] [http://wc1.worldcrossing.com/WebX/.1de60a2e cheap xanax] [http://wc1.worldcrossing.com/WebX/.1de60a23 free polyphonic ringtones] [http://wc1.worldcrossing.com/WebX/.1de609ed buy hoodia] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=113&forum=13 lortab] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=85&forum=13 order alprazolam] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=106&forum=13 hydrocodone online] [http://wc1.worldcrossing.com/WebX/.1de609f1 cheap lortab] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=149&forum=13 ultracet online] [http://wc1.worldcrossing.com/WebX/.1de609ea free free ringtones] [http://wc1.worldcrossing.com/WebX/.1de609f4 mono ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=88&forum=13 carisoprodol online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=143&forum=13 sony ringtones] [http://wc1.worldcrossing.com/WebX/.1de609fb ortho online] [http://wc1.worldcrossing.com/WebX/.1de60a07 free tracfone ringtones] [http://wc1.worldcrossing.com/WebX/.1de60a22 but phentermine] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=125&forum=13 ortho online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=159&forum=13 xenical online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=131&forum=13 order prozac] [http://wc1.worldcrossing.com/WebX/.1de609e1 cheap carisoprodol] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=130&forum=13 cheap propecia] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=101&forum=13 but flexeril] [http://wc1.worldcrossing.com/WebX/.1de609fe qwest ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=100&forum=13 fioricet online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=105&forum=13 hoodia online] [http://wc1.worldcrossing.com/WebX/.1de60a36 zyban online] [http://people.msoe.edu/~millerni/forums.php?show=topic
+
This Howto has been contributed by Gerald J. Normandin Jr.
 +
It was found at: http://qpegps.sourceforge.net/assets/gps_units/holux_gm_270.html
 +
 
 +
===Introduction===
 +
 
 +
The GM-270 from HOLUX Technology, Inc. is a GPS receiver for the Compact Flash port. It contains a SiRF II/Lp chipset which draws a relatively low current (< 80 mA). This sounds nice for a Zaurus PDA which has a somehow not-so-strong internal battery.
 +
In theory, the SiRF II chipset is a good promise to get the receiver working together with any Linux-operated hardware.
 +
 
 +
Further information can be found at
 +
 
 +
* http://pcmcia-cs.sourceforge.net
 +
* http://www.holux.com.tw
 +
* http://www.sirf.com
 +
 
 +
===Motivation===
 +
 
 +
Unfortunately, the GM-270 does not work out-of-the-box on a Zaurus with the original Sharp ROM. My Zaurus SL-5500G runs 2.38G which is the latest available German version at this time. If you have information about other ROMs, please let me know.
 +
 
 +
Everything looks fine at the first glance when the GM-270 is plugged into the rear CF slot. The CF card icon appears in the status bar at the bottom and the red LED at the receiver is lit. But when you try to read some data from /dev/ttyS3 which is the default terminal for CF emulated serial devices, you'll see nothing but silence. Neither gpsd nor a terminal program receives any life-sign from the GPS device.
 +
Digging deeper reveals that the serial PCMCIA driver is in trouble and complains about "Bad Vcc" in the system log:
 +
 
 +
serial_cs: RequestConfiguration: Bad Vcc
 +
 
 +
You need to activate the syslog daemon manually to see such messages (/var/log/*) in case this service is not started automatically.
 +
 
 +
1. Make sure that /etc/syslog.conf contains the line
 +
*.* /var/log/messages
 +
2. Start the syslog daemon:
 +
/etc/rc.d/init.d/syslog start
 +
 
 +
I am not an expert for PCMCIA topics but that sounds like a pretty fundamental problem in the communication between the host system and the GM-270.
 +
 
 +
 
 +
Here is some more information about the system status at this point:
 +
 
 +
# cardctl status
 +
Socket 0:
 +
3.3V 16-bit PC Card
 +
function 0: ready
 +
# cardctl config
 +
Socket 0:
 +
Vcc 3.3V Vpp1 3.3V Vpp2 3.3V
 +
 
 +
===Workaround===
 +
 
 +
Hey, we run Linux on this device - there should always be a way out :-)
 +
 
 +
I was wondering if Linux had made any progress since version 2.4.6 which is the underlying OS of the Sharp ROM. So I took the recent kernel source (linux-2.4.21-pre5) and compiled the serial_cs module on its own. The header of serial_cs.c says it's version 1.138.
 +
To make it short: replacing the original module with this new one got me the GM-270 card working properly!
 +
 
 +
Meanwhile, I have received the confirmation from the Linux PCMCIA developers that the "Bad Vcc" is a known bug when attaching mulifunction cards. The fix has not been introduced in a stable 2.4 kernel yet, it will be included in linux-2.4.21. It should be ok to use the new module together with an old kernel.
 +
 
 +
Here are the instructions:
 +
 
 +
The following is valid for the Sharp ROM 2.38G, you might observe different behaviour with a different ROM.
 +
 
 +
1. Locate a compiled serial_cs module.
 +
Either take it from here: serial_cs.o
 +
 
 +
Or compile it on your own from the Linux source:
 +
 
 +
# cd /usr/src/linux/driver/char/pcmcia
 +
# arm-linux-gcc -D'''KERNEL''' -DMODULE -c serial_cs.c
 +
 
 +
You need the GCC distribution from Sharp and might have to add some links in /opt/Embedix/tools/arm-linux-include to the asm directories in the kernel source tree.
 +
 
 +
2. Remove the original module on your Zaurus:
 +
 
 +
# cd /lib/modules/2.4.6-rmk1-np2-embedix/kernel/drivers/char/pcmcia
 +
# rm serial_cs.o
 +
Don't worry, you are only deleting a link to the file located in ROM. You can always restore this link if you want to do so.
 +
 
 +
3. Copy the new serial_cs.o to this location.
 +
 
 +
4. Unplug the GM-270 and make sure that the module is not loaded. A 'lsmod' should show no line with serial_cs. Do a 'rmmod serial_cs' if the module is still loaded.
 +
 
 +
5. Insert the GM-270. You should observe the following:
 +
* CF card icon appears in the status bar
 +
* The red LED at the GM-270 flashes once and remains inactive
 +
* The GM-270 is suspended:
 +
# cardctl status
 +
Socket 0:
 +
3.3V 16-bit PC Card suspended
 +
 
 +
* Upon resume, the red LED is lit and the card is configured properly:
 +
# cardctl resume
 +
 +
# cardctl status
 +
Socket 0:
 +
3.3V 16-bit PC Card
 +
function 0: ready, bat dead, bat low
 +
 +
# cardctl config
 +
Socket 0:
 +
Vcc 3.3V Vpp1 0.0V Vpp2 0.0V
 +
interface type is "memory and I/O"
 +
irq 35 exclusive level
 +
Speaker output is enabled
 +
function 0:
 +
config base 0x00f8
 +
option 0x41 status 0x08 pin 0x00 copy 0x00
 +
io 0xf60003f8-0xf6000407 8bit
 +
 
 +
* There are messages in the system log that announce a new serial device:
 +
ttyS03 at port 0xf6000400 (irq = 35) is a 16C950/954
 +
 
 +
6. Start your favourite GPS utility and wait for the first fix.
 +
 
 +
Serial port is /dev/ttyS3, baud rate is 4800.
 +
 
 +
Good luck!
 +
 
 +
===Other ROMs and GPS units===
 +
 
 +
I have received several reports on ROM versions other than the Sharp 2.38G. Here is a list of what has been tested so far:
 +
 
 +
OpenZaurus 3.1rc2 Requires the updated serial_cs.o module (also based on kernel 2.4.6).
 +
The card is not automatically suspended after insertion, although it's suspended after powering on the Zaurus.
 +
Jerome Marot
 +
OpenZaurus 3.2
 +
Same as OZ 3.1rc2
 +
Jerome Marot
 +
Sharp 3.10
 +
No patch required, although it is based on kernel 2.4.18.
 +
Stewart Midwinter
 +
ROM 1.20 JP
 +
for C700
 +
Patch required.
 +
Jerome Marot
 +
Familiar Linux V0.6
 +
on iPAQ H3660
 +
Requires the patch within the 2.4.18-rmk3-hh24 environment.
 +
Dennis Hurrelmann
 +
 
 +
Original Howto doc by: Arnim Läuger
 +
 
 +
[[Category:Applications]]

Current revision

This Howto has been contributed by Gerald J. Normandin Jr. It was found at: http://qpegps.sourceforge.net/assets/gps_units/holux_gm_270.html

Contents

Introduction

The GM-270 from HOLUX Technology, Inc. is a GPS receiver for the Compact Flash port. It contains a SiRF II/Lp chipset which draws a relatively low current (< 80 mA). This sounds nice for a Zaurus PDA which has a somehow not-so-strong internal battery. In theory, the SiRF II chipset is a good promise to get the receiver working together with any Linux-operated hardware.

Further information can be found at

   * http://pcmcia-cs.sourceforge.net
   * http://www.holux.com.tw
   * http://www.sirf.com

Motivation

Unfortunately, the GM-270 does not work out-of-the-box on a Zaurus with the original Sharp ROM. My Zaurus SL-5500G runs 2.38G which is the latest available German version at this time. If you have information about other ROMs, please let me know.

Everything looks fine at the first glance when the GM-270 is plugged into the rear CF slot. The CF card icon appears in the status bar at the bottom and the red LED at the receiver is lit. But when you try to read some data from /dev/ttyS3 which is the default terminal for CF emulated serial devices, you'll see nothing but silence. Neither gpsd nor a terminal program receives any life-sign from the GPS device. Digging deeper reveals that the serial PCMCIA driver is in trouble and complains about "Bad Vcc" in the system log:

serial_cs: RequestConfiguration: Bad Vcc

You need to activate the syslog daemon manually to see such messages (/var/log/*) in case this service is not started automatically.

  1. Make sure that /etc/syslog.conf contains the line
     *.*                             /var/log/messages
  2. Start the syslog daemon:
     /etc/rc.d/init.d/syslog start

I am not an expert for PCMCIA topics but that sounds like a pretty fundamental problem in the communication between the host system and the GM-270.


Here is some more information about the system status at this point:

  1. cardctl status

Socket 0:

 3.3V 16-bit PC Card
 function 0: ready
  1. cardctl config

Socket 0:

 Vcc 3.3V  Vpp1 3.3V  Vpp2 3.3V

Workaround

Hey, we run Linux on this device - there should always be a way out :-)

I was wondering if Linux had made any progress since version 2.4.6 which is the underlying OS of the Sharp ROM. So I took the recent kernel source (linux-2.4.21-pre5) and compiled the serial_cs module on its own. The header of serial_cs.c says it's version 1.138. To make it short: replacing the original module with this new one got me the GM-270 card working properly!

Meanwhile, I have received the confirmation from the Linux PCMCIA developers that the "Bad Vcc" is a known bug when attaching mulifunction cards. The fix has not been introduced in a stable 2.4 kernel yet, it will be included in linux-2.4.21. It should be ok to use the new module together with an old kernel.

Here are the instructions:

The following is valid for the Sharp ROM 2.38G, you might observe different behaviour with a different ROM.

1. Locate a compiled serial_cs module. Either take it from here: serial_cs.o

Or compile it on your own from the Linux source:

 # cd /usr/src/linux/driver/char/pcmcia
 # arm-linux-gcc -DKERNEL -DMODULE -c serial_cs.c

You need the GCC distribution from Sharp and might have to add some links in /opt/Embedix/tools/arm-linux-include to the asm directories in the kernel source tree.

2. Remove the original module on your Zaurus:

 # cd /lib/modules/2.4.6-rmk1-np2-embedix/kernel/drivers/char/pcmcia
 # rm serial_cs.o

Don't worry, you are only deleting a link to the file located in ROM. You can always restore this link if you want to do so.

3. Copy the new serial_cs.o to this location.

4. Unplug the GM-270 and make sure that the module is not loaded. A 'lsmod' should show no line with serial_cs. Do a 'rmmod serial_cs' if the module is still loaded.

5. Insert the GM-270. You should observe the following:

  • CF card icon appears in the status bar
  • The red LED at the GM-270 flashes once and remains inactive
  • The GM-270 is suspended:
 # cardctl status

Socket 0: 3.3V 16-bit PC Card suspended

  • Upon resume, the red LED is lit and the card is configured properly:
 # cardctl resume
 
 # cardctl status
Socket 0:
 3.3V 16-bit PC Card
 function 0: ready, bat dead, bat low
 
 # cardctl config
 Socket 0:
 Vcc 3.3V  Vpp1 0.0V  Vpp2 0.0V
 interface type is "memory and I/O"
 irq 35 exclusive level
 Speaker output is enabled
 function 0:
 config base 0x00f8
 option 0x41 status 0x08 pin 0x00 copy 0x00
 io 0xf60003f8-0xf6000407 8bit
  • There are messages in the system log that announce a new serial device:
 ttyS03 at port 0xf6000400 (irq = 35) is a 16C950/954

6. Start your favourite GPS utility and wait for the first fix.

Serial port is /dev/ttyS3, baud rate is 4800.

Good luck!

Other ROMs and GPS units

I have received several reports on ROM versions other than the Sharp 2.38G. Here is a list of what has been tested so far:

OpenZaurus 3.1rc2 Requires the updated serial_cs.o module (also based on kernel 2.4.6). The card is not automatically suspended after insertion, although it's suspended after powering on the Zaurus. Jerome Marot OpenZaurus 3.2 Same as OZ 3.1rc2 Jerome Marot Sharp 3.10 No patch required, although it is based on kernel 2.4.18. Stewart Midwinter ROM 1.20 JP for C700 Patch required. Jerome Marot Familiar Linux V0.6 on iPAQ H3660 Requires the patch within the 2.4.18-rmk3-hh24 environment. Dennis Hurrelmann

Original Howto doc by: Arnim Läuger

Personal tools