From 529643163c5ad8f2220355b7d961a5dc714da5a9 Mon Sep 17 00:00:00 2001 From: Enrico Jorns Date: Tue, 31 Jul 2018 12:44:27 +0200 Subject: bootm: allow booting SoCFPGA prebootloader image A prebootloader image might also contain a fully working barebox and allows to be booted second stage. Thus we add a handler here to give it a try. Signed-off-by: Enrico Jorns Signed-off-by: Sascha Hauer --- arch/arm/lib32/bootm.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/lib32/bootm.c b/arch/arm/lib32/bootm.c index 63713acf59..4cf570e577 100644 --- a/arch/arm/lib32/bootm.c +++ b/arch/arm/lib32/bootm.c @@ -434,6 +434,12 @@ static struct image_handler barebox_handler = { .filetype = filetype_arm_barebox, }; +static struct image_handler socfpga_xload_handler = { + .name = "SoCFPGA prebootloader image", + .bootm = do_bootm_linux, + .filetype = filetype_socfpga_xload, +}; + #include static int aimage_load_resource(int fd, struct resource *r, void* buf, int ps) @@ -628,6 +634,7 @@ static int armlinux_register_image_handler(void) globalvar_add_simple_bool("bootm.boot_atag", &bootm_boot_atag); register_image_handler(&barebox_handler); + register_image_handler(&socfpga_xload_handler); register_image_handler(&uimage_handler); register_image_handler(&rawimage_handler); register_image_handler(&zimage_handler); -- cgit v1.2.3