bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libusb+librump patch


From: Bruno Félix Rezende Ribeiro
Subject: Re: libusb+librump patch
Date: Wed, 14 Oct 2015 22:03:26 -0300

Hello Robert!

Em Wed, 30 Sep 2015 22:37:50 +0200
Robert Millan <rmh@gnu.org> escreveu:

> I suggest you export RUMP_VERBOSE=2 to get verbose output from the
> Rump kernel.

Thank you for the suggestion.  Here is the output:

  libusb: 0.000000 debug [libusb_init] libusb-1.0.9
  Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
      2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015
      The NetBSD Foundation, Inc.  All rights reserved.
  Copyright (c) 1982, 1986, 1989, 1991, 1993
      The Regents of the University of California.  All rights reserved.

  NetBSD 7.99.17 (RUMP-ROAST)
  total memory = unlimited (host limit)
  timecounter: Timecounters tick every 10.000 msec
  timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
  cpu0 at thinair0: rump virtual cpu
  cpu1 at thinair0: rump virtual cpu
  root file system type: rumpfs
  kern.module.path=/stand/i386/7.99.17/modules
  mainbus0 (root)
  pci0 at mainbus0 bus 0
  pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
  vendor 8086 product 2560 (host bridge, revision 0x01) at pci0 dev 0 function 
0 not configured
  vendor 8086 product 2562 (VGA display, revision 0x01) at pci0 dev 1 function 
0 not configured
  uhci0 at pci0 dev 2 function 0: vendor 8086 product 24c2 (rev. 0x01)
  uhci0: interrupting at pausebreak
  usb0 at uhci0: USB revision 1.0
  uhub0 at usb0: vendor 8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
  uhub0: 2 ports with 2 removable, self powered
  uhci1 at pci0 dev 3 function 0: vendor 8086 product 24c4 (rev. 0x01)
  uhci1: interrupting at pausebreak
  usb1 at uhci1: USB revision 1.0
  uhub1 at usb1: vendor 8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
  uhub1: 2 ports with 2 removable, self powered
  uhci2 at pci0 dev 4 function 0: vendor 8086 product 24c7 (rev. 0x01)
  uhci2: interrupting at pausebreak
  usb2 at uhci2: USB revision 1.0
  uhub2 at usb2: vendor 8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
  uhub2: 2 ports with 2 removable, self powered
  vendor 8086 product 244e (PCI bridge, revision 0x81) at pci0 dev 5 function 0 
not configured
  vendor 8086 product 24c0 (ISA bridge, revision 0x01) at pci0 dev 6 function 0 
not configured
  vendor 8086 product 24cb (IDE mass storage, interface 0x8a, revision 0x01) at 
pci0 dev 7 function 0 not configured
  vendor 8086 product 24c3 (SMBus serial bus, revision 0x01) at pci0 dev 8 
function 0 not configured
  vendor 8086 product 24c5 (audio multimedia, revision 0x01) at pci0 dev 9 
function 0 not configured
  vendor 8086 product 1039 (ethernet network, revision 0x81) at pci0 dev 10 
function 0 not configured
  uhub1: device problem, disabling port 2
  libusb: 6.640000 debug [usbi_add_pollfd] add fd 4 events 1
  libusb: 6.640000 debug [libusb_init] created default context
  libusb: 6.640000 debug [libusb_get_device_list] 
  libusb: 6.640000 debug [obsd_get_device_list] 
  libusb: 6.660000 debug [libusb_exit] 
  libusb: 6.660000 debug [libusb_exit] destroying default context
  libusb: 6.660000 debug [usbi_remove_pollfd] remove fd 4

The relevant message is: "uhub1: device problem, disabling port 2".
That, I think, is the only difference between running 'listdevs' with
and without a USB device attached to the system.  Any ideas?


> OTOH I think this part of your patch:
> 
> +  #define RUMP_SYS_OPEN
> +  #define RUMP_SYS_CLOSE
> +  #define RUMP_SYS_IOCTL
> +  #define RUMP_SYS_READWRITE
> 
> is a bit dangerous. It would break any (current or future) usage of
> open() / close() / etc in that file which is not related to USB device
> nodes.

I see.  What do you recommend?  #ifdefs for each occurrence?  Anyway,
I'm just playing around with it.


-- 
 88888  FFFFF Bruno Félix Rezende Ribeiro (oitofelix) [0x28D618AF]
 8   8  F     http://oitofelix.freeshell.org/
 88888  FFFF  mailto:oitofelix@gnu.org
 8   8  F     irc://chat.freenode.org/oitofelix
 88888  F     xmpp://oitofelix@riseup.net

- GNU ccd2cue maintainer
- GNU Savannah hacker
- GNU webmaster
- GNU web translation team coordinator (Brazilian Portuguese)
- GNU audio and video maintainer
- DMOZ free software editor (Portuguese)
- UFU FAMAT PET member
- SDF Public Access UNIX System ARPA member
- Riseup user and supporter

Please, support my work: http://oitofelix.freeshell.org/funding.html

[GNU DISCLAIMER] I'm a GNU hacker, but my views don't necessarily
match those of the GNU project.  Hereby I express my own opinion,
style and perception, in good faith, aiming the betterment of GNU.

Attachment: pgpThWeF80CqE.pgp
Description: Assinatura digital OpenPGP


reply via email to

[Prev in Thread] Current Thread [Next in Thread]