diff options
author | Dana Conrad <dconrad@fastmail.com> | 2022-03-19 10:49:35 -0500 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-04-01 12:04:30 -0400 |
commit | 7aa2a23b950244d0c9d08001b72c143990bc1c00 (patch) | |
tree | 3e1ecc4b277a5d0dddafa674f8f6354101c1984b /bootloader/x1000/boot.c | |
parent | 5ffe520de4c70cfabc67a329cdb77d3d997bd45a (diff) | |
download | rockbox-7aa2a23b950244d0c9d08001b72c143990bc1c00.tar.gz rockbox-7aa2a23b950244d0c9d08001b72c143990bc1c00.zip |
Eros Q Native: Add Original Firmware Boot option
Hold "Play" to boot the OF, or boot it from the recovery menu
by holding "Vol. Up". If you had the hosted port installed on your
player before installing the native port, you'll still have to go
through the hosted bootloader.
A couple notes:
- When booting from the menu, the recovery menu disappears, then
reappears before going into the OF.
- You need to hold the play button for like a half second after the
blue light comes on in order to get into the OF.
The recovery appears to be there, but it doesn't seem to be intended
for end users - it just says "Updater V1.1 - Insert TF Pls". I haven't
tested it beyond seeing that it boots, so I'm going to comment it out
for now.
Change-Id: Ie271ee479bb628cc74141b7fe07273b3f193f358
Diffstat (limited to 'bootloader/x1000/boot.c')
-rw-r--r-- | bootloader/x1000/boot.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/bootloader/x1000/boot.c b/bootloader/x1000/boot.c index 60fb864d19..9e22192516 100644 --- a/bootloader/x1000/boot.c +++ b/bootloader/x1000/boot.c | |||
@@ -29,6 +29,10 @@ | |||
29 | #include "boot-x1000.h" | 29 | #include "boot-x1000.h" |
30 | #include <ctype.h> | 30 | #include <ctype.h> |
31 | #include <sys/types.h> | 31 | #include <sys/types.h> |
32 | #if defined(EROS_QN) | ||
33 | # include "lcd-x1000.c" | ||
34 | # include "backlight-target.h" | ||
35 | #endif | ||
32 | 36 | ||
33 | void boot_rockbox(void) | 37 | void boot_rockbox(void) |
34 | { | 38 | { |
@@ -201,6 +205,24 @@ void boot_of_helper(uint32_t addr, uint32_t flash_size, const char* args) | |||
201 | 205 | ||
202 | gui_shutdown(); | 206 | gui_shutdown(); |
203 | 207 | ||
208 | /* The Eros Q needs the LCD initialized in the bootloader */ | ||
209 | #if defined(EROS_QN) | ||
210 | /* enable LCD if it's not yet on, but keep the backlight off to avoid a white flash */ | ||
211 | init_lcd(); | ||
212 | backlight_hw_off(); | ||
213 | |||
214 | /* TODO: this doesn't work for some reason */ | ||
215 | //lcd_clear_display(); | ||
216 | //lcd_update(); | ||
217 | //lcd_wait_frame(); | ||
218 | |||
219 | /* disable irq and dma */ | ||
220 | lcd_enable(false); | ||
221 | |||
222 | /* set up LCD in a config compatible with OF */ | ||
223 | lcd_tgt_enable_of(1); | ||
224 | #endif | ||
225 | |||
204 | x1000_dualboot_load_pdma_fw(); | 226 | x1000_dualboot_load_pdma_fw(); |
205 | x1000_dualboot_cleanup(); | 227 | x1000_dualboot_cleanup(); |
206 | x1000_dualboot_init_clocktree(); | 228 | x1000_dualboot_init_clocktree(); |