summaryrefslogtreecommitdiffstats
path: root/rbutil/mkimxboot/dualboot.h
AgeCommit message (Collapse)AuthorFilesLines
2021-12-24rbutil: Merge rbutil with utils folder.Dominik Riebeling1-8/+0
rbutil uses several components from the utils folder, and can be considered part of utils too. Having it in a separate folder is an arbitrary split that doesn't help anymore these days, so merge them. This also allows other utils to easily use libtools.make without the need to navigate to a different folder. Change-Id: I3fc2f4de19e3e776553efb5dea5f779dfec0dc21
2016-12-12imx233: add capability to boot OF or updater instead of RockboxAmaury Pouly1-6/+6
This commit adds the necessary code in the dualboot stub (bootloader) to let rockbox control the boot process. In particular, rockbox can now choose if the next boot will be normal (boot rockbox or OF on magic key), to OF or to updater. The intents (to be added in follow-up commits) are: 1) Let the user more easily reboot to the OF. On some targets it is not trivial, especially in USB mode. 2) Automatically reboot to updater when the user drop firmware.sb at the root of the drive (currently, the user needs to do that in OF USB mode) 3) Document this OF magic Change-Id: I86df651dec048c318c6a22de74abb8c6b41aa9ad
2016-05-25mkimxboot: remove code for NWZ-370/380Amaury Pouly1-1/+1
Since the stub code is shared with NWZ-360, it enables the pullup for the hold button, but the NWZ-370/380 doesn't have a hold button so don't compile this code in, it could potentially have unexpected effets or increase consumption Change-Id: I28c8aa40fc7f9373593ff105fb6df557a6f57ccd
2014-02-10mkimxboot: don't forget to select LRADC source before readingAmaury Pouly1-3/+3
Change-Id: I3435857f48580d7b3bf9363a2eed96738fbda69a
2014-01-21mkimxboot: tool can now recreate a stub to recover from very low batteryAmaury Pouly1-6/+6
Several devices, including the Fuze+ have great trouble recovering from very low battery states, even in the presence of USB power. This is partly due to buggy Sigmatel boot stubs and Rockbox bootloader doing unsafe power operations on boot (should be fixed soon). In such a state, it is impossible to boot either the OF and Rockbox, so only the recovery mode is available. With this commit, mkimxboot can now create a very small stub which only does one thing but does it well: setup charging to recover from any situation. It does not provide a fancy charging screen or whatever, screen will just stay black and the device will slowly charge at ~100mA. When the battery is back to a normal level, just unplug and boot normally. Change-Id: Ib50880af85ed1f4f64a7eed0f2221e73c889c351
2014-01-21Initial commit for the ZEN X-Fi StyleAmaury Pouly1-0/+1
Change-Id: Ib25a357a7bafd2ef25f273cadff70fafbd8d4661
2013-09-26sonynwz: rework dualboot mechanismbootloader_nwze370_v1bootloader_nwze360_v1Amaury Pouly1-2/+2
Now boot to RB if play/pause is pressed during 1 second, and to OF if back is pressed 1 second. Otherwise power off. If hold is on, also power off. In USB and alarm context, always boot and back determines OF vs RB. Change-Id: Ie1d6c971901d6473255461cc7d71a5ee3177ecad
2013-09-25Add support for the sony NWZ-E360/E370 to mkimxbootAmaury Pouly1-0/+2
Change-Id: Ied73591326339d22b4f21d311da9e6b1b9c223ed
2013-07-07mkimxboot: rewrite dualbootAmaury Pouly1-3/+3
Rewrite dualboot in C code instead of assembly. Also properly handle subtarget and simply Makefile. This should make the dualboot stub more readable and easier to extend. The new code also gracefully handles power up from RTC alarm on imx233. Change-Id: I7c225254b1463a97e76b6cb4de476aa2d2c9d2f9
2013-01-28zenxfi2: rework dualbootAmaury Pouly1-1/+1
The previous dualboot scheme had a major flow: it needed to hold menu to boot OF but the X-Fi2 boot in recovery mode with menu! It was possible but very trick to enter the OF with USB plugged. This code provides a new scheme: - no USB plugged: boot to OF when menu is pressed - USB plugged: boot to OF when power is pressed Change-Id: Ia6e76d3ada1f67137b727daa050cf6c77afbbfb9
2012-05-19mkimxboot: add support for more target and variantsAmaury Pouly1-0/+2
Add creative zen x-fi 2/3 and add a variant mechanism Change-Id: Ic2ee82a4238a87c2eb5d72b8309650d9a280325f
2012-02-29imx233: always boot when powered up from 5vAmaury Pouly1-1/+1
Change-Id: I3adb901d293c801f0a8493ae4f0b23af4fa535e8
2012-02-28mkximxboot/fuze+: add power button delay to power onAmaury Pouly1-1/+1
Only boot to rockbox if the power button is hold sufficiently long. For consistency, use the same mechanism as the OF: - read PSWITCH 550000 times - boot if PSWITCH=1 at least 400000 out of 550000 times Only apply the delay if Volume Down is not hold, so that the OF and RB delay don't cumulate. Change-Id: I1e8a4cd108c56bf784fcf1c320f7a001ef161701
2011-11-06Introduce mkimxboot to build bootloader images for the i.MX (only the fuze+ ↵Amaury Pouly1-0/+3
currently). Still not integrated in rbutil git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30920 a1c6a512-1295-4272-9138-f99709370657