···636636 CHART("<disk_mount_all");
637637 if (rc<=0)
638638 {
639639+ int line=0;
639640 lcd_clear_display();
640640- lcd_puts(0, 0, "No partition");
641641- lcd_putsf(0, 1, "found (%d).", rc);
641641+ lcd_putsf(0, line++, "No partition found (%d).", rc);
642642#ifndef USB_NONE
643643- lcd_puts(0, 2, "Insert USB cable");
644644- lcd_puts(0, 3, "and fix it.");
643643+ lcd_puts(0, line++, "Insert USB cable");
644644+ lcd_puts(0, line++, "and fix it.");
645645#elif !defined(DEBUG) && !(CONFIG_STORAGE & STORAGE_RAMDISK)
646646- lcd_puts(0, 2, "Rebooting in 5s");
646646+ lcd_puts(0, line++, "Rebooting in 5s");
647647#endif
648648- lcd_puts(0, 4, rbversion);
648648+ lcd_puts(0, line++, rbversion);
649649+650650+ struct partinfo pinfo;
651651+ for (int i = 0 ; i < NUM_VOLUMES ; i++) {
652652+ disk_partinfo(i, &pinfo);
653653+ if (pinfo.type)
654654+ lcd_putsf(0, line++, "P%d T%02x S%08lx",
655655+ i, pinfo.type, pinfo.size);
656656+ }
649657 lcd_update();
650658651659#if defined(MAX_VIRT_SECTOR_SIZE) && defined(DEFAULT_VIRT_SECTOR_SIZE)
+10-2
bootloader/common.c
···4343#else
4444#include "rb-loader.h"
4545#endif
4646+#include "disk.h"
46474748/* TODO: Other bootloaders need to be adjusted to set this variable to true
4849 on a button press - currently only the ipod, H10, Vibe 500, Sansa, and xDuoo x3 versions do. */
···113114 printf("ATA error: %d", error);
114115 break;
115116116116- case EDISK:
117117+ case EDISK: {
118118+ struct partinfo pinfo;
117119 printf("No partition found");
120120+ for (int i = 0 ; i < NUM_VOLUMES ; i++) {
121121+ disk_partinfo(i, &pinfo);
122122+ if (pinfo.type)
123123+ printf("P%d T%02x S%08lx",
124124+ i, pinfo.type, pinfo.size);
125125+ }
118126 break;
119119-127127+ }
120128 case EBOOTFILE:
121129 printf(loader_strerror(error));
122130 break;
+8-1
bootloader/ipod-s5l87xx.c
···476476 printf("Booting OF in %d...", tmo);
477477 sleep(HZ*1);
478478 }
479479-479479+480480 int rc = kernel_launch_onb();
481481 printf("Load OF error: %d", rc);
482482 sleep(HZ*10);
···754754755755 rc = disk_mount_all();
756756 if (rc <= 0) {
757757+ struct partinfo pinfo;
757758 printf("No partition found");
759759+ for (int i = 0 ; i < NUM_VOLUMES ; i++) {
760760+ disk_partinfo(i, &pinfo);
761761+ if (pinfo.type)
762762+ printf("P%d T%02x S%08lx",
763763+ i, pinfo.type, pinfo.size);
764764+ }
758765 fatal_error(ERR_RB);
759766 }
760767
+7-4
bootloader/ipod.c
···364364 rc = disk_mount_all();
365365 if (rc<=0)
366366 {
367367+ for (int i = 0 ; i < NUM_VOLUMES ; i++) {
368368+ disk_partinfo(i, &pinfo);
369369+ if (pinfo.type)
370370+ printf("P%d T%02x S%08lx",
371371+ i, pinfo.type, pinfo.size);
372372+ }
373373+367374 printf("No partition found");
368375 fatal_error();
369376 }
370370-371371- disk_partinfo(1, &pinfo);
372372- printf("Partition 1: 0x%02x %ld sectors",
373373- pinfo.type, pinfo.size);
374377375378 if (button_was_held || (btn==BUTTON_MENU)) {
376379 /* If either the hold switch was on, or the Menu button was held, then
+7
bootloader/iriver_h1x0.c
···561561 rc = disk_mount_all();
562562 if (rc<=0)
563563 {
564564+ struct partinfo pinfo;
564565 reset_screen();
565566 printf("No partition found");
567567+ for (int i = 0 ; i < NUM_VOLUMES ; i++) {
568568+ disk_partinfo(i, &pinfo);
569569+ if (pinfo.type)
570570+ printf("P%d T%02x S%08lx",
571571+ i, pinfo.type, pinfo.size);
572572+ }
566573 while(button_get(true) != SYS_USB_CONNECTED) {};
567574 }
568575
+7
bootloader/iriver_h300.c
···621621 rc = disk_mount_all();
622622 if (rc<=0)
623623 {
624624+ struct partinfo pinfo;
624625 reset_screen();
625626 printf("No partition found");
627627+ for (int i = 0 ; i < NUM_VOLUMES ; i++) {
628628+ disk_partinfo(i, &pinfo);
629629+ if (pinfo.type)
630630+ printf("P%d T%02x S%08lx",
631631+ i, pinfo.type, pinfo.size);
632632+ }
626633 while(button_get(true) != SYS_USB_CONNECTED) {};
627634 }
628635