mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
disk: Dump partition tables when we can't find a usable partition
Change-Id: I10a1b4f149657da4292f34ac8a14e58ec6cdcf72
This commit is contained in:
parent
08bd5cdd3d
commit
888ce7cae8
6 changed files with 53 additions and 13 deletions
|
|
@ -476,7 +476,7 @@ static void run_of(void)
|
|||
printf("Booting OF in %d...", tmo);
|
||||
sleep(HZ*1);
|
||||
}
|
||||
|
||||
|
||||
int rc = kernel_launch_onb();
|
||||
printf("Load OF error: %d", rc);
|
||||
sleep(HZ*10);
|
||||
|
|
@ -754,7 +754,14 @@ void main(void)
|
|||
|
||||
rc = disk_mount_all();
|
||||
if (rc <= 0) {
|
||||
struct partinfo pinfo;
|
||||
printf("No partition found");
|
||||
for (int i = 0 ; i < NUM_VOLUMES ; i++) {
|
||||
disk_partinfo(i, &pinfo);
|
||||
if (pinfo.type)
|
||||
printf("P%d T%02x S%08lx",
|
||||
i, pinfo.type, pinfo.size);
|
||||
}
|
||||
fatal_error(ERR_RB);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue