Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Nov 2003 21:40:35 +0530
From:      Harshad Sharma <harshad.sharma@hotpop.com>
To:        freebsd-newbies@freebsd.org
Subject:   Support requested for Kernel Bug (ref: kernel/52383)
Message-ID:  <200311192131.24742.harshad.sharma@hotpop.com>

next in thread | raw e-mail | index | archive | help
To: =09
The FreeBSD Developers Family,

First of all let me thank you for the wonderful work that you are doing.
I am a student of Computer Science doing my Bachelor in Computer Science.
I am pretty new to the FreeBSD revolution, and hence am best described
as a total newbie. I have installed FreeBSD 5.0 that I got with a book.
My digital camera supports the UMASS mode and produces the
following error when connected to the USB port.

>=09umass0: Residue incorrect, was 0, should've been 512

I am aware that you have already addressed the bug (kern/52383)
But I am unable to fix the bug as per the guidelines given in the
report.

I have tried to recompile the kernel with the following changes in the
files and regenerated the headers as stated in "usbdevs":

=09/usr/src/sys/dev/usb/umass.c
>=09{ USB_VENDOR_NIKON,  USB_PRODUCT_NIKON_DSC_E2000, RID_WILDCARD,
>         UMASS_PROTO_ATAPI | UMASS_PROTO_BBB,
>=09  IGNORE_RESIDUE
>=09},

=09/usr/src/sys/dev/usb/usbdevs
>=09product NIKON DSC_E2000=09=090x8888=09Digital Camera E2000

I suspect that I am somehow not getting the product name correct and
hence FreeBSD does not recognise the camera as the device stated above.
Please can you guide me? I will be grateful to you for any help.
Can you also please provide a valid hex number to be assigned to
the above-mentioned product? The camera is Nikon's "CoolPix 2000".

If I am supposed to send in more information, please let me know,
I shall be glad to be of use to the team. Should I upgrade to the
5.1 current version to solve this problem? Is there any way to use
the command line interface to ignore the residue since many such
products may cause FreeBSD to cough out errors and it may not be
practical to wait for adding quirks for every such device.

Another query - is it possible to drop the USB support from the kernel
and just compile the usb.ko and experiment with the code? I tried to
comment-out the USB support but FreeBSD seems to ignore that. When I
try to "kldload usb.ko" I get the message that the
"kldload: can't load usb.ko: File exists".

Or is it possible to compile only that part of the kernel which is change=
d
to bring the compilation time from 1 hour to a little lower? (My processo=
r
is 333MHz Pentium II.)


Best of Luck for all your undertakings!

With regards and admiration,

Harshad Sharma
harshad.sharma@hotpop.com
http://www.harshadsharma.tk


P.S. The dmesg output is attached below:
<dmesg output>

Copyright (c) 1992-2003 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
=09The Regents of the University of California. All rights reserved.
FreeBSD 5.0-RELEASE #4: Tue Nov 18 20:41:50 IST 2003
    hashu@localhost:/usr/obj/usr/src/sys/HASHU
Preloaded elf kernel "/boot/kernel/kernel" at 0xc06e0000.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc06e00a8.
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 334092865 Hz
CPU: Pentium II/Pentium II Xeon/Celeron (334.09-MHz 686-class CPU)
  Origin =3D "GenuineIntel"  Id =3D 0x650  Stepping =3D 0
 =20
Features=3D0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,=
CMOV,PAT,PSE36,MMX,FXSR>
real memory  =3D 134152192 (127 MB)
avail memory =3D 122937344 (117 MB)
Initializing GEOMetry subsystem
Pentium Pro MTRR support enabled
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <GBT    AWRDACPI> on motherboard
    ACPI-0625: *** Info: GPE Block0 defined as GPE0 to GPE15
Using $PIR table, 5 entries at 0xc00fdd00
acpi0: power button is handled as a fixed feature programming model.
Timecounter "ACPI-safe"  frequency 3579545 Hz
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0
acpi_cpu0: <CPU> on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0x5000-0x500f,0x4000-0x4041,0xcf8-0xcf=
f on=20
acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <Intel 82443LX (440 LX) host to PCI bridge> mem 0xe8000000-0xebffff=
ff at=20
device 0.0 on pci0
pcib1: <PCIBIOS PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 ATA33 controller> port 0xf000-0xf00f at device 7.1 =
on=20
pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0xe000-0xe01f irq 1=
0 at=20
device 7.2 on pci0
usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
pci0: <bridge, PCI-unknown> at device 7.3 (no driver attached)
pcm0: <CMedia CMI8738> port 0xe400-0xe4ff irq 11 at device 8.0 on pci0
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> port=20
0x3f7,0x3f2-0x3f5 irq 6 drq 2 on acpi0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A
sio1 port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
ppc0 port 0x378-0x37f irq 7 on acpi0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
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 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model IntelliMouse, device ID 3
orm0: <Option ROM> at iomem 0xc0000-0xc7fff on isa0
pmtimer0 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=3D0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
pcm1: <Yamaha OPL-SAx> at port=20
0x370-0x371,0x330-0x331,0x388-0x38b,0x530-0x537,0x220-0x22f irq 5 drq 1,0=
 on=20
isa0
Timecounters tick every 10.000 msec
acpi_cpu: CPU throttling enabled, 8 steps from 100% to 12.5%
ad0: 32253MB <ST340810A> [65531/16/63] at ata0-master UDMA33
ad3: 4125MB <FUJITSU MPC3043AT> [8940/15/63] at ata1-slave UDMA33
acd0: CDROM <CD-ROM 40X/AKU> at ata1-master PIO4
Mounting root from ufs:/dev/ad0s1a
umass0: NIKON NIKON DSC E2000, rev 1.10/0.10, addr 2
umass0: Residue incorrect, was 0, should've been 255
umass0: Residue incorrect, was 0, should've been 255
umass0: Residue incorrect, was 0, should've been 255
umass0: Residue incorrect, was 0, should've been 255
umass0: Residue incorrect, was 0, should've been 255
umass0: Residue incorrect, was 0, should've been 14
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <NIKON DSC E2000 1.00> Removable Direct Access SCSI-2 device
da0: 1.000MB/s transfers
da0: 61MB (125185 512 byte sectors: 64H 32S/T 61C)
umass0: Residue incorrect, was 0, should've been 512
umass0: Residue incorrect, was 0, should've been 512
umass0: Residue incorrect, was 0, should've been 512
umass0: Residue incorrect, was 0, should've been 512
umass0: Residue incorrect, was 0, should've been 512
umass0: Residue incorrect, was 0, should've been 14
(da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x10, scs=
i status=20
=3D=3D 0x0
umass0: Residue incorrect, was 0, should've been 512
umass0: Residue incorrect, was 0, should've been 512
umass0: Residue incorrect, was 0, should've been 512
umass0: Residue incorrect, was 0, should've been 512
umass0: Residue incorrect, was 0, should've been 512
umass0: Residue incorrect, was 0, should've been 512
umass0: Residue incorrect, was 0, should've been 512
umass0: Residue incorrect, was 0, should've been 512
umass0: Residue incorrect, was 0, should've been 512
umass0: Residue incorrect, was 0, should've been 512
umass0: Residue incorrect, was 0, should've been 14
(da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x10, scs=
i status=20
=3D=3D 0x0
umass0: at uhub0 port 1 (addr 2) disconnected
(da0:umass-sim0:0:0:0): lost device
(da0:umass-sim0:0:0:0): removing device entry
umass0: detached

</dmesg output>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311192131.24742.harshad.sharma>