Re: I can't mount my USB thumb drive or ipod -- no /dev/da*

2006-02-11 Thread Duane Whitty

Erin Sharmahd wrote:

I'm a bit of a newbie, but I've done a good bit of research, and some
asking around on this issue, and haven't been able to resolve it yet. 
I'm using FreeBSD 6.0 RELEASE with the GENERIC kernel.  (from what i

can tell, it has all of the necessary pieces to allow usb drives).

When I plug my ipod into my computer, dmesg gets the following addition:
umass0: Apple iPod mini, rev 2.00/0.01, addr 2

However, that's all that appears there relative to it.  From google, I
found that plugging in an ipod or a usb thumb drive should add a
/dev/da0 (or similar) entry to /dev, which you should mount.  I still
don't have a /dev/da*, and I actually checked, and nothing is getting
added to /dev when I plug the ipod in.

I thought that perhaps this was a problem related to support for the
ipod, but I have the exact same problem whenever I try to mount a usb
thumb drive.  Nothing new appears in /dev, and dmesg simply gives one
line explaining that umass0 sees the item.  A TA's thumb drive had the
same problem.

The ipod is FAT32, and has been used in linux many times.  The thumb
drive is currently ext3, but I'd like to reformat it to FAT32 once I
can get FreeBSD to recognize it.

Here's the info I can find about the ipod:
from dmesg:
umass0: Apple iPod mini, rev 2.00/0.01, addr 2
from usbdevs -d:
addr 1: EHCI root hub, Intel
  uhub4
 addr 2: iPod mini, Apple
   umass0

And the info from my usb thumb drive:
from dmesg:
umass0: PNY Attache 2.0, rev 2.00/2.00, addr 2
from usbdevs -d:
addr 1: EHCI root hub, Intel
  uhub4
 addr 2: Attache 2.0, PNY
   umass0

Lines that I think are important from the kernel config:
# USB support
deviceuhci# UHCI PCI-USB interface
deviceohci# OHCI PCI-USB interface
deviceehci# EHCI PCI-USB interface (USB 2.0)
deviceusb   # USB Bus (required)
#device   udbp# USB Double Bulk Pipe devices
deviceugen# Generic
deviceuhid# Human Interface Devices
deviceumass   # Disks/Mass storage - Requires scbus and da

# SCSI peripherals
devicescbus   # SCSI bus (required for SCSI)
devicech# SCSI media changers
deviceda# Direct Access (disks)

If there's any further information that would help, please let me
know.  These are the things I've found mentioned on google...

Thanks,
~Erin

--
http://www.tuxgirl.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]




Hi,

I believe you need this entry in you kernel config 
file


device  pass

Then you need to rebuild and install your kernel 
with this new option.  See the FreeBSD Handbook 
for details on how to do that.  Here is the URI.


http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html

Hope this helps,

--Duane
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: I can't mount my USB thumb drive or ipod -- no /dev/da*

2006-02-11 Thread Erin Sharmahd
 I believe you need this entry in you kernel config
 file

 device  pass

It's in there already.  I just didn't know that it was related... :)

Thanks,
~Erin

--
http://www.tuxgirl.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: I can't mount my USB thumb drive or ipod -- no /dev/da*

2006-02-11 Thread luke
try kldstat and see if da.ko is listed. if it isn't, try kldload da
the problem is that while the machine see the usb device attached, it hasn't
loaded the driver for the disk, hence the absense of anything in dmesg about

da0...

good luck. oh, the module might not be called da.ko exactly, but it will
have a
similar name. i'm not at my fbsd box now.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: I can't mount my USB thumb drive or ipod -- no /dev/da*

2006-02-11 Thread Erin Sharmahd
 try kldstat and see if da.ko is listed. if it isn't, try kldload da
 the problem is that while the machine see the usb device attached, it hasn't
 loaded the driver for the disk, hence the absense of anything in dmesg about
 da0...

 good luck. oh, the module might not be called da.ko exactly, but it will
 have a
 similar name. i'm not at my fbsd box now.

I think you're probably getting to the right problem, but I'm still
having a few issues.  Here's what kldstat shows:

[amon-re conf] kldstat
Id Refs AddressSize Name
 1   13 0xc040 63070c   kernel
 21 0xc0a31000 57c8 snd_ich.ko
 32 0xc0a37000 1d408sound.ko
 41 0xc0a55000 2364 accf_http.ko
 51 0xc0a58000 a30c if_iwi.ko
 6   16 0xc0a63000 568dcacpi.ko
 71 0xc3079000 15000linux.ko

I'm not seeing anything similar to da.ko there, but da.ko isn't right,
and in looking through what shows up when I hit tab after kldload, I'm
not seeing anything similar to it.
The interesting thing is, some things like umass are not listed in
kldstat, and yet I know that they're working.  Does that mean that
they're built-in instead of modules?  or what?  (sorry... i'm stll
really new to *bsd).

Anyway, if anybody knows what the actual name for the module I'm
looking for is, I'd appreciate it.  I'm also curious why it's not just
working automagically, like it seems to do for many people.

Thanks a ton!
~Erin

--
http://www.tuxgirl.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: I can't mount my USB thumb drive or ipod -- no /dev/da*

2006-02-11 Thread Erin Sharmahd
 I think you're probably getting to the right problem, but I'm still
 having a few issues.  Here's what kldstat shows:

 [amon-re conf] kldstat
 Id Refs AddressSize Name
  1   13 0xc040 63070c   kernel
  21 0xc0a31000 57c8 snd_ich.ko
  32 0xc0a37000 1d408sound.ko
  41 0xc0a55000 2364 accf_http.ko
  51 0xc0a58000 a30c if_iwi.ko
  6   16 0xc0a63000 568dcacpi.ko
  71 0xc3079000 15000linux.ko

 I'm not seeing anything similar to da.ko there, but da.ko isn't right,
 and in looking through what shows up when I hit tab after kldload, I'm
 not seeing anything similar to it.
 The interesting thing is, some things like umass are not listed in
 kldstat, and yet I know that they're working.  Does that mean that
 they're built-in instead of modules?  or what?  (sorry... i'm stll
 really new to *bsd).

 Anyway, if anybody knows what the actual name for the module I'm
 looking for is, I'd appreciate it.  I'm also curious why it's not just
 working automagically, like it seems to do for many people.

Someone on ##freebsd suggested that i try rebooting with the ipod
plugged in, so I tried that.  Right after detecting my hard drive and
my dvd burner, the system just hung for about a minute and a half
until i unplugged the ipod.  Then, it printed something about umass0
detatched (it went by really fast), and then it continued booting.

I tried rebooting again, this time with my thumb drive, and it booted
fine, but i still didn't have /dev/da* and dmesg still didn't have any
more information than before.  I tried it also with a full power-off
between each part, but the only difference was that this time, the
kernel panicked when i unplugged the ipod after a couple minutes of
hanging...

Anyway, maybe that will give someone an idea as to what could be causing this?

Thanks,
~Erin

--
http://www.tuxgirl.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: I can't mount my USB thumb drive or ipod -- no /dev/da*

2006-02-11 Thread Ian Dowse
In message [EMAIL PROTECTED], Erin S
harmahd writes:
I'm a bit of a newbie, but I've done a good bit of research, and some
asking around on this issue, and haven't been able to resolve it yet.=20
I'm using FreeBSD 6.0 RELEASE with the GENERIC kernel.  (from what i
can tell, it has all of the necessary pieces to allow usb drives).

When I plug my ipod into my computer, dmesg gets the following addition:
umass0: Apple iPod mini, rev 2.00/0.01, addr 2

However, that's all that appears there relative to it.  From google, I
found that plugging in an ipod or a usb thumb drive should add a
/dev/da0 (or similar) entry to /dev, which you should mount.  I still
don't have a /dev/da*, and I actually checked, and nothing is getting
added to /dev when I plug the ipod in.

