Rockbox Technical Forums

Installation / Removal => Manual Installation => Cowon - Installation/Removal => Topic started by: cereal_killer on August 11, 2016, 08:18:38 AM

Title: What to do to get X5 bootloader v4 with dual boot?
Post by: cereal_killer on August 11, 2016, 08:18:38 AM
Hello,

as the Task FS#5289 (http://www.rockbox.org/tracker/task/5289) is closed and the patch is accepted I understand that there is no release of a dual bootloader from this discussion on IRC (http://www.rockbox.org/irc/log-20110619#19:24:56). Has anything changed since then?

If I want to use the v4 bootloader with dual boot function, I would have to patch the official bootloader myself, right? Or is there an unofficial precompiled version somewhere, because I have no compiling/patching experiences at all.

Any advice is highly appreciated.

Greetings
c_k
Title: Re: What to do to get X5 bootloader v4 with dual boot?
Post by: cereal_killer on August 22, 2016, 06:42:44 AM
OK, so I dared to make myself familiar with development environment and compiling and stuff using Linux Mint. Installing the bootloader using Rockbox Utility leads to no dual boot option. Some questions:

If I compile a bootloader from the source, which gives me a bootloader.bin file, is the patch already included, because in FS#5289 (http://www.rockbox.org/tracker/task/5289) it says that
Quote
r30018 implements dual boot support based on the latest version of this patch..

Or do I need to patch this file?

If this bootloader.bin file already has dual boot capabilities how to go on? There is this mkboot way, which I partly understand. Is the mkboot version from http://www.rockbox.org/tracker/task/5289#comment19465 (http://www.rockbox.org/tracker/task/5289#comment19465) the latest? Or is there an other way to create a dual bootloader?

Thanks in advance,
c_k
Title: Re: What to do to get X5 bootloader v4 with dual boot?
Post by: lebellium on August 24, 2016, 05:12:40 PM
I guess I finally found out.

1) In firmware/export/config/iaudiox5.h add at the end of the file #define HAVE_DUALBOOT and save
2) ../tools/configure -> target n°30 then type 'B' for (B)ootloader. Then type 'make -j'
3) You get a bootloader.bin file in current directory
4) Add OF firmware file in the current directory. For example fw 2.10e
5) Type something like (adapt according to your file names) ../tools/mkboot -iax5 of_x5_fw_2.10e.bin bootloader.bin dualboot_rockbox_2.10e.bin
6) Put dualboot_rockbox_2.10e.bin (I guess you should rename it to fw_x5.bin) into your FIRMWARE directory on device.
7) Unplug the device, connect the AC charger and the firmware upgrade process should start (once upgraded, the FIRMWARE directory is empty)

Then:
The dual-boot bootloader boots the OF when pressing Play (main or remote) for
more than 3 seconds. Hold it a bit longer because the OF also checks buttons.
Short press boots rockbox.
=> http://git.rockbox.org/?p=rockbox.git;a=commit;h=91ce4b2a60c4cbe8e3568f79c3a73572461ff40d

Title: Re: What to do to get X5 bootloader v4 with dual boot?
Post by: cereal_killer on September 07, 2016, 04:05:28 PM
I guess I finally found out.

Yes, everything worked as you described. Thank you.

The dual-boot bootloader boots the OF when pressing Play (main or remote) for
more than 3 seconds. Hold it a bit longer because the OF also checks buttons.
Short press boots rockbox.

Following the suggestions on IRC (http://www.rockbox.org/irc/log-20100614#17:53:11) I changed the boot behavior to a short slide of the power button to boot Rockbox. Same for the remote. The description on git (http://git.rockbox.org/?p=rockbox.git;a=commit;h=91ce4b2a60c4cbe8e3568f79c3a73572461ff40d) quoted above seems to be wrong.

Thank you again lebellium, now I can enjoy my X5 with the i6 skin (http://iaudiophile.net/forums/showpost.php?p=67854&postcount=41) of the OF and Rockbox. If only there was no file limit for the OF... :(