Skip navigation.
Home
The QNX Community Portal

View topic - Using network driver from 6.4.1 to 6.2.0

Using network driver from 6.4.1 to 6.2.0

QNX Application portings.

Using network driver from 6.4.1 to 6.2.0

Postby techgeek12345 » Mon Nov 09, 2009 7:25 pm

Hello,

I am a newbie in this area.

The latest QNX 6.4.1 version supports my network card through the driver devnp-e1000.so which in turns is launched by binary file io-pkt-v4-hc:
# pidin -P io-pkt-v4-hc mem
pid tid name prio STATE code data stack
126995 1 sbin/io-pkt-v4-hc 21o SIGWAITINFO 872K 1848K 8192(516K)*
126995 2 sbin/io-pkt-v4-hc 21o RECEIVE 872K 1848K 8192(132K)
io-pkt-v4-hc @ 8127000 4096
libc.so.3 @b0300000 452K 16K
devnp-e1000.so @b8200000 44K 8192

My question is:
How can I make my Ethernet card work on QNX 6.2.0 version using the above driver?

a) Will I have to port the driver from 6.4.1 to 6.2.0? If yes, is there any guide/resource somebody can point at?

b) How about just copying the binary (io-pkt-v4-hc), driver (devnp-speedo.so) and the library file (libc.so.3) to the 6.2.0? Will that be sufficient?

I have some experience with building .ifs files using buildfiles.

Any help will be greatly appreciated.
Last edited by techgeek12345 on Mon Nov 09, 2009 9:50 pm, edited 1 time in total.
techgeek12345
New Member
 
Posts: 6
Joined: Mon Nov 09, 2009 7:16 pm

Postby Tim » Mon Nov 09, 2009 7:35 pm

Techgeek,

You can't copy the binary files from 6.4 to 6.2. They won't run and even if they did they wouldn't give the expected results because 6.2 handles network traffic entirely differently than 6.4 (there is no io-pkt in 6.2, there is an io-net instead).

So you are down to option A. The first step is downloading the source at foundry27 (you can also ask the network development team there for tips on doing the porting).

Tim
Tim
Senior Member
 
Posts: 1392
Joined: Wed Mar 10, 2004 12:28 am

Postby mario » Mon Nov 09, 2009 7:43 pm

I'm not even sure there was network DDK for 6.2.0.

You might be able to start the i82544 driver by specifying the device id (did=...)
mario
QNX Master
 
Posts: 4132
Joined: Sun Sep 01, 2002 1:04 am

Postby techgeek12345 » Mon Nov 09, 2009 8:10 pm

Tim wrote:Techgeek,

So you are down to option A. The first step is downloading the source at foundry27 (you can also ask the network development team there for tips on doing the porting).
Tim

Thanks Tim for your reply. I just looked into the Foundry27 source code and it seems they have branches just for 6.3 and 6.4:
~/projects/svn_projects# ls -l bsp/branches/
total 8
drwxr-xr-x 4 root root 4096 2009-09-22 11:23 6.3.0
drwxr-xr-x 4 root root 4096 2009-09-22 11:24 6.4.0
~/projects/svn_projects#

So I guess I will have to ask the network development team as you suggested.
techgeek12345
New Member
 
Posts: 6
Joined: Mon Nov 09, 2009 7:16 pm

Postby techgeek12345 » Mon Nov 09, 2009 8:18 pm

mario wrote:I'm not even sure there was network DDK for 6.2.0.

You might be able to start the i82544 driver by specifying the device id (did=...)


Hi mario. Just to be sure, do you mean starting the devn-82544.so driver from a recent version of QNX? Also, I would like to know why did you mention this driver. Is this driver compatible with 6.2.0 as opposed to devnp-e1000.so driver. Also on reading the utilities_reference.pdf file for 82544 it does not list my network card (82574) among the supported device list.

I apologize if my question does not make any sense.
techgeek12345
New Member
 
Posts: 6
Joined: Mon Nov 09, 2009 7:16 pm

Postby techgeek12345 » Mon Nov 09, 2009 10:03 pm

I apologize for pasting the incorrect output of pidin which showed that my network card was using devnp-speedo. so driver. I have corrected the output in the original post and I am pasted here also:
# pidin -P io-pkt-v4-hc mem
pid tid name prio STATE code data stack
126995 1 sbin/io-pkt-v4-hc 21o SIGWAITINFO 872K 1848K 8192(516K)*
126995 2 sbin/io-pkt-v4-hc 21o RECEIVE 872K 1848K 8192(132K)
io-pkt-v4-hc @ 8127000 4096
libc.so.3 @b0300000 452K 16K
devnp-e1000.so @b8200000 44K 8192
techgeek12345
New Member
 
Posts: 6
Joined: Mon Nov 09, 2009 7:16 pm

Postby mario » Mon Nov 09, 2009 11:08 pm

techgeek12345 wrote:
mario wrote:I'm not even sure there was network DDK for 6.2.0.

You might be able to start the i82544 driver by specifying the device id (did=...)


Hi mario. Just to be sure, do you mean starting the devn-82544.so driver from a recent version of QNX? Also, I would like to know why did you mention this driver. Is this driver compatible with 6.2.0 as opposed to devnp-e1000.so driver. Also on reading the utilities_reference.pdf file for 82544 it does not list my network card (82574) among the supported device list.

I apologize if my question does not make any sense.


i82544 is a close cousin of e1000. e1000 is new with 6.4.1 and support more devices then i82544. i82544 was available with 6.2.0 which is why I suggested you might give it a try.
mario
QNX Master
 
Posts: 4132
Joined: Sun Sep 01, 2002 1:04 am

Postby jinma » Tue Apr 06, 2010 7:22 pm

has anyone got i82574L to work in qnx 6.3.2? I would like to know before I get one in.
thanks
jinma
Senior Member
 
Posts: 428
Joined: Thu Oct 28, 2004 10:13 pm


Return to Porting

Who is online

Users browsing this forum: No registered users and 2 guests

cron