Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: ATA help needed for iPod Video 5.5G port (UNFINISHED patch included)

ATA help needed for iPod Video 5.5G port (UNFINISHED patch included)

From: Robert Carboneau <kalthare_at_freeshell.org>
Date: Sat, 23 Sep 2006 16:21:38 -0700

For the past couple of days, I've been trying to get the Rockbox
bootloader working on my 5.5G iPod Video. I've managed to get it to the
point where it reads the checksum and model name from rockbox.ipod, but
then it hangs somewhere in ata_read_sectors() while reading the rest of
the image. I haven't modified ata.c at all, and I don't see why it
should crash in there -- not that I really understand the function.

The problem this patch addresses is that while the hard drive has normal
512-byte sectors, the filesystem has a logical sector size of 2048
bytes. It's presented over USB as a 2048-byte-per-sector HDD, so I can't
just reformat the partition with a sane setting. Heavens, how I would
_like_ to.

All the patch does is quadruple the numbers read in the partition table,
quadruple the number and addresses of sectors read and written by the
FAT code, and make bpb_is_sane() expect 2048-byte sectors. I haven't
quite finished doing that -- the fsinfo accesses are untouched, at the
least. But, again, I don't see what I've done that would lead to a crash
in ata_read_sectors(). I can't help but feel that I've done something
foolish.

-- Rob

Received on 2006-09-24

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy