]> git.baikalelectronics.ru Git - uboot.git/commit
cmd: gpt: backup boot code before writing MBR
authorVincent Tinelli <vincent.tinelli@intel.com>
Mon, 30 Jan 2017 12:46:07 +0000 (15:46 +0300)
committerTom Rini <trini@konsulko.com>
Wed, 8 Feb 2017 20:56:29 +0000 (15:56 -0500)
commit17e9215dd3b81123d0a72cc846feadb223a2d7a6
tree73d9f4cd8ce384cdb0661c85458babce1406d806
parent0649fb2ca03756336124d330d684f23ba8a5f70b
cmd: gpt: backup boot code before writing MBR

On some cases the first 440 bytes of MBR are used to keep an additional
information for ROM boot loader. 'gpt write' command doesn't preserve
that area and makes boot code gone.

Preserve boot code area when run 'gpt write' command.

Signed-off-by: Vincent Tinelli <vincent.tinelli@intel.com>
Signed-off-by: Brennan Ashton <brn@deako.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
disk/part_efi.c