usb/scanimage broken on 6.1-PRERELEASE

Holger Kipp hk at alogis.com
Sat Feb 25 13:25:00 PST 2006


Hello all,

on my (A) FreeBSD 6.1-PRERELEASE #10: Tue Feb 21 04:37:53 CET 2006
I can't access my USB-Scanner Epson 1260 any more. It does work
on my older kernels (some 5.4 from last year and a fairly recent
(B) FreeBSD 6.1-PRERELEASE #9: Mon Feb 13 15:25:40 CET 2006,
though). Dmesg of B and diff between B and A below.

Details:

root calling sane-find-scanner works (both A and B)
root calling scanimage -L works for B, but only once
for A (and for A I usually press ctrl-t to find out
the state scanimage is in, because it does not return):

  katrin# time scanimage -L
  device `plustek:/dev/uscanner0' is a Epson Perfection 1260/Photo USB flatbed scanner
  load: 0.14  cmd: scanimage 860 [runnable] 0.00u 0.00s 0% 1852k
  0.007u 0.000s 0:05.72 0.0%      0+0k 15+0io 5pf+0w
  katrin# time scanimage -L
  load: 0.06  cmd: scanimage 861 [runnable] 0.00u 0.00s 0% 1828k

  No scanners were identified. If you were expecting something different,
  check that the scanner is plugged in, turned on and detected by the
  sane-find-scanner tool (if appropriate). Please read the documentation
  which came with this software (README, FAQ, manpages).
  0.000u 0.006s 0:47.45 0.0%      0+0k 0+0io 0pf+0w
  katrin# 

  ------------------

  This is what ps has to say about the status of scanimage
  during both calls (before pressingt ctrl-t):

  katrin# ps axwl | grep scanimage
      0   841   837   0   0  0  3820  1860 uscnrb S+    p1    0:00.01 scanimage -L
  katrin# 


  katrin# ps axwl | grep scanimage
      0   861   839   0   0  0  3732  1836 uscnrb I+    p1    0:00.01 scanimage -L
  katrin# 

Scanning is not possible under A.

Help would be really appreciated. Should I file a PR?
Or should I first try to upgrade to the latest -STABLE?

Regards,
Holger Kipp

Dmesg B:

Copyright (c) 1992-2006 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD 6.1-PRERELEASE #9: Mon Feb 13 15:25:40 CET 2006
    root at katrin.hkipp.de:/usr/obj/usr/src/sys/KATRIN
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Athlon(tm) XP 2800+ (2083.11-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x6a0  Stepping = 0
  Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
  AMD Features=0xc0400800<SYSCALL,MMX+,3DNow+,3DNow>
real memory  = 536543232 (511 MB)
avail memory = 515686400 (491 MB)
ACPI APIC Table: <A M I  OEMAPIC >
ioapic0: Changing APIC ID to 1
MADT: Forcing active-low polarity and level trigger for SCI
ioapic0 <Version 0.3> irqs 0-23 on motherboard
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <A M I OEMRSDT> on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
cpu0: <ACPI CPU> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <VIA KT880 host to PCI bridge> mem 0xe0000000-0xe3ffffff at device 0.0 on pci0
pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
atapci0: <VIA 6420 SATA150 controller> port 0xec00-0xec07,0xe800-0xe803,0xe400-0xe407,0xe000-0xe003,0xdc00-0xdc0f,0xd800-0xd8ff irq 20 at device 15.0 on pci0
ata2: <ATA channel 0> on atapci0
ata3: <ATA channel 1> on atapci0
atapci1: <VIA 8237 UDMA133 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfc00-0xfc0f at device 15.1 on pci0
ata0: <ATA channel 0> on atapci1
ata1: <ATA channel 1> on atapci1
uhci0: <VIA 83C572 USB controller> port 0xc000-0xc01f irq 21 at device 16.0 on pci0
uhci0: [GIANT-LOCKED]
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <VIA 83C572 USB controller> port 0xc400-0xc41f irq 21 at device 16.1 on pci0
uhci1: [GIANT-LOCKED]
usb1: <VIA 83C572 USB controller> on uhci1
usb1: USB revision 1.0
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: <VIA 83C572 USB controller> port 0xc800-0xc81f irq 21 at device 16.2 on pci0
uhci2: [GIANT-LOCKED]
usb2: <VIA 83C572 USB controller> on uhci2
usb2: USB revision 1.0
uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3: <VIA 83C572 USB controller> port 0xcc00-0xcc1f irq 21 at device 16.3 on pci0
uhci3: [GIANT-LOCKED]
usb3: <VIA 83C572 USB controller> on uhci3
usb3: USB revision 1.0
uhub3: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0: <VIA VT6202 USB 2.0 controller> mem 0xfebff800-0xfebff8ff irq 21 at device 16.4 on pci0
ehci0: [GIANT-LOCKED]
usb4: EHCI version 1.0
usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3
usb4: <VIA VT6202 USB 2.0 controller> on ehci0
usb4: USB revision 2.0
uhub4: VIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
uhub5: vendor 0x04b4 product 0x6560, class 9/0, rev 2.00/0.08, addr 2
uhub5: multiple transaction translators
uhub5: 4 ports with 4 removable, self powered
isab0: <PCI-ISA bridge> at device 17.0 on pci0
isa0: <ISA bus> on isab0
pci0: <multimedia, audio> at device 17.5 (no driver attached)
vr0: <VIA VT6102 Rhine II 10/100BaseTX> port 0xd400-0xd4ff mem 0xfebffc00-0xfebffcff irq 23 at device 18.0 on pci0
miibus0: <MII bus> on vr0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vr0: Ethernet address: 00:0b:6a:c0:00:ce
acpi_button0: <Power Button> on acpi0
fdc0: <floppy drive controller (FDE)> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fdc0: [FAST]
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
ppc0: <ECP parallel printer port> port 0x378-0x37f,0x778-0x77b irq 7 drq 3 on acpi0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/9 bytes threshold
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
sio0: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 flags 0x10 on acpi0
sio0: type 16550A
pmtimer0 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
ums0: vendor 0x1241 product 0x1122, rev 1.00/1.00, addr 2, iclass 3/1
ums0: 5 buttons and Z dir.
uscanner0: EPSON EPSON Scanner, rev 1.10/1.00, addr 2
Timecounter "TSC" frequency 2083112275 Hz quality 800
Timecounters tick every 1.000 msec
ad0: 152627MB <SAMSUNG SP1614N TM100-30> at ata0-master UDMA100
ad1: 76351MB <SAMSUNG SP0802N TK100-24> at ata0-slave UDMA100
acd0: DVDR <HL-DT-ST DVDRAM GSA-4163B/A102> at ata1-master UDMA33
acd1: CDRW <HL-DT-ST RW/DVD GCC-4120B/2.01> at ata1-slave PIO4
Trying to mount root from ufs:/dev/ad0s1a


diff -u dmesgB dmesgA:
--- dmesg_kernel_old    Sat Feb 25 21:43:41 2006
+++ dmesg_kernel_new    Sat Feb 25 21:50:16 2006
@@ -1,7 +1,7 @@
 Copyright (c) 1992-2006 The FreeBSD Project.
 Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
-FreeBSD 6.1-PRERELEASE #9: Mon Feb 13 15:25:40 CET 2006
+FreeBSD 6.1-PRERELEASE #10: Tue Feb 21 04:37:53 CET 2006
     root at katrin.hkipp.de:/usr/obj/usr/src/sys/KATRIN
 Timecounter "i8254" frequency 1193182 Hz quality 0
 CPU: AMD Athlon(tm) XP 2800+ (2083.11-MHz 686-class CPU)
@@ -71,7 +71,9 @@
 uhub5: 4 ports with 4 removable, self powered
 isab0: <PCI-ISA bridge> at device 17.0 on pci0
 isa0: <ISA bus> on isab0
-pci0: <multimedia, audio> at device 17.5 (no driver attached)
+pcm0: <VIA VT8237> port 0xd000-0xd0ff irq 22 at device 17.5 on pci0
+pcm0: <C-Media Electronics CMI9761 AC97 Codec>
+pcm0: <VIA DXS Enabled: DXS 4 / SGD 1 / REC 1>
 vr0: <VIA VT6102 Rhine II 10/100BaseTX> port 0xd400-0xd4ff mem 0xfebffc00-0xfebffcff irq 23 at device 18.0 on pci0
 miibus0: <MII bus> on vr0
 ukphy0: <Generic IEEE 802.3u media interface> on miibus0
@@ -102,7 +104,7 @@
 ums0: vendor 0x1241 product 0x1122, rev 1.00/1.00, addr 2, iclass 3/1
 ums0: 5 buttons and Z dir.
 uscanner0: EPSON EPSON Scanner, rev 1.10/1.00, addr 2
-Timecounter "TSC" frequency 2083112275 Hz quality 800
+Timecounter "TSC" frequency 2083112413 Hz quality 800
 Timecounters tick every 1.000 msec
 ad0: 152627MB <SAMSUNG SP1614N TM100-30> at ata0-master UDMA100
 ad1: 76351MB <SAMSUNG SP0802N TK100-24> at ata0-slave UDMA100



More information about the freebsd-stable mailing list