Tim Meese(deleted)
|
Re: Enabling RNDIS over USB on the Beaglebone Black (am335x) 6.6.0 BSP
|
Tim Meese(deleted)
09/24/2014 12:51 PM
post111868
|
Re: Enabling RNDIS over USB on the Beaglebone Black (am335x) 6.6.0 BSP
For added information, here are the snippets from the lua startup script:
# Step 1 - Start USB device stack
io-usb-dcd -dusbrndis-am335x-musbmhdrc ioport=0x47401400,irq=18,nodma,force_device_mode,inherit_cfg
waitfor /dev/io-usb-dcd/io-usb 4
waitfor /dev/io-usb-dcd/devu-usbrndis-am335x-musbmhdrc.so 4
# Step 2 - Start USB RNDIS function driver
# For best performance attach the usbdnet driver to an existing io-pkt stack. Alternatively multiple
# io-pkt stacks can be used (see SDP documentation for more details).
mount -Tio-pkt -o mac=123456789abc,protocol=rndis devnp-usbdnet.so
ulink_ctrl -l1
# Step 3 - Assign IP address to ncm interface using DHCP OR any static IP.
if_up -p rndis0
ifconfig rndis0 192.168.10.100
Again, usbrndis-am335x is a clone of the ndm driver replacing the descriptor header file with the published rndis header
file. Any help would be appreciated.
Best Regards,
Tim Meese
|
|
|
Tim Meese(deleted)
|
Re: Enabling RNDIS over USB on the Beaglebone Black (am335x) 6.6.0 BSP
|
Tim Meese(deleted)
11/09/2015 3:23 PM
post114932
|
Re: Enabling RNDIS over USB on the Beaglebone Black (am335x) 6.6.0 BSP
Hello QNX Community,
For anyone interested, there is an issue with the argument processing in io-pkt. For RNDIS, both device and host side
MAC addresses have to be specified in the mount -Tio-pkt command like so:
##### Example of RNDIS device (Ethernet over USB) #####
# Step 1 - Start USB device stack
io-usb-dcd -dusbrndis-mx6sabrelite-ci ioport=0x02184000,irq=75
waitfor /dev/io-usb-dcd/io-usb 4
waitfor /dev/io-usb-dcd/devu-usbrndis-mx6sabrelite-ci.so 4
# Step 2 - Start USB RNDIS function driver
# For best performance attach the usbdnet driver to an existing io-pkt stack. Alternatively multiple
# io-pkt stacks can be used (see SDP documentation for more details).
mount -Tio-pkt -o mac=123456789abc,usbdnet_mac=123456789abd,protocol=rndis devnp-usbdnet.so
ulink_ctrl -l
Also, note that the MAC address must use a valid OUI, or the network stack will silently ignore the interface.
Tim
|
|
|