[OpenIndiana-discuss] Openindiana in VMWare and usb devices

Michael Stapleton michael.stapleton at techsologic.com
Tue Jun 21 19:38:31 UTC 2011


Hi ,

>From the man page for the usbsacm driver:

ENXIO    The unit being opened does not exist.



You could try a cleanup of /dev. 

Remove the modem.

# devfsadm -C

Attach the modem

# init 6

#devfsadm -v


Mike

On Tue, 2011-06-21 at 17:58 +0200, Gabriele Bulfon wrote:

> More.
> I tried the same truss on the native machine, here the difference:
> sonicle at nativeoi:/etc# truss -t stat,open tip /dev/cua/0
> stat64("/usr/bin/tip", 0x0804794C)              = 0
> open("/var/ld/ld.config", O_RDONLY)             Err#2 ENOENT
> stat64("/lib/libc.so.1", 0x080470FC)            = 0
> open("/lib/libc.so.1", O_RDONLY)                = 3
> stat64("/usr/lib/locale/en_US.UTF-8/en_US.UTF-8.so.3", 0x08046BE0) = 0
> open("/usr/lib/locale/en_US.UTF-8/en_US.UTF-8.so.3", O_RDONLY) = 3
> stat64("/usr/lib/locale/en_US.UTF-8/libc.so.1", 0x08046AC0) Err#2 ENOENT
> stat64("/usr/lib/locale/en_US.UTF-8/methods_unicode.so.3", 0x08046AC0) = 0
> open("/usr/lib/locale/en_US.UTF-8/methods_unicode.so.3", O_RDONLY) = 3
> open("/etc/remote", O_RDONLY)                   = 3
> stat("/dev/cua/0", 0x08047B60)                  = 0
> open("/var/spool/locks/LTMP.4182", O_WRONLY|O_CREAT|O_TRUNC, 0444) = 3
> open("/dev/cua/0", O_RDWR)                      = 3
> (...continues up to connected...)
> Main differences are:
> - stat of cua/0 returns 0 but the hex in stat is different (ending with 60 instead of 90).
> - open of cua/0 retuns 3, instead of ENXIO
> ----------------------------------------------------------------------------------
> Da: Gabriele Bulfon
> A: Discussion list for OpenIndiana
> Data: 21 giugno 2011 17.42.48 CEST
> Oggetto: Re: [OpenIndiana-discuss] Openindiana in VMWare and usb devices
> Wow...this is a very deep analysis ;)
> Well, on the physical machine (where it works great), the device is very similar:
> crw-rw-rw-   1 root     sys       99, 131072 Jun 21 17:33 modem at 0,2:0,cu
> still 99....
> On both my systems (physical and virtual) grep 99 name_to major gives:
> usbsacm 99
> then, on both systems:
> sonicle at oi:/etc# modinfo |grep usbsacm
> 152 fffffffff7eaa680   4850  99   1  usbsacm (USB Serial CDC ACM driver)
> and, on both systems, fmadm faulty returns nothing...
> Please consider that the same USB CDC modem, is correctly seen by a Linux on the same VMWare,
> using the same ESXi 4.1 procedure.
> And...consider that plugging an USB key on the same machine, and making it available to OI from
> ESXi 4.1, I can see and work on files with no problem....
> Thanx for your precious analysis ;)
> ----------------------------------------------------------------------------------
> Da: Michael Stapleton
> A: Discussion list for OpenIndiana
> Data: 21 giugno 2011 17.18.41 CEST
> Oggetto: Re: [OpenIndiana-discuss] Openindiana in VMWare and usb devices
> Hi Gabriele,
> Some more steps to see what's going on. Are we talking to the right
> driver? Is the driver loaded properly, is the driver configured
> properly?
> Following the path from tip to the driver:
> So your tip error is:
> open("/dev/cua/0", O_RDWR)    Err#6 ENXIO
> # man -s 2 open :
> ENXIO           The O_NONBLOCK flag is set, the  named  file
> is  a FIFO, the O_WRONLY flag is set, and no
> process has the file open  for  reading;  or
> the  named  file  is  a character special or
> block special file and the device associated
> with this special file does not exist or has
> been retired by the fault management  frame-
> work .
> lrwxrwxrwx 1 root root 83 Jun 20 19:02 0
> -../../devices/pci at 0,0/pci15ad,790 at 11/pci15ad,1976 at 2/communications at 1/modem at 0,2:0,cu
> crw-rw-rw- 1 root sys 99, 131072 Jun 21
> 18:47 /devices/pci at 0,0/pci15ad,790 at 11/pci15ad,1976 at 2/communications at 1/modem at 0,2:0,cu
> Major number 99, minor number 131072? That's quite the minor number..
> I'm not sure what your driver is supposed to be, but on my system it
> would be wrong.
> # grep 99 /etc/name_to_major
> On my system its:
> vgatext 99
> vgatext driver does not seem right.... but that is on my system, what
> driver is it on your system?
> Substitute your driver in the following.
> Then, is the driver loaded?
> # modinfo | grep vgatext
> Nope: Why not?
> # grep vgatext /var/adm/messages
> Nothing...
> Try loading the driver.
> # find /kernel -name vgatext
> /kernel/drv/amd64/vgatext
> /kernel/drv/vgatext
> 64bit?
> # modload /kernel/drv/amd64/vgatext
> any errors?
> # grep vgatext /var/adm/messages
> #  fmadm faulty
> # modinfo | grep vgatext
> 291 fffffffff846f340   5070  99   1  vgatext (VGA text driver)
> My driver loaded, did yours?
> Find anything interesting?
> Mike
> On Tue, 2011-06-21 at 10:54 +0200, Gabriele Bulfon wrote:
> Here is the output of truss:
> sonicle at openindiana:/var/adm# truss -t stat,open tip /dev/cua/0
> stat64("/usr/bin/tip", 0x08047984)              = 0
> open("/var/ld/ld.config", O_RDONLY)             Err#2 ENOENT
> stat64("/lib/libc.so.1", 0x08047134)            = 0
> open("/lib/libc.so.1", O_RDONLY)                = 3
> stat64("/usr/lib/locale/en_US.UTF-8/en_US.UTF-8.so.3", 0x08046C10) = 0
> open("/usr/lib/locale/en_US.UTF-8/en_US.UTF-8.so.3", O_RDONLY) = 3
> stat64("/usr/lib/locale/en_US.UTF-8/libc.so.1", 0x08046AF0) Err#2 ENOENT
> stat64("/usr/lib/locale/en_US.UTF-8/methods_unicode.so.3", 0x08046AF0) = 0
> open("/usr/lib/locale/en_US.UTF-8/methods_unicode.so.3", O_RDONLY) = 3
> open("/etc/remote", O_RDONLY)                   = 3
> stat("/dev/cua/0", 0x08047B90)                  = 0
> open("/var/spool/locks/LTMP.1099", O_WRONLY|O_CREAT|O_TRUNC, 0444) = 3
> open("/dev/cua/0", O_RDWR)                      Err#6 ENXIO
> tip: /dev/cua/0: No such device or address
> stat("/dev/cua/0", 0x08047B90)                  = 0
> all ports busy
> The device is present, and linked:
> sonicle at openindiana:/dev/cua# ls -l
> total 3
> lrwxrwxrwx   1 root     root          83 Jun 20 19:02 0 -../../devices/pci at 0,0/pci15ad,790 at 11/pci15ad,1976 at 2/communications at 1/modem at 0,2:0,cu
> lrwxrwxrwx   1 root     root          42 Jun 20 18:55 a -../../devices/pci at 0,0/isa at 7/asy at 1,3f8:a,cu
> lrwxrwxrwx   1 root     root          42 Jun 20 18:55 b -../../devices/pci at 0,0/isa at 7/asy at 1,2f8:b,cu
> Here is the device:
> crw-rw-rw-   1 root     sys       99, 131072 Jun 21 18:47 /devices/pci at 0,0/pci15ad,790 at 11/pci15ad,1976 at 2/communications at 1/modem at 0,2:0,cu
> Thanx so much :)
> ----------------------------------------------------------------------------------
> _______________________________________________
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss at openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
> _______________________________________________
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss at openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
> _______________________________________________
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss at openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss




More information about the OpenIndiana-discuss mailing list