Unfortunately a number of Apple iPod devices don't work with 6.0
release. FreeBSD sends a command to the device that causes the iPod
USB interface to get confused and it stops responding. This was
fixed in 6-stable, so you'll need to upgrade or patch the kernel
to get it to work.

You could also just manually remove the offending code. The change
you need to make is in /usr/src/sys/dev/usb/usb_subr.c. Find the
usbd_setup_pipe() function, and then put a '#if 0' and '#endif'
around the code for clearing stall conditions, i.e.:

#if 0
/* Clear any stall and make sure DATA0 toggle will be used next. */
if (UE_GET_ADDR(ep-edesc-bEndpointAddress) != USB_CONTROL_ENDPOINT) {
err = usbd_clear_endpoint_stall(p);
...
return (err);
}
}
#endif

Then recompile and install the kernel, reboot, and the iPod should work.

Ian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: I can't mount my USB thumb drive or ipod -- no /dev/da*

2006-02-11 Thread Erin Sharmahd
 Unfortunately a number of Apple iPod devices don't work with 6.0
 release. FreeBSD sends a command to the device that causes the iPod
 USB interface to get confused and it stops responding. This was
 fixed in 6-stable, so you'll need to upgrade or patch the kernel
 to get it to work.

 You could also just manually remove the offending code. The change
 you need to make is in /usr/src/sys/dev/usb/usb_subr.c. Find the
 usbd_setup_pipe() function, and then put a '#if 0' and '#endif'
 around the code for clearing stall conditions, i.e.:

 #if 0
 /* Clear any stall and make sure DATA0 toggle will be used next. */
 if (UE_GET_ADDR(ep-edesc-bEndpointAddress) != USB_CONTROL_ENDPOINT) 
 {
 err = usbd_clear_endpoint_stall(p);
 ...
 return (err);
 }
 }
 #endif

 Then recompile and install the kernel, reboot, and the iPod should work.

Will this help, even though I can't mount any usb thumb drives or
anything like that?

~Erin

--
http://www.tuxgirl.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: I can't mount my USB thumb drive or ipod -- no /dev/da*

2006-02-11 Thread Kevin Kinsey

Erin Sharmahd wrote:


try kldstat and see if da.ko is listed. if it isn't, try kldload da
the problem is that while the machine see the usb device attached, it hasn't
loaded the driver for the disk, hence the absense of anything in dmesg about
da0...

good luck. oh, the module might not be called da.ko exactly, but it will
have a
similar name. i'm not at my fbsd box now.
   



I think you're probably getting to the right problem, but I'm still
having a few issues.  Here's what kldstat shows:

[amon-re conf] kldstat
Id Refs AddressSize Name
1   13 0xc040 63070c   kernel
21 0xc0a31000 57c8 snd_ich.ko
32 0xc0a37000 1d408sound.ko
41 0xc0a55000 2364 accf_http.ko
51 0xc0a58000 a30c if_iwi.ko
6   16 0xc0a63000 568dcacpi.ko
71 0xc3079000 15000linux.ko

I'm not seeing anything similar to da.ko there, but da.ko isn't right,
and in looking through what shows up when I hit tab after kldload, I'm
not seeing anything similar to it.
The interesting thing is, some things like umass are not listed in
kldstat, and yet I know that they're working.  Does that mean that
they're built-in instead of modules?  or what?  (sorry... i'm stll
really new to *bsd).

Anyway, if anybody knows what the actual name for the module I'm
looking for is, I'd appreciate it.  I'm also curious why it's not just
working automagically, like it seems to do for many people.

 



IANAE, but try atapicam.ko --- see atapicam(4).  My box loads
it, and I've no issues with my USB thumb drive, apart from my
discovery that if you use usbd.conf to mount it automagically
when it's inserted, you can't use usbd.conf to umount it when
it's detached ... sort of a chicken/egg issue that makes perfect
sense in my more lucid moments.


