Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

disk: Dump partition tables when we can't find a usable partition

Change-Id: I10a1b4f149657da4292f34ac8a14e58ec6cdcf72

+53 -13
+14 -6
apps/main.c
··· 636 636 CHART("<disk_mount_all"); 637 637 if (rc<=0) 638 638 { 639 + int line=0; 639 640 lcd_clear_display(); 640 - lcd_puts(0, 0, "No partition"); 641 - lcd_putsf(0, 1, "found (%d).", rc); 641 + lcd_putsf(0, line++, "No partition found (%d).", rc); 642 642 #ifndef USB_NONE 643 - lcd_puts(0, 2, "Insert USB cable"); 644 - lcd_puts(0, 3, "and fix it."); 643 + lcd_puts(0, line++, "Insert USB cable"); 644 + lcd_puts(0, line++, "and fix it."); 645 645 #elif !defined(DEBUG) && !(CONFIG_STORAGE & STORAGE_RAMDISK) 646 - lcd_puts(0, 2, "Rebooting in 5s"); 646 + lcd_puts(0, line++, "Rebooting in 5s"); 647 647 #endif 648 - lcd_puts(0, 4, rbversion); 648 + lcd_puts(0, line++, rbversion); 649 + 650 + struct partinfo pinfo; 651 + for (int i = 0 ; i < NUM_VOLUMES ; i++) { 652 + disk_partinfo(i, &pinfo); 653 + if (pinfo.type) 654 + lcd_putsf(0, line++, "P%d T%02x S%08lx", 655 + i, pinfo.type, pinfo.size); 656 + } 649 657 lcd_update(); 650 658 651 659 #if defined(MAX_VIRT_SECTOR_SIZE) && defined(DEFAULT_VIRT_SECTOR_SIZE)
+10 -2
bootloader/common.c
··· 43 43 #else 44 44 #include "rb-loader.h" 45 45 #endif 46 + #include "disk.h" 46 47 47 48 /* TODO: Other bootloaders need to be adjusted to set this variable to true 48 49 on a button press - currently only the ipod, H10, Vibe 500, Sansa, and xDuoo x3 versions do. */ ··· 113 114 printf("ATA error: %d", error); 114 115 break; 115 116 116 - case EDISK: 117 + case EDISK: { 118 + struct partinfo pinfo; 117 119 printf("No partition found"); 120 + for (int i = 0 ; i < NUM_VOLUMES ; i++) { 121 + disk_partinfo(i, &pinfo); 122 + if (pinfo.type) 123 + printf("P%d T%02x S%08lx", 124 + i, pinfo.type, pinfo.size); 125 + } 118 126 break; 119 - 127 + } 120 128 case EBOOTFILE: 121 129 printf(loader_strerror(error)); 122 130 break;
+8 -1
bootloader/ipod-s5l87xx.c
··· 476 476 printf("Booting OF in %d...", tmo); 477 477 sleep(HZ*1); 478 478 } 479 - 479 + 480 480 int rc = kernel_launch_onb(); 481 481 printf("Load OF error: %d", rc); 482 482 sleep(HZ*10); ··· 754 754 755 755 rc = disk_mount_all(); 756 756 if (rc <= 0) { 757 + struct partinfo pinfo; 757 758 printf("No partition found"); 759 + for (int i = 0 ; i < NUM_VOLUMES ; i++) { 760 + disk_partinfo(i, &pinfo); 761 + if (pinfo.type) 762 + printf("P%d T%02x S%08lx", 763 + i, pinfo.type, pinfo.size); 764 + } 758 765 fatal_error(ERR_RB); 759 766 } 760 767
+7 -4
bootloader/ipod.c
··· 364 364 rc = disk_mount_all(); 365 365 if (rc<=0) 366 366 { 367 + for (int i = 0 ; i < NUM_VOLUMES ; i++) { 368 + disk_partinfo(i, &pinfo); 369 + if (pinfo.type) 370 + printf("P%d T%02x S%08lx", 371 + i, pinfo.type, pinfo.size); 372 + } 373 + 367 374 printf("No partition found"); 368 375 fatal_error(); 369 376 } 370 - 371 - disk_partinfo(1, &pinfo); 372 - printf("Partition 1: 0x%02x %ld sectors", 373 - pinfo.type, pinfo.size); 374 377 375 378 if (button_was_held || (btn==BUTTON_MENU)) { 376 379 /* If either the hold switch was on, or the Menu button was held, then
+7
bootloader/iriver_h1x0.c
··· 561 561 rc = disk_mount_all(); 562 562 if (rc<=0) 563 563 { 564 + struct partinfo pinfo; 564 565 reset_screen(); 565 566 printf("No partition found"); 567 + for (int i = 0 ; i < NUM_VOLUMES ; i++) { 568 + disk_partinfo(i, &pinfo); 569 + if (pinfo.type) 570 + printf("P%d T%02x S%08lx", 571 + i, pinfo.type, pinfo.size); 572 + } 566 573 while(button_get(true) != SYS_USB_CONNECTED) {}; 567 574 } 568 575
+7
bootloader/iriver_h300.c
··· 621 621 rc = disk_mount_all(); 622 622 if (rc<=0) 623 623 { 624 + struct partinfo pinfo; 624 625 reset_screen(); 625 626 printf("No partition found"); 627 + for (int i = 0 ; i < NUM_VOLUMES ; i++) { 628 + disk_partinfo(i, &pinfo); 629 + if (pinfo.type) 630 + printf("P%d T%02x S%08lx", 631 + i, pinfo.type, pinfo.size); 632 + } 626 633 while(button_get(true) != SYS_USB_CONNECTED) {}; 627 634 } 628 635