[OpenIndiana-discuss] Openindiana in VMWare and usb devices

Michael Stapleton michael.stapleton at techsologic.com
Tue Jun 21 15:18:41 UTC 2011


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 :)
> ----------------------------------------------------------------------------------




More information about the OpenIndiana-discuss mailing list