Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

HP ScanJet 4300C (USB) on FreeBSD

Help!
2005-08-13
2013-04-09
  • Hi everybody!

    I am trying to get my HP ScanJet 4300C working on FreeBSD 6 .

    But things seem to go  wrong at a very early stage. When I attach the scanner to the USB port, # dmesg will display this

    ugen0: Hew product 0x0305, rev 1.00/0.00, addr 2
    ugen0: setting configuration index 0 failed
    device_attach: ugen0 attach returned 6

    This is what happens with a kernel without uscanner support. With
    device      uscanner
    I will receive the same message with uscanner0 instead of     ugen0 .

    # usbdevs -v              delivers

    Controller /dev/usb0:
    addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00
    port 1 addr 2: full speed, self powered, unconfigured, product 0x0305(0x0305), vendor 0x03f0(0x03f0), rev 0.00
    port 2 powered

    and this is the output of   # sane-find-scanner

      # No SCSI scanners found. If you expected something different, make sure that
      # you have loaded a SCSI driver for your SCSI adapter.

      # No USB scanners found. If you expected something different, make sure that
      # you have loaded a driver for your USB host controller and have installed a
      # kernel scanner module.

      # Not checking for parallel port scanners.

      # Most Scanners connected to the parallel port or other proprietary ports
      # can't be detected by this program.

    I have also installed /devel/libusb .

    What can I do now?

    Thanks,

    Peter.

     
    • saperski
      saperski
      2005-08-15

      Hello,

      Seems like strange problem with USB in general on your system.

      Any other USB devices working?

      1) I would expect to see the line similar to the following in the usbdevs
      output:

      port X addr Y: full speed, self powered, config 1, HP ScanJet 4300C(0x0305), Hewlett-Packard(0x03f0), rev 0.00

      can you check if your kernel source contains

      product HP 4300C        0x0305    Scanjet 4300C

      in the /sys/dev/usb/usbdevs file?

      2) Can you apply the patch from

      http://sourceforge.net/tracker/download.php?group_id=36708&atid=423561&file_id=145665&aid=555011

      to /sys/dev/usb/uscanner.c and recompile kernel (or just uscanner module) and show the output of sane-find-scanner again?

      This patch should work also on FreeBSD 6.

      --Marcin

       
    • 0) Yes, I can mount a USB memory stick as /dev/da0 and - I have got a dual boot system - my ScanJet can be run from Windows2000 .

      1) The  product line is in ../usbdevs

      2) I applied the patch, reenabled uscanner and recompiled my kernel: No changes!

      Only # dmesg now says

      uscanner0: Hew product 0x0305, rev 1.00/0.00, addr 2
      uscanner0: setting config no failed
      device_attach: uscanner0 attach returned 6

      Peter.