Forum Topic - QNX driver for RT2860 chipset:
   
QNX driver for RT2860 chipset  
I have just installed (Lynksys Wireless PCI card) WMP600N in my QNX Neutrino system. QNX doesn't detect this network 
card. I guess this wireless PCI card has RALINK2860 chipset, and vendor ID is 1814h, Ralink; Device ID: 601h.

Please would you advise how to make this wireless PCI card work in my system.

Thanks,

Palak
Re: QNX driver for RT2860 chipset  
In theory it should be supported by devnp-ral.so, but current devnp-ral only support 2561, 2661.
I have ported 2860 to ral driver but I didn't test as I don't have card so probably it won't work at all. I can give you
 the binary to try next week.
I ported on weekend so I can post the binary here I guess, if I can't please let me know.
Re: QNX driver for RT2860 chipset  
Hi,

This is gentle reminder to obtain support for RT 2860 chipset. Please help us to make this device work. Actually, my 
colleague (Mital Kanabar) has already asked to QNX (in the same forum) for this chipset, before purchasing this adapter,
 and we were told that it should work. Would you please check if someone there has already developed something for this?


Thanks,
Palak
Re: QNX driver for RT2860 chipset  
Hi Yao,

Please provide QNX driver for RT 2860 chipset.

I would highly appreciate your support.

Thanks,
Palak
Re: QNX driver for RT2860 chipset  
Hi,

I attached the devnp-ral.so for 6.4.1 x86, please try.
I have not tried any pci/pci rt2860 yet.
Attachment: Text devnp-ral.so 224.68 KB
Re: QNX driver for RT2860 chipset  
Thanks a lot Yao, how to use your attached file in my QNX? I am newbie. 
Re: QNX driver for RT2860 chipset  
QNX has some excellent product documentation and there's a wealth of 
information on the networking project's wiki. As a newbie I encourage 
you to take advantage of it, e.g.:

http://www.qnx.com/developers/docs/6.4.1/neutrino/utilities/about.html
http://community.qnx.com/sf/projects/networking

Cheers!
/P

On 05/05/10 07:12 AM, Palak Parikh wrote:
> Thanks a lot Yao, how to use your attached file in my QNX? I am newbie.
>
>
>
> _______________________________________________
>
> Networking Drivers
> http://community.qnx.com/sf/go/post53603
>
>    
QNX doesn't detect network card  
Hi,

I have copied the provided devnp-ral.so in /lib/dll folder. Moreover, I have also added this device id in /etc/system/
enum/devices this folder has 'net' file. I have modified net by adding vendor ID as Ralink, and device id 0610. 

I have tried several commands available in QNX docs (as follows:)

mount -T io-pkt /lib/dll/devnp-ral.so
io-pkt-v4-hc -t tcpip & mount -T io-pkt devnp-ral.so

several others, but none of this is working. Then, I have tried 

slay io-pkt-v4-hc 
io-pkt-v4-hc -dral

This results in error "unknown symbol bus_space_set_region_4"

I have check #sloginfo , this shows last item is "unable to load /lib/dll/devnp-ral.so: unresolved symbol"

Please... please help.

Palak
Re: QNX doesn't detect network card  
> Hi,
> 
> I have copied the provided devnp-ral.so in /lib/dll folder. Moreover, I have 
> also added this device id in /etc/system/enum/devices this folder has 'net' 
> file. I have modified net by adding vendor ID as Ralink, and device id 0610. 
> 
> I have tried several commands available in QNX docs (as follows:)
> 
> mount -T io-pkt /lib/dll/devnp-ral.so
> io-pkt-v4-hc -t tcpip & mount -T io-pkt devnp-ral.so
> 
> several others, but none of this is working. Then, I have tried 
> 
> slay io-pkt-v4-hc 
> io-pkt-v4-hc -dral
> 
> This results in error "unknown symbol bus_space_set_region_4"
> 
> I have check #sloginfo , this shows last item is "unable to load /lib/dll/
> devnp-ral.so: unresolved symbol"
> 
> Please... please help.
> 
> Palak


There are some functions not defined by libnbdrvr. I added.
Attachment: Text devnp-ral.so 168.82 KB
Re: QNX doesn't detect network card  
Hi Yao,

