PDA

View Full Version : new kernel and still no /dev/da0


ivo naninck
05-06-2006, 08:32 PM
I've installed the latest version of PCBSD and I'm trying to get my MP3 player connected to the box.
The problem is that I cannot enable/create the /dev/da0 device. I suspected that the GENERIC PCBSD kernel would not contain the SCSI stuff so I "sysinstall"ed the 6.0-RELEASE kernel source, downloaded from FreeBSD.

/usr/home/inaninck $ uname -a
FreeBSD renault.localhost 6.0-RELEASE FreeBSD 6.0-RELEASE #6: Sat May 6 20:59:55 CEST 2006 root@renault.localhost:/usr/src/sys/i386/compile/IVOKERNEL i386
/usr/home/inaninck $

I built and installed a new kernel with all SCSI and USB support available, followed the excellent instructions on http://www.caia.swin.edu.au/reports/041130A/, but still the /dev/da0 device bugs me.
Even, the line
/dev/da0 /mnt/usbflash auto noauto 0 0
gets automatically removed from /etc/fstab after a reboot.

When I then manually add the line again a konqueror window pops up with system:/media/da0 and a message that is is not mounted and thus not accessible.

And /dev never contains something like da'x'.

This is my kernel config for USB and SCSI
# SCSI peripherals
device scbus # SCSI bus (required for SCSI)
device ch # SCSI media changers
device da # Direct Access (disks)
device sa # Sequential Access (tape etc)
device cd # CD
device pass # Passthrough device (direct SCSI access)
device ses # SCSI Environmental Services (and SAF-TE)

# USB support
device uhci # UHCI PCI->USB interface
device ohci # OHCI PCI->USB interface
device ehci # EHCI PCI->USB interface (USB 2.0)
device usb # USB Bus (required)
#device udbp # USB Double Bulk Pipe devices
device ugen # Generic
#device uhid # "Human Interface Devices"
#device ukbd # Keyboard
#device ulpt # Printer
device umass # Disks/Mass storage - Requires scbus and da
#device ums # Mouse
#device ural # Ralink Technology RT2500USB wireless NICs
#device urio # Diamond Rio 500 MP3 player
#device uscanner # Scanners

Can you be of any help with this?
I'm pulling hair for days now......

antik
05-07-2006, 06:44 AM
This is my kernel config for USB and SCSI
# SCSI peripherals
device scbus # SCSI bus (required for SCSI)
device ch # SCSI media changers
device da # Direct Access (disks)
device sa # Sequential Access (tape etc)
device cd # CD
device pass # Passthrough device (direct SCSI access)
device ses # SCSI Environmental Services (and SAF-TE)

# USB support
device uhci # UHCI PCI->USB interface
device ohci # OHCI PCI->USB interface
device ehci # EHCI PCI->USB interface (USB 2.0)
device usb # USB Bus (required)
#device udbp # USB Double Bulk Pipe devices
device ugen # Generic
#device uhid # "Human Interface Devices"
#device ukbd # Keyboard
#device ulpt # Printer
device umass # Disks/Mass storage - Requires scbus and da
#device ums # Mouse
#device ural # Ralink Technology RT2500USB wireless NICs
#device urio # Diamond Rio 500 MP3 player
#device uscanner # Scanners


Enable all USB devices, maybe this helps?

device urio # Diamond Rio 500 MP3 player

You can always upgrade to 6.1 current version and try out maybe there is support for your mp3 player.

/etc/make.conf
CPUTYPE=athlon-xp #i486, i586, i586/mmx, i686, p2, p3, p4, athlon,athlon-xp, athlon64, opteron
CFLAGS= -O -pipe #system
COPTFLAGS= -O -pipe #kernel
RELEASETAG="RELENG_6_1"
SUP_UPDATE=yes
SUP=/usr/local/bin/cvsup
SUPFLAGS=-g -L 2
SUPHOST=cvsup.FreeBSD.org
SUPFILE=/usr/share/examples/cvsup/standard-supfile
PORTSSUPFILE=/usr/share/examples/cvsup/ports-supfile
#DOCSUPFILE=/usr/share/examples/cvsup/doc-supfile
KERNCONF=MYKERNEL

CPU optimization works only for ports not for kernel...
For userland:

# cd
# cvsup /root/stable-supfile

# cd /usr/src/sys/i386/conf
# mkdir /root/kernels
# cp GENERIC /root/kernels/MYKERNEL
# ln -s /root/kernels/MYKERNEL
# cd /usr/src
# make update # only if you have source code already downloaded somet time ago
# make buildworld
# make buildkernel
# shutdown now
# mergemaster -p
# make installkernel
# make installworld
# mergemaster
# reboot

ivo naninck
05-07-2006, 07:41 AM
I see no need to build a new kernel with all USB devices enabled.
The MP3 player is in fact a 20GB USB disk.
When a USB cable is connected it switches to USB 2.0 MSD mode. On Linux the thing then was mountable as a scsi disk, as in
"mount -t msdos /dev/sd0 /mnt/MP3"
And the fact is not that USB doesn't work, as I see the device under 'dmesg' when connected, it is the damn da0 stuff that never shows up.

antik
05-07-2006, 07:59 AM
I see no need to build a new kernel with all USB devices enabled.
The MP3 player is in fact a 20GB USB disk.
When a USB cable is connected it switches to USB 2.0 MSD mode. On Linux the thing then was mountable as a scsi disk, as in
"mount -t msdos /dev/sd0 /mnt/MP3"
And the fact is not that USB doesn't work, as I see the device under 'dmesg' when connected, it is the damn da0 stuff that never shows up.

If you try with other USB stick then you see da0 device appeared. It seems to me that your MP3 player uses some sort of proprietary nonstandard way of talking to freebsd usb subsystem.

ivo naninck
05-07-2006, 08:56 AM
AArrgghhh, this is the result with my daughters MP3 player.

umass0: Packard Portable MP3 Player, rev 1.10/10.01, addr 2
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <Packard> Removable Direct Access SCSI-4 device
da0: 1.000MB/s transfers
da0: 494MB (1013504 512 byte sectors: 64H 32S/T 494C)
umass0: at uhub2 port 1 (addr 2) disconnected
(da0:umass-sim0:0:0:0): lost device
(da0:umass-sim0:0:0:0): removing device entry
umass0: detached

So I suppose you're wright, unfortunately........

Any advice?

mal.exe
05-07-2006, 02:33 PM
For using the mp3 player on a windows machine, do you need to install a 3rd party software ?

ivo naninck
05-07-2006, 07:27 PM
Just connected it for the first time as I recall well to a windows machine, an XP box which is in the attick far far out of my sight....
But, it was immediately recognised as a USB mass storage device and it showed up in explorer as a normal disk drive.

Does that create some hope for the near future ?