This is a discussion on Re: [PATCH] iPod nano 8G within the mailing.openbsd.tech forums, part of the OpenBSD category; --> On 11/14/06, Alexey Vatchenko <avv@mail.zp.ua> wrote: > Tobias Weingartner wrote: > > On Tuesday, November 14, Peter Galbavy wrote: ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| On 11/14/06, Alexey Vatchenko <avv@mail.zp.ua> wrote: > Tobias Weingartner wrote: > > On Tuesday, November 14, Peter Galbavy wrote: > >>> Second generation iPod nano (i've got black one) has 2048-bytes block > >>> size. That's why system doesn't want to work with this device. I've > >>> made a little change to scsi layer and msdosfs. > >> This is also the case for non-SDHC 4GB cards like the Transcend I use. I > >> will try this patch on that problem shortly. Thanks! > > > > Yup, as well as the 80GB iPods, etc. I've got a patch for this as well, > > but Alexey has patched it a little different. It's good to have 2-3 > > different implementations to try and get all the quirks worked out for > > this. > > > > I have a patch for fdisk. Attached below. > > Works for me. Sort of works for me with 2nd gen iPod Shuffle. I was getting different output from fdisk every time before the patch. After the patch it's the same every time, but looks wrong: $ fdisk sd0 fdisk: sysctl(machdep.bios.diskinfo): Device not configured Disk: sd0 geometry: 242/64/32 [495616 Sectors] (2048 byte sectors) Offset: 0 Signature: 0xAA55 Starting Ending LBA Info: #: id C H S - C H S [ start: size ] ------------------------------------------------------------------------ 0: 72 379949 11 5 - 937326 59 3 [ 778135908: 1141509631 ] <Unknown ID> 1: 65 82367 59 19 - 1027694 14 2 [ 168689522: 1936028240 ] NetWare 3.xx 2: 79 913028 3 26 - 1858354 20 25 [ 1869881465: 1936028192 ] <Unknown ID> 3: 0D 1409024 0 1 - 1409051 6 11 [ 2885681152: 55499 ] <Unknown ID> Disklabel is also weird: $ disklabel sd0 # /dev/rsd0c: type: SCSI disk: SCSI disk label: iPod flags: bytes/sector: 2048 sectors/track: 32 tracks/cylinder: 64 sectors/cylinder: 2048 cylinders: 242 total sectors: 495616 rpm: 3600 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # microseconds track-to-track seek: 0 # microseconds drivedata: 0 16 partitions: # size offset fstype [fsize bsize cpg] c: 495616 0 unused 0 0 # Cyl 0 - 241 i: 55499 2885681152 unknown # Cyl 1409024 -1409051* disklabel: partition i: offset past end of unit disklabel: partition i: partition extends past end of unit |