Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 109355 - With gentoo-sources-2.6.13-r3 usb scanner doesn't work
Summary: With gentoo-sources-2.6.13-r3 usb scanner doesn't work
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Patrick Kursawe (RETIRED)
URL: http://bugzilla.kernel.org/show_bug.c...
Whiteboard:
Keywords:
: 111085 111867 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-10-15 05:05 UTC by Dariusz Brzezinski
Modified: 2005-11-08 08:54 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
lide25-r1 patch compilation error (lide25-r1.patch-15210.out,7.79 KB, text/plain)
2005-11-03 13:43 UTC, Dariusz Brzezinski
Details
kernel2.6.13usb-problem.patch compilation error (kernel2.6.13usb-problem.patch-15493.out,2.92 KB, text/plain)
2005-11-03 13:46 UTC, Dariusz Brzezinski
Details
sm3600usb.patch-20263.out (sm3600usb.patch-20263.out,10.91 KB, text/plain)
2005-11-04 15:16 UTC, Dariusz Brzezinski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dariusz Brzezinski 2005-10-15 05:05:14 UTC
With gentoo-sources-2.6.12 scanner works fine. After upgrade to 2.6.13 the   
scanner is recognized proprely but xsane faild with message:  
"Failed to open device `sm3600:3/1`: Error during device I/O."  
The fault is present for normal user and root.  
Also kooka failed with complaining about sane-backends instalation. 
The sane-backends and xsane was reemerged.  

Reproducible: Always
Steps to Reproduce:
1.Start xsane or kooka 
2.  
3.  
  
Actual Results:  
xsane recognized scanner but stops with message:  
"Failed to open device `sm3600:3/1`: Error during device I/O."  

Expected Results:  
Scanner works fine with gentoo-sources-2.6.12 and lower.  

agnieszka ~ # emerge info 
Portage 2.0.51.22-r3 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 
2.6.13-gentoo-r3 x86_64) 
================================================================= 
System uname: 2.6.13-gentoo-r3 x86_64 AMD Athlon(tm) 64 Processor 3000+ 
Gentoo Base System version 1.6.13 
dev-lang/python:     2.4.2 
sys-apps/sandbox:    1.2.12 
sys-devel/autoconf:  2.13, 2.59-r6 
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 
sys-devel/binutils:  2.15.92.0.2-r10 
sys-devel/libtool:   1.5.20 
virtual/os-headers:  2.6.11-r2 
ACCEPT_KEYWORDS="amd64" 
AUTOCLEAN="yes" 
CBUILD="x86_64-pc-linux-gnu" 
CFLAGS="-O2 -pipe" 
CHOST="x86_64-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d" 
CXXFLAGS="-O2 -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoconfig distlocks moo sandbox sfperms strict" 
GENTOO_MIRRORS="http://gentoo.zie.pg.gda.pl http://gentoo.prz.rzeszow.pl/ 
ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://src.gentoo.pl 
ftp://cudlug.cudenver.edu/pub/mirrors/distributions/gentoo/ 
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/" 
LANG="en" 
LC_ALL="en_US" 
LINGUAS="pl" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/home/inne/portage/local" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="X alsa amd64 apache2 arts avi bash-completion berkdb bitmap-fonts cdr cpi 
crypt cups curl directfb dvd dvdr eds emboss encode esd fam flac foomaticdb 
fortran gd gdbm gif gphoto2 gpm gstreamer gtk gtk2 imagemagick imap imlib java 
jpeg junit kde kdeenablefinal ldap libwww lm_sensors lzw lzw-tiff mad maildir 
mikmod motif mozilla mp3 mpeg mysql ncurses nls ogg oggvorbis opengl pam 
pdflib perl png python qt quicktime readline samba sasl scanner sdl slang 
spell ssl tcltk tcpd tetex tiff truetype-fonts type1-fonts usb userlocales v4l 
vorbis xine xml xml2 xmms xpm xv zlib video_cards_nvidia linguas_pl 
userland_GNU kernel_linux elibc_glibc" 
Unset:  ASFLAGS, CTARGET, LDFLAGS 
 
 
agnieszka ~ # 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. 
 
found USB scanner (vendor=0x05da, product=0x40b3) at libusb:003:003 
  # Your USB scanner was (probably) detected. It may or may not be supported 
by 
  # SANE. Try scanimage -L and read the backend's manpage. 
 
  # Not checking for parallel port scanners. 
 
  # Most Scanners connected to the parallel port or other proprietary ports 
  # can't be detected by this program. 
 
 
