attaching an usb mp3-player to a device

Bjarne Wichmann Petersen freebsd.nospam at mekanix.dk
Mon Jun 13 09:54:45 GMT 2005


Hi

I'm trying to attach a mp3-player (usb) to /dev/mp3player but usbd wont "play 
ball". The mp3-player gets attached to /dev/da0.

This is what I've done.

# usbdevs -v
Controller /dev/usb0:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), 
VIA(0x0000), rev 1.00
 port 1 addr 2: full speed, power 500 mA, config 1, MP3 PLAYER(0x0301), 
ICSI(0x0dda), rev 2.1c
 port 2 powered
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), 
VIA(0x0000), rev 1.00
 port 1 powered
 port 2 powered

editing /etc/usbd.conf and inserting:
#MP3 Player
device "MP3 Player"
  devname "da[0-9]+"
  product 0x0301
  attach "rm -f /dev/mp3player; chmod 666 /dev/${DEVNAME}; ln 
-s /dev/${DEVNAME} /dev/mp3player"
  detach "rm -f /dev/mp3player"

before the bottomline: 

device "USB device"

detaching the mp3player, run:

#/etc/rc.d/usbd restart

Attach the mp3player again and it only gets attached to /dev/da0

What am I doing wrong?

Bjarne


More information about the freebsd-questions mailing list