From owner-freebsd-hackers Wed Aug 22 20:25:24 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.halplant.com (24-168-203-47.wo.cox.rr.com [24.168.203.47]) by hub.freebsd.org (Postfix) with ESMTP id D7B6B37B408 for ; Wed, 22 Aug 2001 20:25:04 -0700 (PDT) (envelope-from A.J.Caines@halplant.com) Received: by mail.halplant.com (Postfix, from userid 1001) id 3273C20FE; Wed, 22 Aug 2001 23:25:03 -0400 (EDT) Date: Wed, 22 Aug 2001 23:25:03 -0400 From: Andrew J Caines To: FreeBSD Hackers Subject: Mounting FAT16 on USB connected Rio 600 Message-ID: <20010822232503.E431@hal9000.servehttp.com> Reply-To: Andrew J Caines Mail-Followup-To: FreeBSD Hackers Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Organization: H.A.L. Plant X-Powered-by: FreeBSD 4.4-RC X-PGP-Fingerprint: C59A 2F74 1139 9432 B457 0B61 DDF2 AA61 67C3 18A1 Importance: Normal Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hackers, The overwhelming lack of response on -questions suggests I might do better here. I though this would be an easy one. In short, I simply want to know what device to mount and what to do get that device configured. I have a Rio 600 MP3 player connected via USB. The device is recognised by the system - specifically usbd - however the (SCSI) disk device which I expect to appear and expect to be able to mount as an msdos filesystem does not. I have both IDE and SCSI disks in this box, have all drivers and filesystems compiled into the kernel, have extra disk device special files in /dev and start usbd at boot. I have ad0, da0 and da1 devices for disks, so would expect da2 to be the `next' disk created for the Rio, however the system doesn't recognise any da2 device and attempting to mount /dev/da2s1 gives "Device not configured". # ls /dev/[ad][ad][0-9]s1 /dev/ad0s1 /dev/ad2s1 /dev/da0s1 /dev/da2s1 /dev/ad1s1 /dev/ad3s1 /dev/da1s1 /dev/da3s1 The USB device appears as expected and disconnection and reconnection are picked up: # usbdevs -v Controller /dev/usb0: addr 1: self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 0x0100 port 1 powered port 2 addr 2: self powered, config 1, Diamond Multimedia Digital Audio Player(0x5001), Diamond Multimedia(0x045a), rev 0x0100 /kernel: ugen0: at uhub0 port 2 (addr 2) disconnected /kernel: ugen0: detached /kernel: ugen0: Diamond Multimedia Diamond Multimedia Digital Audio Player, rev 1.00/1.00, addr 2 I've tried rescanning and examining devices on the SCSI bus with camcontrol to no avail: # camcontrol rescan 0 Re-scan of bus 0 was successful # camcontrol rescan 1 camcontrol: CAMIOCOMMAND ioctl failed: Invalid argument # camcontrol devlist -v scbus0 on sym0 bus 0: at scbus0 target 1 lun 0 (pass0,da0) at scbus0 target 2 lun 0 (pass1,da1) < > at scbus0 target -1 lun -1 () scbus-1 on xpt0 bus 0: < > at scbus-1 target -1 lun -1 (xpt0) # camcontrol periphlist da0 pass0: generation: 8 index: 1 status: MORE da0: generation: 8 index: 2 status: LAST # camcontrol periphlist da1 pass1: generation: 8 index: 1 status: MORE da1: generation: 8 index: 2 status: LAST # camcontrol periphlist da2 camcontrol: cam_lookup_pass: CAMGETPASSTHRU ioctl failed cam_lookup_pass: No such file or directory cam_lookup_pass: either the pass driver isn't in your kernel cam_lookup_pass: or da2 doesn't exist I have not previously used USB, so I hope my problem is simple ignorance. I've not found anything by way of documentation which puts all the pieces together. Kernel config for USB and disk subsystem: options MSDOSFS # MS DOS File System device scbus # SCSI bus device ata device atadisk # ATA disk drives device atapicd # ATAPI CDROM drives device atapifd # ATAPI floppy drives device fdc0 at isa? port IO_FD1 irq 6 drq 2 device fd0 at fdc0 drive 0 device sym # NCR/Symbios Logic (newer chipsets) device da # Direct Access (disks) device pass # Passthrough device (direct SCSI access) device usb # General USB code (mandatory for USB) device ugen # Generic USB device driver device umass # Disks/Mass storage device uhci # UHCI PCI->USB interface Here's the trimmed dmesg output: uhci0: port 0xfca0-0xfcbf irq 11 at 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 ugen0: Diamond Multimedia Diamond Multimedia Digital Audio Player, rev 1.00/1.00, addr 2 sym0: <875> port 0xf400-0xf4ff mem 0xfedfe000-0xfedfefff,0xfedff800-0xfedff8ff irq 7 at device 15.0 on pci0 sym0: Tekram NVRAM, ID 7, Fast-20, SE, parity checking orm0: