Rockbox Technical Forums

Installation / Removal => Manual Installation => Apple - Installation/Removal => Topic started by: linuxstb on December 17, 2006, 07:22:32 PM

Title: New Bootloader and Installation Procedures - please test and give feedback
Post by: linuxstb on December 17, 2006, 07:22:32 PM
A new set of ipod installation instructions (one page for all users - Linux, Mac OS X and Windows) is available here:

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

The major changes to the previous install are:

1) A new version of the bootloader.  The main difference to the earlier release is that the hold switch is now used to start the Apple firmware - just turn the hold switch as soon as you reboot, and the Apple firmware will start.  Every time.

2) A new (cross-platform) version of the ipodpatcher tool.  This does the job of both the old ipodpatcher (or diskdump for Mac users) and ipod_fw.  Installing the Rockbox bootloader is now a simple two-command process:

ipodpatcher --scan
ipodpatcher N -a bootloader-ipodXXXX.ipod

The --scan option will show you the disk number of your ipod, which you then use in the second command in place of N.

The hope is that the new "rbutil" utility will be able to incorporate the code from ipodpatcher and provide a GUI bootloader install function.

3) Support for the 30GB 5.5g ipod.  The Rockbox daily/bleeding edge builds have supported this ipod for a week or two, and now ipodpatcher fully supports it as well.  This is fully automatic - 30GB 5.5g owners just install exactly the same files as all other 5g owners.  

Sadly the issues with the 80GB still haven't been fixed, so that remains unsupported.

Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: mightybrick on December 17, 2006, 10:26:35 PM
I just tried it, and it seems to work great!  The instructions are easy to follow; the new ipodpatcher is nice; the --scan option is great.  Very simple.
The new bootloader works great too.  The "hold switch for original firmware" is a great idea.  I also like the black background and light text- looks great.
It's a job well done.
Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: vuittion on December 18, 2006, 12:12:09 PM
I am happy to report that its working great on my 30GB 5.5g ipod using the new bootloader, I can now dual boot with either apple or Rockbox firmware, a big thank you to everyone involved in making this possible :D
Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: frause on December 18, 2006, 04:17:01 PM
Well it does not seem to work for me on my 5.5G 30GB.
EDIT:
It works now, see http://forums.rockbox.org/index.php?topic=7737.msg60652#msg60652

1. With the new bootloader, I get:
Code: [Select]
No partition found
Press MENU+SELECT to reboot
then SELECT+PLAY for disk mode

2. With an unpatched cvs-build from 2006-12-04 and a bootloader (ipodpatcher) from 2006-11-25 (patched ipod_fw), it works.

3. With the old bootloader and a 2006-12-18 build, it seems to boot and then I get:
Code: [Select]
No partition found.
Insert USB cable
and fix it."

4. The original Apple firmware works.

I don't have time to do more testing right now, but I will try again tomorrow. Unfortunately I don't have access to a winputer (gentoo linux here), so an Itunes restore won't be done in a reasonable amount of time. I'll try reformatting or something tomorrow.
Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: linuxstb on December 18, 2006, 04:28:58 PM
I don't have time to do more testing right now, but I will try again tomorrow. Unfortunately I don't have access to a winputer (gentoo linux here), so an Itunes restore won't be done in a reasonable amount of time. I'll try reformatting or something tomorrow.

My only thought is that you've done something strange to your ipod in the course of testing various experimental 5.5g builds which is causing the problems.

Do you have a backup of your original MBR (i.e. the first sector on the disk) and the original contents of the firmware partition that you can restore before trying ipodpatcher and the new bootloader again?
Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: frause on December 18, 2006, 04:48:58 PM
Quote
My only thought is that you've done something strange to your ipod in the course of testing various experimental 5.5g builds which is causing the problems.
Most likely, yes.

Quote
Do you have a backup of your original MBR (i.e. the first sector on the disk) and the original contents of the firmware partition that you can restore before trying ipodpatcher and the new bootloader again?
Yes, and I have already tried that.

dd the original MBR back.
dd the original firmware partition back.
Reboot the ipod.
Verify the original firmware works.
Code: [Select]
$ sudo ./ipodpatcher /dev/sda -a bootloader-ipodvideo.ipod
ipodpatcher v0.5 - (C) Dave Chapman 2006
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[INFO] Reading partition table from /dev/sda
[INFO] Sector size is 2048 bytes
[INFO] Part    Start Sector    End Sector   Size (MB)   Type
[INFO]    0              63         48194        94.0   Empty (0x00)
[INFO]    1           48195      14651279     28521.7   W95 FAT32 (0x0b)
[INFO] Ipod model: Video (aka 5th Generation)
[INFO] Checksum OK in bootloader-ipodvideo.ipod
[INFO] Moving images to create room for new firmware...
[INFO] Reading original firmware...
[INFO]  Wrote 7550976 bytes to firmware partition
[INFO] Bootloader bootloader-ipodvideo.ipod written to device.
= No partition found

It is talking about the second partition, right?
Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: Llorean on December 18, 2006, 04:56:42 PM
Is that 7550976 bytes because of the moving of the iPod firmware too? (question aimed at linuxstb)
Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: linuxstb on December 18, 2006, 05:12:16 PM
Is that 7550976 bytes because of the moving of the iPod firmware too? (question aimed at linuxstb)

No, it's ipodpatcher writing the combined (Apple firmware and Rockbox bootloader) "main firmware" image back to the ipod.  
Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: linuxstb on December 18, 2006, 05:18:09 PM
= No partition found

It is talking about the second partition, right?

Yes, it's saying it can't find (and mount) a valid FAT partition on the disk.  

Your partition table looks fine, so maybe the problem is with the FAT partition itself.  Although it's odd that the Apple firmware is happy with it.

Have you tried reformatting your FAT32 partition, and if so, what was the command-line you used?  You should make sure you use the "-F32" option.
Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: frause on December 18, 2006, 05:36:30 PM
Your partition table looks fine, so maybe the problem is with the FAT partition itself.  Although it's odd that the Apple firmware is happy with it.

Have you tried reformatting your FAT32 partition, and if so, what was the command-line you used?  You should make sure you use the "-F32" option.

Code: [Select]
$ grep mkfs.vfat ~/.bash_history
man mkfs.vfat
sudo mkfs.vfat -S 2048 -n IPOD /dev/sda2
Heh!
Thats probably it.  "32 bit FAT(FAT32  format) must (still) be selected explicitly if you want it."

I used the MBR-hack for a while, which means reformatting the partition.
I'll try with the -F32 tomorrow.

Thanks!

EDIT:
After recreating partitions, copying partitions and formatting to the left and right, I finally got it to work. What seems to have been the issue was the sectors per cluster.
Code: [Select]
sudo mkfs.vfat -n IPOD -F 32 -s 16 -S 2048 /dev/sda2 made it work as advertised.
That is, the ipodpatcher works and I can boot to both Apple firmware and Rockbox.

Oh, and the Apple firmware was not happy before, it just didn't say anything. it could create its directories but the file contents were just garbage. I didn't play around enough to catch that before.
Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: michael.conner on December 19, 2006, 09:38:30 AM
Kudos -- works great on 1g nano.  Instructions are very clear.  Thanks for the "boot with hold switch on for original firmware" addition to the bootloader.

Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: dethinc on December 19, 2006, 01:01:43 PM
RB loads great. Original firmware doesn't. I installed it and when i load the orignal firmware a folder with a "!" hazard box appears telling me to go to the ipod support forums on apple. Any ideas?

edit: I was using the old 1.1 ipod firmware i think. Will that have any significance?
Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: fasmaie on December 19, 2006, 02:14:39 PM
It does not seem to work on my iPod 4G greyscale.

I went through the installation instructions from the new procedure. Used the latest (19/12/2006) build. After installation of the bootloader, RockBox boots fine, but I cannot boot into the Apple firmware at all.

When the hold button is on, I get the "booting into original firmware" message, then the process halts and the system reboots. This cycles if the hold button is kept on, and boots into RockBox if the hold button is off (not surprisingly).

It seems like the original firmware is not accessible to the bootloader, and when it is not found, it just reboots.

Just in case this is needed: I have a 20 GB, 4th Gen greyscale iPod. I use it on a mac, but it is Windows formatted.
Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: Pancho_DJ on December 19, 2006, 05:35:28 PM
hi I tried this new method  but when I create a backup of ipod's firmware partition, on the cmd screen i got this message:

error openinig disk: ...

i got 5g ipod one year old, firmware 1.2.1 and disk mode enable on itunes
Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: linuxstb on December 19, 2006, 06:28:46 PM
hi I tried this new method  but when I create a backup of ipod's firmware partition, on the cmd screen i got this message:

error openinig disk: ...

i got 5g ipod one year old, firmware 1.2.1 and disk mode enable on itunes

Is that the whole error message?  Does ipodpatcher display anything else?

Also, did the "ipodpatcher --scan" option find your ipod?

Also, do you have Administrator privileges?
Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: linuxstb on December 19, 2006, 08:09:10 PM
@fasmaie, Pancho_DJ,

I'm not sure yet what the problem is.  Someone just came to IRC with the same problem - on a Photo, and he said he hadn't updated the firmware recently either.

So the common factor so far seems to be old versions of the Apple firmware.  I'm running v1.2 of the Apple firmware on my Photo, and it works fine.  Most other testing (all successful) has been on Nanos and Videos.

Has anyone successfully used ipodpatcher and the latest bootloader with an older ipod running an older firmware?
Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: Kreator666 on December 19, 2006, 09:08:44 PM
It does not seem to work on my iPod 4G greyscale.

I went through the installation instructions from the new procedure. Used the latest (19/12/2006) build. After installation of the bootloader, RockBox boots fine, but I cannot boot into the Apple firmware at all.

When the hold button is on, I get the "booting into original firmware" message, then the process halts and the system reboots. This cycles if the hold button is kept on, and boots into RockBox if the hold button is off (not surprisingly).

It seems like the original firmware is not accessible to the bootloader, and when it is not found, it just reboots.

Just in case this is needed: I have a 20 GB, 4th Gen greyscale iPod. I use it on a mac, but it is Windows formatted.

Exactly the same happens on my 4G iPod (used on Windows, though).

Sounds like a problem with iPodPatcher's append function (for the older iPods) to me.
Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: linuxstb on December 20, 2006, 02:26:57 AM
Would someone experiencing problems be able to run the following commands (on a clean firmware partition - one in the factory condition) and send me the output (a PM is fine).

ipodpatcher [device] -v --list
ipodpatcher [device] -v -a bootloader-ipodXXXX.ipod
ipodpatcher [device] -v --list

Thanks.
Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: Pancho_DJ on December 20, 2006, 09:50:55 PM
well i did everythink, as the manual said but i have the same problem:

ipodpatcher --scan
.
.
.

ipodpatcher [1] -r bootpartition.bin
.
.
.


error openinig disk: El sistema no puede hallar el archivo especificado

maybe is something that I missing, but I tried a few times so maybe is not me.
Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: Llorean on December 20, 2006, 09:53:31 PM
Try:
ipodpatcher 1 -r bootpartition.bin
Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: Pancho_DJ on December 20, 2006, 10:18:50 PM
thanks.... it worked!!!

on the manual said [device]... so thats what I did, but the problem has been solved
Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: defgeoff on December 21, 2006, 05:53:41 PM
my problem is under step 2a) when i click the link next to "Mac OSX (Universal Binary)" i just get sent to a page with the source code for the file.

when i right click and click "save linked file to desktop" it just saves a text file called ipodpatcher.txt.

what i need is the real file... if that makes any sense.
Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: ipod_video12 on December 21, 2006, 06:16:06 PM
http://www.rockbox.org/twiki/bin/view/Main/IpodInstallationBeta is this the new software
Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: linuxstb on December 21, 2006, 06:39:21 PM
http://www.rockbox.org/twiki/bin/view/Main/IpodInstallationBeta is this the new software

As stated in the first post of this thread, yes.
Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: fasmaie on December 21, 2006, 07:33:45 PM
defgeoff---

You can try and click on the link. You will get a page of code (according to your mail). Wait until it has finished loading completely. Then save it from the 'file' menu in your browser. This should give you a file called ipodpatcher. Make it executable (chmod +x), and you should be good to go.

Hope it works.
Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: Chronon on December 22, 2006, 06:42:27 PM
Does this mean there will be a different method for clearing settings?  Previously booting with "Hold" on would cause settings to be cleared.  I guess this can still be done via the menus so maybe it's not a big deal.
Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: linuxstb on December 22, 2006, 08:49:02 PM
Does this mean there will be a different method for clearing settings?  Previously booting with "Hold" on would cause settings to be cleared.  I guess this can still be done via the menus so maybe it's not a big deal.

No, the hold switch still clears the settings.  The difference now is that you need to turn the hold switch on between the time the bootloader starts, and the time Rockbox starts.
Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: jamesmh on December 24, 2006, 05:18:21 AM
So you have a comment in section g) (troubleshooting) about how "rockbox error -1" seems to be the most common problem.  I'd love to see what content is going into this section, because that's the problem that I am having.

I have an iPod mini 2G, and it will not boot with the new firmware.  The full output when I boot is as follows:

Rockbox boot loader
Version: 20061220-0911
IPOD version: 0x0007000
ST660211CF
Partition 1: 0x0B 5820
Rockbox error : -1
Loading original firmwa

And then it freezes and never loads the "original firmware"  Below is the output of when I write the new firmware to disk.

Any help is appreciated.

iroot@garage:/home/jamesmh# ./ipodpatcher /dev/sda -a bootloader-ipodmini2g.ipod
podpatcher v0.5 - (C) Dave Chapman 2006
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[INFO] Reading partition table from /dev/sda
[INFO] Sector size is 512 bytes
[INFO] Part    Start Sector    End Sector   Size (MB)   Type
[INFO]    0              63         32129        15.7   Empty (0x00)
[INFO]    1           80325      12000554      5820.4   W95 FAT32 (0x0b)
[INFO]    2           32130         80324        23.5   Linux (0x83)
[INFO] Ipod model: 2nd Generation Mini
[INFO] Checksum OK in bootloader-ipodmini2g.ipod
[INFO] Reading original firmware...
[INFO]  Wrote 3458048 bytes to firmware partition
[INFO] Bootloader bootloader-ipodmini2g.ipod written to device.
Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: Llorean on December 24, 2006, 05:21:26 AM
Error: -1 means that it can't find rockbox.ipod in the root of the device.
Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: jamesmh on December 24, 2006, 05:37:28 AM
Right, thanks.  Bootloader working.
Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: linuxstb on December 24, 2006, 05:40:42 AM
Right, thanks.  Bootloader working.

You said in your first post that the original firmware doesn't work either - is that now working?
Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: Pancho_DJ on December 30, 2006, 06:03:24 PM
i have a problem but i don`t now if is the bootloader...

i try to load the ipod original firmware but i can`t, it keeps reboot the ipod and i can't make it load.

this problem happened when i install the new bootloader
Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: fasmaie on January 01, 2007, 11:03:07 PM
linuxstb:

Here is the information you requested off a pristine 20 GB greyscale iPod 4th generation.

Step 1: ./ipodpatcher /dev/disk1 -v --list

ipodpatcher v0.5 - (C) Dave Chapman 2006
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[INFO] Reading partition table from /dev/disk1
[INFO] Sector size is 512 bytes
[INFO] Part    Start Sector    End Sector   Size (MB)   Type
[INFO]    0              63         80324        39.2   Empty (0x00)
[INFO]    1           80325      39054014     19030.1   W95 FAT32 (0x0b)
[INFO] Ipod model: 4th Generation
    Type         id  devOffset        len       addr entryOffset    chksum       vers   loadAddr   devOffset+len
0 - OSOS 0x00000000 0x00004400 0x00356f14 0x10000000 0x00000000 0x1259ef03 0x0000500b 0xffffffff 0x0035b600
1 - AUPD 0x00000001 0x0035b600 0x00109448 0x10000000 0x00000000 0x0bb890b3 0x0000500b 0x10000000 0x00464e00

Listing firmware partition contents:

Image 1:
    Main firmware - 3501844 bytes
Image 2:
    AUPD - 1086536 bytes

Step 2: ./ipodpatcher /dev/disk1 -v -a bootloader-ipod4g.ipod

ipodpatcher v0.5 - (C) Dave Chapman 2006
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[INFO] Reading partition table from /dev/disk1
[INFO] Sector size is 512 bytes
[INFO] Part    Start Sector    End Sector   Size (MB)   Type
[INFO]    0              63         80324        39.2   Empty (0x00)
[INFO]    1           80325      39054014     19030.1   W95 FAT32 (0x0b)
[INFO] Ipod model: 4th Generation
[INFO] Checksum OK in bootloader-ipod4g.ipod
[VERB] Original firmware begins at 0x00004600
[VERB] New entryOffset will be 0x00357000
[VERB] End of bootloader will be at 0x00365a00
[INFO] Moving images to create room for new firmware...
[INFO] Need to move images 2-2 forward 0000e800 bytes
[VERB] src_start     = 0035b800
[VERB] src_end       = 00464e00
[VERB] dest_start    = 0036a000
[VERB] dest_end      = 00473600
[VERB] bytes to copy = 00109600
[VERB] Copying 00109600 bytes from 0035b800 to 0036a000 (absolute 00363600 to 00371e00)
[INFO] Reading original firmware...
[INFO]  Wrote 3561984 bytes to firmware partition
[INFO] Bootloader bootloader-ipod4g.ipod written to device.

Step 3: ./ipodpatcher /dev/disk1 -v --list

ipodpatcher v0.5 - (C) Dave Chapman 2006
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[INFO] Reading partition table from /dev/disk1
[INFO] Sector size is 512 bytes
[INFO] Part    Start Sector    End Sector   Size (MB)   Type
[INFO]    0              63         80324        39.2   Empty (0x00)
[INFO]    1           80325      39054014     19030.1   W95 FAT32 (0x0b)
[INFO] Ipod model: 4th Generation
    Type         id  devOffset        len       addr entryOffset    chksum       vers   loadAddr   devOffset+len
0 - OSOS 0x00000000 0x00004400 0x00365954 0x10000000 0x00357000 0x12ba2a65 0x0000500b 0xffffffff 0x0036a000
1 - AUPD 0x00000001 0x00369e00 0x00109448 0x10000000 0x00000000 0x0bb890b3 0x0000500b 0x10000000 0x00473600

Listing firmware partition contents:

Image 1:
    Main firmware - 3502080 bytes
    Third-party bootloader - 59732 bytes
Image 2:
    AUPD - 1086536 bytes



Hope it helps.
Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: bobbel on January 03, 2007, 05:10:53 PM
It does not seem to work on my iPod 4G greyscale.

I went through the installation instructions from the new procedure. Used the latest (19/12/2006) build. After installation of the bootloader, RockBox boots fine, but I cannot boot into the Apple firmware at all.

When the hold button is on, I get the "booting into original firmware" message, then the process halts and the system reboots. This cycles if the hold button is kept on, and boots into RockBox if the hold button is off (not surprisingly).

It seems like the original firmware is not accessible to the bootloader, and when it is not found, it just reboots.

Just in case this is needed: I have a 20 GB, 4th Gen greyscale iPod. I use it on a mac, but it is Windows formatted.


same problem here (Firmware 1.4.1 iPod Mini)
Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: linuxstb on January 07, 2007, 09:30:45 AM
In order to test if the problem is with the bootloader itself, or with the new ipodpatcher installation method, could someone who is experiencing a failure to load the original firmware try installing the old version of the bootloader using the new ipodpatcher installation method?

The old bootloaders in the ".ipod" format required by ipodpatcher can be found here:

4G (Greyscale) - http://www.davechapman.f2s.com/rockbox/bootloader-ipod4g-old.ipod
1st Gen Mini - http://www.davechapman.f2s.com/rockbox/bootloader-mini1g-old.ipod
2nd Gen Mini - http://www.davechapman.f2s.com/rockbox/bootloader-mini2g-old.ipod

Note that these bootloaders require you to hold MENU whilst booting to start the original firmware.

Thanks.
Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: bobbel on January 07, 2007, 03:40:44 PM
old bootloader doesn't work either...I'm just able to load rockbox.

1st Gen Mini - http://www.davechapman.f2...ootloader-mini1g-old.ipod

Well, I'm getting lots of crashes using latest rockbox builds playing mp3 and flac, too...

bobbel
Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: linuxstb on January 07, 2007, 03:54:40 PM
Can you describe what happens when using the old bootloader?  Does it display the "Loading Original Firmware" message?  If so, what happens after that?
Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: bobbel on January 08, 2007, 04:12:52 PM
It's just the same as with the new bootloader: Rockbox boots up and try to load the old sys - then crash - reboot and so on. Rockbox is loading fine if not pressing MENU-key.
Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: Blogs on January 12, 2007, 12:44:43 AM
This is a fantastic project.
Thank you for all your hardwork. I came across then when a friend of mine went blind and I was trying to find someway to give her an ipod with audio books and a voice driven menu.

I just got her a 5.5G 30GB Video Ipod. Your instructions worked flawlessley.

Thank you!
Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: Blogs on January 12, 2007, 12:45:56 AM
I forgot to add one thing. I am not sure how the "dual" booting works. I tried pressing the Menu and the select at the same time and no matter what i do I stay in rockbox and dont get back to a normal Ipod.
Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: GodEater on January 12, 2007, 03:12:03 AM
** Edited due to extreme idiocy**
Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: Llorean on January 12, 2007, 03:13:04 AM
Well, actually, Menu+Select was never a method of dual booting. JUST Menu was the method, and it still works.

You turn on the iPod, and then either hold down Menu, or immediately turn on Hold.
Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: spadger on January 18, 2007, 07:19:43 PM
I recently tried to update my ipod 4th gen grayscale by downloading and extracting the file and folder rockbox.ipod and .rockbox to the root of my ipod to overwrite the existing versions.

Upon rebooting the ipod i recieve the error "-4" and it continues to boot the default apple firmware. i had saved a copy of the old firmware on my pc (.rockbox and rockbox.ipod) which i transferred back to the root of the ipod, but i still got the same "-4" error.

I understand that since my original installation (23/10/2006) using linux there has been some updates to the installation procedure and now there seems to be an ipodpatcher version for linux, which wasn't the case at the time i performed the original installation. There was at that time a tool called ipod_fw.c .

I would like to uninstall rockbox so that I can start again fresh with the most recent bootloader/firmware. Thankfully I saved a copy of the manual locally at the time of original installation (01/11/2006) but this only details uninstallation using the ipodpatcher tool which at that time was only available for windows and mac so therefore i didn't download it. Even so the uninstall command seems to be different for the new and old version of ipodpatcher

old version:    ipodpatcher -w N bootpartition.bin

new version:    ipodpatcher N -d

My question is/are:

is there a simple solution to this problem?

if not how do i uninstall the old rockbox bootloader as the two apple and rockbox bootloaders seemed to be "merged" during the installation.

can i use the current ipodpatcher tool to remove the old bootloader or will this risk removing the apple bootloader/firmware at the same time?

Sorry this is such a long one but I would appreciate any advice/help anyone could offer.

Cheers,

J.
Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: GodEater on January 19, 2007, 06:10:37 AM
Sounds to me like you might have some filesystem corruption if moving the old firmware back again still resulted in an -4 error.

Try running a fsck on the nano when it's not mounted as a file system.
Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: PHK Brasil on January 19, 2007, 05:52:41 PM
♪
I don't understand why the method to access Apple OS was changed to switch HOLD, but still works holding MENU too, as before.

First I thought that the new method was changed to leaves free the MENU button, doing possible the access to Apple OS diagnostics, holding MENU + REW on Apple OS booting.

But this not happens.

♪
Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: desowin on January 21, 2007, 05:09:46 PM
ipodpatcher works flawlessly here on amd64 Gentoo and iPod mini 2g
Title: Re: New Bootloader and Installation Procedures - please test and give feedback
Post by: rZn on March 20, 2007, 07:12:30 PM
Hi ive have some problem.... cant upgrade the boot loader.

This is what happens:

Code: [Select]
./ipodpatcher

ipodpatcher v0.9 with v1.0 bootloaders - (C) Dave Chapman 2006-2007
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[INFO] Reading partition table from /dev/sdc
[INFO] Sector size is 512 bytes
[INFO] Part    Start Sector    End Sector   Size (MB)   Type
[INFO]    0              63        160649        78.4   Empty (0x00)
[INFO]    1          160650      58605119     28537.3   W95 FAT32 (0x0b)
[INFO] Ipod model: Video (aka 5th Generation) ("winpod")
Enter i to install the Rockbox bootloader, u to uninstall
 or c to cancel and do nothing (i/u/c) :i
[INFO] Using internal bootloader - 47112 bytes
Segmentation fault

and

Code: [Select]
# ./ipodpatcher /dev/sdc -v --list
ipodpatcher v0.9 with v1.0 bootloaders - (C) Dave Chapman 2006-2007
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[INFO] Reading partition table from /dev/sdc
[INFO] Sector size is 512 bytes
[INFO] Part    Start Sector    End Sector   Size (MB)   Type
[INFO]    0              63        160649        78.4   Empty (0x00)
[INFO]    1          160650      58605119     28537.3   W95 FAT32 (0x0b)
[INFO] Ipod model: Video (aka 5th Generation) ("winpod")
    Type         id  devOffset        len       addr entryOffset    chksum       vers   loadAddr   devOffset+len
0 - OSOS 0x00000000 0x00004400 0x00b3ae3c 0x10000000 0x00b2e000 0x40107fe5 0x0000b010 0xffffffff 0x00b3f400
1 - RSRC 0x00000000 0x00b3f600 0x00500000 0x10000000 0x00000000 0x1681e026 0x0000b010 0xffffffff 0x0103f600

Listing firmware partition contents:

Image 1:
    Main firmware - 11722752 bytes
    Third-party bootloader - 52796 bytes
Image 2:
    RSRC - 5242880 bytes

Code: [Select]
# ./ipodpatcher /dev/sdc -v -a bootloader-ipodvideo.ipod
ipodpatcher v0.9 with v1.0 bootloaders - (C) Dave Chapman 2006-2007
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[INFO] Reading partition table from /dev/sdc
[INFO] Sector size is 512 bytes
[INFO] Part    Start Sector    End Sector   Size (MB)   Type
[INFO]    0              63        160649        78.4   Empty (0x00)
[INFO]    1          160650      58605119     28537.3   W95 FAT32 (0x0b)
[INFO] Ipod model: Video (aka 5th Generation) ("winpod")
[INFO] Checksum OK in bootloader-ipodvideo.ipod
[ERR]  Input file too big for buffer
[ERR]  --add-bootloader failed.

and fsck

Code: [Select]
# fsck -vwr /dev/sdc2
fsck 1.39 (29-May-2006)
dosfsck 2.11 (12 Mar 2005)
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
Checking we can access the last sector of the filesystem
Boot sector contents:
System ID "*UOKJIHC"
Media byte 0xf8 (hard disk)
       512 bytes per logical sector
      4096 bytes per cluster
        32 reserved sectors
First FAT starts at byte 16384 (sector 32)
         2 FATs, 32 bit entries
  29193728 bytes per FAT (= 57019 sectors)
Root directory start at cluster 2 (arbitrary size)
Data area starts at byte 58403840 (sector 114070)
   7291300 data clusters (29865164800 bytes)
63 sectors/track, 255 heads
    160650 hidden sectors
  58444470 sectors total
Checking for unused clusters.
Checking free cluster summary.
/dev/sdc2: 6372 files, 6431756/7291300 clusters

I did have some errors at my first check...

oh and i have an ipod 5g

Hope I can get some help here other wise I'm stuck at the old menu in rockbox :(

Regards

//Andreas


Edit: anyone??? please...