Support kernel_noload uImage type
Subsystems (2)
PATCH 1/1 Support kernel_noload uImage type
Do not trigger an error when loading a uImage with the IH_TYPE_KERNEL_NOLOAD type. These images do not need to be copied to their load address before being executed.
All archs (excepted PPC) do not use the uImage load and entry point parameters, so their current behavior needs not be changed further than just accepting the image type.
Tested and validated on ARM.
--- include/image.h | 2 ++ kexec/kexec-uImage.c | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-)
include/image.h +2 -0
@@ -129,6 +129,8 @@#define IH_TYPE_FILESYSTEM 7/* Filesystem Image (any type) */ #define IH_TYPE_FLATDT 8/* Binary Flat Device Tree Blob */ #define IH_TYPE_KWBIMAGE 9/* Kirkwood Boot Image */ +#define IH_TYPE_KERNEL_NOLOAD 14/* OS Kernel Image, can run */ +/* from any load address */ /* * Compression Types
kexec/kexec-uImage.c +5 -1
@@ -39,7 +39,11 @@ int uImage_probe(const unsigned char *buf, off_t len, unsigned int arch) return -1; }#endif -if (header.ih_type !=IH_TYPE_KERNEL ) { +switch (header.ih_type) { +case IH_TYPE_KERNEL : +case IH_TYPE_KERNEL_NOLOAD : +break ; +default :printf ("uImage type %d unsupported\n" , header.ih_type);return -1 ; }
Signature · 7 lines
1.7.10.4 _______________________________________________ kexec mailing list [email protected] http://lists.infradead.org/mailman/listinfo/kexec
Simon Horman
AppliedQuoted 11 lines · Alexandre Courbot
Do not trigger an error when loading a uImage with the
IH_TYPE_KERNEL_NOLOADtype. These images do not need to be copied to their load address before being executed.All archs (excepted PPC) do not use the uImage load and entry point parameters, so their current behavior needs not be changed further than just accepting the image type.
Tested and validated on ARM.
Signed-off-by Alexandre Courbot <[email protected]>
Thanks, applied.
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec