Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Debug using USB Device instead of RJ45: (3 Items)
   
Debug using USB Device instead of RJ45  
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.
RE: Debug using USB Device instead of RJ45  
> ioport=0x02184000, irq=75'
I see an extra space between "," and "irq": try removing the space.

If you could use the OSMeta discussion group I think it'll be a more applicable forum for this topic.

Cheers,
Andy

-----Original Message-----
From: Christopher Olarti [mailto:community-noreply@qnx.com] 
Sent: Friday, July 25, 2014 11:51 AM
To: general-filesystems
Subject: Debug using USB Device instead of RJ45

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.




_______________________________________________

General
http://community.qnx.com/sf/go/post111223
To cancel your subscription to this discussion, please e-mail general-filesystems-unsubscribe@community.qnx.com
Re: RE: Debug using USB Device instead of RJ45  
Thanks Andy, created in forum OSMeta.