3 Commits

Author SHA1 Message Date
Patrick Wood
5d0ee5037b nand-part: create one nand-part program to handle both A10 and A20
Build one nand-part program to handle both A10 and A20 mbr header formats.
Changed -f option to take an "a10" or "a20" argument to specify which mbr
format to force.

Signed-off-by: Patrick Wood <patrickhwood@gmail.com>
2013-09-19 02:24:25 +02:00
Pat Wood
c20d395d59 set MBR_MAGIC to "softw411" and MBR_VERSION to 0x200 in nand-part-a20.h
A20 boot1 checks the MBR magic string but not the version, but let's
check it anyway (can always force now with the -f option if the version
isn't 0x200 on the system)
2013-07-23 14:51:35 -04:00
Pat Wood
dd94a2f117 build both A10 and A20 nand-part executables
allow setting of partition 1 size/offset
if -f option is used, force writing of MBR header, even if CRC or
header magic/version are incorrect (for recovery only)
2013-07-23 00:42:19 -04:00