diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-10-14 12:54:03 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-10-14 13:42:52 -0400 |
commit | ca4d63d4d903e3de356afb8d129ae61c660ff9b4 (patch) | |
tree | 21bee54c19bc90b660c215f9c7afa4a47c21b32c | |
parent | 1b449abf39feeace10b6db604a4537718769141e (diff) | |
download | rockbox-ca4d63d4d9.tar.gz rockbox-ca4d63d4d9.zip |
m3k: Fixes to the launcher/loader.
* Execute the correct OF player binary
* We don't have adb, so error out
Change-Id: I4fb39fcdf5e437450c059e6c1296ea6cb99298fe
-rw-r--r-- | bootloader/rocker_linux.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bootloader/rocker_linux.c b/bootloader/rocker_linux.c index a6d69d0e9d..3d35f22ba6 100644 --- a/bootloader/rocker_linux.c +++ b/bootloader/rocker_linux.c @@ -469,6 +469,11 @@ void run_script_menu(void) static void adb(int start) { +#if defined(FIIO_M3K) + lcd_set_foreground(LCD_RGBPACK(255, 0, 0)); + lcd_putsf(0, 1, "ADB not supported!"); + sleep(2*HZ); +#else pid_t pid = fork(); if(pid == 0) { @@ -490,6 +495,7 @@ static void adb(int start) lcd_putsf(0, 1, "an error occured: %x", status); } #endif +#endif } static void tools_screen(void) @@ -615,7 +621,11 @@ int main(int argc, char **argv) #endif mount_storage(false); /* boot OF */ +#if defined(FIIO_M3K) + execvp("/usr/project/bin/player_daemon", argv); +#else execvp("/usr/bin/hiby_player", argv); +#endif error_screen("Cannot boot OF"); sleep(5 * HZ); } |