Rockbox Technical Forums

Installation / Removal => Manual Installation => Apple - Installation/Removal => Topic started by: solarflare on June 25, 2006, 11:07:23 AM

Title: Install problem: "fread failed: Result too large"
Post by: solarflare on June 25, 2006, 11:07:23 AM
After succesfully installing Rockbox in an iPod mini 2G, I know this should've been worked.

Code: [Select]
powerbook% ls -l
total 241488
-rw-r--r--   1 solarflare  solarflare   5092324 25 Kes 18:20 apple_os.bin
-rw-r--r--   1 solarflare  solarflare     52800 26 Tam 20:45 bootloader-nano.bin
-rw-r--r--   1 solarflare  solarflare  70406144 25 Kes 18:19 bootpartition.bin
-rwxr-xr-x   1 solarflare  solarflare     20160 20 Hel 21:25 diskdump
-rwxr-xr-x   1 solarflare  solarflare     32008 20 Hel 21:24 ipod_fw
powerbook% ./ipod_fw -g nano -o rockboot.bin -i apple_os.bin bootloader-nano.bin                         
fread failed: Result too large

My nano is the 2GB version. It has been restored in Windows with the iPod utility, so can't figure out what would be wrong in here.

Edit: The problem was solved. I had less than 300 MB free space in my startup disk. After freeing up some space it said first:

Code: [Select]
powerbook% ./ipod_fw -g nano -o rockboot.bin -i apple_os.bin bootloader-nano.bin
fread failed: Unknown error: 0

and after that I walked thru the whole procedure, which then solved the issue:

Code: [Select]
powerbook% ./ipod_fw -g nano -o rockboot.bin -i apple_os.bin bootloader-nano.bin                         
Generating firmware image compatible with iPod mini, 4g and iPod photo/color...

But the error messages were definitely interesting. Might be worth checking the free disk space automatically, in case it wouldn't be too code length consuming or something like that. :)
Title: Works like a charm!
Post by: solarflare on June 25, 2006, 03:50:50 PM
I wrote a small article (http://fimug.fi/nayta.php?id=434) on iPod nano (and iPod mini) with the ROCKbox firmware in the fiMUG news service MacSanomat. Yeah, it is in finnish, but anyway advertises the ROCKbox and Ogg Vorbis fileformat to the finnish audience.