1
0
Fork 0
forked from len0rd/rockbox

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

Change-Id: I10a1b4f149657da4292f34ac8a14e58ec6cdcf72
This commit is contained in:
Solomon Peachy 2025-04-15 09:18:13 -04:00
parent 08bd5cdd3d
commit 888ce7cae8
6 changed files with 53 additions and 13 deletions

View file

@ -621,8 +621,15 @@ void main(void)
rc = disk_mount_all();
if (rc<=0)
{
struct partinfo pinfo;
reset_screen();
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);
}
while(button_get(true) != SYS_USB_CONNECTED) {};
}