This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#12294 - No SD card in current build
Attached to Project:
Rockbox
Opened by Sander Sweers (infirit) - Monday, 26 September 2011, 20:10 GMT+2
Last edited by Torne Wuff (torne) - Sunday, 02 October 2011, 13:48 GMT+2
Opened by Sander Sweers (infirit) - Monday, 26 September 2011, 20:10 GMT+2
Last edited by Torne Wuff (torne) - Sunday, 02 October 2011, 13:48 GMT+2
|
DetailsIn the current build r30605 (but also previous current builds) my micro SD does not show up in Rockbox or the file manager when connected to USB. The micro SD card is a sandisk 16gb card from a few years ago.
I verified it working in the latest release 3.9. It might be because the SD card does not have a partition. It has been formatted fat32. |
This task depends upon
It would still take longer, though, even if that worked (since it might have to fail to mount four hypothetical filesystems before mounting the real one), so we should do this better. The real fix would be to sanity-check that sector 0 is a plausible MBR before attempting to read any partitions in it. This is tricky, though, since the only guaranteed magic is also present in a BPB. We should probably look at what partition_msdos in linux does to determine whether an MBR is "real".
As for the speed, I can put it on a video if you like.
I'm saying it *shouldn't* really, and since it does then fat_mount is probably not as quick to reject the invalid FS as it should be.
r30566 was added was to assure that first-gen SDXC (and in the near future microSDXC) cards, which have the same pinout as SD & SDHC and thus *should* be readable by Rockbox once reformatted to FAT32, can be read regardless of whether or not the FAT32 formatter changed the MBR partition type. (SDXC cards by default are formatted in exFAT; supporting anything other than FAT32 and its predecessors is a NoDo, not to mention there's currently *no* open-source implementation of exFAT.) It was reported by someone who used a 64GB SDXC card as a SSD that he had to correct the MBR partition type before Rockbox would read it, because his FAT32 formatter left the partition type unchanged (exFAT uses the same partition type as NTFS).
According to the committer of that patch, nearly all OSes now ignore the MBR partition type and interpret the filesystem directly, just as Torne says. Thus, such a card is readable in Windows, Mac, Linux, etc.--but not in Rockbox because it requires a FAT partition type in the MBR. Others in IRC when that patch was committed suggested that FAT32 formatters should *not* be expected to write to the MBR. Thus, the patch was committed to remove the MBR checking code which was deemed (and should be) unnecessary.
If there's a problem with Rockbox mounting certain FAT drives (i.e., superfloppies), the detection code needs to be corrected so that r30566 can be reapplied. Otherwise, once microSDXC cards come out, we'll hear user complaints that Rockbox won't read them even after being reformatted to FAT32. Those folks will probably want us to get rid of the NoDo, which IMO should be out of the question at least until (a) there are Rockboxed targets that support exFAT drives in OF, so that exFAT code can be confined to those targets to satisfy the intent of the NoDo, *and* (b) an open-source exFAT implementation exists (I understand it's being worked on). It'll be hard enough to direct users to the non-MS utilities that can format >32GB drives as FAT32; they'll just tune us out once we start talking about changing the MBR.
dd if=/dev/sdi of=/home/sander/rb_sectors bs=512 count=2
2+0 records in
2+0 records out