mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-06 21:25:03 -05:00
storage: report physical sector multiplier via storage_get_info()
Show this in in the info dump when we can't find a filesystem to mount in main() plus in the ipod bootloaders Change-Id: I3b437ae0032b17f29c0dd94043743f14d2b2f3ad
This commit is contained in:
parent
44b5220f22
commit
bc7bc4e8ac
5 changed files with 42 additions and 6 deletions
|
|
@ -34,6 +34,7 @@
|
|||
#include "ata.h"
|
||||
#include "file_internal.h"
|
||||
#include "disk.h"
|
||||
#include "storage.h"
|
||||
#include "font.h"
|
||||
#include "adc.h"
|
||||
#include "backlight.h"
|
||||
|
|
@ -364,6 +365,15 @@ void* main(void)
|
|||
rc = disk_mount_all();
|
||||
if (rc<=0)
|
||||
{
|
||||
#ifdef STORAGE_GET_INFO
|
||||
struct storage_info sinfo;
|
||||
storage_get_info(0, &sinfo);
|
||||
#ifdef MAX_PHYS_SECTOR_SIZE
|
||||
printf("id: '%s' s:%u*%u", sinfo.product, sinfo.sector_size, sinfo.phys_sector_mult);
|
||||
#else
|
||||
printf("id: '%s' s:%u", sinfo.product, sinfo.sector_size);
|
||||
#endif
|
||||
#endif
|
||||
for (int i = 0 ; i < NUM_VOLUMES ; i++) {
|
||||
disk_partinfo(i, &pinfo);
|
||||
if (pinfo.type)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue