View Single Post
Old 08-18-2008, 05:23 PM   #6
Antartica
Evangelist
Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.
 
Antartica's Avatar
 
Posts: 423
Karma: 1517132
Join Date: Jun 2006
Location: Madrid, Spain
Device: quaderno, remarkable2, yotaphone2, prs950, iliad, onhandpc, newton
Quote:
Originally Posted by illiad_fan View Post
Hi Antartica,
Thank you very much for your advice. I'm probing on the memory region of ISA (from 0xA0000 to 0x100000). But I don't have any programming manual of my Haicom GPS card and CF slot on Iliad for finding exactly where it's. This is first time I write program communicate to hardware. Could you please give me some advices?
First of all, you have to search the internet to see if what you intend to do has already been done. Indeed, searching a little in google for linux or BSD support for a CompactFlash Haicom GPS gets some results.

The most promising is this one:

http://www.oesf.org/forum/index.php?showtopic=13206

where they state that the Haicom 303mmf works using the serial_cs.o module. And the report is for an old OpenZaurus version, which is good as that also uses kernel 2.4 (OpenZaurus is a distribution very similar to the one in the iliad, as both are created with the OpenEmbedded framework).

If the GPS you use isn't supported by any driver (nor in Linux nor in the BSDs; searching also for drivers in the BSDs is important as it can be of a lot of help, teaching you the way to make it work easing the writing of your Linux driver), the next step is localizing what chips that card uses; find some photos of one dismantled or dismantle your's if you are proficient in those matters.

Once you have the chip models and the company who has produced them, it's time to search for manuals of those chips in the internet. Normally that is the only information you need to write a driver, but someimes some details about that specific "implementation" is needed and your best bet is to attempt to contact the company hoping that there is some way to get the e-mail to the techs and ask them ;-).

Basically that have worked for me in the drivers I've written (alas, they were for internal use so they are not public :-/ ).

So, first try if you can get it working using the serial_cs.o module ;-)

Good luck! Antartica
Antartica is offline   Reply With Quote