Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - 6.5.0 SP1: io-pkt-v4-hc and multiple instances of the same USB Ethernet dongle: (9 Items)
   
6.5.0 SP1: io-pkt-v4-hc and multiple instances of the same USB Ethernet dongle  
The problem I'm facing is with two smsc9500 USB Ethernet devices. In fact, multiple instances config seems to be 
supported just fine. The real problem is with assigning MAC address to individual instances.

The following would recognize and crate two interfaces en0 and en1 just as expected, but MAC addresses will be 00-00-00-
00-00-00 for both:

io-pkt-v4-hc -vvvv -ptcpip -dsmsc9500
   
The following would recognize and assign the same MAC for both interfaces en0 and en1:

io-pkt-v4-hc -vvvv -ptcpip -dsmsc9500 mac=001122334455  

Any combination with using vid/did/busno/devno would simply result into "devn-smsc9500.so: unknown error" error. Either 
I'm missing something or there is a bug in the deriver. For example the following:

io-pkt-v4-hc -vvvv -ptcpip -dsmsc9500,vid=0x0424,did=0xec00,busno=1,devno=2,mac=001122334455

would generate the same "unknown error". Obviously busno/devno parameters are correct as they are copy/pasted from "usb 
-v" output. 

So my idea with using busno/devno to assign per device MAC address for two smsc9500 chips appears to be useless.

Does anyone have an idea on why it doesn't like vid/did/busno/devno setup? Alternatively, any other ways to assign 
different MACs so I can use both interfaces?

Thanks for any pointers.    
Re: 6.5.0 SP1: io-pkt-v4-hc and multiple instances of the same USB Ethernet dongle  
Sorry, a small typo in that last command line:

io-pkt-v4-hc -vvvv -ptcpip -dsmsc9500 vid=0x0424,did=0xec00,busno=1,devno=2,mac=001122334455 

The above results into "unknown error" even though vid/did/busno/devno are all correct...  
Re: 6.5.0 SP1: io-pkt-v4-hc and multiple instances of the same USB Ethernet dongle  
Does it work if you run io-pkt as follows:

io-pkt-v4-hc -dsmsc9500 busno=x,devno=y,mac=001122334455 -dsmsc9500
busno=a,devno=b,mac=001122334456




On 2013-04-29 5:16 PM, "Oleg V" <community-noreply@qnx.com> wrote:

>
>The problem I'm facing is with two smsc9500 USB Ethernet devices. In
>fact, multiple instances config seems to be supported just fine. The real
>problem is with assigning MAC address to individual instances.
>
>The following would recognize and crate two interfaces en0 and en1 just
>as expected, but MAC addresses will be 00-00-00-00-00-00 for both:
>
>io-pkt-v4-hc -vvvv -ptcpip -dsmsc9500
>   
>The following would recognize and assign the same MAC for both interfaces
>en0 and en1:
>
>io-pkt-v4-hc -vvvv -ptcpip -dsmsc9500 mac=001122334455
>
>Any combination with using vid/did/busno/devno would simply result into
>"devn-smsc9500.so: unknown error" error. Either I'm missing something or
>there is a bug in the deriver. For example the following:
>
>io-pkt-v4-hc -vvvv -ptcpip
>-dsmsc9500,vid=0x0424,did=0xec00,busno=1,devno=2,mac=001122334455
>
>would generate the same "unknown error". Obviously busno/devno parameters
>are correct as they are copy/pasted from "usb -v" output.
>
>So my idea with using busno/devno to assign per device MAC address for
>two smsc9500 chips appears to be useless.
>
>Does anyone have an idea on why it doesn't like vid/did/busno/devno
>setup? Alternatively, any other ways to assign different MACs so I can
>use both interfaces?
>
>Thanks for any pointers.
>
>
>
>_______________________________________________
>
>General
>http://community.qnx.com/sf/go/post100980
>To cancel your subscription to this discussion, please e-mail
>general-networking-unsubscribe@community.qnx.com

Re: 6.5.0 SP1: io-pkt-v4-hc and multiple instances of the same USB Ethernet dongle  
Nope, tried that already. Getting the same "unknown error". I think it just generally doesn't like the vid/did/busno/
devno parameters for whatever reason. 
Re: 6.5.0 SP1: io-pkt-v4-hc and multiple instances of the same USB Ethernet dongle  
Are there any messages in sloginfo?



On 2013-04-30 8:48 AM, "Oleg V" <community-noreply@qnx.com> wrote:

>Nope, tried that already. Getting the same "unknown error". I think it
>just generally doesn't like the vid/did/busno/devno parameters for
>whatever reason. 
>
>
>
>_______________________________________________
>
>General
>http://community.qnx.com/sf/go/post100995
>To cancel your subscription to this discussion, please e-mail
>general-networking-unsubscribe@community.qnx.com

Re: 6.5.0 SP1: io-pkt-v4-hc and multiple instances of the same USB Ethernet dongle  
Oh I completely forgot about system log. Thanks Hugh!

It seems smsc9500 driver doesn't quite like busno parameter for whatever reason.  

Jan 01 00:03:06    3    14     0 devn-smsc9500: Unknown option busno=1
Jan 01 00:03:06    2    14     0 shim: unable to init dll devn-smsc9500.so: Invalid argument
Jan 01 00:03:06    2    14     0 Unable to init devn-smsc9500.so: Unknown error
  
Re: 6.5.0 SP1: io-pkt-v4-hc and multiple instances of the same USB Ethernet dongle  
OK, so try busnum=x,devnum=y.




On 2013-04-30 9:50 AM, "Oleg V" <community-noreply@qnx.com> wrote:

>
>Oh I completely forgot about system log. Thanks Hugh!
>
>It seems smsc9500 driver doesn't quite like busno parameter for whatever
>reason.  
>
>Jan 01 00:03:06    3    14     0 devn-smsc9500: Unknown option busno=1
>Jan 01 00:03:06    2    14     0 shim: unable to init dll
>devn-smsc9500.so: Invalid argument
>Jan 01 00:03:06    2    14     0 Unable to init devn-smsc9500.so: Unknown
>error
>  
>
>
>
>_______________________________________________
>
>General
>http://community.qnx.com/sf/go/post101000
>To cancel your subscription to this discussion, please e-mail
>general-networking-unsubscribe@community.qnx.com

Re: 6.5.0 SP1: io-pkt-v4-hc and multiple instances of the same USB Ethernet dongle  
That worked, thanks a lot! I guess the documentation is not quite complete or correct. It states busno/devno:  

http://www.qnx.org.uk/developers/docs/6.5.0/index.jsp?topic=%2Fcom.qnx.doc.neutrino_utilities%2Fi%2Fio-pkt.html  
Re: 6.5.0 SP1: io-pkt-v4-hc and multiple instances of the same USB Ethernet dongle  
If you run 'use /lib/dll/devn-smsc9500.so' you should see the correct
command line options. Yes, the documentation should be corrected.




On 2013-04-30 10:17 AM, "Oleg V" <community-noreply@qnx.com> wrote:

>That worked, thanks a lot! I guess the documentation is not quite
>complete or correct. It states busno/devno:
>
>http://www.qnx.org.uk/developers/docs/6.5.0/index.jsp?topic=%2Fcom.qnx.doc
>.neutrino_utilities%2Fi%2Fio-pkt.html
>
>
>
>_______________________________________________
>
>General
>http://community.qnx.com/sf/go/post101007
>To cancel your subscription to this discussion, please e-mail
>general-networking-unsubscribe@community.qnx.com