Thanks a ton!
~Erin
 



A ton of what?  ;-)

H.A.N.D.!

Kevin Kinsey

--
What no spouse of a writer can ever understand
is that a writer is working when he's staring out the window.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: I can't mount my USB thumb drive or ipod -- no /dev/da*

2006-02-11 Thread Ian Dowse
In message [EMAIL PROTECTED], Erin 
Sharmahd writes:
Will this help, even though I can't mount any usb thumb drives or
anything like that?

It's definitely worth a try. People have reported exactly this issue
with both recent iPods, and PNY Attache devices. In the case of the
iPods, removing the stall-clearing code was reported to fix the
problem, but I don't know whether it will help with the thumb drive.

Ian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: I can't mount my USB thumb drive or ipod -- no /dev/da*

2006-02-11 Thread Erin Sharmahd
 It's definitely worth a try. People have reported exactly this issue
 with both recent iPods, and PNY Attache devices. In the case of the
 iPods, removing the stall-clearing code was reported to fix the
 problem, but I don't know whether it will help with the thumb drive.

And, we've got a winner!

Any idea if there are plans to fix this in the kernel itself?  I
looked and found this:
http://www.freebsd.org/cgi/query-pr.cgi?pr=usb/86438
but it appears to still be open...

Anyway, many thanks to everybody who provided suggestions and help
here!  Most especiall, thank you to Ian for finding this solution!

~Erin

--
http://www.tuxgirl.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


I can't mount my USB thumb drive or ipod -- no /dev/da*

2006-02-10 Thread Erin Sharmahd
I'm a bit of a newbie, but I've done a good bit of research, and some
asking around on this issue, and haven't been able to resolve it yet. 
I'm using FreeBSD 6.0 RELEASE with the GENERIC kernel.  (from what i
can tell, it has all of the necessary pieces to allow usb drives).

When I plug my ipod into my computer, dmesg gets the following addition:
umass0: Apple iPod mini, rev 2.00/0.01, addr 2

However, that's all that appears there relative to it.  From google, I
found that plugging in an ipod or a usb thumb drive should add a
/dev/da0 (or similar) entry to /dev, which you should mount.  I still
don't have a /dev/da*, and I actually checked, and nothing is getting
added to /dev when I plug the ipod in.

I thought that perhaps this was a problem related to support for the
ipod, but I have the exact same problem whenever I try to mount a usb
thumb drive.  Nothing new appears in /dev, and dmesg simply gives one
line explaining that umass0 sees the item.  A TA's thumb drive had the
same problem.

The ipod is FAT32, and has been used in linux many times.  The thumb
drive is currently ext3, but I'd like to reformat it to FAT32 once I
can get FreeBSD to recognize it.

Here's the info I can find about the ipod:
from dmesg:
umass0: Apple iPod mini, rev 2.00/0.01, addr 2
from usbdevs -d:
addr 1: EHCI root hub, Intel
  uhub4
 addr 2: iPod mini, Apple
   umass0

And the info from my usb thumb drive:
from dmesg:
umass0: PNY Attache 2.0, rev 2.00/2.00, addr 2
from usbdevs -d:
addr 1: EHCI root hub, Intel
  uhub4
 addr 2: Attache 2.0, PNY
   umass0

Lines that I think are important from the kernel config:
# USB support
deviceuhci# UHCI PCI-USB interface
deviceohci# OHCI PCI-USB interface
deviceehci# EHCI PCI-USB interface (USB 2.0)
deviceusb   # USB Bus (required)
#device   udbp# USB Double Bulk Pipe devices
deviceugen# Generic
deviceuhid# Human Interface Devices
deviceumass   # Disks/Mass storage - Requires scbus and da

# SCSI peripherals
devicescbus   # SCSI bus (required for SCSI)
devicech# SCSI media changers
deviceda# Direct Access (disks)

If there's any further information that would help, please let me
know.  These are the things I've found mentioned on google...

Thanks,
~Erin

--
http://www.tuxgirl.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]