From c8ada3849e9bfc6f88d5f67ffd4ebb2d6d310085 Mon Sep 17 00:00:00 2001 From: Icenowy Zheng Date: Sat, 29 Apr 2017 18:56:43 +0800 Subject: [PATCH] fel: enable support for v2 SPL The version 2 of SPL added the possibility to add a device tree name in the header, with adding some pad and using a reserved word. As FEL boot currently doesn't need the device tree name, directly raise the maximum supported version number to 2. Signed-off-by: Icenowy Zheng --- fel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fel.c b/fel.c index dce8de1..f65b6bb 100644 --- a/fel.c +++ b/fel.c @@ -816,7 +816,7 @@ void aw_fel_process_spl_and_uboot(feldev_handle *dev, const char *filename) */ #define SPL_SIGNATURE "SPL" /* marks "sunxi" header */ #define SPL_MIN_VERSION 1 /* minimum required version */ -#define SPL_MAX_VERSION 1 /* maximum supported version */ +#define SPL_MAX_VERSION 2 /* maximum supported version */ bool have_sunxi_spl(feldev_handle *dev, uint32_t spl_addr) { uint8_t spl_signature[4];