diff options
| author | YP3 Audiobook <noreply@example.invalid> | 2026-11-27 00:51:12 +0000 |
|---|---|---|
| committer | YP3 Audiobook <noreply@example.invalid> | 2026-11-27 00:51:12 +0000 |
| commit | 7a06b5d2d7ac329dc5cba794b019ba185b9b09e2 (patch) | |
| tree | fac537bb029a8532aadec97816292c3074b9e608 /patches/0007-yp3-power-off-at-boot-when-there-is-no-SD-card.patch | |
| parent | 4b670f7ac2635de6d6583d603d97f0bcfbec6733 (diff) | |
| download | yp3-audiobook-firmware-7a06b5d2d7ac329dc5cba794b019ba185b9b09e2.tar.gz | |
Release 1.1
- Hold Up/Down to keep changing the volume
- Pulling the SD card powers the player off instead of crashing; with no
card at power-on it says so and turns off
- Long M4B books load without freezing the controls, with a
"Loading book N%" screen
- The Center press that powers the player on no longer pauses the book
as it resumes (which also made it load twice)
- No "Bookmark saved" pause at power-off
- USB disk shows up right away while a book loads (flasher's
"NO USB DISK")
- tests/m4a: host test of the M4B index loader
Diffstat (limited to 'patches/0007-yp3-power-off-at-boot-when-there-is-no-SD-card.patch')
| -rw-r--r-- | patches/0007-yp3-power-off-at-boot-when-there-is-no-SD-card.patch | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/patches/0007-yp3-power-off-at-boot-when-there-is-no-SD-card.patch b/patches/0007-yp3-power-off-at-boot-when-there-is-no-SD-card.patch new file mode 100644 index 0000000..086494c --- /dev/null +++ b/patches/0007-yp3-power-off-at-boot-when-there-is-no-SD-card.patch @@ -0,0 +1,48 @@ +From 33293a86a06f935e44f17f36b38f586e7b0e5b33 Mon Sep 17 00:00:00 2001 +From: YP3 Audiobook <noreply@example.invalid> +Date: Thu, 26 Nov 2026 20:23:27 +0000 +Subject: [PATCH 07/11] yp3: power off at boot when there is no SD card + +Turned on without a card, the player showed "ATA error: -5", then after +a key the debug screen and a panic ("ata: -5" and a backtrace). The +panic parks the CPU until the recovery watchdog resets it (~16 s), a +dark screen that looked like a crash into download mode. + +Now it says there is no SD card, waits 5 s and powers off; with the +card back in, the next power-on boots normally. + +--- + apps/main.c | 17 +++++++++++++++++ + 1 file changed, 17 insertions(+) + +diff --git a/apps/main.c b/apps/main.c +index 1dcc992d..ca189b07 100644 +--- a/apps/main.c ++++ b/apps/main.c +@@ -626,6 +626,23 @@ static void init(void) + CHART(">storage_init"); + rc = storage_init(); + CHART("<storage_init"); ++#ifdef HAVE_SD_CARD_SWAP ++ if (rc) ++ { ++ /* No card (or none that answers): say so and power off. Upstream ++ waited for a key, showed the debug screen and panicked, and the ++ panic parked the player dark until the recovery watchdog reset ++ it (~16 s), which looked like a crash into download mode. */ ++ lcd_clear_display(); ++ lcd_puts(0, 1, "No SD card."); ++ lcd_puts(0, 3, "Put the card in,"); ++ lcd_puts(0, 4, "then turn the"); ++ lcd_puts(0, 5, "player on."); ++ lcd_update(); ++ sleep(5*HZ); ++ power_off(); ++ } ++#endif + if(rc) + { + lcd_clear_display(); +-- +2.56.1 + |
