From 7aa2a23b950244d0c9d08001b72c143990bc1c00 Mon Sep 17 00:00:00 2001 From: Dana Conrad Date: Sat, 19 Mar 2022 10:49:35 -0500 Subject: 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 --- bootloader/x1000/boot.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'bootloader/x1000/boot.c') 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 @@ #include "boot-x1000.h" #include #include +#if defined(EROS_QN) +# include "lcd-x1000.c" +# include "backlight-target.h" +#endif void boot_rockbox(void) { @@ -201,6 +205,24 @@ void boot_of_helper(uint32_t addr, uint32_t flash_size, const char* args) gui_shutdown(); +/* The Eros Q needs the LCD initialized in the bootloader */ +#if defined(EROS_QN) + /* enable LCD if it's not yet on, but keep the backlight off to avoid a white flash */ + init_lcd(); + backlight_hw_off(); + + /* TODO: this doesn't work for some reason */ + //lcd_clear_display(); + //lcd_update(); + //lcd_wait_frame(); + + /* disable irq and dma */ + lcd_enable(false); + + /* set up LCD in a config compatible with OF */ + lcd_tgt_enable_of(1); +#endif + x1000_dualboot_load_pdma_fw(); x1000_dualboot_cleanup(); x1000_dualboot_init_clocktree(); -- cgit v1.2.3