Need to understand the from where exactly M4 image gets call from SCFW for loading in Imx8qxp

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Need to understand the from where exactly M4 image gets call from SCFW for loading in Imx8qxp

141 Views
Ram2
Contributor II

Hi Team,

 

I am trying to understand and check from where exactly the M4 code gets call from SCFW and who loads its and what its call-flow

Please try to help with code or flow-chart for call from SCFW , please point to exact src file from where I can find the exact function

Thanks in Advance !!

 

0 Kudos
3 Replies

113 Views
JosephAtNXP
NXP TechSupport
NXP TechSupport

Hi,

Thank you for your interest in NXP Semiconductor products,

This is the theory behind that operation.

JosephAtNXP_0-1714695002233.png

And this is how SCFW creates the partition for M4 image.

user@host:~/Projects/i.MX-SCFW/packages/imx-scfw-porting-kit-1.15.0/src/scfw_export_mx8qm_b0$ find . -type f -exec grep "sc_rm_pt_t pt_m4" '{}' \; -print
        sc_rm_pt_t pt_m4_0 = SC_RM_NUM_PARTITION;
./platform/board/mx8qx_mek/board.c
        sc_rm_pt_t pt_m4_0 = SC_RM_NUM_PARTITION;
        sc_rm_pt_t pt_m4_1 = SC_RM_NUM_PARTITION;
./platform/board/mx8qm_mek/board.c
        sc_rm_pt_t pt_m4_0 = SC_RM_NUM_PARTITION;
./platform/board/mx8qx_val/board.c
        sc_rm_pt_t pt_m4_0 = SC_RM_NUM_PARTITION;
./platform/board/mx8dxl_evk/board.c
        sc_rm_pt_t pt_m4_0 = SC_RM_NUM_PARTITION;
        sc_rm_pt_t pt_m4_1 = SC_RM_NUM_PARTITION;
./platform/board/mx8qm_mek_cockpit/board.c
        sc_rm_pt_t pt_m4_0 = SC_RM_NUM_PARTITION;
        sc_rm_pt_t pt_m4_1 = SC_RM_NUM_PARTITION;
./platform/board/mx8qm_val/board.c

Regards

0 Kudos

95 Views
Ram2
Contributor II

Hi @JosephAtNXP 

Thanks for providing below theory concept

Could you give little more brief in terms of flow , once we flash "flash.bin" on target board

How it will start the sequence how it loads other images 

We are completely stuck at some point with out any clue 

Ram2_0-1714719348839.png


From pic I have attached , its high level diagram but we need some more details info related how exactly it fetches the ATF-> U-boot-> 


0 Kudos

42 Views
JosephAtNXP
NXP TechSupport
NXP TechSupport

Hi,

Thank you for your interest in NXP Semiconductor products,

All the loading is done by the SCU ROM and once it is done it
jumps to the SCFW which has no ability to load anything further. The ROM does not start any of the CPUs.

Regards

0 Kudos