public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "Richard Rauch" <rrauch@itrgmbh.de>
To: <ecos-discuss@ecos.sourceware.org>
Subject: AW: [ECOS] Accessing SDHC Cards with 8 GB
Date: Tue, 28 Jan 2014 10:08:00 -0000	[thread overview]
Message-ID: <010101cf1c10$cbbeb040$633c10c0$@itrgmbh.de> (raw)
In-Reply-To: <00fc01cf1c09$ec4f7f30$c4ee7d90$@itrgmbh.de>

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

      reply	other threads:[~2014-01-28 10:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-28  9:18 Richard Rauch
2014-01-28 10:08 ` Richard Rauch [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='010101cf1c10$cbbeb040$633c10c0$@itrgmbh.de' \
    --to=rrauch@itrgmbh.de \
    --cc=ecos-discuss@ecos.sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).