Unix Technical Forum

Re: [PATCH] iPod nano 8G

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: ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > mailing.openbsd.tech

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-18-2008, 08:59 AM
John Danks
 
Posts: n/a
Default Re: [PATCH] iPod nano 8G

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:36 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com