mike scott(deleted)
10/29/2018 10:21 PM
post119257
|
Hi QNX,
beaglebone black, QNX 6.5SP1, bsp-nto650-ti-beaglebone-sp1-trunk-201209071340, Realtek rtl8192 usb-wifi
adapter
Please help how to configure USB-WIFI in QNX. A previous post in the network forum suggests to compose a device driver,
and gives the source code of asix USB-Ethernet as reference.
http://community.qnx.com/sf/discussion/do/listPosts/projects.networking/discussion.drivers.topc26776?_message=
1540800666226
However, when I look into rtl8192cu linux source code, I don't think I am capable to port it into QNX.
Here is what I am thinking,
According to http://www.qnx.com/developers/docs/6.5.0/index.jsp?topic=%2Fcom.qnx.doc.io-pkt_en_user_guide%
2Fwpa_background.html
io-pkt-v4-hc has 802.11 layer built in, and WPA utilities is able to manage wireless network connections. I am wondering
whether there is a simple solution and just let build script configures USB-WIFI ?
Currently, in .build script, I have Ethernet and USB-OTG setup as follows,
io-pkt-v4-hc -dam335x deviceindex=0
waitfor /dev/socket
if_up -p -a dm0
ifconfig dm0 192.168.31.205/16
display_msg Starting USB OTG Host driver...
io-usb -vvv -d dm816x-mg ioport=0x47401c00,irq=19
waitfor /dev/io-usb/io-usb 4
QNX is able to locate the devices,
# usb -vvv
USB 0 (dm816x) v1.10, v1.01 DDK, v1.01 HCD
Control, Interrupt, Bulk(SG), Isoch(Stream), High speed
Device Address : 1
Upstream Host Controller : 0
Upstream Device Address : 0
Upstream Port : 0
Upstream Port Speed : High
Vendor : 0x0bda (Realtek)
Product : 0x8176 (802.11n WLAN Adapter)
Device Release : r2.00
USB Spec Release : v2.00
Serial Number : 00e04c000001
Class : 0x00 (Independent per interface)
Max PacketSize0 : 64
Languages : 0x0409 (English)
Current Frame : 471 (1024 bytes)
Configurations : 1
Configuration : 1
Attributes : 0x80 (Bus-powered)
Max Power : 500 mA
Interfaces : 1
Interface : 0 / 0
Class : 0xff (Vendor-specific)
Subclass : 0xff
Protocol : 0xff
Endpoints : Control + 4
Endpoint : 0
Attributes : Control
Max Packet Size: 0
Endpoint : 1
Attributes : Bulk/IN
Max Packet Size: 512
Endpoint : 2
Attributes : Bulk/OUT
Max Packet Size: 512
Endpoint : 3
Attributes : Bulk/OUT
Max Packet Size: 512
Endpoint : 4
Attributes : Interrupt/IN
Max Packet Size: 64
Interval : 1 mframe
# ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33192
inet 127.0.0.1 netmask 0xff000000
dm0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
address: 80:30:dc:54:02:97
media: Ethernet none (100baseTX full-duplex)
status: active
inet 192.168.31.205 netmask 0xffff0000 broadcast 192.168.255.255
I tried to follow "Using Wi-Fi with io-pkt"
# io-pkt-v4-hc -d /lib/dll/devnp-ral.so
# ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33192
inet 127.0.0.1 netmask 0xff000000
which actually kills dm0, and does not invoke ral0 for wifi as well.
Please advice , thanks in advance.
Mike
|
Attachment: |
build
23.67 KB
|
|
|