Subject: kern/34737: NetBSD cannot mount a generation 5.5 iPod with Video
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: David W. Talmage <talmage@macdonell.onespeeddave.com>
List: netbsd-bugs
Date: 10/06/2006 22:00:00
>Number:         34737
>Category:       kern
>Synopsis:       NetBSD cannot mount a generation 5.5 iPod with Video
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 06 22:00:00 +0000 2006
>Originator:     David W. Talmage
>Release:        NetBSD 3.0.1
>Organization:
>Environment:
	
	
System: NetBSD macdonell.onespeeddave.com 3.0.1 NetBSD 3.0.1 (MACDONELL) #0: Sat Aug 19 18:21:00 EDT 2006 root@macdonell.onespeeddave.com:/usr/src/sys/arch/i386/compile/MACDONELL i386
Architecture: i386
Machine: i386
>Description:
	

NetBSD cannot mount a 30GB generation 5.5 iPod with Video.  All attempts to
access the iPod hang in biowait.  

When I plug in my iPod, NetBSD creates an incorrect geometry for the
iPod.

The firmware version of my iPod is 1.2.

Steve Bellovin reported in netbsd-users that his son's 60GB generation
5 iPod works correctly with his computer.  The firmware version for
that iPod is 1.1.1.

Here is the output of dmesg when I plug in my iPod:
...
umass1 at uhub4 port 6 configuration 1 interface 0
umass1: Apple iPod, rev 2.00/0.02, addr 3
umass1: using SCSI over Bulk-Only
scsibus1 at umass1: 2 targets, 1 lun per target
sd4 at scsibus1 target 0 lun 0: <Apple, iPod, 1.62> disk removable
sd4: fabricating a geometry
sd4: 7153 MB, 7153 cyl, 64 head, 32 sec, 512 bytes/sect x 14651280 sectors
sd4: fabricating a geometry



My iPod works fine on my PowerBook G3 that runs Ubuntu Linux.  Dmesg
on the PowerBook says this when I plug in the iPod:

[  216.523212] usb 1-1: new full speed USB device using ohci_hcd and address 3
[  216.735713] usb 1-1: configuration #1 chosen from 2 choices
[  217.263083] Initializing USB Mass Storage driver...
[  217.265749] scsi1 : SCSI emulation for USB Mass Storage devices
[  217.267388] usb-storage: device found at 3
[  217.267405] usb-storage: waiting for device to settle before scanning
[  217.268047] usbcore: registered new driver usb-storage
[  217.268064] USB Mass Storage support registered.
[  222.273632]   Vendor: Apple     Model: iPod              Rev: 1.62
[  222.273697]   Type:   Direct-Access                      ANSI SCSI 
revision: 00
[  222.299277] usb-storage: device scan complete
[  222.484324] Driver 'sd' needs updating - please use bus_type methods
[  222.496025] SCSI device sda: 14651279 2048-byte hdwr sectors (30006 MB)
[  222.505533] sda: Write Protect is off
[  222.505558] sda: Mode Sense: 68 00 00 08
[  222.505569] sda: assuming drive cache: write through
[  222.525525] SCSI device sda: 14651279 2048-byte hdwr sectors (30006 MB)
[  222.536547] sda: Write Protect is off
[  222.536572] sda: Mode Sense: 68 00 00 08
[  222.536584] sda: assuming drive cache: write through
[  222.537343]  sda: sda1 sda2
[  222.556622] sd 1:0:0:0: Attached scsi removable disk sda
[  222.665297] sd 1:0:0:0: Attached scsi generic sg0 type 0
[  222.955741] Buffer I/O error on device sda2, logical block 14603084
[  222.991313] Buffer I/O error on device sda2, logical block 14603084
[  223.008003] Buffer I/O error on device sda2, logical block 14603084
[  223.008481] Buffer I/O error on device sda2, logical block 14603084
[  223.008905] Buffer I/O error on device sda2, logical block 14603084
[  223.009329] Buffer I/O error on device sda2, logical block 14603084
[  223.425816] Buffer I/O error on device sda2, logical block 14603084
[  223.426289] Buffer I/O error on device sda2, logical block 14603084
[  223.426889] Buffer I/O error on device sda2, logical block 14603084
[  223.427432] Buffer I/O error on device sda2, logical block 14603084
[  229.821573] FAT: utf8 is not a recommended IO charset for FAT filesystems, 
filesystem will be case sensitive!

>How-To-Repeat:

	Plug in a generation 5.5 iPod with Video.

>Fix:
	

>Unformatted: