AnsweredAssumed Answered

ISSUE REGARDING PPA Fetch FOR NAND BOOT

Question asked by Nikhil Prakash on Apr 3, 2016
Latest reply on Apr 4, 2016 by Pavel Chubakov

Hi,

I am currently working on ls1043ardb board.In the reference board the ppa is fetched from NOR location(60500000) by default(for all boot modes). I am trying to change the ppa address for nand that is ,if i am booting from nand it should take ppa from nand itself.

 

I have modified the following files:

1=>include/configs/ls1043ardb.h

2=>arch/arm/cpu/armv8/fsl-lsh2/ppa.c

 

The modifications are given below:

1=>

#ifdef CONFIG_NAND_BOOT

#define CONFIG_SYS_LS_PPA_FW_IN_NAND

#ifdef CONFIG_SYS_LS_PPA_FW_IN_NAND

#define CONFIG_SYS_QE_FW_IN_NAND

#define CONFIG_SYS_LS_PPA_FW_ADDR       0x220000

#endif

#else

#define CONFIG_SYS_LS_PPA_FW_IN_NOR

#ifdef CONFIG_SYS_LS_PPA_FW_IN_NOR

#define CONFIG_SYS_LS_PPA_FW_ADDR       0x60500000

#endif

The above modifications are in file1.

 

2=>

#if defined(CONFIG_SYS_LS_PPA_FW_IN_NOR)

        fit_hdr = (void *)CONFIG_SYS_LS_PPA_FW_ADDR;

        printf("\nHEader1:%p",fit_hdr);

#elif defined(CONFIG_SYS_LS_PPA_FW_IN_NAND)

        fit_hdr = (void *)CONFIG_SYS_LS_PPA_FW_ADDR;

        printf("\nHeader:%p",fit_hdr);

#else

#error "No CONFIG_SYS_LS_PPA_FW_IN_xxx defined"

#endif

These modifications are in ppa.c

 

 

But still i am getting the below given issue:

fsl-ppa: Bad firmware image (not a FIT image)

fsl-ppa: error (-22)

tzc380_init: add 0 regions

tzc380: tzc380_reg_base = 0000000001500000

 

Whats the issue?Is there any other modifications needed apart from this??

Pls help

Thanks in advance

Outcomes