enabling CONFIG_FIT_SIGNATURE breaks U-Boot

I'm trying to enable verified boot on an mpc8309, but the first step of simply enabling CONFIG_FIT_SIGNATURE causes this:
[2020-02-07 17:23:34.342] U-Boot 2020.01-00037-g6e82ca3d2e (Feb 07 2020 - 17:23:16 +0100) [2020-02-07 17:23:34.379] [2020-02-07 17:23:34.379] Error binding driver 'mpc83xx_cpu': -12 [2020-02-07 17:23:34.379] Some drivers failed to bind [2020-02-07 17:23:34.379] Reset Status: External/Internal Hard [2020-02-07 17:23:34.380] [2020-02-07 17:23:34.380] initcall sequence 000975a4 failed at call 00016d24 (err=-19) [2020-02-07 17:23:34.380] ### ERROR ### Please RESET the board ###
00016d24 is <print_cpuinfo>, so I'm guessing that just fails due to the earlier error of mpc83xx_cpu failing to bind with -ENOMEM. But I can't figure out why just enabling CONFIG_FIT_SIGNATURE would have that dramatic an effect. I probably need to adjust some other config settings, but which?
Thanks, Rasmus

On 07/02/2020 17.30, Rasmus Villemoes wrote:
I'm trying to enable verified boot on an mpc8309, but the first step of simply enabling CONFIG_FIT_SIGNATURE causes this:
Well, more precisely, CONFIG_RSA causes that - I tried disabling CONFIG_FIT_SIGNATURE but kept CONFIG_RSA, and the same still happens. Removing CONFIG_RSA makes the board boot. Still digging, but pointers are much appreciated.
Thanks, Rasmus

On 07/02/2020 17.50, Rasmus Villemoes wrote:
On 07/02/2020 17.30, Rasmus Villemoes wrote:
I'm trying to enable verified boot on an mpc8309, but the first step of simply enabling CONFIG_FIT_SIGNATURE causes this:
Well, more precisely, CONFIG_RSA causes that - I tried disabling CONFIG_FIT_SIGNATURE but kept CONFIG_RSA, and the same still happens. Removing CONFIG_RSA makes the board boot. Still digging, but pointers are much appreciated.
OK, it wasn't that hard, sorry for the noise. Turns out I've been living on the edge, with the default value of CONFIG_SYS_MALLOC_F_LEN of 0x400 being just exactly enough, but then when the mod_exp_sw driver is also probed I run out.
Rasmus
participants (1)
-
Rasmus Villemoes