Support and General Use > Hardware

Unsupported physical sector size

<< < (2/4) > >>

Seaningtime:
eeee, that's a bit much for me

I think I'm just gonna buy another proper harddrive instead

thanks anyways tho

loner6996:
I have the same issue on my 5.5g ipod video. Just wondering if anyone else has fixed this or...

TPC:
Hello, I am having the same problem.


--- Quote from: GodEater on November 08, 2008, 09:58:35 AM ---I'm pretty confident it won't work - you'll need to do a lot more work to get it to accept a disk with that size sectors.

--- End quote ---

How much more work are we talking?  I've made a quick glance through the source code and it appears that I would "only" need to modify the bootloader and the fat driver.  Is this correct, or is the sector size of tied to something much more critical?

For the record, I've done the same thing with a 5.5g video ipod - swapped out the original 30GB drive for an 80GB drive from an ipod classic.  iTunes formats the new 80gb with a cluster size of 16kb, which Rockbox will not use.

EDIT
------

Having had time to sit down and play with an installed development environment, I discovered that the fix for this problem is actually very simple.  I modified config-ipodvideo.h from this:


--- Quote ---/* define this if the device has larger sectors when accessed via USB */
/* (only relevant in disk.c, fat.c now always supports large virtual sectors) */
define MAX_LOG_SECTOR_SIZE 2048

/* define this if the hard drive uses large physical sectors (ATA-7 feature) */
/* and doesn't handle them in the drive firmware */
define MAX_PHYS_SECTOR_SIZE 1024
--- End quote ---

To this:


--- Quote ---/* define this if the device has larger sectors when accessed via USB */
/* (only relevant in disk.c, fat.c now always supports large virtual sectors) */
define MAX_LOG_SECTOR_SIZE 16384

/* define this if the hard drive uses large physical sectors (ATA-7 feature) */
/* and doesn't handle them in the drive firmware */
define MAX_PHYS_SECTOR_SIZE 4096
--- End quote ---

Then, I did a full recompile of Rockbox as detailed in the docs, followed up by a recompile of the bootloader.

This seems to have solved the problem for me.  I don't think you'll be able to move an existing Rockbox installation to an iPod that has this sector issue.  When I did that, the iPod dumped the same error message "Unsupported physical sector size", etc.

I found MAX_LOG_SECTOR_SIZE by getting the cluster size as shown by Windows.  The MAX_PHYS_SECTOR_SIZE was taken from the error message that appears when an incompatible version of Rockbox is installed.  Pop those two numbers in, compile, go.

For those of you who don't want to compile and don't mind having an out of date build, here's a download link with the compiled version of Rockbox and the accompanying bootloader that worked on my iPod. This version of Rockbox is based on revision 19195M-081125, which should be pretty close to the latest as of this post.

Here you go:

http://www.zshare.net/download/518152111ac11c6f/

To install the boot loader, follow the directions here:

http://www.rockbox.org/twiki/bin/view/Main/IpodPatcher

loner6996:
Ok well I tried installing this and I still get the same error  :'(

TPC:
Sorry man, I guess you'll have to compile your own custom version, then.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version