Rockbox Technical Forums

Support and General Use => Hardware => Topic started by: Sampowaa on April 22, 2006, 04:35:48 PM

Title: Double boot on X5 ?
Post by: Sampowaa on April 22, 2006, 04:35:48 PM
Hi everyone. That's my first post on your forum :P.

I was wondering if it was possible to have double boot on X5 to chose at startup wether we want to run Rockbox or the original firmware.
Title: Re: Double boot on X5 ?
Post by: Tannhauser on April 22, 2006, 04:51:04 PM
Hey there  :)

That option will probably be incorporated eventually, but at the moment it's not possible.
Title: Re: Double boot on X5 ?
Post by: gr1m r34p3r on April 23, 2006, 03:56:45 AM
hopefully that function will come soon, i can't wait.
Title: Re: Double boot on X5 ?
Post by: Sampowaa on April 23, 2006, 09:43:09 AM
Ok, thanks !

Hope it'll be incorporated soon !
Title: Re: Double boot on X5 ?
Post by: RaeNye on April 23, 2006, 10:49:56 AM
Actually I'm thinking of doing this.

I need to rip the ADC_BUTTONS code and recompile the rockbox bootloader on different addresses; I already know where to locate this in the original firmware.

Hold on, as they say  :)
Title: Re: Double boot on X5 ?
Post by: Bagder on April 23, 2006, 02:11:56 PM
Possibly you can find inspiration from the iriver code as that bootloader does this operation already.
Title: Re: Double boot on X5 ?
Post by: jwaite on April 24, 2006, 10:10:51 PM
RaeNye
This is a HUGE option and a much needed one.

Good luck with undertaking!!
Title: Re: Double boot on X5 ?
Post by: blue334 on April 25, 2006, 04:40:34 AM
I do miss my radio, so at least until the radio driver is done a dual boot option would be welcome indeed. Thanks in advance RaeNye.
Title: Re: Double boot on X5 ?
Post by: infamis on April 26, 2006, 12:28:54 AM
lol...I forgot all about the x5's radio...never used it except within the minutes of first opening it!
Title: Re: Double boot on X5 ?
Post by: poisonalchemist on May 03, 2006, 09:10:19 PM
Another onus would be that it would get rid of the need to figure out how to code the video for the iaudio in rockbox, you could just use the original firmware.
Title: Re: Double boot on X5 ?
Post by: Bloody_Sorcerer on May 03, 2006, 11:41:00 PM
i spotted a patch today on flyspray that claims to do dual-boot for the X5... didn't try it because i don't wanna run the risk of a brick :) im perfectly happy with the rockbox firmware without potentially bricking by going back with a patch or whatever :)
Title: Re: Double boot on X5 ?
Post by: RaeNye on May 04, 2006, 07:49:48 AM
Yeah, that's my patch.

It WorksForMeTM, and it should work for you too.  ;D
In any case, you could just connect it via USB and reflash firmware.

See discussion in the tracker for more info, I reckon it would be released soon.

I don't see rockbox.org distributing cowon's firmware, BTW; you'd probably download the patch and apply it to your x5-fw.bin of choice.

R.

P.S.
I did think of using the OF's code, but for BBE rather than video.
Video will be supported sooner or later (the latter ;)) in RB for all capable targets;
BBE would never be as it is licensed/patented/whatever.
Title: Re: Double boot on X5 ?
Post by: The D on May 04, 2006, 07:56:38 AM
Yeah, that's my patch.

It WorksForMeTM, and it should work for you too.  ;D
In any case, you could just connect it via USB and reflash firmware.

See discussion in the tracker for more info, I reckon it would be released soon.

I don't see rockbox.org distributing cowon's firmware, BTW; you'd probably download the patch and apply it to your x5-fw.bin of choice.

R.

P.S.
I did think of using the OF's code, but for BBE rather than video.
Video will be supported sooner or later (the latter ;)) in RB for all capable targets;
BBE would never be as it is licensed/patented/whatever.

Are you sure it won't brick the thing?
Title: Re: Double boot on X5 ?
Post by: RaeNye on May 04, 2006, 08:15:53 AM
Whenever upgrading firmware, you only change the flash from 0x10000 and afterwards.
0x0-0x10000 contains the preloader, which handles things as USB-mode, charge-mode, etc.

It's as safe as flashing a beta version of cowon firmware.
(hey, I've flashed my x5 a dozen of times while debugging my code)
Title: Re: Double boot on X5 ?
Post by: ya1950 on May 04, 2006, 03:47:11 PM
The double boot firmware loads correctly into H3Mod and the graphics can be modified in the same manner as the regular Cowon firmware. I've tried it and it works but I haven't flashed the firmware yet. If this works then modified skins can be used with the dual boot without having to recompile for each skin. Any problem with this approach?
Title: Re: Double boot on X5 ?
Post by: RaeNye on May 04, 2006, 08:18:43 PM
The cowon firmware is only changed at the very beginning, where it jumps to the added RB code.
H3Mod should work just fine.
Title: Re: Double boot on X5 ?
Post by: ya1950 on May 05, 2006, 01:34:26 AM
Indeed :) Tried it just now and it works fine! Thanks so much for this  ;D
Title: Re: Double boot on X5 ?
Post by: portach king on May 05, 2006, 07:42:35 AM
Well Done! Can't wait to try this out tonight.

Gapless playback.
Title: Re: Double boot on X5 ?
Post by: Late2DM on May 05, 2006, 08:59:32 PM
Is the manner in which dual-boot is currently implmented an indication of the direction the final implementation will take? Specifically, is it intended that ultimately one will be able to choose which OF version to boot with Rockbox without having to be able to compile the firmware?

I understand the feature in currently available as a patch and that Rockbox is still very much in beta on the X5. However, this thread (http://www.iaudiophile.net/forums/showthread.php?t=8904) indicates the only way to currently select which OF version to boot is by compiling the source. Does anyone have any ideas on how a final implementation might work in this regard?

TIA
Title: Re: Double boot on X5 ?
Post by: RaeNye on May 05, 2006, 09:06:42 PM
Once you've compiled the rockbox bootloader (bootloader.bin),
you use a standalone tool (called mkboot-x5 in the next version) that combines the OF of your choice and bootloader.bin to the final firmware.

You still have to either compile mkboot-x5 or d/l a binary of it (but it compiles for windows too, it's standalone)
Title: Re: Double boot on X5 ?
Post by: Llorean on May 05, 2006, 09:11:22 PM
And we usually have binary downloads for windows of the firmware patcher tools, and bootloader.bin files, so yeah, there should be no need to compile in the later versions. :)
Title: Re: Double boot on X5 ?
Post by: american_evertonian on May 05, 2006, 10:27:49 PM
Hey, just to reasure all you sceptics out there, I just tried the dual bootloader and it works beautifully. Hey, why don't you guys go ahead and put this version on the Iaudioboot page, so more people will know about it, or is there something I don't know about this new dream bootloader? 
Title: Re: Double boot on X5 ?
Post by: Llorean on May 05, 2006, 10:28:37 PM
The new dream bootloader isn't well tested, nor is it officially a part of CVS yet, just a patch, so it's a bit early for putting it on the page probably.
Title: Re: Double boot on X5 ?
Post by: american_evertonian on May 05, 2006, 10:42:26 PM
Couldn't they put it up in addition to the other, more trusted boot loaders with a warning about the questionable firmware?
Title: Re: Double boot on X5 ?
Post by: Llorean on May 05, 2006, 10:45:33 PM
Or they could just wait until it's a little more finalized. Last I checked the core devs were unhappy with its dependency on the existing flash bootloader's functions.
Title: Re: Double boot on X5 ?
Post by: RaeNye on May 12, 2006, 02:58:00 PM
A new version is out. Many changes, should support remote.
Please try it.

http://www.rockbox.org/tracker/task/5289 (http://www.rockbox.org/tracker/task/5289)
Title: Re: Double boot on X5 ?
Post by: raybert on May 17, 2006, 12:05:16 AM
RaeNye:

I got the dual-boot stuff working.  Very nice.  Thanks!

I notice one possible problem: it doesn't seem to be possible to boot rockbox when the external power is plugged in and the cowon charging screen is visible.  A short press on power just toggles the backlight.  A long press boots into the cowon fw.  Is there a trick that I missed?

Thanks,

~ray
Title: Re: Double boot on X5 ?
Post by: RaeNye on May 17, 2006, 05:37:52 AM
No, there's no trick unless your nimble fingers can hold the ON button long enough so that the preloader will start the firmware and then quickly release it before the dual-bootloader checks...

I see two alternatives (aside from leaving it as is):
1. Check whether charger/USB is connected and if so, require a longer ON press for OF to load.
2. Add a bypass (e.g., holding REC always boots OF, holding PLAY always boots RB).

The major problem so far is minimizing dependency on the preloader (option 2 has a disadvantage here).

Opinions are welcome.
Title: Re: Double boot on X5 ?
Post by: RaeNye on May 17, 2006, 12:35:31 PM
Forget opinions, have facts.

Alternative #1: http://rockbox.org/tracker/task/5289#comment8068 (http://rockbox.org/tracker/task/5289#comment8068)
Title: Re: Double boot on X5 ?
Post by: raybert on May 19, 2006, 11:48:16 PM
RaeNye:

Thanks for the update.  Unfortunately, it doesn't seem to work with today's daily.  It builds okay, but the X5 locks up on boot (regardless of charger/length of button hold).  I had to revert to the previous dual boot patch (from 5/12).  That one still works fine.  Not sure why it's failing and, unfortunately, I don't have time to look into it myself nor to try the 5/17 daily.

~ray
Title: Re: Double boot on X5 ?
Post by: RaeNye on May 20, 2006, 12:32:29 PM
Yes, it seems not to work for me too for some reason. It has nothing to do with the daily, since it locks before any RB code is executed.

Nevertheless, I'm able to boot RB from charge screen with the previous version, so I'm sticking with it.

Note: please post your comment on the tracker as well.
Title: Re: Double boot on X5 ?
Post by: raybert on June 08, 2006, 12:36:23 AM
RaeNye,  Sorry I didn't post to the tracker: I was away for a bit.  I see that you took care of it though.

I haven't tried anything new in a while but I've been using my X5 regularly and the dual boot is working just fine.  In fact, I've even been able to easily boot RB from the charging screen.  I don't know if I've just gotten the hang of it or if something I did back on the 17th is at work.

Now we've just got to get this code freeze over and done with so we can start getting all these patches committed!

~ray
Title: Re: Double boot on X5 ?
Post by: RaeNye on June 08, 2006, 07:43:03 AM
I seriously doubt whether dual-boot will be incorporated in RB.

I couldn't get rid of the dependency on the preloader, which is frowned upon by the core devs.  :(
It obviously works, as many happy X5 users have seen, but there's always the possibility that someone will have a player with a new/old version of the preloader and then the bootloader will fail (note that it won't brick the device, just crash it).

Personally, I think Cowon would add ID3 browsing before changing the preloader  ;)
Title: Re: Double boot on X5 ?
Post by: Llorean on June 08, 2006, 07:45:44 AM
Yes, but it is possible to make it work without depending on the preloader, almost definitely, it just hasn't been done yet.

And the devs have said that if it *is* impossible, they'll include it this way, if I recall. They just said they didn't want to make it dependent if at all possible.

So I'm not really sure where you get your "doubt whether dual-boot will be incorporated" from, since really it's just this implementation of it that's unlikely.
Title: Re: Double boot on X5 ?
Post by: RaeNye on June 12, 2006, 02:59:31 PM
Llorean, I've tried thrice to get rid of the preloader dependency but to no avail.

