USB port won't recognize any-thang, in FBSD

From: Andrew Predoehl (predoehl_at_mail.kg)
Date: 07/08/04

  • Next message: Danny: "Re: where o where is it starting from"
    To: <freebsd-questions@freebsd.org>
    Date: Thu, 8 Jul 2004 20:03:05 +0600
    
    

    Under FreeBSD 4.9-RELEASE, my USB port doesn't seem to work with my printer,
    my scanner, or my external CD-R burner. The printer is what I most wish
    were working. I dual-boot, and under Win98SE all three seem to work fine.
    And FreeBSD seems to work fine as long as there's nothing plugged into the
    USB port. Can anyone give me some advice on how to get the printer (or
    anything USB) working?

    I have never done anything with /etc/usbd.conf -- am I supposed to? If so,
    how do I find out all those parameters (device ID, manufacturer...) ?

    Here's a snippet of dmesg for a normal (quick, happy, printerless) boot:

    (((NORMAL BOOTUP DMESG)))
    ...
    ohci0: <AcerLabs M5237 (Aladdin-V) USB controller>
       mem 0xfedde000-0xfeddefff irq 9 at device 19.0 on pci0
    usb0: OHCI version 1.0, legacy support
    usb0: <AcerLabs M5237 (Aladdin-V) USB controller> on ohci0
    usb0: USB revision 1.0
    uhub0: AcerLabs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
    uhub0: 2 ports with 2 removable, self powered
    orm0: <Option ROM> at iomem 0xc0000-0xcb7ff on isa0
    ...

    (((UNHAPPY BOOT)))
    If the printer is plugged in to the USB port, there is a pregnant pause
    (20-30 seconds) after the last uhub0 message, then an extra error message
    (below). Also, to research this problem, in my kernel I enabled options
    INVARIANTS, INVARIANT_SUPPORT, and DIAGNOSTIC and fished out one additional
    error message during the boot-up (also below)

    (((UNHAPPY DMESG + DIAGNOSTIC STUFF)))
    ...
    ohci0: <AcerLabs M5237 (Aladdin-V) USB controller>
       mem 0xfedde000-0xfeddefff irq 9 at device 19.0 on pci0
    usb0: OHCI version 1.0, legacy support
    usb0: <AcerLabs M5237 (Aladdin-V) USB controller> on ohci0
    usb0: USB revision 1.0
    uhub0: AcerLabs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
    uhub0: 2 ports with 2 removable, self powered
    ohci_close_pipe: pipe not empty sed=0xc08d27a0
       hd=0x3dc87d0 tl=0x3dc8650 pipe=0xc08d0a00, std=0xc08d47d0
    ohci_close_pipe: pipe still not empty
    uhub0: device problem, disabling port 1
    ...

    Usually the ohci_close_pipe messages do not appear -- they are there thanks
    to the additional kernel options I enabled. (And if there are some other
    options I should turn on, or other switches to twiddle, so as to get more
    debug info, tell me and I'll try it.)

    When I try my scanner or the CD-R burner I get the same schpiel: a long
    pause, then the message:

    uhub0: device problem, disabling port 1

    Does anybody know what is going on here? How can I debug this?

    (((MY COMPUTER'S DETAILS)))
    I'm running 4.9-RELEASE on a Toshiba Satellite 1625CDT. I have
    usbd_enable="YES" in /etc/rc.conf. The printer (hpdeskjet 940c) is listed
    under linprinters.org as working with CUPS, hpijs, and so on, so I'd think
    it could be convinced to work. The scanner is an HP ScanJet 3300C, which is
    listed in /usr/src/sys/dev/usb/usbdevs.h, so someone somewhere must have
    gotten it to work. Again, my USB peripherals work under that otherOS
    whichwas newin '98 . . . perhaps they all signed a treaty with resident of
    /dev/ad0s1 not to cooperate with any other OS ;-)

    I notice there's some dodgy stuff (disabled with #if 0) in
    /usr/src/sys/dev/usb/ulpt.c -- a chunk of code in USB_ATTACH() with the
    comment that, for unknown reasons, printing fails (just grep for "sigh" in
    that directory). I also notice the usb_quirks files. Perhaps my
    peripherals have some quirks that needs to be registered there? Or was the
    USB-attach code still a bit squishy when 4.9 was released? Would it help to
    upgrade to 5.X ?? Also, would this question be more appropriate
    for -mobile?

    I didn't say anything about lpd or cups, because I presume there's nothing
    those programs can do until the printer is recognized (and CUPS is installed
    and runs but it sure enough doesn't see any printer).

    Thanks for any and all advice!

    Andrew Predoehl
    Bishkek, Kyrgyzstan

    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Danny: "Re: where o where is it starting from"

    Relevant Pages

    • Re: How to control the Scanner which connect with a Thin Terminal?
      ... rdp or ica session, when they are connected to an USB port, but ... or USB ports. ... Other solutions are based on sharing the scanner on the network. ... MCSE, CCEA, Microsoft MVP - Terminal Server ...
      (microsoft.public.windows.terminal_services)
    • usb_insert_transfer panic with if_zyd
      ... When I use my ZyXEL G-220 Wireless USB Stick with the if_zyd driver, ... <ACPI PCI bus> on pcib0 ... device problem, disabling port 1 ... <Ethernet over FireWire> on firewire0 ...
      (freebsd-current)
    • Re: Multifunction Printer
      ... Shut off all peripherals like the printer, speakers, ... functioning properly, many times, I also bought a new USB cable so that I ... > USB Local Port Canon MPC 200 Printer. ... Scanner may be turned off, ...
      (microsoft.public.windowsxp.help_and_support)
    • 2.6.10-rc1 & ahci & IHC6R & 925X & raid1
      ... usb modules for console, usb keyboard, network and starting a shell. ... ACPI: PM-Timer IO Port: 0x808 ... PCI: PCI BIOS revision 2.10 entry at 0xfb768, ... usbcore: registered new driver hub ...
      (Linux-Kernel)
    • usb does not work on vias smp mainboard
      ... I installed kernel 2.4.21 on an via's mainboard, it seems that the usb ... number of MP IRQ sources: ... PCI Interrupt Link ... Port indicators are not supported ...
      (Linux-Kernel)