Christopher Olarti(deleted)
|
USB Device Ethernet to replace the RJ45 Ethernet
|
Christopher Olarti(deleted)
07/25/2014 12:07 PM
post111225
|
USB Device Ethernet to replace the RJ45 Ethernet
I would like to use the USB Device as a USB to Ethernet port, so I can debug the board with usb instead of the RJ45
ethernet port. So far I was able to get the USB Device Mass Storage working and tried to replicate the steps for the
USB Device Ethernet (NCM), but I noticed there are differences; such as, the following:
1. In rules.lua when creating the Device_Stack = {
cmd = 'io-usb-dcd -dusbncm-mx6sabrelite-ci ioport=0x02184000, irq=75';
path = '/dev/io-usb-dcd/io-usb';
descriptors = {usbncm, usbser, umass};
An error of
# Must specify irq with ioport optionIn function usbdc_attach_hub -- /builds/660_SDP/svn/hardware/support/publishers/
usblauncher/dcd.c:247 device_root_hub != NULL -- assertion failed
2. In rules.lua there is no specific driver to invoke when creating device(), so instead tried using the following
commands
start"mount -Tio-pkt -o mac=123456789abc, protocol=ncm devnp-usbdnet.so";
OR
driver"io-pkt-v4-hc -d usbdnet protocol=ncm, path=/dev/io-usb-dcd/io-usb, mac=123456789ab";
3. However, if I used the mass storage Device Stack of
cmd = 'io-usb-dcd -dusbumass-mx6sabrelite-ci ioport=0x02184000,irq=75'
and use the command for device()
driver"io-pkt-v4-hc -d usbdnet protocol=ncm, path=/dev/io-usb-dcd/io-usb, mac=123456789ab";
The program can run, but when looking in the Windows 7 Device Manager, I am seeing the device under "Other" instead of "
Ports" or "Universal Serial Bus Controllers"
Please let me know if I am missing anything.
Thanks.
|
|
|
Andrew Sherk
|
Re: USB Device Ethernet to replace the RJ45 Ethernet
|
Andrew Sherk
07/25/2014 1:03 PM
post111228
|
Re: USB Device Ethernet to replace the RJ45 Ethernet
I see a typo in the command-line. Try removing the space before 'irq'
-cmd = 'io-usb-dcd -dusbncm-mx6sabrelite-ci ioport=0x02184000, irq=75';
+cmd = 'io-usb-dcd -dusbncm-mx6sabrelite-ci ioport=0x02184000,irq=75';
Could you provide your complete Lua file and how you a starting io-usb (the PPS command used), and how io-pkt is started
, if using the mount command to mount in the devnp-usbdnet?
|
|
|
Andrew Sherk
|
Re: USB Device Ethernet to replace the RJ45 Ethernet
|
Andrew Sherk
07/25/2014 1:06 PM
post111229
|
Re: USB Device Ethernet to replace the RJ45 Ethernet
These extra spaces following a comma are probably causing you trouble. Options that are comma-separated should not have
any spaces.
start"mount -Tio-pkt -o mac=123456789abc, protocol=ncm devnp-usbdnet.so";
>>
start"mount -Tio-pkt -o mac=123456789abc,protocol=ncm devnp-usbdnet.so";
driver"io-pkt-v4-hc -d usbdnet protocol=ncm, path=/dev/io-usb-dcd/io-usb, mac=123456789ab";
>>
driver"io-pkt-v4-hc -d usbdnet protocol=ncm,path=/dev/io-usb-dcd/io-usb,mac=123456789ab";
If you use the mount approach, remember to use the path=/dev/io-usb-dcd there too.
|
|
|
Christopher Olarti(deleted)
|
Re: USB Device Ethernet to replace the RJ45 Ethernet
|
Christopher Olarti(deleted)
07/25/2014 1:29 PM
post111230
|
Re: USB Device Ethernet to replace the RJ45 Ethernet
You are right about the spacing. So the Device_Stack can now recognize the -dusbncm. Please find the attachment to be
the *.lua files i am currently using. As for starting the the io-pkt, I am assuming in rules.lua for configuring a
device(), the execution/start will be from
io-pkt-v4-hc -d usbdnet protocol=ncm,path=/dev/io-usb-dcd/io-usb,mac=123456789ab
I also did confirm the correct device is being performed by commanding
echo "start_stack::device,1">>/pps/qnx/device/usb_ctrl
And when looking in the Windows 7 Device Manager, I do see the proper VID and PID for the specific device.
|
|
|
Andrew Sherk
|
RE: USB Device Ethernet to replace the RJ45 Ethernet
|
Andrew Sherk
07/25/2014 3:07 PM
post111232
|
RE: USB Device Ethernet to replace the RJ45 Ethernet
If you start usblauncher with -vvvv -l
after running
echo "start_stack::device,1">>/pps/qnx/device/usb_ctrl
what do you see in sloginfo?
what's the output of nicinfo?
How many io-pkts are running (please provide pidin arg output after the start_stack::device,1 command completes.
-----Original Message-----
From: Christopher Olarti [mailto:community-noreply@qnx.com]
Sent: Friday, July 25, 2014 1:29 PM
To: osmeta-core_os
Subject: Re: USB Device Ethernet to replace the RJ45 Ethernet
You are right about the spacing. So the Device_Stack can now recognize the -dusbncm. Please find the attachment to be
the *.lua files i am currently using. As for starting the the io-pkt, I am assuming in rules.lua for configuring a
device(), the execution/start will be from
io-pkt-v4-hc -d usbdnet protocol=ncm,path=/dev/io-usb-dcd/io-usb,mac=123456789ab
I also did confirm the correct device is being performed by commanding
echo "start_stack::device,1">>/pps/qnx/device/usb_ctrl
And when looking in the Windows 7 Device Manager, I do see the proper VID and PID for the specific device.
_______________________________________________
OSMeta
http://community.qnx.com/sf/go/post111230
To cancel your subscription to this discussion, please e-mail osmeta-core_os-unsubscribe@community.qnx.com
|
|
|
Christopher Olarti(deleted)
|
Re: RE: USB Device Ethernet to replace the RJ45 Ethernet
|
Christopher Olarti(deleted)
07/25/2014 4:17 PM
post111233
|
Re: RE: USB Device Ethernet to replace the RJ45 Ethernet
Please find the attachment for the data you are asking for.
|
|
|
Andrew Sherk
|
RE: RE: USB Device Ethernet to replace the RJ45 Ethernet
|
Andrew Sherk
07/25/2014 4:21 PM
post111234
|
RE: RE: USB Device Ethernet to replace the RJ45 Ethernet
Thanks. I see that you already have an io-pkt running, so I think you should use the mount -Tio-pkt method instead of
trying to start a second io-pkt.
Then, run nicinfo after starting the device stack, see if ncm0 shows up.
-----Original Message-----
From: Christopher Olarti [mailto:community-noreply@qnx.com]
Sent: Friday, July 25, 2014 4:17 PM
To: osmeta-core_os
Subject: Re: RE: USB Device Ethernet to replace the RJ45 Ethernet
Please find the attachment for the data you are asking for.
_______________________________________________
OSMeta
http://community.qnx.com/sf/go/post111233
To cancel your subscription to this discussion, please e-mail osmeta-core_os-unsubscribe@community.qnx.com
|
|
|
Christopher Olarti(deleted)
|
Re: RE: RE: USB Device Ethernet to replace the RJ45 Ethernet
|
Christopher Olarti(deleted)
07/25/2014 4:52 PM
post111235
|
Re: RE: RE: USB Device Ethernet to replace the RJ45 Ethernet
It looks llike something is happening. When I removed the device() call and just started ncm device stack
echo "start_stack::device,1">>/pps/qnx/device/usb_ctrl
the windows machine started trying to install the drivers, but failed.
When trying to mount on the command window instead of using rules.lua
# mount -Tio-pkt -o mac=123456789abc,protocol=ncm devnp-usbnet.so
mount: Can't mount / (type io-pkt)
mount: Possible reason: No such device or address
then when using nicinfo i do not see ncm0
|
|
|
Andrew Sherk
|
RE: RE: RE: USB Device Ethernet to replace the RJ45 Ethernet
|
Andrew Sherk
07/25/2014 5:04 PM
post111236
|
RE: RE: RE: USB Device Ethernet to replace the RJ45 Ethernet
Ok, at this point it's probably best to create a support ticket and allow us to help you through this portal.
Please remember to include all command output in chronological order.
I find it can help to start sloginfo -wt &
so that it's running in the background, -t gives ms precision instead of just seconds, -w waits and prints new logs as they are generated, and then we can follow your steps more easily.
-----Original Message-----
From: Christopher Olarti [mailto:community-noreply@qnx.com]
Sent: Friday, July 25, 2014 4:52 PM
To: osmeta-core_os
Subject: Re: RE: RE: USB Device Ethernet to replace the RJ45 Ethernet
It looks llike something is happening. When I removed the device() call and just started ncm device stack
echo "start_stack::device,1">>/pps/qnx/device/usb_ctrl
the windows machine started trying to install the drivers, but failed.
When trying to mount on the command window instead of using rules.lua
# mount -Tio-pkt -o mac=123456789abc,protocol=ncm devnp-usbnet.so
mount: Can't mount / (type io-pkt)
mount: Possible reason: No such device or address
then when using nicinfo i do not see ncm0
_______________________________________________
OSMeta
http://community.qnx.com/sf/go/post111235
To cancel your subscription to this discussion, please e-mail osmeta-core_os-unsubscribe@community.qnx.com
|
|
|
|