I even copied the sleep() function from the preloader to the bootloader (not literally, but I used the same commands to program TIMER0) and the device still locks up.
I tried just to calculate and verify the checksum of the relevant preloader code and even that doesn't work.

You may say my coding sucks :P but I gave up.
Title: Re: Double boot on X5 ?
Post by: Llorean on June 12, 2006, 05:36:16 PM
Yes, well remember they did say that if it turns out to be impossible they'll do it that way.
But really I suspect they'd like to at least look at it themselves and try to come up with another way first, but X5 isn't on the list of targets for 3.0 so it's not a major focus at the moment.
Title: Re: Double boot on X5 ?
Post by: bk on June 14, 2006, 09:03:36 PM
Using fresh CVS, Cowon fw 2.10 (non-DRM) and the May 12 dual boot patch I can't get it to work. I applied the patch, compiled the bootloader, patched the OF with the bootloader via mkboot-x5 and then flashed it. When I do a short press of the on button the backlight turns on and I get a black screen but nothing else. A long press boots the OF normally.

Any clues?

edit: this is an X5L, btw.
Title: Re: Double boot on X5 ?
Post by: LinusN on June 15, 2006, 02:26:04 AM
Did you install Rockbox?
Title: Re: Double boot on X5 ?
Post by: RaeNye on June 15, 2006, 04:38:32 AM
1. Does a long press (~1 sec) start the OF?
2. When I say a short press, I mean just flicking the on switch. If you're holding it more than 25ms (and less than ~1 sec) then you actually boot the OF, which detects a short press (< 1 sec) and shuts down.
3. Does RB boot screen appear (battery voltage, firmware checksum, etc.)?
Title: Re: Double boot on X5 ?
Post by: bk on June 15, 2006, 07:11:37 AM
Yes, Rockbox is installed to the root of the drive.

1. A long press boots the OF fine.
2. I just tried barely flicking the switch and the same thing happens (doesn't work).
3. No boot screen appears. The backlight turns on but the screen is completely black and there is no disk activity. I have to do a long press to get the device to shut off.
Title: Re: Double boot on X5 ?
Post by: RaeNye on June 15, 2006, 07:54:52 PM
The tough part is to boot the OF, so if this works I'm pretty sure something's wrong with your compilation (e.g., with boot.lds).

- Is the regular v2 RB bootloader able to boot rockbox?
- Does the first dual-boot patch work? (the REC one)
- Does a precompiled dual-boot version (http://rapidshare.de/files/20510381/x5_fw.bin) work?

If you're still thinking that something in my patch in wrong, please get RB running, dump the ROM (via debug menu) and look at the first 64KB. Especially, please tell me whether on address 0xeda4 you have the string: "Welcome to new world of X5. Version = 5.00".

Title: Re: Double boot on X5 ?
Post by: bk on June 16, 2006, 07:35:50 AM
Thanks for your help RaeNye and Linus, it actually looks like a toolchain problem on my end (bad Gentoo crossdev compiler, don't ask). Using your precompiled bootloader and a daily build rather than my own build everything works normally.

Great patch RaeNye, I hope it gets merged at some point.
Title: Re: Double boot on X5 ?
Post by: Bagder on June 16, 2006, 08:01:37 AM
it actually looks like a toolchain problem on my end (bad Gentoo crossdev compiler, don't ask).

Give tools/rockboxdev.sh a try instead!
Title: Re: Double boot on X5 ?
Post by: Mad Big Sausage on July 19, 2006, 08:26:46 AM
The feature freeze is now gone, are still efforts to get this in CVS??

Even though I can compile it myself already my girlfriend won't trust her player's health to my skills so she's adament about waiting for the CVS version.

Her loss really... :D
Title: Re: Double boot on X5 ?
Post by: RaeNye on July 19, 2006, 10:49:39 AM
1. A new version (respecting remote hold switch) is being worked on.
2. There're some didactic problems with the dual bootloader relying on preloader code, so it probably won't be comitted anytime soon.
3. I will provide a binary version once the new version (hopefully final version  feature-wise) is out.
Title: Re: Double boot on X5 ?
Post by: Mad Big Sausage on July 19, 2006, 12:46:51 PM
Cheers and thanks
Title: Re: Double boot on X5 ?
Post by: RaeNye on July 19, 2006, 03:18:00 PM
Edit: attachment removed since a stable version is posted further in the thread.
Edit: attachment was not working, hopefully OK now.

Alpha testers required!
(no compilation needed for Windows users)

Prerequisites:

Your mission, Jim, should you decide to accept it, is to install and test this new version of the dual bootloader.

To install, use mkboot to combine the bootloader binary with any OF version and proceed like any firmware upgrade.

The attached file contains x5-dual-bootloader.testing.bin (bootloader binary), mkboot.c (source) and mkboot.exe (precompiled to Windows).

Boot sequences to verify:

Important:
If anything goes wrong (doesn't boot, stuck, etc.), reset the unit with a reset pin, connect USB cable and reflash a stable firmware. It is advised to do so even if all seems OK until I collect reports from more people.

Disclaimer:
I have not tested this code on my X5 since it's dead, but I believe it works. Even if it doesn't, you can restore a stable firmware via USB mode.
Title: Re: Double boot on X5 ?
Post by: Eriol on July 19, 2006, 10:25:49 PM
Disclaimer:
I have not tested this code on my X5 since it's dead, but I believe it works. Even if it doesn't, you can restore a stable firmware via USB mode.
No offense Rae, but HOW did you kill it?  I kinda wanna know that before I put yer stuff on my X5.  ;)
Title: Re: Double boot on X5 ?
Post by: RaeNye on July 20, 2006, 01:38:04 AM
I've been testing all previous dual bootloaders on my unit without problems.

The first time I killed my X5 was by trying to use the charge LED as a HDD activity indicator in RB, and it was completely my fault; this was fixed by disconnecting the battery and resoldering it.

The second (and current) time, it just stopped responding with no good reason in middle of playing a song. The RB version on it had no expermental changes on it (I don't consider album-art et al. as things that can harm my device) so I have no clue why it died, but rarely it shows backlight flickers.
Title: Re: Double boot on X5 ?
Post by: Llorean on July 20, 2006, 01:42:55 AM
Maybe the soldering has either worked lose, or wasn't quite as spot on as you'd hoped initially?
That'd be my first thing to check, at least.
Title: Re: Double boot on X5 ?
Post by: Astar on July 20, 2006, 02:54:06 AM
can't download attach. Always have broken zip-archive.
can anybody mail me with it? (astar|at|arisegames.com)
Title: Re: Double boot on X5 ?
Post by: RaeNye on July 20, 2006, 05:03:33 AM
Astar: Try downloading again, I changed the extension and it now downloads OK.

Llorean: I opened it up again to verify this. Soldering seems OK. Anyway, I sent it to the lab.
Title: Re: Double boot on X5 ?
Post by: webmeister on July 20, 2006, 02:00:41 PM
the attachment works now


here my results:
Title: Re: Double boot on X5 ?
Post by: RaeNye on July 20, 2006, 02:10:15 PM
Thanks for testing!

It still doesn't work as expected but at least it is stable.
I'll try to check why and will upload more versions to test.

Edit: please try these 4 versions and tell me what effect do they have
(most probably neither will crash, but might not boot the correct firmware)

[attachment deleted by admin, too old]
Title: Re: Double boot on X5 ?
Post by: Astar on July 20, 2006, 04:30:46 PM
one comment about first test-attach.
* long-press power on remote-unit  - x5 turn off (ignoring hold state),  without any "Shutting down" message
Title: Re: Double boot on X5 ?
Post by: RaeNye on July 20, 2006, 04:33:49 PM
Astar: you mean bootloader-1.bin ?
Title: Re: Double boot on X5 ?
Post by: webmeister on July 20, 2006, 05:26:43 PM
I've tested your 4 new bootloaders, but there was no difference to the first bootloader (x5-dual-bootloader.testing.bin).
Title: Re: Double boot on X5 ?
Post by: RaeNye on July 20, 2006, 08:24:10 PM
??? Very eerie ???
these were subsequent sanity checks, with bootloader-4 the most obvious -- boot OF given any length of remote POWER press (hold or not).

Could you please check all behaviours?
Title: Re: Double boot on X5 ?
Post by: Astar on July 21, 2006, 02:54:15 AM
i mean x5-dual-bootloader.testing.bin
Title: Re: Double boot on X5 ?
Post by: noblerogue on July 21, 2006, 03:32:15 AM
Sorry if this is a tad off topic, but I'm really curious about a precompiled boot loader mentioned earlier. Would it be so simple to flash the firmware using that file and have it work? I have an extremely limited technical understanding in general, btw  :o
Title: Re: Double boot on X5 ?
Post by: webmeister on July 21, 2006, 05:46:37 AM
What do you mean by "all behaviours"? I've tested everything you listed (short/long main-unit POWER press, short/long remote-unit POWER press, short/long remote-unit POWER press while remote HOLD is on), but I didn't notice any difference.
Title: Re: Double boot on X5 ?
Post by: RaeNye on July 21, 2006, 07:21:09 AM
noblerouge: you need to combine the bootloader.bin (precompiled) with a OF of your choice (e.g., 2.10-k) and flash the result. I will not provide the result since (1) attachments are limited to 128k (2) that would limit it to a specific OF version (3) I don't want to deal with copyright issues.
Anyway, the bootloaders given here are declared unstable (although they won't crash your device). Wait for a stable version if you're not a technical person.

webmeister: yes, that's what I meant. Now I'm clueless, since bootloader-4 isn't supposed to boot RB via remote at all
Title: Re: Double boot on X5 ?
Post by: Eriol on July 26, 2006, 12:49:33 PM
So what's the bottom line here?  Should we be using one of those newer dual-boot firmwares if we have a remote, or what?

Just wondering the state of things here.
Title: Re: Double boot on X5 ?
Post by: newbeewan on July 27, 2006, 11:02:42 AM
how to compile mkboot.c under linux ? is there any makefile ?

Thanks
Title: Re: Double boot on X5 ?
Post by: RaeNye on July 27, 2006, 02:03:15 PM
eriol: no new working version yet. use the old one (May 12th)

newbeewan: just gcc it
Title: Re: Double boot on X5 ?
Post by: cjbrooker on August 04, 2006, 06:30:29 AM
I created a HOWTO for creating a dual boot iAudio X5 using a windows machine:

http://www.iaudiophile.net/forums/showpost.php?p=93545&postcount=180

It goes throught the whole precess step-by-step.

Hope it helps some people (I know it would have helped me and saved me much confusion and time!)
Title: Re: Double boot on X5 ?
Post by: RaeNye on August 04, 2006, 10:32:26 AM
As I replied on iaudiophile.net, you're suggesting people to use an unstable version. Please refrain from that.
Title: Re: Double boot on X5 ?
Post by: cjbrooker on August 04, 2006, 10:45:16 AM
Ok. I have added some caveats to make people aware that this is the alpha version and is unstable.

If you could let me know where I could get a precompiled stable 12th May version, I will update the HOWTO referencing this instead.  :)
Title: Re: Double boot on X5 ?
Post by: RaeNye on August 05, 2006, 09:52:10 AM
Everything needed (except OF) is here.
Remove the .jpg and open the .zip file.

[attachment deleted by admin, too old]
Title: Re: Double boot on X5 ?
Post by: Suicide_Guy on August 05, 2006, 08:49:43 PM
I absolutely love the new bootloader. Pressing REC and holding ON was a pain. This is so amazing. :D Thank you!
Title: Re: Double boot on X5 ?
Post by: cjbrooker on August 07, 2006, 03:17:52 AM
Thanks RaeNye. I've updated the original instructions to use the stable bootloader.
Title: Re: Double boot on X5 ?
Post by: Sisifita on August 07, 2006, 08:55:17 AM
HI!

is there dual-boot for the model X5V??

thanx
Title: Re: Double boot on X5 ?
Post by: Suicide_Guy on August 11, 2006, 05:27:46 AM
To my knowledge the bootloader will work just fine on the X5V. I'm not 100%, but I'm pretty sure. Give it a try. If it doesn't work, just reflash the firmware back on there. :)

I just saw a post by Llorean about an X5V specific bootloader. http://www.rockbox.org/twiki/bin/view/Main/IaudioBoot

Bootloader 2 has X5V support. :)
Title: Re: Double boot on X5 ?
Post by: RaeNye on August 11, 2006, 09:33:16 AM
That's not a dual-bootloader, just a rockbox X5V bootloader.
no use for running mkboot on it.
Title: Re: Double boot on X5 ?
Post by: maxol on August 13, 2006, 06:46:30 PM
Ok I compiled mkboot.c and ran it with the dualboot binary and OF 2.10e, flashed my X5L and everything worked well with a version of Rockbox that I had left on the drive from a few months ago. OF also worked well.
Flushed with my success I downloaded the latest build of Rockbox and replaced the .rockbox folder and rockbox.iaudio as I had read that battery life was improved.
Now Rockbox will not boot, I've tried a few different daily builds and have gone as far as remaking and reflashing the dualboot firmware but Rockbox still doesn't boot although the OF works without problems.

Are newer versions of Rockbox incompatible with the dualboot firmware and if so can someone suggest a version that works well?

Title: Re: Double boot on X5 ?
Post by: jjllee on August 14, 2006, 03:13:57 PM
ok i downloadedd ur stuff and did wat dis guy told me too in this website http://www.iaudiophile.net/forums/showpost.php?p=93545&postcount=180
and i combined da files using windows command prompt and i put dat bin filei n my firmware in my iaudio. when i charge it it duzn't upgrade it simply charges>>>>>>>>>>>.. please tell me what idid wrong. i followed every instructions there in dat website and got dat  new_x5_fw.binfile it still won't work
Title: Re: Double boot on X5 ?
Post by: Llorean on August 14, 2006, 03:31:44 PM
Two things:
1) Try following the official instructions and see if that works, or ask him how to make his file work. I don't know why you're posting here, when it's someone else's instructions at a different forum that are giving you problems.
2) Please read the posting guidelines. We request that people try to use proper grammar (and at the very least type out whole words and do their best for proper spelling instead of using things like 'dat' and 'da' and 'ur').
Title: Re: Double boot on X5 ?
Post by: jjllee on August 14, 2006, 04:21:23 PM
I am really sorry for the improper grammer. But  since i'm really new to this, can you explain to me where the instructions are for getting the rockbox in this forum? After i downloaded the files RaeNye posted, what do i do next? Can you please redirect me to the website where the information is located or can you please take the time to write out what I should do?
Title: Re: Double boot on X5 ?
Post by: Llorean on August 14, 2006, 04:22:41 PM
If you actually go to www.rockbox.org and get a Rockbox manual, it should have installation instructions. As well, they're linked to in the documentation portion of the site.
Title: Re: Double boot on X5 ?
Post by: jjllee on August 14, 2006, 04:34:09 PM
Yes, I did read the manual, it told me to install the bootloader. And it didn't clearly state how to install the bootloader so i assumed that you had to put the bootloader I installed from RaeNye in the firmware and i downloaded the daily build and it still did not upgrade.


Thank you for the past instructions
 
Title: Re: Double boot on X5 ?
Post by: Llorean on August 14, 2006, 04:35:42 PM
You didn't even mention that you'd visited the main site, since you explicitly asked for directions that could be found in this forum.

As for installing the bootloader: http://www.rockbox.org/twiki/bin/view/Main/IaudioBoot
Title: Re: Double boot on X5 ?
Post by: ya1950 on August 14, 2006, 05:00:07 PM
jjllee - did you change the name of the bin file from new_x5_fw.bin to x5_fw.bin? From your description it sounds to me like the x5 is not recognizing the firmware file. Make sure that the name of the new file is x5_fw.bin. Anything else and the machine will not upgrade the firmware.

One thing further - in addition to the doubleboot firmware you will also need to unzip and copy the daily build of Rockbox to your machine. If you look here you will find several versions of the software which include the patches needed to run some of the wps interfaces for the x5:

http://www.iaudiophile.net/forums/showthread.php?t=10349

Hope this helps.

I would like to thank RaeNye for this easy way for us non-programers to create a double bootloader. I just tried it and it worked a charm! And thanks to all the hard working Rockbox developers who are spending so much time on this. I don't know how you guys do it but all of us are reaping the benefits of your time and efforts. Thanks!
Title: Re: Double boot on X5 ?
Post by: RaeNye on August 14, 2006, 05:54:55 PM
Now Rockbox will not boot, I've tried a few different daily builds and have gone as far as remaking and reflashing the dualboot firmware but Rockbox still doesn't boot although the OF works without problems.

Are newer versions of Rockbox incompatible with the dualboot firmware and if so can someone suggest a version that works well?

Have you tried resetting your settings by holding REC on RB boot?

dual bootloader works for every cvs version I know of.
Title: Re: Double boot on X5 ?
Post by: maxol on August 19, 2006, 10:25:08 AM
OK tried again and it's working, thanks.
Title: Re: Double boot on X5 ?
Post by: viperman3 on August 23, 2006, 08:34:48 AM
Hello,

I tried the stable version that was posted on this thread with OF 2.10e (downloaded from cowenglobal site) and I also used "rockbox-iaudiox5-20060822.zip" build of Rockbox.  Now, when I press the power button on the remote, RB does load, but when I press play or vol jogs on the remote the player crashes.  I need to hold power on the main unit and in about 10seconds it powers down.  I tried other older build of rockbox and this behavious is consistant (the player crashes).  When I hold power on the remote, the OF loads and remote functions as normal.

Is there something I'm missing here.  I can't seem to do anything via remoe after RB loads since it crashes the player.

Any suggestions?
Title: Re: Double boot on X5 ?
Post by: xlarge on August 23, 2006, 08:40:06 AM
Hello,

I tried the stable version that was posted on this thread with OF 2.10e (downloaded from cowenglobal site) and I also used "rockbox-iaudiox5-20060822.zip" build of Rockbox.  Now, when I press the power button on the remote, RB does load, but when I press play or vol jogs on the remote the player crashes.  I need to hold power on the main unit and in about 10seconds it powers down.  I tried other older build of rockbox and this behavious is consistant (the player crashes).  When I hold power on the remote, the OF loads and remote functions as normal.

Is there something I'm missing here.  I can't seem to do anything via remoe after RB loads since it crashes the player.

Any suggestions?


try without remote
Title: Re: Double boot on X5 ?
Post by: viperman3 on August 23, 2006, 08:52:41 AM
xlarge:  All functions work if I use only the hat on the main unit, however,  I do prefer using the remote.  I thought that the remote was implimented in the latest buids of RB.

Also, everyone that has tested the stable dual-boot merger claims that remote function is working (were they only testing the boot-up procedure or do all remote functions work in RB?)

Any more suggestions?

Title: Re: Double boot on X5 ?
Post by: xlarge on August 23, 2006, 09:42:36 AM
xlarge:  All functions work if I use only the hat on the main unit, however,  I do prefer using the remote.  I thought that the remote was implimented in the latest buids of RB.

Also, everyone that has tested the stable dual-boot merger claims that remote function is working (were they only testing the boot-up procedure or do all remote functions work in RB?)

Any more suggestions?



Okidoki!

How about this. I'll test with my remote tonight when i get home and give you status? =)
Title: Re: Double boot on X5 ?
Post by: viperman3 on August 24, 2006, 03:57:00 PM

Okidoki!

How about this. I'll test with my remote tonight when i get home and give you status? =)

So, were you albe to test the remote functions?

Anyone else tried all the remote functions on latest build of RB?  If this works, can you please post what OF firmware you used and if you are using the "stable" patcher on this thread.

thanks
Title: Re: Double boot on X5 ?
Post by: xlarge on August 25, 2006, 07:49:38 AM
So, were you albe to test the remote functions?

Anyone else tried all the remote functions on latest build of RB?  If this works, can you please post what OF firmware you used and if you are using the "stable" patcher on this thread.

thanks


Sorry didn't find my remote yesterday (i hardly ever use it anymore) but i'll give finding it another go tonight.
Title: Re: Double boot on X5 ?
Post by: xlarge on August 25, 2006, 04:00:45 PM
Okidoki, update:

Tried with the remote, booted just fine... began to play an mp3 (somewhat odd keymappings on the remote...) and my x5 shut down. Huh?
Did the same thing, different mp3 and my x5 froze, huh again?
Ok... booted, started playing an mp3... browsed for another mp3 - x5 shut down.

Something is fishy with the x5's remote...

version cvs; 060825-1636
Title: Re: Double boot on X5 ?
Post by: viperman3 on August 28, 2006, 08:00:58 AM
Okidoki, update:

Tried with the remote, booted just fine... began to play an mp3 (somewhat odd keymappings on the remote...) and my x5 shut down. Huh?
Did the same thing, different mp3 and my x5 froze, huh again?
Ok... booted, started playing an mp3... browsed for another mp3 - x5 shut down.

Something is fishy with the x5's remote...

version cvs; 060825-1636


thanks for testing, xlarge.

This is exactly what happened to me.  I was able to get the remote to work twice (complete fluke) from over about a dozen attempts but about 99% of the time after the first remote input, my x5 would lock and then shutdown.  Did you try this with the dualboot firmware or with just RB bootloader?

regards,
Title: Re: Double boot on X5 ?
Post by: xlarge on August 28, 2006, 08:05:26 AM
sorry.. should have stated the bootloader aswell.
it's an old dualboot (rec+power for OF)...

060504-0757, haven't had any reason to upgrade... until now?

what version are you running and patches? (i don't even know what patch i'm running... i d/l the whole patched cowon-firmware)
Title: Re: Double boot on X5 ?
Post by: pazn74 on September 25, 2006, 03:47:06 PM
Edit: attachment was not working, hopefully OK now.

Alpha testers required!
(no compilation needed for Windows users)

Prerequisites:
  • X5/X5L main unit
  • X5 remote
  • intrepidity :D

Your mission, Jim, should you decide to accept it, is to install and test this new version of the dual bootloader.

To install, use mkboot to combine the bootloader binary with any OF version and proceed like any firmware upgrade.

The attached file contains x5-dual-bootloader.testing.bin (bootloader binary), mkboot.c (source) and mkboot.exe (precompiled to Windows).

Boot sequences to verify:
  • a short main-unit POWER press - RB
  • a long main-unit POWER press - OF
  • a short remote-unit POWER press - RB
  • a long remote POWER press - OF
  • a remote POWER press while remote HOLD is on - OF
    (actually you won't see it since the OF shuts down quickly)

Important:
If anything goes wrong (doesn't boot, stuck, etc.), reset the unit with a reset pin, connect USB cable and reflash a stable firmware. It is advised to do so even if all seems OK until I collect reports from more people.

Disclaimer:
I have not tested this code on my X5 since it's dead, but I believe it works. Even if it doesn't, you can restore a stable firmware via USB mode.


PLEASE HELP!!!

Could you tell me how the dualboot is working on x5v?
Is there a chance of getting all that stuff you need for dualboot in one file?
If not tell a newbie from austria step by step how it works!

Please help me anyone?
Greetz Pazn
Title: Re: Double boot on X5 ?
Post by: xlarge on September 25, 2006, 04:27:59 PM
PLEASE HELP!!!

Could you tell me how the dualboot is working on x5v?
Is there a chance of getting all that stuff you need for dualboot in one file?
If not tell a newbie from austria step by step how it works!

Please help me anyone?
Greetz Pazn

Sorted...
Title: Re: Double boot on X5 ?
Post by: krul on October 22, 2006, 05:15:58 PM
Very strange, I cannot boot Rockbox by using the dual bootloader. I am only able to load it while power cable is connected and hold the on button for ~0.5 seconds. Without power cable the device will not power on when I am pushing the power button for a short while, when doing it only a little longer it will boot the official firmware  ??? ???

I have also tried the precompiled dualbootloader with the 2.10-k firmware, results are exactly the same.

I am using a one of the latest precompiled RockBox versions (incl. patches) via iaudiophile.net. ( http://iaudiophile.net/forums/showthread.php?t=10349&page=19 )
Title: Re: Double boot on X5 ?
Post by: Llorean on October 22, 2006, 05:25:53 PM
Unofficial versions are *not* supported here.
Title: Re: Double boot on X5 ?
Post by: krul on October 23, 2006, 01:14:53 AM
Unofficial versions are *not* supported here.

Okay, i'll try it with the 'Official' daily build version....

[update]
It is still not working with the daily build in combination with OF 2.10E and the dual-boot-loader with file date 19-07-2006. I am not able to boot the RockBox firmware, only the OF.
It is only possible when the powercable is connected.
[/update]
Title: Re: Double boot on X5 ?
Post by: Llorean on October 23, 2006, 09:19:17 AM
There is no official dual boot bootloader...
Title: Re: Double boot on X5 ?
Post by: RaeNye on October 26, 2006, 09:12:53 AM
Very strange, I cannot boot Rockbox by using the dual bootloader. I am only able to load it while power cable is connected and hold the on button for ~0.5 seconds. Without power cable the device will not power on when I am pushing the power button for a short while, when doing it only a little longer it will boot the official firmware  ??? ???

I have also tried the precompiled dualbootloader with the 2.10-k firmware, results are exactly the same.

I am using a one of the latest precompiled RockBox versions (incl. patches) via iaudiophile.net. ( http://iaudiophile.net/forums/showthread.php?t=10349&page=19 )

Boot RB (without a dual bootloader), do info->debug->dump ROM, and send me the first 0x10000 (=64KB).

I don't really believe yours is any different than mine, but I can at least verify that.
Title: Re: Double boot on X5 ?
Post by: Eldreamer on December 18, 2006, 07:02:50 AM
I have a small problem.
My device X5 60Gb doesn't want to start Rockbox with short press with battery voltage 3.65 an lower. The HDD makes a spin and in headphones I hear little clicky sound. Original firmware works fine with long press.

I've tried to make 2 short presses - Rockbox starts up. Please help me in this situation.
Title: Re: Double boot on X5 ?
Post by: RaeNye on December 18, 2006, 12:41:32 PM
Does it work with the official RB bootloader?
The dual bootloader has no effect battery-wise, so I guess it's a general RB thing.
Title: Re: Double boot on X5 ?
Post by: Eldreamer on December 18, 2006, 02:44:06 PM
I've tested it. RB works and starts fine. ;-/
Title: Re: Double boot on X5 ?
Post by: RaeNye on December 18, 2006, 03:16:55 PM
If you manage to get to the bootscreen to see battery voltage (pale blue background), it's already after the dual-bootloader part.

(the dual part actually takes exactly 25ms, most of which are sleep())
Title: Re: Double boot on X5 ?
Post by: xlarge on December 18, 2006, 03:19:11 PM
Is this regarding the X5 or the x5v?
Title: Re: Double boot on X5 ?
Post by: Eldreamer on December 18, 2006, 06:25:45 PM
I've made a short press... The monitor showed me black lines and no turning on and the pleer had gone to off-state.

Finally.
I've made one short press and at once short press again. it run up brilliant.
What's the trouble?

My version: X5 60 Gb (with radio)
Title: Re: Double boot on X5 ?
Post by: Eldreamer on December 18, 2006, 06:46:57 PM
I've tried to full charge the iAudio. Hmm... The same problem. It starts up 4-5 times from 7  attemts. In any way.. Where can i find old version of dual-boot with REC button?
Please help.
Title: Re: Double boot on X5 ?
Post by: RaeNye on December 18, 2006, 07:37:32 PM
I think you're pressing the on button for too long.

If it's pressed for more than 25ms, the OF is booted; alas, the OF shuts itself down if you don't hold it for ~1 sec, resulting in symptoms as you described.

First try to flick it as fast as you can to verify this, it'll be easier if you can learn the correct timing

If you really want it to wait some more, you'd have to compile your own bootloader :o :
Get and apply FS#5289 (http://www.rockbox.org/tracker/task/5289) (may 12th comment), change the constant in the calls to preloader's sleep() in crt0.S to something more than 25 and compile.

The old (deprecated, not supported even by me, just don't use it) REC version is there as well, at the top.
Title: Re: Double boot on X5 ?
Post by: Eldreamer on December 19, 2006, 05:04:26 AM
Dear RaeNye!

I'm not a super-user. Would you be so pleased to make a precompiled "x5-dual-bootloader.bin" with 0.75 sec for RB and more time for OF.
I will appreciate you.  ::) Please help me.

My contact e-mail: eldream@e-music.ru
Hope for you help.
Title: Re: Double boot on X5 ?
Post by: RaeNye on December 19, 2006, 08:56:30 AM
Sorry, I don't have my RB setup on this computer.

No special privileges are needed to compile a bootloader, just get the source code off CVS, apply the patch and compile. If you have problems, come to IRC (http://www.rockbox.org/irc/) and ask there.
Another option is to ask for it on iaudiophile X5 RB forum (http://iaudiophile.net/forums/forumdisplay.php?f=40).

BTW: You can't change the timing for the OF without further investigation.
Title: Re: Double boot on X5 ?
Post by: Eldreamer on December 19, 2006, 05:05:59 PM
May be someone else could help me..  :'(
Please...  ???

eldream@e-music.ru
Title: Re: Double boot on X5 ?
Post by: winnyec on March 03, 2007, 09:27:57 PM
Dear RaeNye,

Is there a patch file of the current version of the dual boot for the current version of the RB bootloader in which I can adjust the holding time for booting the OF (that often mentioned 25ms)?  Can you please point out what I need to change in that patch if it is not all that so obvious?

Cheers.
Title: Re: Double boot on X5 ?
Post by: RaeNye on March 04, 2007, 08:35:10 AM
Read my message above (from Dec 18).
It is probably out of sync but easily resync'ed.
Title: Re: Double boot on X5 ?
Post by: winnyec on March 04, 2007, 09:18:42 AM
Yes, I have read that, but you have posted the stable version on 5th August in this thread, and even there on Flyspray there is some follow up and you refer to some other post here, which leads to the precompiled version on 5th August again.  Does it make no difference?  I.e. is the difference in mkboot?  Many thanks.
Title: Re: Double boot on X5 ?
Post by: RaeNye on March 04, 2007, 10:12:45 AM
It's a later compilation with no actual difference (maybe something did change with mkboot, I don't really remember that).
I tried to get rid of the OF dependency on later version, but that never worked out and the only stable version is May 12th's.
Title: Re: Double boot on X5 ?
Post by: winnyec on March 09, 2007, 09:15:57 PM
Sorry for being a pain in the arse, but I am really a rookie to this, and my programming abilities suck.  So it seems that the stucture has change to some extent; I checked the dual-x5.patch file, and the
Code: [Select]
 /tools/Makefile
  /tools/configure
  /firmware/boot.lds
files seems to trivial how to change.  However the crtical crt0.S has been really restructred.  Am I right in guessing that now the
Code: [Select]
 /firmware/target/coldfire/crt0.Sneeds to be changed?  So that your code is pasted right after the
Code: [Select]
start:?  In which whenever the code
Code: [Select]
 pea (25).w
  jsr sleep
  addq.l #4, %sp
appears, this 25 needs to be changed to larger value?

If I manage to compile to the whole thing, is there a way to test it before flashing to my player?  If still the player fails to boot up in any way, is there a way to put either RB or OF back so that something at least would work?

Thanks really a lot.
Title: Re: Double boot on X5 ?
Post by: RaeNye on March 10, 2007, 07:55:21 AM
You are right in all assumptions.
Note that IIRC the constant 25 appears twice, change them both.

You can't test this offline, but even if you totally mess things up, you'll still be able to reset device, enter USB mode and reflash another firmware of your choice.

Feel free to post the sync'ed version back to flyspray (#ifdef the dual booting code so that the code would compile on other coldfire platforms as well).
Title: Re: Double boot on X5 ?
Post by: DigitalDeath on June 19, 2007, 01:57:06 PM
Hello ppl,


im new to this at all but here´s my question. Can anyone tell where i can download the latest dual bootloader file. I already installed rockbox but now i want to try out this dual bootloader with the original firmware. Anyone knows where to download it? I have a X5.
Title: Re: Double boot on X5 ?
Post by: gnu on June 20, 2007, 06:01:46 AM
You'll find all information here: http://www.iaudiophile.net/forums/showthread.php?t=12671
Title: Re: Double boot on X5 ?
Post by: laurent4xs on June 20, 2007, 09:12:39 AM
You'll find all information here: http://www.iaudiophile.net/forums/showthread.php?t=12671

Hi All! I'm new to Rockbow and after one day figuring out what it is, one more reading forums I still can not find the latest RaeNye latest dual bootloader file.

The ones who where in this thread are said "deleted because obsolete", well good to do that but WHERE is the new ones...

iAudiophile seems dead (you have to be a member to acces downloads, and for 6 hours now I still didn't got any actiation mail ;-( )

Anyway it is an independent site, should we really go there for something born here ?
Well  guys claim it loudly and clearly if this subject is politically incorrect but why can't this just be on the downlaods part of the site under an "UNSUPPORTED" chapter ?
Where can we (newbies like me find the files to even try this mighty dualboot on X5 ?)

Thanks.
Title: Re: Double boot on X5 ?
Post by: Llorean on June 20, 2007, 07:46:48 PM
It's not an official file. Putting it under the official downloads as 'unsupported' would make it seem like it is, but it contains code not in SVN.
Title: Re: Double boot on X5 ?
Post by: gnu on June 21, 2007, 05:50:40 AM
Would it be allowed to open a thread about the bootloader in the "unsupported builds" forum?
Title: Re: Double boot on X5 ?
Post by: RaeNye on June 21, 2007, 05:56:33 AM
Would it be allowed to open a thread about the bootloader in the "unsupported builds" forum?
A good idea IMHO.
Title: Re: Double boot on X5 ?
Post by: Llorean on June 21, 2007, 06:23:53 AM
No reason not to, all the usual rules apply. You'll notice Loader2 has a thread there already.
Title: Re: Double boot on X5 ?
Post by: blacksheep on March 21, 2008, 02:39:13 PM
Everything needed (except OF) is here.
Remove the .jpg and open the .zip file.

[attachment deleted by admin, too old]


Hey guys
Where can I find now the dual boot folder (where I don't have to compile anything)
It is deleated by the admin

Thanks
Title: Re: Double boot on X5 ?
Post by: Chronon on March 21, 2008, 05:35:48 PM
There's a link to a post on the iAudiophile forums on the previous page that looks to have what you want.  Someone could certainly maintain a build in the Unsupported Builds forum, as was stated already.