[U-Boot] [PATCH v1] cmd: gpt: backup boot code before writing MBR

Simon Glass sjg at chromium.org
Mon Feb 6 15:33:22 UTC 2017


On 30 January 2017 at 04:46, Andy Shevchenko
<andriy.shevchenko at linux.intel.com> wrote:
> From: Vincent Tinelli <vincent.tinelli at intel.com>
>
> 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 at intel.com>
> Signed-off-by: Brennan Ashton <brn at deako.com>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko at linux.intel.com>
> ---
>  disk/part_efi.c | 7 +++++++
>  1 file changed, 7 insertions(+)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list