From owner-freebsd-newbies@FreeBSD.ORG Wed Nov 19 08:10:02 2003 Return-Path: Delivered-To: freebsd-newbies@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2938016A4CE for ; Wed, 19 Nov 2003 08:10:02 -0800 (PST) Received: from twix.hotpop.com (twix.hotpop.com [204.57.55.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id DDD4343FD7 for ; Wed, 19 Nov 2003 08:10:00 -0800 (PST) (envelope-from harshad.sharma@hotpop.com) Received: from hotpop.com (kubrick.hotpop.com [204.57.55.16]) by twix.hotpop.com (Postfix) with SMTP id D9981A18D5E for ; Wed, 19 Nov 2003 16:05:59 +0000 (UTC) Received: from localhost (unknown [61.1.88.182]) by smtp-3.hotpop.com (Postfix) with ESMTP id 732D5A100A6 for ; Wed, 19 Nov 2003 16:05:55 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" From: Harshad Sharma To: freebsd-newbies@freebsd.org Date: Wed, 19 Nov 2003 21:28:55 +0530 User-Agent: KMail/1.4.3 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200311191835.22302.harshad.sharma@bigfoot.com> X-HotPOP: ----------------------------------------------- Sent By HotPOP.com FREE Email Get your FREE POP email at www.HotPOP.com ----------------------------------------------- Subject: Support requested for Kernel Bug (ref: kernel/52383) X-BeenThere: freebsd-newbies@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Gathering place for new users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Nov 2003 16:10:02 -0000 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: 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 real memory =3D 134152192 (127 MB) avail memory =3D 122937344 (117 MB) Initializing GEOMetry subsystem Pentium Pro MTRR support enabled npx0: on motherboard npx0: INT 16 interface acpi0: 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: on acpi0 acpi_button0: on acpi0 pcib0: port 0x5000-0x500f,0x4000-0x4041,0xcf8-0xcf= f on=20 acpi0 pci0: on pcib0 agp0: mem 0xe8000000-0xebffff= ff at=20 device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 0.0 (no driver attached) isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: 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: port 0xe000-0xe01f irq 1= 0 at=20 device 7.2 on pci0 usb0: 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: at device 7.3 (no driver attached) pcm0: port 0xe400-0xe4ff irq 11 at device 8.0 on pci0 fdc0: 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: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: irq 12 on atkbdc0 psm0: model IntelliMouse, device ID 3 orm0: