If io storage has not been initialized, then it will fail to load BL30 binary. So change the code to load BL30 binary after io storage has been initialized successfully.
Signed-off-by: Leo Yan leo.yan@linaro.org --- bl2/bl2_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/bl2/bl2_main.c b/bl2/bl2_main.c index 29ca0a5..f6b93b7 100644 --- a/bl2/bl2_main.c +++ b/bl2/bl2_main.c @@ -411,6 +411,9 @@ void bl2_main(void) } #endif /* TRUSTED_BOARD_BOOT */
+ /* Perform platform setup in BL2 after loading BL3-0 */ + bl2_platform_setup(); + /* * Load the subsequent bootloader images */ @@ -420,9 +423,6 @@ void bl2_main(void) panic(); }
- /* Perform platform setup in BL2 after loading BL3-0 */ - bl2_platform_setup(); - /* * Get a pointer to the memory the platform has set aside to pass * information to BL3-1.