08-09-2008, 11:37 AM | #1 |
Member
Posts: 13
Karma: 10
Join Date: Jul 2008
Device: Illiad
|
Writing driver for GPS Compact Flash on Iliad
Hi Iliad gurus,
I'm writing one driver for Haicom GPS Compact Flash on Iliad, but I don't know how to find the port, IRQ and memory address of Compact Flash Reader on Iliad. Is there any know how to get it? Please give me your advice! Thank you very much! |
08-09-2008, 01:12 PM | #2 |
Fanatic
Posts: 532
Karma: 1062755
Join Date: Aug 2005
Location: London, UK
Device: Kobo Aura One, iPad, iPhone
|
I'm not an Iliad guru but knowing Linux I'd say the first thing to do is check if the GPS appears as just another serial port already.
|
Advert | |
|
08-10-2008, 05:40 AM | #3 | |
Member
Posts: 13
Karma: 10
Join Date: Jul 2008
Device: Illiad
|
Information about Compact Flash slot
Quote:
Thank for your reply. I plug-in GPS card into Compact Flash slot, but nothing appears. How to get information about Compact Flash slot? I tried with: cat /proc/iomem output: 00000000-0001ffff : TrueFFS Device a0000000-a3ffffff : System RAM a001a000-a013502f : Kernel code a0135030-a0179cfb : Kernel data cat /proc/ioport output:nothing I don't understand all above data Last edited by illiad_fan; 08-10-2008 at 08:16 AM. |
|
08-15-2008, 06:05 AM | #4 | |
Evangelist
Posts: 423
Karma: 1517132
Join Date: Jun 2006
Location: Madrid, Spain
Device: quaderno, remarkable2, yotaphone2, prs950, iliad, onhandpc, newton
|
Quote:
You will have to read the programming manuals for the card on how to probe the different possible locations for mem and io. In the driver code you register the found locations against Linux and only then they will appear in the /proc/ files you mention. P.S.: there is a cardbus interface or something similar (card services), but I've not looked at them. Perhaps it can convey some information about the recently plugged card... Last edited by Antartica; 08-15-2008 at 06:08 AM. |
|
08-17-2008, 10:16 AM | #5 | |
Member
Posts: 13
Karma: 10
Join Date: Jul 2008
Device: Illiad
|
Quote:
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? |
|
Advert | |
|
08-18-2008, 05:23 PM | #6 | |
Evangelist
Posts: 423
Karma: 1517132
Join Date: Jun 2006
Location: Madrid, Spain
Device: quaderno, remarkable2, yotaphone2, prs950, iliad, onhandpc, newton
|
Quote:
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 |
|
08-20-2008, 03:35 AM | #7 | |
Member
Posts: 13
Karma: 10
Join Date: Jul 2008
Device: Illiad
|
Hi Antartica,
I found that serial_cs module can work with my GPS card and I can get data from it through /dev/ttyS3 from your link. Thank you very much ! Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Format Compact flash | Fermthe | iRex | 4 | 09-03-2009 01:50 PM |
Unable to read Compact Flash | ragdoll | iRex | 4 | 11-24-2008 09:43 AM |
Iliad V2 Compact flash | Fermthe | iRex | 2 | 09-28-2008 06:39 AM |
How Compact Flash on iLiad accessed? | bard69 | iRex | 6 | 07-10-2008 08:57 AM |
iLiad Reflash from Compact Flash (aka Unbrick) available to all! | Adam B. | iRex | 18 | 08-11-2007 07:42 AM |