After succesfully installing Rockbox in an iPod mini 2G, I know this should've been worked.
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:
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:
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.