agnieszka ~ # scanimage -L 
device `v4l:/dev/video0' is a Noname BT878 video (Lifeview FlyVideo  virtual 
device 
device `sm3600:3/1' is a Microtek ScanMaker 3600 flatbed scanner 
 
 
agnieszka ~ # dmesg | tail 
agpgart: Putting AGP V3 device at 0000:01:00.0 into 8x mode 
agpgart: Found an AGP 3.0 compliant device at 0000:00:00.0. 
agpgart: Putting AGP V3 device at 0000:00:00.0 into 8x mode 
agpgart: Putting AGP V3 device at 0000:01:00.0 into 8x mode 
usb 3-2: usbfs: interface 0 claimed by usbfs while 'xsane' sets config #1 
usb 3-2: USB disconnect, address 2 
usb 3-2: new full speed USB device using uhci_hcd and address 3 
usb 3-2: usbfs: interface 0 claimed by usbfs while 'xsane' sets config #1 
usb 3-2: usbfs: interface 0 claimed by usbfs while 'kooka' sets config #1 
Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0,  type 0
Comment 1 Daniel Drake (RETIRED) gentoo-dev 2005-10-15 09:37:22 UTC
Is this reproducible with vanilla-sources-2.6.14_rc4? Is that dmesg snippet
taken after one of those errors has occurred?
Comment 2 Dariusz Brzezinski 2005-10-15 11:11:01 UTC
(In reply to comment #1)
> Is this reproducible with vanilla-sources-2.6.14_rc4? Is that dmesg snippet
> taken after one of those errors has occurred?

I just try, and it is reproducible with vanilla-sources-2.6.14_rc4.

Dmesg is taken just after switch on the scanner and start of xsane (kaooka).
Comment 3 Daniel Drake (RETIRED) gentoo-dev 2005-10-25 12:29:38 UTC
If you reboot into 2.6.12 now, can you confirm that the issue is definately not
there? (I'm suspicious that a kernel upgrade alone would have changed this...)
Comment 4 Dariusz Brzezinski 2005-10-25 13:07:43 UTC
Yes, I can confirm it.   
No I use 2.6.12-gentoo-r10 kernel and scanner (xsane) works fine. There is an 
output with kernel 2.6.12 (looks the same like in 2.6.13): 
 
darek@agnieszka ~ $ uname -a 
Linux agnieszka 2.6.12-gentoo-r10 #1 SMP Sat Oct 15 12:53:27 CEST 2005 x86_64 
AMD Athlon(tm) 64 Processor 3000+ AuthenticAMD GNU/Linux 
darek@agnieszka ~ $ 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. 
  # Also you need support for SCSI Generic (sg) in your operating system. 
  # If using Linux, try "modprobe sg". 
 
found USB scanner (vendor=0x05da, product=0x40b3) at libusb:003:002 
  # Your USB scanner was (probably) detected. It may or may not be supported 
by 
  # SANE. Try scanimage -L and read the backend's manpage. 
 
  # Not checking for parallel port scanners. 
 
  # Most Scanners connected to the parallel port or other proprietary ports 
  # can't be detected by this program. 
 
  # You may want to run this program as root to find all devices. Once you 
  # found the scanner devices, be sure to adjust access permissions as 
  # necessary. 
darek@agnieszka ~ $ scanimage -L 
device `v4l:/dev/video0' is a Noname BT878 video (Lifeview FlyVideo  virtual 
device 
device `sm3600:3/1' is a Microtek ScanMaker 3600 flatbed scanner 
darek@agnieszka ~ $ xsane 
darek@agnieszka ~ $ dmesg | tail 
ReiserFS: hda6: checking transaction log (hda6) 
ReiserFS: hda6: Using r5 hash to sort names 
agpgart: Found an AGP 3.0 compliant device at 0000:00:00.0. 
agpgart: Putting AGP V3 device at 0000:00:00.0 into 8x mode 
agpgart: Putting AGP V3 device at 0000:01:00.0 into 8x mode 
agpgart: Found an AGP 3.0 compliant device at 0000:00:00.0. 
agpgart: Putting AGP V3 device at 0000:00:00.0 into 8x mode 
agpgart: Putting AGP V3 device at 0000:01:00.0 into 8x mode 
usb 3-2: new full speed USB device using uhci_hcd and address 2 
usb 3-2: usbfs: interface 0 claimed while 'xsane' sets config #1 
 
darek@agnieszka ~ /usr/sbin/lsusb 
Bus 005 Device 001: ID 0000:0000 
Bus 004 Device 001: ID 0000:0000 
Bus 003 Device 002: ID 05da:40b3 Microtek International, Inc. 
Bus 003 Device 001: ID 0000:0000 
Bus 002 Device 001: ID 0000:0000 
Bus 001 Device 001: ID 0000:0000 
 
Comment 5 Daniel Drake (RETIRED) gentoo-dev 2005-10-25 13:38:51 UTC
Please enable "USB verbose debug messages" (CONFIG_USB_DEBUG) under 2.6.14-rc,
recompile, reboot, and post the "dmesg" output after trying to use xsane.
Comment 6 Dariusz Brzezinski 2005-10-25 14:19:16 UTC
darek@agnieszka ~ $ uname -a 
Linux agnieszka 2.6.14-rc5 #1 SMP Tue Oct 25 23:03:04 CEST 2005 x86_64 AMD 
Athlon(tm) 64 Processor 3000+ AuthenticAMD GNU/Linux 
darek@agnieszka ~ $ 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. 
  # Also you need support for SCSI Generic (sg) in your operating system. 
  # If using Linux, try "modprobe sg". 
 
found USB scanner (vendor=0x05da, product=0x40b3) at libusb:003:002 
  # Your USB scanner was (probably) detected. It may or may not be supported 
by 
  # SANE. Try scanimage -L and read the backend's manpage. 
 
  # Not checking for parallel port scanners. 
 
  # Most Scanners connected to the parallel port or other proprietary ports 
  # can't be detected by this program. 
 
  # You may want to run this program as root to find all devices. Once you 
  # found the scanner devices, be sure to adjust access permissions as 
  # necessary. 
darek@agnieszka ~ $ scanimage -L 
device `v4l:/dev/video0' is a Noname BT878 video (Lifeview FlyVideo  virtual 
device 
device `sm3600:3/1' is a Microtek ScanMaker 3600 flatbed scanner 
darek@agnieszka ~ $ xsane  (failed with message: "Failed to open device 
`sm3600:3/1`: Error during device I/O.") 
darek@agnieszka ~ $ dmesg 
Bootdata ok (command line is root=/dev/sda3) 
Linux version 2.6.14-rc5 (root@agnieszka) (gcc version 3.4.4 (Gentoo 3.4.4-r1, 
ssp-3.4.4-1.0, pie-8.7.8)) #1 SMP Tue Oct 25 23:03:04 CEST 2005 
BIOS-provided physical RAM map: 
 BIOS-e820: 0000000000000000 - 000000000009d400 (usable) 
 BIOS-e820: 000000000009f800 - 00000000000a0000 (reserved) 
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved) 
 BIOS-e820: 0000000000100000 - 000000003fff0000 (usable) 
 BIOS-e820: 000000003fff0000 - 000000003fff3000 (ACPI NVS) 
 BIOS-e820: 000000003fff3000 - 0000000040000000 (ACPI data) 
 BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved) 
 BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved) 
 BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved) 
ACPI: RSDP (v000 VIAK8                                 ) @ 0x00000000000f6a90 
ACPI: RSDT (v001 VIAK8  AWRDACPI 0x42302e31 AWRD 0x01010101) @ 
0x000000003fff3000 
ACPI: FADT (v001 VIAK8  AWRDACPI 0x42302e31 AWRD 0x01010101) @ 
0x000000003fff3040 
ACPI: MADT (v001 VIAK8  AWRDACPI 0x42302e31 AWRD 0x01010101) @ 
0x000000003fff77c0 
ACPI: DSDT (v001 VIAK8  AWRDACPI 0x00001000 MSFT 0x0100000c) @ 
0x0000000000000000 
Scanning NUMA topology in Northbridge 24 
Number of nodes 1 
Node 0 MemBase 0000000000000000 Limit 000000003fff0000 
Using 20 for the hash shift. Max adder is 3fff0000 
Using node hash shift of 20 
Bootmem setup node 0 0000000000000000-000000003fff0000 
On node 0 totalpages: 262029 
  DMA zone: 3997 pages, LIFO batch:1 
  Normal zone: 258032 pages, LIFO batch:31 
  HighMem zone: 0 pages, LIFO batch:1 
