public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v1] DOS_PBR block type is also valid dos block type.
Date: Fri, 15 Mar 2013 13:29:27 -0400	[thread overview]
Message-ID: <51435A77.1090809@ti.com> (raw)
In-Reply-To: <514355B5.8080803@wwwdotorg.org>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 03/15/2013 01:09 PM, Stephen Warren wrote:
> On 03/15/2013 12:36 AM, Sonic Zhang wrote: ...
>> We can erase the first 3 blocks completely before formatting it 
>> again. But, nothing can prevent others from formatting the SD 
>> card with different tools.
> 
> Surely any tool that creates a partition table on a device when 
> there wasn't any partition table there before (i.e. converts a raw
>  filesystem to a partition table) should zero out the "boot code" 
> area of that MBR, since there is no "boot code" area in a raw 
> filesystem. This seems like a bug in whatever partitioning tool was
> used.
> 
> If any device /always/ historically contained a real partition 
> table, or /always/ contained a raw FAT filesystem, then there will
>  be no issue. It's only when switching between the two, and not 
> clearing out all the data in the MBR when doing so, that you get 
> this problem.

To me the question is, are we looking at a "torture card" that doesn't
really contain a compliant set of choices, but happens to not fail in
other cases (that don't play clever games like we do) or a really
valid card and we need to make a harder choice.

- -- 
Tom
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJRQ1p3AAoJENk4IS6UOR1WnqAQAKjwfCRf0o4Agn5zoEZKBiQN
stPPQAbHXiIL0eHfLXfIHN13kVeM7KnN+C49jGn7s3e3y7kb3bkA/paQXcATLYIe
0oZAF0FOHJVvotuefQdZU6Nk/1flwpfNUXo0D0Lu0qQtbNnUaQwEdGy5PA4YaqkS
PSRmlC/3JJHDh+bsvS9tIZBmOln1mYPJzR5VH2mnLHZbwqKN2z1hY39tPVyD0PUh
9cgcD0zhJllSr7ZgNzGXPpN6yMk36zzz2QKk6L2YzmusJYesUPiXJry1hmh/xg1R
vU9TcpO3NpyxhljXzuX3soo1ED8NI/Ux0Q2Eg9SnWGJYnQkOHqAKiHgE69tOU3lF
72u1tzmXJLVEZYxKTLU9+wjoWmM2tQzXPCFVE2T2S02he801e69EPasmxfT2Jspn
bqna3zCBKrsg41IUW6vXMCvWGmyxCUiPJkyq+uHv6SWDf7sgkgbLtVh/NQdhKRTH
IgOmBcf4EyIcD+F0OIiZlMaqlcEG9K82O1NGRXfBI9LzeJpgco7gTyjDhrvPahxJ
nH/OYJ9wnAXCl3gGiIXeoo9TxxMNMf/zACLlS6Z4fIxIoRCLvyS/tBaIGBP6Cs8k
8ckK7IU2VrT1IuCf7OS6TnEDWLWKmXOTdjoVvXRZBc2BTytj2lKZehg1es1JjWNe
cb5F4wMFfMYzPApKoy3z
=59H0
-----END PGP SIGNATURE-----

  reply	other threads:[~2013-03-15 17:29 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-11  9:56 [U-Boot] [PATCH v1] DOS_PBR block type is also valid dos block type sonic.adi at gmail.com
2013-03-11 17:28 ` Stephen Warren
2013-03-12  2:59   ` Sonic Zhang
2013-03-13 17:11     ` Stephen Warren
2013-03-14  2:51       ` Sonic Zhang
2013-03-14  4:36         ` Stephen Warren
2013-03-14  7:31           ` Sonic Zhang
2013-03-14 17:53             ` Stephen Warren
2013-03-15  5:10     ` Stephen Warren
2013-03-15  6:36       ` Sonic Zhang
2013-03-15 13:14         ` Tom Rini
2013-03-15 17:09         ` Stephen Warren
2013-03-15 17:29           ` Tom Rini [this message]
2013-03-15 12:46       ` Tom Rini
2013-03-15 17:07         ` Stephen Warren
     [not found]   ` <CAJxxZ0Pk2CtS0FuYJyZDqq3NyUZEnCjnjsksx7buv8RiLf+3vQ@mail.gmail.com>
     [not found]     ` <513E9C79.2000708@wwwdotorg.org>
2013-03-13  2:58       ` Sonic Zhang
2013-03-13 16:51         ` Stephen Warren
2013-03-13 17:01           ` Stephen Warren

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=51435A77.1090809@ti.com \
    --to=trini@ti.com \
    --cc=u-boot@lists.denx.de \
    /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