AW: [ECOS] Accessing SDHC Cards with 8 GB

Richard Rauch rrauch@itrgmbh.de
Tue Jan 28 10:08:00 GMT 2014


Maybe I found an answer (partially) right now.

I am always formatting SDCards ny usage of Windows (I have not verified with Linux, because our customers rarely using Linux)

I discovered this: 
when a SD Card less than 8GB is formatted, it is formatted in a more standard way.
In this case in  first sector there is a valid MBR with a valid partition table.

When a SD Card has a size >= 8GB, it is formatted differently. No MBR is generated. In Sector 0 there is located already Bootsector with BPB.

Unfortunately eCos do not know about this. When mounting the SD Card, it tries to interpret the BPB as MBR.

What I do not know right now: Do I have a unique criteria to decide, if first sector needs to be interpreted as MBR or as boot sector already.
And, what would be the best position in eCos driver hierarchy, to code such a decision.

Or maybe, somewhere a solution is already available?

Thanks again

Richard


--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list