From f831f955d420966471f5f8b316ba50d2523b1ff0 Mon Sep 17 00:00:00 2001 From: Nick Hudson Date: Mon, 7 Jan 2019 08:31:50 +0000 Subject: Support u-boot noload images for arm as used by, NetBSD/evbarm GENERIC kernel. noload kernels are loaded with the u-boot image header and as a result the header size needs adding to the entry point. Fake up a hdr so the kernel image is loaded at the right address and the entry point is adjusted appropriately. The default location for the uboot file is 32MiB above bottom of DRAM. This matches the recommendation in Documentation/arm/Booting. Clarify the load_uimage API to state the passing of a load address when an image doesn't specify one, or when loading a ramdisk is expected. Adjust callers of load_uimage, etc. Signed-off-by: Nick Hudson Message-id: 11488a08-1fe0-a278-2210-deb64731107f@gmx.co.uk Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- hw/core/uboot_image.h | 1 + 1 file changed, 1 insertion(+) (limited to 'hw/core/uboot_image.h') diff --git a/hw/core/uboot_image.h b/hw/core/uboot_image.h index 34c11a7..608022d 100644 --- a/hw/core/uboot_image.h +++ b/hw/core/uboot_image.h @@ -124,6 +124,7 @@ #define IH_TYPE_SCRIPT 6 /* Script file */ #define IH_TYPE_FILESYSTEM 7 /* Filesystem Image (any type) */ #define IH_TYPE_FLATDT 8 /* Binary Flat Device Tree Blob */ +#define IH_TYPE_KERNEL_NOLOAD 14 /* OS Kernel Image (noload) */ /* * Compression Types -- cgit v1.1