OpenQNX :: The QNX Community Portal

May 13, 2008 - 12:40 PM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 52 unlogged users and 2 registered users online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
qnx4.25_user
Post subject: using a Condor Engineering CEI-420A PC/104 card w/ QNX 4.25  PostPosted: Jan 15, 2008 - 09:11 PM
New Member


Joined: Jan 15, 2008
Posts: 3

Hi,

We have a Condor Engineering CEI-420A ARINC data acquisition card in our PC/104 stack with a CPU card that is running the QNX 4.25 operating system. The CEI-420A has some support for Linux, but I'm wondering if there is any way we can use the card with QNX 4.25? Do you know of any example QNX code anywhere that might work with this card?

I've looked at some of the example Linux code for the CEI-420A --

(from the GE Fanuc website here:
http://www.gefanucembedded.com/products/support/1022)

and it appears to refer to the 2.4 or 2.6 linux kernels. I was able to obtain a version of GCC for QNX 4.25 from here:

http://www.jcmichot.usenet-fr.net/gcc/

I wonder if that might be sufficient to build the linux code on QNX somehow? Of course QNX has its own kernel, so I wonder if the example linux code would still work with QNX?

Thanks for any ideas.
 
 View user's profile Send private message  
Reply with quote Back to top
qnx4.25_user
Post subject: RE: using a Condor Engineering CEI-420A PC/104 card w/ QNX 4  PostPosted: Jan 15, 2008 - 10:17 PM
New Member


Joined: Jan 15, 2008
Posts: 3

In looking at this problem further it looks like maybe what I'd really need is to write a QNX 4.25 driver perhaps like this user was working on here:

http://www.openqnx.com/index.php?name=PNphpBB2&file=printview&t=6014&start=0

I'm not sure if there are any good QNX 4.25 "how to write a driver" tutorials anywhere? Smile

thanks for any info... Smile
 
 View user's profile Send private message  
Reply with quote Back to top
mario
Post subject: RE: using a Condor Engineering CEI-420A PC/104 card w/ QNX 4  PostPosted: Jan 16, 2008 - 01:03 AM
QNX Master


Joined: Sep 01, 2002
Posts: 2667

Under QNX4 there is no such think as a driver, it just a program like any other. Depending how you want you other program to interface with the driver, writing it could be very simple.

Linux driver are not portable to QNX, if you have the source it can be use a reference but that's about it.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
qnx4.25_user
Post subject: Re: RE: using a Condor Engineering CEI-420A PC/104 card w/ Q  PostPosted: Jan 18, 2008 - 09:29 PM
New Member


Joined: Jan 15, 2008
Posts: 3

mario wrote:
Under QNX4 there is no such think as a driver, it just a program like any other. Depending how you want you other program to interface with the driver, writing it could be very simple.

Linux driver are not portable to QNX, if you have the source it can be use a reference but that's about it.


Thanks for the help... I understand that "drivers" are "other programs"... but note that the official "System Architecure" document for QNX 4.25 on page 113 has a subsection entitled "Device Drivers" so it does appear that QNX uses the term "device driver", although I realize that in Linux these may be "inserted into the monolithic kernel" where as in QNX they are just another process that cooperates with the microkernel... still it seems they do call them "device drivers" at least sometimes.

From that document:

"Device drivers

The following illustration shows a typical QNX device subsystem:


[diagram]

The Device Manager process (Dev) manages the flow of data to and
from the QNX application processes. The hardware interface is
managed by individual driver processes. Data flows between Dev and
its drivers through a set of shared memory queues for each terminal
device."

Anyway, the link that I gave where the other guy tried to use a similar PC/104 he did in fact take a Linux driver and compile it under QNX after just making a very small mod' or 2 and I think it worked for him... just I guess it can't be "installed into the kernel" in the same way... just a separate process.

Thanks for the thoughts in any case....
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.