Looks like a VIA chipset. Disabling IOMMU. Overwrite with "iommu=allowed" 
ACPI: PM-Timer IO Port: 0x4008 
ACPI: Local APIC address 0xfee00000 
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled) 
Processor #0 15:12 APIC version 16 
ACPI: LAPIC_NMI (acpi_id[0x00] dfl dfl lint[0x1]) 
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0]) 
IOAPIC[0]: apic_id 2, version 3, address 0xfec00000, GSI 0-23 
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl) 
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 low level) 
ACPI: IRQ0 used by override. 
ACPI: IRQ2 used by override. 
ACPI: IRQ9 used by override. 
Setting APIC routing to flat 
Using ACPI (MADT) for SMP configuration information 
Allocating PCI resources starting at 50000000 (gap: 40000000:bec00000) 
Built 1 zonelists 
Kernel command line: root=/dev/sda3 
Initializing CPU#0 
PID hash table entries: 4096 (order: 12, 131072 bytes) 
time.c: Using 3.579545 MHz PM timer. 
time.c: Detected 2010.092 MHz processor. 
Console: colour VGA+ 80x25 
Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes) 
Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes) 
Placing software IO TLB between 0x2132000 - 0x6132000 
Memory: 959368k/1048512k available (3272k kernel code, 88748k reserved, 1254k 
data, 240k init) 
Calibrating delay using timer specific routine.. 4029.77 BogoMIPS 
(lpj=8059556) 
Security Framework v1.0.0 initialized 
Mount-cache hash table entries: 256 
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line) 
CPU: L2 Cache: 512K (64 bytes/line) 
CPU 0(1) -> Node 0 -> Core 0 
mtrr: v2.0 (20020519) 
Using local APIC timer interrupts. 
Detected 12.563 MHz APIC timer. 
Brought up 1 CPUs 
time.c: Using PIT/TSC based timekeeping. 
testing NMI watchdog ... OK. 
softlockup thread 0 started up. 
NET: Registered protocol family 16 
ACPI: bus type pci registered 
PCI: Using configuration type 1 
ACPI: Subsystem revision 20050902 
ACPI: Interpreter enabled 
ACPI: Using IOAPIC for interrupt routing 
ACPI: PCI Root Bridge [PCI0] (0000:00) 
PCI: Probing PCI hardware (bus 00) 
Boot video device is 0000:01:00.0 
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT] 
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 6 7 *10 11 12) 
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 6 7 10 11 12) *5 
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 6 7 10 *11 12) 
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 6 7 10 11 12) *0, disabled. 
ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 6 7 10 11 12) *0, disabled. 
ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 6 7 10 11 12) *0, disabled. 
ACPI: PCI Interrupt Link [LNK0] (IRQs 3 4 6 7 10 11 12) *0, disabled. 
ACPI: PCI Interrupt Link [LNK1] (IRQs 3 4 6 7 10 11 12) *0, disabled. 
ACPI: PCI Interrupt Link [ALKA] (IRQs 20) *0, disabled. 
ACPI: PCI Interrupt Link [ALKB] (IRQs 21) *0, disabled. 
ACPI: PCI Interrupt Link [ALKC] (IRQs 22) *0, disabled. 
ACPI: PCI Interrupt Link [ALKD] (IRQs 23) *0, disabled. 
Linux Plug and Play Support v0.97 (c) Adam Belay 
pnp: PnP ACPI init 
pnp: PnP ACPI: found 13 devices 
SCSI subsystem initialized 
usbcore: registered new driver usbfs 
usbcore: registered new driver hub 
PCI: Using ACPI for IRQ routing 
PCI: If a device doesn't work, try "pci=routeirq".  If it helps, post a report 
agpgart: Detected AGP bridge 0 
agpgart: AGP aperture is 64M @ 0xf0000000 
PCI-DMA: Using software bounce buffering for IO (SWIOTLB) 
pnp: 00:01: ioport range 0x4000-0x407f could not be reserved 
pnp: 00:01: ioport range 0x40f0-0x40ff could not be reserved 
pnp: 00:01: ioport range 0x5000-0x500f has been reserved 
PCI: Bridge: 0000:00:01.0 
  IO window: disabled. 
  MEM window: f4000000-f5ffffff 
  PREFETCH window: e8000000-efffffff 
PCI: Setting latency timer of device 0000:00:01.0 to 64 
IA32 emulation $Id: sys_ia32.c,v 1.32 2002/03/24 13:02:28 ak Exp $ 
Total HugeTLB memory allocated, 0 
Installing knfsd (copyright (C) 1996 okir@monad.swb.de). 
SGI XFS with large block/inode numbers, no debug enabled 
Initializing Cryptographic API 
pci_hotplug: PCI Hot Plug PCI Core version: 0.5 
ACPI: Power Button (FF) [PWRF] 
ACPI: Power Button (CM) [PWRB] 
Using specific hotkey driver 
ACPI: CPU0 (power states: C1[C1]) 
Real Time Clock Driver v1.12 
Linux agpgart interface v0.101 (c) Dave Jones 
Hangcheck: starting hangcheck timer 0.9.0 (tick is 180 seconds, margin is 60 
seconds). 
Hangcheck: Using monotonic_clock(). 
PNP: PS/2 Controller [PNP0303:PS2K,PNP0f13:PS2M] at 0x60,0x64 irq 1,12 
serio: i8042 AUX port at 0x60,0x64 irq 12 
serio: i8042 KBD port at 0x60,0x64 irq 1 
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled 
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A 
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A 
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A 
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A 
io scheduler noop registered 
io scheduler anticipatory registered 
io scheduler deadline registered 
io scheduler cfq registered 
Floppy drive(s): fd0 is 1.44M 
FDC 0 is a post-1991 82077 
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize 
loop: loaded (max 8 devices) 
Intel(R) PRO/1000 Network Driver - version 6.0.60-k2 
Copyright (c) 1999-2005 Intel Corporation. 
netconsole: not configured, aborting 
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2 
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx 
VP_IDE: IDE controller at PCI slot 0000:00:0f.1 
ACPI: PCI Interrupt Link [ALKA] BIOS reported IRQ 0, using IRQ 20 
ACPI: PCI Interrupt Link [ALKA] enabled at IRQ 20 
ACPI: PCI Interrupt 0000:00:0f.1[A] -> Link [ALKA] -> GSI 20 (level, low) -> 
IRQ 169 
PCI: Via IRQ fixup for 0000:00:0f.1, from 255 to 9 
VP_IDE: chipset revision 6 
VP_IDE: not 100% native mode: will probe irqs later 
VP_IDE: VIA vt8237 (rev 00) IDE UDMA133 controller on pci0000:00:0f.1 
    ide0: BM-DMA at 0xac00-0xac07, BIOS settings: hda:pio, hdb:pio 
    ide1: BM-DMA at 0xac08-0xac0f, BIOS settings: hdc:pio, hdd:pio 
Probing IDE interface ide0... 
hda: Maxtor 6Y060L0, ATA DISK drive 
hdb: _NEC DVD_RW ND-3540A, ATAPI CD/DVD-ROM drive 
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 
Probing IDE interface ide1... 
Probing IDE interface ide1... 
hda: max request size: 128KiB 
hda: Host Protected Area detected. 
        current capacity is 120101087 sectors (61491 MB) 
        native  capacity is 120103200 sectors (61492 MB) 
hda: Host Protected Area disabled. 
hda: 120103200 sectors (61492 MB) w/2048KiB Cache, CHS=65535/16/63, UDMA(133) 
hda: cache flushes supported 
 hda: hda1 hda2 hda4 < hda5 hda6 > 
hdb: ATAPI 48X DVD-ROM DVD-R CD-R/RW drive, 2048kB Cache, UDMA(33) 
Uniform CD-ROM driver Revision: 3.20 
libata version 1.12 loaded. 
sata_via version 1.1 
ACPI: PCI Interrupt 0000:00:0f.0[B] -> Link [ALKA] -> GSI 20 (level, low) -> 
IRQ 169 
PCI: Via IRQ fixup for 0000:00:0f.0, from 11 to 9 
sata_via(0000:00:0f.0): routed to hard irq line 9 
ata1: SATA max UDMA/133 cmd 0x9400 ctl 0x9802 bmdma 0xA400 irq 169 
ata2: SATA max UDMA/133 cmd 0x9C00 ctl 0xA002 bmdma 0xA408 irq 169 
ata1: dev 0 cfg 49:2f00 82:7c6b 83:7b09 84:4003 85:7c69 86:3a01 87:4003 
88:407f 
ata1: dev 0 ATA, max UDMA/133, 160086528 sectors: 
ata1: dev 0 configured for UDMA/133 
scsi0 : sata_via 
ata2: no device found (phy stat 00000000) 
scsi1 : sata_via 
  Vendor: ATA       Model: Maxtor 6Y080M0    Rev: YAR5 
  Type:   Direct-Access                      ANSI SCSI revision: 05 
SCSI device sda: 160086528 512-byte hdwr sectors (81964 MB) 
SCSI device sda: drive cache: write back 
SCSI device sda: 160086528 512-byte hdwr sectors (81964 MB) 
SCSI device sda: drive cache: write back 
 sda: sda1 sda2 sda3 sda4 < sda5 > 
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0 
usbmon: debugfs is not available 
ehci_hcd: block sizes: qh 160 qtd 96 itd 192 sitd 96 
ACPI: PCI Interrupt Link [ALKB] BIOS reported IRQ 0, using IRQ 21 
ACPI: PCI Interrupt Link [ALKB] enabled at IRQ 21 
ACPI: PCI Interrupt 0000:00:10.4[C] -> Link [ALKB] -> GSI 21 (level, low) -> 
IRQ 177 
PCI: Via IRQ fixup for 0000:00:10.4, from 11 to 1 
ehci_hcd 0000:00:10.4: EHCI Host Controller 
ehci_hcd 0000:00:10.4: reset hcs_params 0x4208 dbg=0 cc=4 pcc=2 ordered !ppc 
ports=8 
ehci_hcd 0000:00:10.4: reset hcc_params 6872 thresh 7 uframes 256/512/1024 
ehci_hcd 0000:00:10.4: capability 0001 at 68 
ehci_hcd 0000:00:10.4: new USB bus registered, assigned bus number 1 
ehci_hcd 0000:00:10.4: irq 177, io mem 0xf6003000 
ehci_hcd 0000:00:10.4: reset command 080002 (park)=0 ithresh=8 period=1024 
Reset HALT 
ehci_hcd 0000:00:10.4: init command 010009 (park)=0 ithresh=1 period=256 RUN 
ehci_hcd 0000:00:10.4: USB 2.0 initialized, EHCI 1.00, driver 10 Dec 2004 
ehci_hcd 0000:00:10.4: supports USB remote wakeup 
usb usb1: default language 0x0409 
usb usb1: new device strings: Mfr=3, Product=2, SerialNumber=1 
usb usb1: Product: EHCI Host Controller 
usb usb1: Manufacturer: Linux 2.6.14-rc5 ehci_hcd 
usb usb1: SerialNumber: 0000:00:10.4 
usb usb1: hotplug 
usb usb1: adding 1-0:1.0 (config #1, interface 0) 
usb 1-0:1.0: hotplug 
hub 1-0:1.0: usb_probe_interface 
hub 1-0:1.0: usb_probe_interface - got id 
hub 1-0:1.0: USB hub found 
hub 1-0:1.0: 8 ports detected 
hub 1-0:1.0: standalone hub 
hub 1-0:1.0: no power switching (usb 1.0) 
hub 1-0:1.0: individual port over-current protection 
hub 1-0:1.0: Single TT 
hub 1-0:1.0: TT requires at most 8 FS bit times (666 ns) 
hub 1-0:1.0: power on to power good time: 20ms 
hub 1-0:1.0: local power source is good 
hub 1-0:1.0: state 5 ports 8 chg 0000 evt 0000 
USB Universal Host Controller Interface driver v2.3 
ACPI: PCI Interrupt 0000:00:10.0[A] -> Link [ALKB] -> GSI 21 (level, low) -> 
IRQ 177 
PCI: Via IRQ fixup for 0000:00:10.0, from 10 to 1 
uhci_hcd 0000:00:10.0: UHCI Host Controller 
uhci_hcd 0000:00:10.0: detected 2 ports 
uhci_hcd 0000:00:10.0: check_and_reset_hc: legsup = 0x2000 
uhci_hcd 0000:00:10.0: Performing full reset 
uhci_hcd 0000:00:10.0: new USB bus registered, assigned bus number 2 
uhci_hcd 0000:00:10.0: irq 177, io base 0x0000b000 
uhci_hcd 0000:00:10.0: supports USB remote wakeup 
usb usb2: default language 0x0409 
usb usb2: new device strings: Mfr=3, Product=2, SerialNumber=1 
usb usb2: Product: UHCI Host Controller 
usb usb2: Manufacturer: Linux 2.6.14-rc5 uhci_hcd 
usb usb2: SerialNumber: 0000:00:10.0 
usb usb2: hotplug 
usb usb2: adding 2-0:1.0 (config #1, interface 0) 
usb 2-0:1.0: hotplug 
hub 2-0:1.0: usb_probe_interface 
hub 2-0:1.0: usb_probe_interface - got id 
hub 2-0:1.0: USB hub found 
hub 2-0:1.0: 2 ports detected 
hub 2-0:1.0: standalone hub 
hub 2-0:1.0: no power switching (usb 1.0) 
hub 2-0:1.0: individual port over-current protection 
hub 2-0:1.0: power on to power good time: 2ms 
hub 2-0:1.0: local power source is good 
hub 2-0:1.0: state 5 ports 2 chg 0000 evt 0000 
ACPI: PCI Interrupt 0000:00:10.1[A] -> Link [ALKB] -> GSI 21 (level, low) -> 
IRQ 177 
PCI: Via IRQ fixup for 0000:00:10.1, from 10 to 1 
uhci_hcd 0000:00:10.1: UHCI Host Controller 
uhci_hcd 0000:00:10.1: detected 2 ports 
uhci_hcd 0000:00:10.1: check_and_reset_hc: legsup = 0x2000 
uhci_hcd 0000:00:10.1: Performing full reset 
uhci_hcd 0000:00:10.0: port 1 portsc 008a,00 
hub 2-0:1.0: port 1, status 0100, change 0003, 12 Mb/s 
uhci_hcd 0000:00:10.1: new USB bus registered, assigned bus number 3 
uhci_hcd 0000:00:10.1: irq 177, io base 0x0000b400 
uhci_hcd 0000:00:10.1: supports USB remote wakeup 
usb usb3: default language 0x0409 
usb usb3: new device strings: Mfr=3, Product=2, SerialNumber=1 
usb usb3: Product: UHCI Host Controller 
usb usb3: Manufacturer: Linux 2.6.14-rc5 uhci_hcd 
usb usb3: SerialNumber: 0000:00:10.1 
usb usb3: hotplug 
usb usb3: adding 3-0:1.0 (config #1, interface 0) 
usb 3-0:1.0: hotplug 
hub 3-0:1.0: usb_probe_interface 
hub 3-0:1.0: usb_probe_interface - got id 
hub 3-0:1.0: USB hub found 
hub 3-0:1.0: 2 ports detected 
hub 3-0:1.0: standalone hub 
hub 3-0:1.0: no power switching (usb 1.0) 
hub 3-0:1.0: individual port over-current protection 
hub 3-0:1.0: power on to power good time: 2ms 
hub 3-0:1.0: local power source is good 
ACPI: PCI Interrupt 0000:00:10.2[B] -> Link [ALKB] -> GSI 21 (level, low) -> 
IRQ 177 
PCI: Via IRQ fixup for 0000:00:10.2, from 5 to 1 
uhci_hcd 0000:00:10.2: UHCI Host Controller 
uhci_hcd 0000:00:10.2: detected 2 ports 
uhci_hcd 0000:00:10.2: check_and_reset_hc: legsup = 0x2000 
uhci_hcd 0000:00:10.2: Performing full reset 
uhci_hcd 0000:00:10.2: new USB bus registered, assigned bus number 4 
uhci_hcd 0000:00:10.2: irq 177, io base 0x0000b800 
uhci_hcd 0000:00:10.2: supports USB remote wakeup 
usb usb4: default language 0x0409 
usb usb4: new device strings: Mfr=3, Product=2, SerialNumber=1 
usb usb4: Product: UHCI Host Controller 
usb usb4: Manufacturer: Linux 2.6.14-rc5 uhci_hcd 
usb usb4: SerialNumber: 0000:00:10.2 
usb usb4: hotplug 
usb usb4: adding 4-0:1.0 (config #1, interface 0) 
usb 4-0:1.0: hotplug 
hub 4-0:1.0: usb_probe_interface 
hub 4-0:1.0: usb_probe_interface - got id 
hub 4-0:1.0: USB hub found 
hub 4-0:1.0: 2 ports detected 
hub 4-0:1.0: standalone hub 
hub 4-0:1.0: no power switching (usb 1.0) 
hub 4-0:1.0: individual port over-current protection 
hub 4-0:1.0: power on to power good time: 2ms 
hub 4-0:1.0: local power source is good 
hub 2-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x100 
uhci_hcd 0000:00:10.0: port 2 portsc 008a,00 
hub 2-0:1.0: port 2, status 0100, change 0003, 12 Mb/s 
ACPI: PCI Interrupt 0000:00:10.3[B] -> Link [ALKB] -> GSI 21 (level, low) -> 
IRQ 177 
PCI: Via IRQ fixup for 0000:00:10.3, from 5 to 1 
uhci_hcd 0000:00:10.3: UHCI Host Controller 
uhci_hcd 0000:00:10.3: detected 2 ports 
uhci_hcd 0000:00:10.3: check_and_reset_hc: legsup = 0x2000 
uhci_hcd 0000:00:10.3: Performing full reset 
uhci_hcd 0000:00:10.3: new USB bus registered, assigned bus number 5 
uhci_hcd 0000:00:10.3: irq 177, io base 0x0000bc00 
uhci_hcd 0000:00:10.3: supports USB remote wakeup 
usb usb5: default language 0x0409 
usb usb5: new device strings: Mfr=3, Product=2, SerialNumber=1 
usb usb5: Product: UHCI Host Controller 
usb usb5: Manufacturer: Linux 2.6.14-rc5 uhci_hcd 
usb usb5: SerialNumber: 0000:00:10.3 
usb usb5: hotplug 
usb usb5: adding 5-0:1.0 (config #1, interface 0) 
usb 5-0:1.0: hotplug 
hub 5-0:1.0: usb_probe_interface 
hub 5-0:1.0: usb_probe_interface - got id 
hub 5-0:1.0: USB hub found 
hub 5-0:1.0: 2 ports detected 
hub 5-0:1.0: standalone hub 
hub 5-0:1.0: no power switching (usb 1.0) 
hub 5-0:1.0: individual port over-current protection 
hub 5-0:1.0: power on to power good time: 2ms 
hub 5-0:1.0: local power source is good 
hub 2-0:1.0: debounce: port 2: total 100ms stable 100ms status 0x100 
hub 2-0:1.0: state 5 ports 2 chg 0000 evt 0000 
hub 3-0:1.0: state 5 ports 2 chg 0000 evt 0006 
uhci_hcd 0000:00:10.1: port 1 portsc 008a,00 
hub 3-0:1.0: port 1, status 0100, change 0003, 12 Mb/s 
hub 3-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x100 
uhci_hcd 0000:00:10.1: port 2 portsc 008a,00 
hub 3-0:1.0: port 2, status 0100, change 0003, 12 Mb/s 
hub 3-0:1.0: debounce: port 2: total 100ms stable 100ms status 0x100 
hub 4-0:1.0: state 5 ports 2 chg 0000 evt 0006 
usbcore: registered new driver usbhid 
drivers/usb/input/hid-core.c: v2.6:USB HID core driver 
uhci_hcd 0000:00:10.2: port 1 portsc 008a,00 
hub 4-0:1.0: port 1, status 0100, change 0003, 12 Mb/s 
mice: PS/2 mouse device common for all mice 
oprofile: using NMI interrupt. 
NET: Registered protocol family 2 
input: AT Translated Set 2 keyboard on isa0060/serio0 
IP route cache hash table entries: 65536 (order: 7, 524288 bytes) 
TCP established hash table entries: 262144 (order: 10, 4194304 bytes) 
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes) 
TCP: Hash tables configured (established 262144 bind 65536) 
TCP reno registered 
TCP bic registered 
NET: Registered protocol family 1 
NET: Registered protocol family 17 
powernow-k8: Found 1 AMD Athlon 64 / Opteron processors (version 1.50.3) 
powernow-k8:    0 : fid 0xc (2000 MHz), vid 0x2 (1500 mV) 
powernow-k8:    1 : fid 0xa (1800 MHz), vid 0x6 (1400 mV) 
powernow-k8:    2 : fid 0x2 (1000 MHz), vid 0x12 (1100 mV) 
cpu_init done, current fid 0xc, vid 0x2 
ReiserFS: sda3: found reiserfs format "3.6" with standard journal 
hub 4-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x100 
uhci_hcd 0000:00:10.2: port 2 portsc 008a,00 
hub 4-0:1.0: port 2, status 0100, change 0003, 12 Mb/s 
hub 4-0:1.0: debounce: port 2: total 100ms stable 100ms status 0x100 
hub 5-0:1.0: state 5 ports 2 chg 0000 evt 0006 
uhci_hcd 0000:00:10.3: port 1 portsc 008a,00 
hub 5-0:1.0: port 1, status 0100, change 0003, 12 Mb/s 
input: ImExPS/2 Generic Explorer Mouse on isa0060/serio1 
hub 5-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x100 
uhci_hcd 0000:00:10.3: port 2 portsc 008a,00 
hub 5-0:1.0: port 2, status 0100, change 0003, 12 Mb/s 
hub 5-0:1.0: debounce: port 2: total 100ms stable 100ms status 0x100 
hub 3-0:1.0: state 5 ports 2 chg 0000 evt 0000 
hub 5-0:1.0: state 5 ports 2 chg 0000 evt 0000 
uhci_hcd 0000:00:10.0: suspend_rh (auto-stop) 
uhci_hcd 0000:00:10.1: suspend_rh (auto-stop) 
ReiserFS: sda3: using ordered data mode 
ReiserFS: sda3: journal params: device sda3, size 8192, journal first block 
18, max trans len 1024, max batch 900, max commit age 30, max trans age 30 
ReiserFS: sda3: checking transaction log (sda3) 
uhci_hcd 0000:00:10.2: suspend_rh (auto-stop) 
ReiserFS: sda3: Using r5 hash to sort names 
VFS: Mounted root (reiserfs filesystem) readonly. 
Freeing unused kernel memory: 240k freed 
uhci_hcd 0000:00:10.3: suspend_rh (auto-stop) 
Adding 1004052k swap on /dev/sda2.  Priority:-1 extents:1 across:1004052k 
nvidia: module license 'NVIDIA' taints kernel. 
ACPI: PCI Interrupt 0000:01:00.0[A] -> GSI 16 (level, low) -> IRQ 185 
NVRM: loading NVIDIA Linux x86_64 NVIDIA Kernel Module  1.0-7676  Fri Jul 29 
13:15:16 PDT 2005 
NVRM: WARNING:  You are probably using the kernel's swiotlb interface. 
NVRM: Be very careful with this interface, as it is easy 
NVRM: to exhaust this interface's memory buffer, at which 
NVRM: point it panics the kernel.  Please increase the size 
NVRM: of this buffer by specifying a larger buffer size with 
NVRM: the swiotlb kernel option, eg: "swiotlb=65536" 
8139too Fast Ethernet driver 0.9.27 
ACPI: PCI Interrupt 0000:00:0a.0[A] -> GSI 18 (level, low) -> IRQ 193 
eth0: RealTek RTL8139 at 0x9000, 00:02:44:8e:0b:2a, IRQ 193 
eth0:  Identified 8139 chip type 'RTL-8100B/8139D' 
ACPI: PCI Interrupt 0000:00:13.0[A] -> GSI 18 (level, low) -> IRQ 193 
eth1: RealTek RTL8139 at 0xc400, 00:0f:ea:e8:cd:b0, IRQ 193 
eth1:  Identified 8139 chip type 'RTL-8100B/8139D' 
Capability LSM initialized 
Linux video capture interface: v1.00 
bttv: driver version 0.9.16 loaded 
bttv: using 8 buffers with 2080k (520 pages) each for capture 
bttv: Bt8xx card found (0). 
ACPI: PCI Interrupt 0000:00:0c.0[A] -> GSI 16 (level, low) -> IRQ 185 
bttv0: Bt878 (rev 17) at 0000:00:0c.0, irq: 185, latency: 32, mmio: 0xf6001000 
bttv0: using: Lifeview FlyVideo 98FM LR50 [card=56,insmod option] 
bttv0: gpio: en=00000000, out=00000000 in=00f4ff00 [init] 
bttv0: FlyVideo Radio=yes RemoteControl=yes Tuner=5 gpio=0xf4ff00 
bttv0: FlyVideo  LR90=no  tda9821/tda9820=no  capture_only=no 
bttv0: using tuner=5 
bttv0: i2c: checking for MSP34xx @ 0x80... not found 
bttv0: i2c: checking for TDA9875 @ 0xb0... not found 
bttv0: i2c: checking for TDA7432 @ 0x8a... not found 
bttv0: i2c: checking for TDA9887 @ 0x86... not found 
tuner 0-0061: chip found @ 0xc2 (bt878 #0 [sw]) 
tuner 0-0061: type set to 5 (Philips PAL_BG (FI1216 and compatibles)) 
bttv0: registered device video0 
bttv0: registered device vbi0 
bttv0: registered device radio0 
bttv0: PLL: 28636363 => 35468950 .. ok 
ReiserFS: sda5: found reiserfs format "3.6" with standard journal 
ReiserFS: sda5: using ordered data mode 
ReiserFS: sda5: journal params: device sda5, size 8192, journal first block 
18, max trans len 1024, max batch 900, max commit age 30, max trans age 30 
ReiserFS: sda5: checking transaction log (sda5) 
ReiserFS: sda5: Using r5 hash to sort names 
cdrom: open failed. 
ACPI: PCI Interrupt Link [ALKC] BIOS reported IRQ 0, using IRQ 22 
ACPI: PCI Interrupt Link [ALKC] enabled at IRQ 22 
ACPI: PCI Interrupt 0000:00:11.5[C] -> Link [ALKC] -> GSI 22 (level, low) -> 
IRQ 201 
PCI: Via IRQ fixup for 0000:00:11.5, from 11 to 9 
PCI: Setting latency timer of device 0000:00:11.5 to 64 
parport: PnPBIOS parport detected. 
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE] 
parport0: Printer, Canon BJC-2000 
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1 
eth1: link up, 100Mbps, full-duplex, lpa 0x45E1 
process `named' is using obsolete setsockopt SO_BSDCOMPAT 
lp0: using parport0 (interrupt-driven). 
ip_tables: (C) 2000-2002 Netfilter core team 
ip_conntrack version 2.3 (4095 buckets, 32760 max) - 296 bytes per conntrack 
it87: Found IT8705F chip at 0x290, revision 3 
it87-isa 9191-0290: Detected broken BIOS defaults, disabling PWM interface 
agpgart: Found an AGP 3.0 compliant device at 0000:00:00.0. 
agpgart: Putting AGP V3 device at 0000:00:00.0 into 8x mode 
agpgart: Putting AGP V3 device at 0000:01:00.0 into 8x mode 
agpgart: Found an AGP 3.0 compliant device at 0000:00:00.0. 
agpgart: Putting AGP V3 device at 0000:00:00.0 into 8x mode 
agpgart: Putting AGP V3 device at 0000:01:00.0 into 8x mode 
ACPI: PCI interrupt for device 0000:00:11.5 disabled 
ACPI: PCI Interrupt 0000:00:11.5[C] -> Link [ALKC] -> GSI 22 (level, low) -> 
IRQ 201 
PCI: Setting latency timer of device 0000:00:11.5 to 64 
hub 1-0:1.0: state 5 ports 8 chg 0000 evt 0010 
ehci_hcd 0000:00:10.4: GetStatus port 4 status 001803 POWER sig=j CSC CONNECT 
hub 1-0:1.0: port 4, status 0501, change 0001, 480 Mb/s 
hub 1-0:1.0: debounce: port 4: total 100ms stable 100ms status 0x501 
ehci_hcd 0000:00:10.4: port 4 full speed --> companion 
ehci_hcd 0000:00:10.4: GetStatus port 4 status 003801 POWER OWNER sig=j 
CONNECT 
uhci_hcd 0000:00:10.1: wakeup_rh (auto-start) 
hub 3-0:1.0: state 5 ports 2 chg 0000 evt 0004 
uhci_hcd 0000:00:10.1: port 2 portsc 0093,00 
hub 3-0:1.0: port 2, status 0101, change 0001, 12 Mb/s 
hub 3-0:1.0: debounce: port 2: total 100ms stable 100ms status 0x101 
usb 3-2: new full speed USB device using uhci_hcd and address 2 
usb 3-2: new device strings: Mfr=0, Product=0, SerialNumber=0 
usb 3-2: hotplug 
usb 3-2: adding 3-2:1.0 (config #1, interface 0) 
usb 3-2:1.0: hotplug 
hub 3-0:1.0: state 5 ports 2 chg 0000 evt 0004 
usb 3-2: usbfs: interface 0 claimed by usbfs while 'xsane' sets config #1 
 
Comment 7 Daniel Drake (RETIRED) gentoo-dev 2005-10-29 07:03:27 UTC
In future please use the attachment feature to post large files.

Please file this as an upstream bug at http://bugzilla.kernel.org and post the
new URL here.
Comment 8 Dariusz Brzezinski 2005-10-29 13:19:15 UTC
File this as an upstream bug at http://bugzilla.kernel.org/show_bug.cgi?id=5525
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2005-10-31 23:42:21 UTC
*** Bug 111085 has been marked as a duplicate of this bug. ***
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2005-10-31 23:45:07 UTC
Reopen and re-assign, upstream kernel devs do not consider this a kernel bug.
Fixed in sane-backends CVS, according to Bug 111085.
Comment 11 Patrick Kursawe (RETIRED) gentoo-dev 2005-11-02 04:18:14 UTC
I hope I got the right stuff from CVS - please give sane-backends-1.0.16-r4 a
try when it hits your mirror. Re-open if the problem is not fixed. Thanks!
Comment 12 Dariusz Brzezinski 2005-11-02 14:07:20 UTC
Unfortunately sane-backends-1.0.16-r4 has still the same bug.  
I used a cvs from 30 October. For compiling I used modified  
sane-backends-1.0.16-r4.ebuild without lide25-r1.patch and  
kernel2.6.13usb-problem.patch (because of compiling errors).  
Comment 13 Patrick Kursawe (RETIRED) gentoo-dev 2005-11-03 03:39:40 UTC
Which compiling errors? When trying to compile exactly what? Errors while
compiling unmodified sane-backends-1.0.16-r4 or while using the ebuild with your
sane-cvs sources?
Comment 14 Patrick Kursawe (RETIRED) gentoo-dev 2005-11-03 05:04:33 UTC
Looks like sm3600 used different USB code than the others - that was unified
after the .16 release. Please check when files/sm3600usb.patch reaches your
mirror. I won't do a revision bump since only sm3600 users will notice (I hope)
a change. Again: Re-open if the problem is not fixed, please. Thanks for your
patience.
Comment 15 Patrick Kursawe (RETIRED) gentoo-dev 2005-11-03 09:01:26 UTC
Hm, if I don't close it, you can't re-open it :-)
Comment 16 Dariusz Brzezinski 2005-11-03 13:43:58 UTC
Created attachment 72059 [details]
lide25-r1 patch compilation error
Comment 17 Dariusz Brzezinski 2005-11-03 13:46:57 UTC
Created attachment 72060 [details]
kernel2.6.13usb-problem.patch compilation error
Comment 18 Dariusz Brzezinski 2005-11-03 13:57:58 UTC
I put compilation error logs in attachment and reopen a bug.
Comment 19 Patrick Kursawe (RETIRED) gentoo-dev 2005-11-04 06:27:55 UTC
Comment on attachment 72060 [details]
kernel2.6.13usb-problem.patch compilation error

please, use text/plain
Comment 20 Patrick Kursawe (RETIRED) gentoo-dev 2005-11-04 06:59:38 UTC
Could you please check again without using your local overlay?
I just noticed a different problem, so please wait until after syncing the top
ChangeLog shows:

  04 Nov 2005; Patrick Kursawe <phosphan@gentoo.org> files/sm3600usb.patch:
  Yesterday's patch was broken
Comment 21 Greg Kroah-Hartman (RETIRED) gentoo-dev 2005-11-04 09:22:46 UTC
Removing kernel@ as this is not a kernel bug.
Comment 22 Dariusz Brzezinski 2005-11-04 15:16:16 UTC
Created attachment 72139 [details]
sm3600usb.patch-20263.out

Compilation of sane-backends failed with this message:
 * Applying sane-1.0.16-brother-driver.diff ... 			       
	      [ ok ]
 * Applying libusbscanner-device-r1.patch ...				       
	      [ ok ]
 * Applying lide25-r1.patch ... 					       
	      [ ok ]
 * Applying kernel2.6.13usb-problem.patch ...				       
	      [ ok ]
 * Applying sm3600usb.patch ...

 * Failed Patch: sm3600usb.patch !
 *  ( /usr/portage/media-gfx/sane-backends/files/sm3600usb.patch )
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/sane-backends-1.0.16-r4/temp/sm3600usb.patch-20263.out


!!! ERROR: media-gfx/sane-backends-1.0.16-r4 failed.
!!! Function epatch, Line 363, Exitcode 0
!!! Failed Patch: sm3600usb.patch!
Comment 23 Decibels 2005-11-04 19:16:59 UTC
This same thing is happening to me. Scanner works fine with with kernel
linux-2.6.11-gentoo-r5. Boot to kernel linux-2.6.14-rc5 and scanner won't work
anymore. Not a permission thing cause not starting it for root either.

My scanner is usb, but detected as scsi. But with new kernel, even when it see's
the device and symlink is there it fails to use it. I have it in the
/etc/sane.d/microtek.conf file to look for either and has worked fine for ages.
(ie. /dev/scanner  &  /dev/sg0). Also udev is detecting it and creating the
symlink perfectly. Like said, works fine with the other kernel.

decibels david # sane-find-scanner -v
This is sane-find-scanner from sane-backends 1.0.15

searching for SCSI scanners:
checking /dev/scanner... failed to open (Invalid argument)
checking /dev/sg0... failed to open (Invalid argument)
.....
  # No SCSI scanners found. If you expected something different, make sure that
  # you have loaded a SCSI driver for your SCSI adapter.
.....
searching for USB scanners:
checking /dev/usb/scanner... failed to open (Invalid argument)
checking /dev/usb/scanner0... failed to open (Invalid argument)
....
found USB scanner (vendor=0x05da, product=0x00b6) at libusb:002:002
  # Your USB scanner was (probably) detected. It may or may not be supported by
  # SANE. Try scanimage -L and read the backend's manpage.

  # Not checking for parallel port scanners.

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

As soon as plug scanner in it creates /dev/sg0 and /dev/scanner. Just isn't
working with the new kernel. Also, my scanner is still supported and in the 
/usr/src/linux-2.6.14-rc5/drivers/usb/image/microtek.c file cause grep'd it and
also manually looked. The only thing I can see changed is the kernel.
Comment 24 Decibels 2005-11-04 19:30:15 UTC
This is how it looks when boot to working kernel:

decibels david # sane-find-scanner

found SCSI scanner " Scanner V6UPL 1.00" at /dev/scanner
found SCSI scanner " Scanner V6UPL 1.00" at /dev/sg0
  # Your SCSI scanner was detected. It may or may not be supported by SANE. Try
  # scanimage -L and read the backend's manpage.

found USB scanner (vendor=0x05da, product=0x00b6) at libusb:002:002
Comment 25 Patrick Kursawe (RETIRED) gentoo-dev 2005-11-06 10:49:04 UTC
Decibels, perhaps your scanner (since it seems to fake a SCSI scanner) also uses
USB code of its own which is broken - will have to check that. 
Dariusz: Are you sure you checked the contents of the ChangeLog as I said in
comment #20?
Comment 26 Decibels 2005-11-06 11:49:59 UTC
Started a bug report on it: #111650  
Seems it is not attaching it as scsi, leaving it usb. Works fine on 
same system with 2.6.11-gentoo-r5 kernel. 
  
Comment 27 Dariusz Brzezinski 2005-11-06 12:21:54 UTC
> Dariusz: Are you sure you checked the contents of the ChangeLog as I said in 
> comment #20? 
 
Yes, I'm sure:   
   
agnieszka sane-backends # more /usr/portage/media-gfx/sane-backends/ChangeLog   
# ChangeLog for media-gfx/sane-backends   
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2   
# $Header: /var/cvsroot/gentoo-x86/media-gfx/sane-backends/ChangeLog,v 1.84   
2005/11/04 14:58:08 phos   
phan Exp $   
   
  04 Nov 2005; Patrick Kursawe <phosphan@gentoo.org> files/sm3600usb.patch:   
  Yesterday's patch was broken   
   
Unfortunately sm3600usb.patch failed.   
 
 
 
Comment 28 Patrick Kursawe (RETIRED) gentoo-dev 2005-11-06 23:33:35 UTC
So sorry! The patch was broken by automatic substitution (CVS), so I made the
patch -> it was OK, I committed it to CVS -> it was broken. Turned it off for
this file and checked again, should really work now. Thanks for your patience.
You know the game: Please re-open if I am wrong again...
Comment 29 Patrick Kursawe (RETIRED) gentoo-dev 2005-11-06 23:36:55 UTC
Ooops, sorry, almost forgot Decibels problem.
Comment 30 Patrick Kursawe (RETIRED) gentoo-dev 2005-11-06 23:53:15 UTC
Decibels: I can't find any microtek* relevant changes in Sane CVS and I don't
see any bug about in on the Sane bugtracker. Perhaps you could file a bug report
there (better you do it in case there are questions or requests to test
something) and tell me if something happened about it?
Comment 31 Decibels 2005-11-07 05:29:09 UTC
(In reply to comment #30)
> Decibels: I can't find any microtek* relevant changes in Sane CVS and I don't
> see any bug about in on the Sane bugtracker. Perhaps you could file a bug report
> there (better you do it in case there are questions or requests to test
> something) and tell me if something happened about it?

Okay, I was just there last night looking myself, could not find anything
either. Saw your message later. Will also file info with them. Looking thru
microtek.c don't really see anything different that would be causing it between
the two kernels. So not sure who is causing this. Will keep you informed if fine
something out. 
Comment 32 Decibels 2005-11-07 05:51:57 UTC
Patrick: Forgot to mention. Trying to help as much as can, but do you have any idea
where the error codes are listed? The error code switches back and forth, but is
either:
Nov  6 09:56:43 decibels microtek usb (rev 0.4.3): error -22 submitting URB
or
Nov  6 10:06:40 decibels microtek usb (rev 0.4.3): could not submit URB! Error
was -1

I can find in microtek.c where that is coming from, but cannot find in source code
or google what -22 or -1 actually means. 

If you have a clue where to look let me know. If not that is cool also!
Comment 33 Dariusz Brzezinski 2005-11-07 08:23:51 UTC
Now the compilation is OK, but scanimage/xsane sill doesn't work. 
I have got runtime error: 
 
darek@agnieszka ~ $ scanimage 
scanimage: symbol lookup error: /usr/lib64/sane/libsane-sm3600.so.1: undefined 
symbol: sanei_usb_init 
darek@agnieszka ~ $ xsane 
xsane: symbol lookup error: /usr/lib64/sane/libsane-sm3600.so.1: undefined 
symbol: sanei_usb_init 
 
Comment 34 Decibels 2005-11-07 15:32:14 UTC
Patrick: Got response back from sane on bugreport:
***
This really looks like a kernel issue and doesn't seem to be
related to SANE. Please ask the linux-kernel mailing list or
the linux usb mailing list.

SANE is not involved in the "translation" of SCSI commands
to the USB layer, this is entierely done in the kernel.
***
So will keep my bug at http://bugs.gentoo.org/show_bug.cgi?id=111650
and answer any stuff there. 
I don't think it is the same as this bug anymore and don't want to got
in the way over here. Will wait for responses on the bug at the other
bug number. Thanks for the help.
Comment 35 Patrick Kursawe (RETIRED) gentoo-dev 2005-11-07 22:52:52 UTC
(In reply to comment #33)
> Now the compilation is OK, but scanimage/xsane sill doesn't work. 
> I have got runtime error: 
>  
> darek@agnieszka ~ $ scanimage 
> scanimage: symbol lookup error: /usr/lib64/sane/libsane-sm3600.so.1: undefined 
> symbol: sanei_usb_init 

Whoopsie. Corrected version in CVS. This is getting embarassing... Please tell
me if it works.

Comment 36 Dariusz Brzezinski 2005-11-08 06:29:52 UTC
Now works fine. Thanks for help.  
Comment 37 Patrick Kursawe (RETIRED) gentoo-dev 2005-11-08 08:54:55 UTC
*** Bug 111867 has been marked as a duplicate of this bug. ***