Re: mounting usb stick
Nope, I don't think it's a problem in usb stack. What's the size of the other usb stick which mounts fine? What's filesystem on your SanDisk usb stick? FAT or FAT32? The stick that mounts (also a SanDisk) is 512 MB and FAT32. (I think I may have reformatted it myself on WinXP at some point in time.) The SanDisk U3 stick (1 GB) that doesn't mount is FAT. -jr
Re: mounting usb stick
I have now updated to HEAD and tried to apply the usb.diff8 patch and build a new kernel. I did 'patch usb.diff8' in the ../bus/usb src file, newly cvsup-ed. Well, the patch had a problem, generating this Oops.rej file: @@ -216,6 +216,11 @@ usbd_status err; int conf; + if (bootverbose) { + device_printf(self, vendor: 0x%04x, product: 0x%04x\n, + uaa-vendor, uaa-product); + } + usbd_devinfo(uaa-device, 0, devinfo); USB_ATTACH_SETUP; printf(%s: %s\n, USBDEVNAME(sc-sc_dev), devinfo); @@ -1350,12 +1355,16 @@ return (error); } case USB_GET_STRING_DESC: + { + int size; + si = (struct usb_string_desc *)addr; err = usbd_get_string_desc(sc-sc_udev, si-usd_string_index, - si-usd_language_id, si-usd_desc); + si-usd_language_id, si-usd_desc, size); if (err) return (EINVAL); break; + } case USB_DO_REQUEST: { struct usb_ctl_request *ur = (void *)addr; So, when I 'make buildkernel' I get this error (unsurprisingly): awk -f /usr/src/sys/tools/makeobjops.awk -- -c /usr/src/sys/bus/usb/usb_if.m; cc -c -O -pipe -mtune=pentiumpro -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -ansi -g -nostdinc -I. -Iinclude -I/usr/src/sys -I/usr/src/sys/../include -I/usr/obj/usr/src/sys/GENERIC -I/usr/src/sys/dev/acpica5 -I/usr/src/sys/contrib/dev/acpica-unix-20050309/include -I/usr/src/sys/contrib/ipfilter -D_KERNEL -include opt_global.h -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -ffreestanding -mpreferred-stack-boundary=2 -fno-stack-protector -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 usb_if.c cc -c -O -pipe -mtune=pentiumpro -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -ansi -g -nostdinc -I. -Iinclude -I/usr/src/sys -I/usr/src/sys/../include -I/usr/obj/usr/src/sys/GENERIC -I/usr/src/sys/dev/acpica5 -I/usr/src/sys/contrib/dev/acpica-unix-20050309/include -I/usr/src/sys/contrib/ipfilter -D_KERNEL -include opt_global.h -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -ffreestanding -mpreferred-stack-boundary=2 -fno-stack-protector -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 /usr/src/sys/bus/usb/uhci.c cc -c -O -pipe -mtune=pentiumpro -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -ansi -g -nostdinc -I. -Iinclude -I/usr/src/sys -I/usr/src/sys/../include -I/usr/obj/usr/src/sys/GENERIC -I/usr/src/sys/dev/acpica5 -I/usr/src/sys/contrib/dev/acpica-unix-20050309/include -I/usr/src/sys/contrib/ipfilter -D_KERNEL -include opt_global.h -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -ffreestanding -mpreferred-stack-boundary=2 -fno-stack-protector -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 /usr/src/sys/bus/usb/uhci_pci.c cc -c -O -pipe -mtune=pentiumpro -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -ansi -g -nostdinc -I. -Iinclude -I/usr/src/sys -I/usr/src/sys/../include -I/usr/obj/usr/src/sys/GENERIC -I/usr/src/sys/dev/acpica5 -I/usr/src/sys/contrib/dev/acpica-unix-20050309/include -I/usr/src/sys/contrib/ipfilter -D_KERNEL -include opt_global.h -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -ffreestanding -mpreferred-stack-boundary=2 -fno-stack-protector -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 /usr/src/sys/bus/usb/ohci.c cc -c -O -pipe -mtune=pentiumpro -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -ansi -g -nostdinc -I. -Iinclude -I/usr/src/sys -I/usr/src/sys/../include -I/usr/obj/usr/src/sys/GENERIC -I/usr/src/sys/dev/acpica5 -I/usr/src/sys/contrib/dev/acpica-unix-20050309/include -I/usr/src/sys/contrib/ipfilter -D_KERNEL -include opt_global.h -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -ffreestanding -mpreferred-stack-boundary=2 -fno-stack-protector -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 /usr/src/sys/bus/usb/ohci_pci.c cc -c -O -pipe -mtune=pentiumpro -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -ansi -g -nostdinc -I. -Iinclude -I/usr/src/sys -I/usr/src/sys/../include -I/usr/obj/usr/src/sys/GENERIC -I/usr/src/sys/dev/acpica5 -I/usr/src/sys/contrib/dev/acpica-unix-20050309/include -I/usr/src/sys/contrib/ipfilter -D_KERNEL
Re: mounting usb stick
Ja'far Railton wrote: On Sat, Nov 11, 2006 at 06:45:34PM -0500, Justin C. Sherrill wrote: On Sat, November 4, 2006 5:37 am, Ja'far Railton wrote: mount_msdos /dev/da0s1 /mnt Nothing happens. No output. detach it After mounting it, there's no output, but does it also not mount? The diagnostic messages when mounting it look correct. What is your motherboard? It could be some strange revision of a normally-supported chipset. No, it doesn't mount. After the mount command the cursor just hangs on the next line. ps ax | grep mount (on another terminal) shows: 742 p0 DL+0:00.00 mount_msdos /dev/da0s1 /mnt 800 p2 RVL+ 0:00.00 grep mount (tcsh) Could you try sephe's USB patch from http://leaf.dragonflybsd.org/~sephe/usb.diff7 and tell us if that makes a difference? Sascha -- http://yoyodyne.ath.cx
Re: mounting usb stick
Sascha Wildner wrote: Ja'far Railton wrote: On Sat, Nov 11, 2006 at 06:45:34PM -0500, Justin C. Sherrill wrote: On Sat, November 4, 2006 5:37 am, Ja'far Railton wrote: mount_msdos /dev/da0s1 /mnt Nothing happens. No output. detach it After mounting it, there's no output, but does it also not mount? The diagnostic messages when mounting it look correct. What is your motherboard? It could be some strange revision of a normally-supported chipset. No, it doesn't mount. After the mount command the cursor just hangs on the next line. ps ax | grep mount (on another terminal) shows: 742 p0 DL+0:00.00 mount_msdos /dev/da0s1 /mnt 800 p2 RVL+ 0:00.00 grep mount (tcsh) Could you try sephe's USB patch from http://leaf.dragonflybsd.org/~sephe/usb.diff7 and tell us if that makes a difference? Sascha I *was* waiting for the hg / mercurial src repository to be fixed [1] before trying a build again. Does anyone know if it is fixed yet? If not I will try to get the source via cvsup (impossible at work; very slow and costly at home on dial-up). TIA [1] http://bugs.dragonflybsd.org/issue356 -- Ja'far Railton
Re: mounting usb stick
Ja'far Railton wrote: I *was* waiting for the hg / mercurial src repository to be fixed [1] before trying a build again. Does anyone know if it is fixed yet? If not I will try to get the source via cvsup (impossible at work; very slow and costly at home on dial-up). I don't have an ETA yet. I basically have the new converter running, it just needs some tweaks here and there. How about downloading a source snapshot from a mirror? cheers simon -- Serve - BSD +++ RENT this banner advert +++ASCII Ribbon /\ Work - Mac +++ space for low €€€ NOW!1 +++ Campaign \ / Party Enjoy Relax | http://dragonflybsd.org Against HTML \ Dude 2c 2 the max ! http://golden-apple.biz Mail + News / \ signature.asc Description: OpenPGP digital signature
Re: mounting usb stick
Ja'far Railton wrote: Sascha Wildner wrote: Could you try sephe's USB patch from http://leaf.dragonflybsd.org/~sephe/usb.diff7 and tell us if that makes a difference? Sascha I *was* waiting for the hg / mercurial src repository to be fixed [1] before trying a build again. Does anyone know if it is fixed yet? If not I will try to get the source via cvsup (impossible at work; very slow and costly at home on dial-up). Please make also sure you use 1.6 source since (afaict) you'd need a different patch for HEAD (usb.diff8 I presume; sephe, please correct me if I'm wrong). Sascha -- http://yoyodyne.ath.cx
Re: mounting usb stick
On 11/13/06, Sascha Wildner [EMAIL PROTECTED] wrote: Ja'far Railton wrote: Sascha Wildner wrote: Could you try sephe's USB patch from http://leaf.dragonflybsd.org/~sephe/usb.diff7 and tell us if that makes a difference? Sascha I *was* waiting for the hg / mercurial src repository to be fixed [1] before trying a build again. Does anyone know if it is fixed yet? If not I will try to get the source via cvsup (impossible at work; very slow and costly at home on dial-up). Please make also sure you use 1.6 source since (afaict) you'd need a different patch for HEAD (usb.diff8 I presume; sephe, please correct me if I'm wrong). mmm, usb8.diff is against HEAD :-). Actually no usb patch on my leaf home is against 1.6 branch since kmalloc-malloc changes. Cheers, sephe -- Live Free or Die
Re: mounting usb stick
Following the suggestion of trying to build from a snapshot (08-Nov), I am getting the following error: rm -f .depend mkdep -f .depend -a -I/usr/obj/usr/src/world_i386/usr/src/gnu/usr.bin/cc34/cc_tools/gengenrtl/..//../cc_prep -I/usr/src/gnu/usr.bin/cc34/cc_tools/gengenrtl/..//../cc_prep -I/usr/src/gnu/usr.bin/cc34/cc_tools/gengenrtl/..//../cc_prep/config -I/usr/src/gnu/usr.bin/cc34/cc_tools/gengenrtl/..//../../../../contrib/gcc-3.4/gcc -I/usr/src/gnu/usr.bin/cc34/cc_tools/gengenrtl/..//../../../../contrib/gcc-3.4/gcc/config -I/usr/src/gnu/usr.bin/cc34/cc_tools/gengenrtl/..//../../../../contrib/gcc-3.4/include -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\/usr\ -DPREFIX1=\/usr\ -DPREFIX2=\/usr\ -DSTACK_PROTECTOR -DHAVE_STDLIB_H -DHAVE_STRING_H -DGENERATOR_FILE -I. /usr/src/gnu/usr.bin/cc34/cc_tools/gengenrtl/..//../../../../contrib/gcc-3.4/gcc/gengenrtl.c In file included from /usr/src/gnu/usr.bin/cc34/cc_tools/gengenrtl/..//../../../../contrib/gcc-3.4/gcc/system.h:28, from /usr/src/gnu/usr.bin/cc34/cc_tools/gengenrtl/..//../../../../contrib/gcc-3.4/gcc/gengenrtl.c:24: /usr/obj/usr/src/world_i386/usr/include/stdarg.h:37:28: machine/stdarg.h: No such file or directory In file included from /usr/obj/usr/src/world_i386/usr/include/stddef.h:43, from /usr/src/gnu/usr.bin/cc34/cc_tools/gengenrtl/..//../../../../contrib/gcc-3.4/gcc/system.h:39, from /usr/src/gnu/usr.bin/cc34/cc_tools/gengenrtl/..//../../../../contrib/gcc-3.4/gcc/gengenrtl.c:24: /usr/obj/usr/src/world_i386/usr/include/sys/stdint.h:12:28: machine/stdint.h: No such file or directory In file included from /usr/src/gnu/usr.bin/cc34/cc_tools/gengenrtl/..//../../../../contrib/gcc-3.4/gcc/system.h:109, from /usr/src/gnu/usr.bin/cc34/cc_tools/gengenrtl/..//../../../../contrib/gcc-3.4/gcc/gengenrtl.c:24: /usr/obj/usr/src/world_i386/usr/include/sys/types.h:56:28: machine/endian.h: No such file or directory /usr/obj/usr/src/world_i386/usr/include/sys/types.h:59:27: machine/types.h: No such file or directory In file included from /usr/obj/usr/src/world_i386/usr/include/sys/select.h:44, from /usr/obj/usr/src/world_i386/usr/include/sys/types.h:190, from /usr/src/gnu/usr.bin/cc34/cc_tools/gengenrtl/..//../../../../contrib/gcc-3.4/gcc/system.h:109, from /usr/src/gnu/usr.bin/cc34/cc_tools/gengenrtl/..//../../../../contrib/gcc-3.4/gcc/gengenrtl.c:24: /usr/obj/usr/src/world_i386/usr/include/sys/signal.h:187:75: machine/signal.h: No such file or directory In file included from /usr/obj/usr/src/world_i386/usr/include/sys/signal.h:256, from /usr/obj/usr/src/world_i386/usr/include/sys/select.h:44, from /usr/obj/usr/src/world_i386/usr/include/sys/types.h:190, from /usr/src/gnu/usr.bin/cc34/cc_tools/gengenrtl/..//../../../../contrib/gcc-3.4/gcc/system.h:109, from /usr/src/gnu/usr.bin/cc34/cc_tools/gengenrtl/..//../../../../contrib/gcc-3.4/gcc/gengenrtl.c:24: /usr/obj/usr/src/world_i386/usr/include/sys/ucontext.h:39:30: machine/ucontext.h: No such file or directory In file included from /usr/obj/usr/src/world_i386/usr/include/sys/time.h:227, from /usr/obj/usr/src/world_i386/usr/include/sys/select.h:47, from /usr/obj/usr/src/world_i386/usr/include/sys/types.h:190, from /usr/src/gnu/usr.bin/cc34/cc_tools/gengenrtl/..//../../../../contrib/gcc-3.4/gcc/system.h:109, from /usr/src/gnu/usr.bin/cc34/cc_tools/gengenrtl/..//../../../../contrib/gcc-3.4/gcc/gengenrtl.c:24: /usr/obj/usr/src/world_i386/usr/include/time.h:48:29: machine/uvparam.h: No such file or directory In file included from /usr/src/gnu/usr.bin/cc34/cc_tools/gengenrtl/..//../../../../contrib/gcc-3.4/gcc/system.h:162, from /usr/src/gnu/usr.bin/cc34/cc_tools/gengenrtl/..//../../../../contrib/gcc-3.4/gcc/gengenrtl.c:24: /usr/obj/usr/src/world_i386/usr/include/sys/param.h:115:27: machine/param.h: No such file or directory /usr/obj/usr/src/world_i386/usr/include/sys/param.h:117:28: machine/limits.h: No such file or directory mkdep: compile failed *** Error code 1 Stop in /usr/src/gnu/usr.bin/cc34/cc_tools/gengenrtl. *** Error code 1 Stop in /usr/src/gnu/usr.bin/cc34/cc_tools. *** Error code 1 Stop in /usr/src/gnu/lib/gcc34/libgcc. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. Sorry if this is going OT. Let me know if I should post elsewhere (bug list?) If I can build successfully then I can try the usb patch. TIA. -- -jr
Re: mounting usb stick
On Sun, November 12, 2006 10:59 am, Ja'far Railton wrote: No, it doesn't mount. After the mount command the cursor just hangs on the next line. ps ax | grep mount (on another terminal) shows: 742 p0 DL+0:00.00 mount_msdos /dev/da0s1 /mnt 800 p2 RVL+ 0:00.00 grep mount (tcsh) Here's the dmesg (it's on a Thinkpad R30): I don't have any good ideas on this one. It ought to work, as I'm pretty sure I've seen reports from other successful Thinkpad owners on here. It may be worth checking the FreeBSD Laptop Compatibility List (searhc on that phrase for a list of links) to see if someone has reported quirks with that model.
Re: mounting usb stick
On Sat, Nov 11, 2006 at 06:45:34PM -0500, Justin C. Sherrill wrote: On Sat, November 4, 2006 5:37 am, Ja'far Railton wrote: mount_msdos /dev/da0s1 /mnt Nothing happens. No output. detach it After mounting it, there's no output, but does it also not mount? The diagnostic messages when mounting it look correct. What is your motherboard? It could be some strange revision of a normally-supported chipset. No, it doesn't mount. After the mount command the cursor just hangs on the next line. ps ax | grep mount (on another terminal) shows: 742 p0 DL+0:00.00 mount_msdos /dev/da0s1 /mnt 800 p2 RVL+ 0:00.00 grep mount (tcsh) Here's the dmesg (it's on a Thinkpad R30): Copyright (c) 2003, 2004, 2005, 2006 The DragonFly Project. Copyright (c) 1992-2003 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. DragonFly 1.6.0-RELEASE #3: Sun Jul 23 15:59:02 PDT 2006 root@:/home/usr.obj/usr/src/sys/GENERIC TSC clock: 697401460 Hz, i8254 clock: 1193159 Hz CPU: Intel Pentium III (697.42-MHz 686-class CPU) Origin = GenuineIntel Id = 0x68a Stepping = 10 Features=0x387f9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,PN,MMX,FXSR,SSE real memory = 259915776 (253824K bytes) avail memory = 240025600 (234400K bytes) Preloaded elf kernel /kernel at 0xc0736000. Preloaded elf module /modules/acpi.ko at 0xc0736210. Pentium Pro MTRR support enabled md0: Malloc disk pcibios: BIOS version 2.10 Using $PIR table, 10 entries at 0xc00fb9d0 npx0: math processor on motherboard npx0: INT 16 interface Using MMX optimized bcopy/copyin/copyout acpi0: IBM TP-1C on motherboard acpi0: Power Button (fixed) Warning: ACPI is disabling APM's device. You can't run both acpi_timer0: 32-bit timer at 3.579545MHz port 0xf108-0xf10b on acpi0 cpu0: ACPI CPU (3 Cx states) on acpi0 acpi_tz0: Thermal Zone on acpi0 acpi_button0: Sleep Button on acpi0 acpi_lid0: Control Method Lid Switch on acpi0 acpi_acad0: AC Adapter on acpi0 acpi_cmbat0: Control Method Battery on acpi0 acpi_ec0: Embedded Controller: GPE 0x22 port 0x66,0x62 on acpi0 legacypci0 on motherboard pcib0: Host to PCI bridge on legacypci0 pci0: PCI bus on pcib0 agp0: Ali Generic host to PCI bridge mem 0xf000-0xf3ff at device 0.0 on pci0 agp0: bad initial aperture size, disabling agp: cdevsw removed device_probe_and_attach: agp0 attach returned 6 pcib1: AcerLabs M5247 PCI-PCI(AGP Supported) bridge at device 1.0 on pci0 pci1: PCI bus on pcib1 pci1: Trident model 8620 VGA-compatible display device at 0.0 irq 11 pci0: unknown card (vendor=0x10b9, dev=0x5451) at 6.0 irq 11 isab0: AcerLabs M1533 portable PCI-ISA bridge at device 7.0 on pci0 isa0: ISA bus on isab0 fxp0: Intel 82550 Pro/100 Ethernet port 0x9000-0x903f mem 0x81a2-0x81a3,0x81a0-0x81a00fff irq 11 at device 10.0 on pci0 miibus0: MII bus on fxp0 inphy0: i82555 10/100 media interface on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp0: MAC address: 00:00:e2:56:c1:da atapci0: AcerLabs Aladdin ATA66 controller port 0x7050-0x705f irq 15 at device 16.0 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 pci0: AcerLabs M15x3 Power Management Unit at 17.0 cbb0: O2Micro OZ6912/6972 PCI-CardBus Bridge irq 11 at device 19.0 on pci0 cardbus0: CardBus bus on cbb0 pccard0: 16-bit PCCard bus on cbb0 ohci0: AcerLabs M5237 (Aladdin-V) USB controller mem 0x81e0-0x81e00fff irq 10 at device 20.0 on pci0 usb0: OHCI version 1.0, legacy support usb0: AcerLabs M5237 (Aladdin-V) USB controller on ohci0 usb0: USB revision 1.0 uhub0: AcerLabs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 4 ports with 4 removable, self powered orm0: Option ROM at iomem 0xc-0xcbfff on isa0 pmtimer0 on isa0 fdc0: ready for input in output fdc0: cmd 3 failed at out byte 1 of 3 atkbdc0: Keyboard controller (i8042) at port 0x60,0x64 on isa0 atkbd0: AT Keyboard flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: PS/2 Mouse irq 12 on atkbdc0 psm0: model Generic PS/2 mouse, device ID 0 vga0: Generic ISA VGA at port 0x3c0-0x3df iomem 0xa-0xb on isa0 sc0: System console at flags 0x100 on isa0 sc0: VGA 16 virtual consoles, flags=0x300 sio0: can't drain, serial port might not exist, disabling sio1: can't drain, serial port might not exist, disabling ppc0: cannot reserve I/O port range pccard0: Allocation failed for cfe 32 pccard0: Allocation failed for cfe 33 sio4 at port 0x3e8-0x3ef irq 11 function 0 config 34 on pccard0 sio4: type 16550A ad0: 38154MB FUJITSU MHT2040AS [77520/16/63] at ata0-master UDMA66 acd0: CDROM CD-224E at ata1-master PIO4 Mounting root from ufs:/dev/ad0s2a cd0 at ata1 bus 0 target 0 lun 0 cd0: TEAC CD-224E 2.7B Removable CD-ROM SCSI-0 device cd0: 16.000MB/s transfers cd0: cd present [44747 x 2048 byte records] ad0s4: rejecting partition in BSD label: it isn't entirely within the slice ad0s4: start
Re: mounting usb stick
On Sat, November 4, 2006 5:37 am, Ja'far Railton wrote: mount_msdos /dev/da0s1 /mnt Nothing happens. No output. detach it After mounting it, there's no output, but does it also not mount? The diagnostic messages when mounting it look correct. What is your motherboard? It could be some strange revision of a normally-supported chipset.