AW: Accessing SDHC Cards with 8 GB

"Richard Rauch" <[email protected]>
Newsgroups gmane.os.ecos.general
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.