x86: zboot: Correct image type
authorSimon Glass <sjg@chromium.org>
Sat, 5 Sep 2020 20:50:41 +0000 (14:50 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 25 Sep 2020 03:27:08 +0000 (11:27 +0800)
At present U-Boot sets a loader type of 8 which means LILO version 8,
according to the spec. Update it to 0x80, which means U-Boot with no
particular version.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Wolfgang Wallner <wolfgang.wallner@br-automation.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/lib/zimage.c

index b2c3daf..ba9eb50 100644 (file)
@@ -282,8 +282,7 @@ int setup_zimage(struct boot_params *setup_base, char *cmd_line, int auto_boot,
                setup_base->screen_info.cl_offset = COMMAND_LINE_OFFSET;
        }
        if (bootproto >= 0x0200) {
-               hdr->type_of_loader = 8;
-
+               hdr->type_of_loader = 0x80;     /* U-Boot version 0 */
                if (initrd_addr) {
                        printf("Initial RAM disk at linear address "
                               "0x%08lx, size %ld bytes\n",