Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Installation / Removal
| |-+  Manual Installation
| | |-+  Cowon - Installation/Removal
| | | |-+  What to do to get X5 bootloader v4 with dual boot?
« previous next »
  • Print
Pages: [1]

Author Topic: What to do to get X5 bootloader v4 with dual boot?  (Read 4241 times)

Offline cereal_killer

  • Member
  • *
  • Posts: 430
What to do to get X5 bootloader v4 with dual boot?
« on: August 11, 2016, 08:18:38 AM »
Hello,

as the Task FS#5289 is closed and the patch is accepted I understand that there is no release of a dual bootloader from this discussion on IRC. 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
Logged

Offline cereal_killer

  • Member
  • *
  • Posts: 430
Re: What to do to get X5 bootloader v4 with dual boot?
« Reply #1 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 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 the latest? Or is there an other way to create a dual bootloader?

Thanks in advance,
c_k
Logged

Offline lebellium

  • Member
  • *
  • Posts: 78
  • DAPs collector
    • My 100+ players collection
Re: What to do to get X5 bootloader v4 with dual boot?
« Reply #2 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

« Last Edit: August 24, 2016, 05:19:48 PM by lebellium »
Logged
I swim in mp3 players!

Offline cereal_killer

  • Member
  • *
  • Posts: 430
Re: What to do to get X5 bootloader v4 with dual boot?
« Reply #3 on: September 07, 2016, 04:05:28 PM »
Quote from: lebellium on August 24, 2016, 05:12:40 PM
I guess I finally found out.

Yes, everything worked as you described. Thank you.

Quote from: lebellium on August 24, 2016, 05:12:40 PM
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 I changed the boot behavior to a short slide of the power button to boot Rockbox. Same for the remote. The description on git quoted above seems to be wrong.

Thank you again lebellium, now I can enjoy my X5 with the i6 skin of the OF and Rockbox. If only there was no file limit for the OF... :(
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Installation / Removal
| |-+  Manual Installation
| | |-+  Cowon - Installation/Removal
| | | |-+  What to do to get X5 bootloader v4 with dual boot?
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.024 seconds with 17 queries.