[U-Boot] [PATCH v1] DOS_PBR block type is also valid dos block type.

Tom Rini trini at ti.com
Fri Mar 15 18:29:27 CET 2013


-----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-----


More information about the U-Boot mailing list