Thanks you so much for your consistent efforts and time for this job, I appreciate it. I copied the file (devnp-ral.so) 
in x86/lib/dll folder. After rebooting system, it doesn't detect any NIC :(, then I tried to find error, in network 
configuration manager it show error like this "netmanager error: could not open socket: Address family not supported by 
protocol family" 

Now, this system doesn't detect any network interfaces, including the existing wired Ethernet NIC. If I remove this file
 (devnp-ral.so), and reboot the system, it comes back to normal.

Please advise me.

Thanks
Palak
Re: QNX doesn't detect network card  
The stack probably crashed. Check that this is the case using pidin. If 
you've got dumper running, check in /var/dumps for the core file and 
send it.

/P

> "netmanager error: could not open socket: Address family not supported by protocol family"
>    
Re: QNX doesn't detect network card  
> Hi Yao,
> 
> Thanks you so much for your consistent efforts and time for this job, I 
> appreciate it. I copied the file (devnp-ral.so) in x86/lib/dll folder. After 
> rebooting system, it doesn't detect any NIC :(, then I tried to find error, in
>  network configuration manager it show error like this "netmanager error: 
> could not open socket: Address family not supported by protocol family" 
> 
> Now, this system doesn't detect any network interfaces, including the existing
>  wired Ethernet NIC. If I remove this file (devnp-ral.so), and reboot the 
> system, it comes back to normal.
> 
> Please advise me.
> 
> Thanks
> Palak


Don't modify the enumerators.

You can do this:
1)mkdir work
2)cp where/devnp-ral.so work
3)io-pkt-v4-hc -i1 -S -d `pwd`/work/devnp-ral.so verbose=5 -ptcpip prefix=/ral
4)pidin arg|grep io-pkt-v4-hc 
5)sloginfo

if you can't see this 2 io-pkt-v4-hc then io-pkt-v4-hc crashed, attached the core dump under /var/dumps/io-pkt-v4-hc.
core.
if not crashed
5)SOCK=/ral ifconfig
all of the network related commands need SOCK=/ral

sorry!
Re: QNX doesn't detect network card  
Hi Yao,

I have followed your steps, this time io-pkt-v4-hc doesn't crashed because I didn't use 'mount' command (if I use it, it
 crashes). Anyways, please find the attached files with snapshot of window while executing your commands in sequence. I 
have also attached snap of io-pkt-v4-hc.core

Please have a look and advise me further.
Attachment: Text to yao.zip 1.06 MB
Re: QNX doesn't detect network card  
> Hi Yao,
> 
> I have followed your steps, this time io-pkt-v4-hc doesn't crashed because I 
> didn't use 'mount' command (if I use it, it crashes). Anyways, please find the
>  attached files with snapshot of window while executing your commands in 
> sequence. I have also attached snap of io-pkt-v4-hc.core
> 
> Please have a look and advise me further.


look at the snap.jpg, in sloginfo "devnp-ral.so.so" Library can't be found.
how do you run the io-pkt-v4-hc? also please specify absolute path of the driver.
Re: QNX doesn't detect network card  
Hi Yao, 


Do i need any source code for running io-pkt-v4-hc?

I have copied the code provided by you in in this driver path :  lib/dll/devnp-ral.so.that becomes the absolute driver 
path i guess, am i right? And then from there i have copied it to root/work directory. 

i am not sure if  i have followed any wrong path?  let me advice corrective measure i have to take for removing "
sloginfo "devnp-ral.so.so" Library can't be found" erroe. Let me know if you need any further information.

Thanks for your help...

Palak
Re: QNX doesn't detect network card  
Hi Yao,

Please ignore my previous message. I have been continuously working on this. After running the commands that you have 
suggested, this card is show up in "ifconfig" however, not able to show MAC address. Please see the attached jpg file. 
Is this wireless card really detected or not? because I am not able to configure it.

I really appreciate your support for this. 
Attachment: Image nicinfo.jpg 134.03 KB
Re: QNX doesn't detect network card  
> Hi Yao,
> 
> Please ignore my previous message. I have been continuously working on this. 
> After running the commands that you have suggested, this card is show up in "
> ifconfig" however, not able to show MAC address. Please see the attached jpg 
> file. Is this wireless card really detected or not? because I am not able to 
> configure it.
> 
> I really appreciate your support for this. 


it is better:) it didn't crash
what is in output of "sloginfo" and "pidin -p io-pkt-v4-hc mem"?
Re: QNX doesn't detect network card  
Hi Yao,

Please find the enclosed "sloginfo" and "pidin.." outputs. 

Again, Thanks a lot...I appreciate it.

Palak
Attachment: Text to yao-2.zip 101.76 KB
Re: QNX doesn't detect network card  
don't worry!

there is a problem in the ral_pci_attach, it even didn't enter rt2860 attach yet.
Attachment: Text devnp-ral.so 169.01 KB
Re: QNX doesn't detect network card  
Hi Yao,

I have tried this revised code, and followed the same steps. In that case, it showed MAC address of wireless pci, 
however, it didn't show in "ifconfig" or "network configuration window". Please find the sloginfo for this step in" 
sloginfo_may 13.jpg"

Secondly, I have added the vendor id and device id in "x86/etc/ system/enum/device/net" file, I have inserted another 
row in list of Ralink devices. After restarting the QNX, it shows ral0 in "ifconfig" as well as "network configuration",
 however, it doesn't detect MAC address, Please find the sloginfo for this step in" sloginfo2_may 13.jpg".

I just want to confirm that I have not changed anything with "lib/dll/devnp-ral.so", do we need to modify it in order to
 detect the card correctly? 

Please advise,

Thanks again,
Palak
Attachment: Text to Yao-3.zip 219.97 KB
Re: QNX doesn't detect network card  
> Hi Yao,
> 
> I have tried this revised code, and followed the same steps. In that case, it 
> showed MAC address of wireless pci, however, it didn't show in "ifconfig" or "
> network configuration window". Please find the sloginfo for this step in" 
> sloginfo_may 13.jpg"
> 
> Secondly, I have added the vendor id and device id in "x86/etc/ system/enum/
> device/net" file, I have inserted another row in list of Ralink devices. After
>  restarting the QNX, it shows ral0 in "ifconfig" as well as "network 
> configuration", however, it doesn't detect MAC address, Please find the 
> sloginfo for this step in" sloginfo2_may 13.jpg".
> 
> I just want to confirm that I have not changed anything with "lib/dll/devnp-
> ral.so", do we need to modify it in order to detect the card correctly? 
> 
> Please advise,
> 
> Thanks again,
> Palak

this is what I guess that because you modify the vid, did to enum file so old devnp-ral.so is loaded then you see 
0000000000 mac address.
the new driver I attached it will show mac address, and "rt2860 driver attached" in sloginfo.
so don't modify anything, use the instructions I put.

Re: QNX doesn't detect network card  
Hi Yao,

First of all I have tried exactly as per your instruction, without modifying anything in enum. As you have seen in first
 sloginfo_may13.jpg, It does show the MAC address, however, it doesn't show anything in "ifconfig" or "Configuration of 
network devices". How to configure IP and subnet mask without looking into "Configuration of network devices" tap of QNX
.

Please advise me in this regard.

Thanks for your consistent help.
Palak

Re: QNX doesn't detect network card  
> How to configure IP and subnet mask without looking into "Configuration of network devices" tap of QNX.
>    
How to configure IP address and subnet mask is not specific to the 
driver. It is described in the documentation for ifconfg.
http://www.qnx.com/developers/docs/6.4.1/neutrino/utilities/i/ifconfig.html

You will also want to have a look at the networking user's guide.
http://www.qnx.com/developers/docs/6.4.1/io-pkt_en/user_guide/about.html

HTH
/P
Re: QNX doesn't detect network card  
Hi Pratik,

Thanks for your reply. I have already gone through these links. If you check my previous postings, the problem with my 
network driver is that it is attached but I can't see that interface in "ifconfig". How would I know, whether driver is 
working properly over the communication stack or not, as QNX doesn't show wireless network adapter (ral0) in network 
interface lists. This way I can't configure this card.

Please advise.
Palak
Re: QNX doesn't detect network card  
Hi Mital Kanabar or Palak Parikh (is there two of you?),

I probably misunderstood you.

The last posting specifically asked how to configure IP address and 
subnet mask: "How to configure IP and subnet mask". I tried to provide 
the pointers to help with that.

It wasn't clear to me, maybe I misunderstood you, that the device didn't 
show up in ifconfig. It seemed the most likely that you meant to say 
that it now shows up, because I thought it unnecessary to ask how to 
configure IP address when it doesn't show up, that's all...

Regards,
/P

On 14/05/10 11:46 AM, Mital Kanabar wrote:
> Hi Pratik,
>
> Thanks for your reply. I have already gone through these links. If you check my previous postings, the problem with my
 network driver is that it is attached but I can't see that interface in "ifconfig". How would I know, whether driver is
 working properly over the communication stack or not, as QNX doesn't show wireless network adapter (ral0) in network 
interface lists. This way I can't configure this card.
>
> Please advise.
> Palak
>
>
>
> _______________________________________________
>
> Networking Drivers
> http://community.qnx.com/sf/go/post54727
>
>    
Re: QNX doesn't detect network card  
> Hi Yao,
> 
> First of all I have tried exactly as per your instruction, without modifying 
> anything in enum. As you have seen in first sloginfo_may13.jpg, It does show 
> the MAC address, however, it doesn't show anything in "ifconfig" or "
> Configuration of network devices". How to configure IP and subnet mask without
>  looking into "Configuration of network devices" tap of QNX.
> 
> Please advise me in this regard.
> 
> Thanks for your consistent help.
> Palak
> 


io-pkt-v4-hc -i1 -S -d `pwd`/work/devnp-ral.so verbose=5 -ptcpip prefix=/ral
take a look at document about "prefix=/ral" 

each time when you want to use network tools like ifconfig, route.... you have to specify 
SOCK=/ral ifconfig
then you will see the interface, without the SOCK=/ral it will talk to another io-pkt which is not ours, of course there
 is no ral0 interface.

run a shell
and export SOCK=/ral
then you can ifconfig the stack with ral driver.

Re: QNX doesn't detect network card  
Hi Yao,

Thanks for the reply. I do understand that, but I have to use this network adapter for packet capturing. Now, this 
network interface doesn't show up in list of devices available for packet capture. Is there any way, we can list this 
device in network devices? can we rename "devnp-ral.so" or some other way, use it with enumeration? 

Please help.
Palak
Re: QNX doesn't detect network card  
> Hi Yao,
> 
> Thanks for the reply. I do understand that, but I have to use this network 
> adapter for packet capturing. Now, this network interface doesn't show up in 
> list of devices available for packet capture. Is there any way, we can list 
> this device in network devices? can we rename "devnp-ral.so" or some other way
> , use it with enumeration? 
> 
> Please help.
> Palak


this way is to make sure this driver works first. It is not quite normal, normal is just to put it under /lib/dll/ but 
you said it crashed:(

are you using tcpdump or pcap? should work too with "SOCK=/ral".
Re: QNX doesn't detect network card  
Hi Yao,

Yes, you are right, first we should make sure that this driver works. I need to use PCAP with this adapter along with 
wired Ethernet adapter. 

Now, I have tried the latest "devnp-ral.so" normal way (just to put it under /lib/dll/) and typed "io-pkt-v4-hc -d /lib/
dll/devnp-ral.so". This time stack didn't crashed (with latest file) :), I could see all interfaces including 'ral0' 
wireless LAN interface, so I tried to configure IP to ral0 interface, but  I couldn't apply IP address, as  it showed 
network manager error (Snapshot of this sequence is attached herewith), and then it showed error like "Could not open 
Socket" so I took snapshot of io-pkt-v4-hc.core.  

Actually, I need to use capture packet for wired and wireless network adapter in one go using PCAP, therefore, I 
requested you to mount it normal way. 

If it is okay with you (please write me your contact number), I can give you a call, and follow your instructions for 
different trials (if it is more comfortable to you).

Please advise. 
Palak
Attachment: Text to yao-4.zip 289.89 KB
Re: QNX doesn't detect network card  
fix a bug.
it will be good I can remote debug or have a card.
Attachment: Text devnp-ral.so 169.07 KB
Re: QNX doesn't detect network card  
Hi Yao,

Thanks for your prompt action. I guess we are going close to the solution, however, this time io-pkt-v4-hc crashes, this
 was not happening with last "devnp-ral.so" file. I have attached snaps for sloginfo after attaching driver (by using 
command "io-pkt-v4-hc -d /lib/dll/devnp-ral.so"). After attaching driver, I have restarted QNX, and netmanager showed 
error "could not open socket" and I was not able to see any network devices. I have also attached io-pkt-v4-hc.core snap
 herewith. 

Please let me know what kind of details you will need in order to work on my system remotely or may be I will keep 
providing you snaps of all information you need for debugging this as quickly as possible on this forum, as this is my 
first priority/requirement for our projects.

Thanks a lot again for your consistent efforts. We appreciate it.

Palak 
Attachment: Text to yao-5.zip 312.17 KB
Re: QNX doesn't detect network card  
> Hi Yao,
> 
> Thanks for your prompt action. I guess we are going close to the solution, 
> however, this time io-pkt-v4-hc crashes, this was not happening with last "
> devnp-ral.so" file. I have attached snaps for sloginfo after attaching driver 
> (by using command "io-pkt-v4-hc -d /lib/dll/devnp-ral.so"). After attaching 
> driver, I have restarted QNX, and netmanager showed error "could not open 
> socket" and I was not able to see any network devices. I have also attached io
> -pkt-v4-hc.core snap herewith. 
> 
> Please let me know what kind of details you will need in order to work on my 
> system remotely or may be I will keep providing you snaps of all information 
> you need for debugging this as quickly as possible on this forum, as this is 
> my first priority/requirement for our projects.
> 
> Thanks a lot again for your consistent efforts. We appreciate it.
> 
> Palak 


didn't understand why it crashed this time, I only enabled the debug code.
and it even didn't print out the mac address and last time it did.

just let me know how can I telnet or ssh your testing machine(put it in DMZ with a public ip or VPN) or wait until I can
 get a card.
Attachment: Text devnp-ral.so 391.14 KB
Re: QNX doesn't detect network card  
Hi Yao,

I have consulted our IT dept. to allow this QNX system on the web. I am just wondering when are you planning to buy this
 card and fix the problem? Just for your information I have Linksys WMP 600N wireless adapter. 

Please reply so that  I can plan my project work accordingly.

thank you very much for your support.

Palak
Re: QNX doesn't detect network card  
Hi Yao,

This is the IP address of my QNX system which has wireless adapter: 129.100.228.130. Please advise me further steps as 
soon as possible.

Thanks,

Palak
Re: QNX doesn't detect network card  
> Hi Yao,
> 
> This is the IP address of my QNX system which has wireless adapter: 129.100.
> 228.130. Please advise me further steps as soon as possible.
> 
> Thanks,
> 
> Palak


I can't telnet to it, is it online?
Attachment: Text devnp-ral.so 323.93 KB
Re: QNX doesn't detect network card  
Hello Yao,

Eureka..!! it seems to be working :). This driver is able to attach wireless network pci card properly without crashing 
io-pkt stack.....!!!!

I am just wondering , will I be able to configure IEEE 802.11e (WMM) for QoS. I know this card supports it, but 
wondering how to set it up?

Thanks a lot for all your support and effort in this regard. Our whole team appreciate your time and help.

Palak
Re: QNX doesn't detect network card  
I got the card and now it is working under infrastructure mode with WPA-EAP, NONE. PSK should work too.
Attachment: Text devnp-ral.so 165.84 KB
Re: QNX doesn't detect network card  
fix a problem in bpf related code.
I can see the 802.11 layer packet in monitor mode with tpcdump.
Attachment: Text devnp-ral.so 165.84 KB
Re: QNX doesn't detect network card  
Hi Yao,

Thanks for all your help. Sorry for delay in reply, I was out for some other project work. Now, I have copied this 
latest driver for RT 2860. QNX can detect it as well as configured it. However, while testing, I have noticed that it 
has limitation of number of packets received per second. I am receiving only around 300 packets per second, however, in 
my application I need to transfer 5000 packets per second. Each packet size is 125 bytes only. I do understand that 
wireless has bandwidth limitations, but I am getting only 300 kbps bandwidth on 54 Mbps wifi connection. 

Please advise.

Thanks.

Palak