s32G274RDB2 using BSP ATF

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

s32G274RDB2 using BSP ATF

336 Views
sdx111
Contributor I

I am using the construction method of BSP35.0 yocto. The fip.bin and fip.s32 generated here are generated by FIp.s32-qSPI, and I want to be generated by FIp.s32-sdcard instead. Where can I make this change?

sdx111_0-1727442540029.png

 

 

0 Kudos
Reply
7 Replies

315 Views
alejandro_e
NXP TechSupport
NXP TechSupport

Hello @sdx111

There is no documented way to change the fip.bin/s32 to be the same as the sdcard instead of the qspi. Can you describe more about your problem? What are you traying to solve with this change?

 

Thanks in advance for the information

0 Kudos
Reply

302 Views
sdx111
Contributor I
I was debugging the bootloader and starting M7 core and A53 core. I needed to download fip.bin of A53 core to Norflash and fip.s32 to EMMC, but startup errors occurred. NOTICE: Reset status: Power-On Reset
NOTICE: BL2: v2.5(release):bsp35.0-2.5-dirty
NOTICE: BL2: Built : 13:21:28, Nov 29 2022
Warning: Instruction at BL33_ENTRYPOINT (0xffaa0000) is 0x54000100, which is not a B or BL!
NOTICE: BL2: Booting BL31

I think that this generated fip.s32 does not correspond to the download to EMMC.
0 Kudos
Reply

283 Views
alejandro_e
NXP TechSupport
NXP TechSupport

Hello @sdx111,

You can flash the file with the sdcard suffix with no problem or rename it yourself with no issues. If you require an multicore application I can recommend checking AN13750: Enabling Multicore Application.

If you keep having problems please share more details about the complete process you are following, this is: Bootloader configuration, Changes to ATF/u-boot code, building commands, flashing commands and dip switch configuration when booting.

 

Let me know if this information was useful.

0 Kudos
Reply

198 Views
sdx111
Contributor I

With reference to AN13750, modify the patch shown in the following figure to build bitbake arm-trusted- firmfirmware -C compile and bitbake fsl-image-auto. During boot, the DIP code is Norflash startup, and dual-core startup is shown in the figure below.

 

I would like to know what other programs in BSP35.0 need to be changed?

sdx111_0-1728907094433.png

sdx111_1-1728907109749.png

 

0 Kudos
Reply

178 Views
alejandro_e
NXP TechSupport
NXP TechSupport

Hello @sdx111,

All the steps related to change files are present in the application note I mentioned, it is useful to have previous IVT configuration experience. If this is your first time configuring an IVT image I strongly recommend checking S32G-VNP-RDB2 Software Enablement Guide.

Please be aware that you will need to download the following package AN13750SW - Software for application note AN13750 to be able to complete the application note.

 

Let me know if this information was useful.

 

0 Kudos
Reply

168 Views
sdx111
Contributor I
I was able to start both core A and core M, but once executing the bitbake arm-trusted- firmware-c cleansstate command, Cleansstate won't recover, so the IVT setup should be fine. The modified part is refer to 0001-fip-align-and-mmc-init.patch in AN13750SW-Software for application note AN13750. So there should be other changes in BSP35.0.
0 Kudos
Reply

149 Views
alejandro_e
NXP TechSupport
NXP TechSupport

Hello @sdx111,

Could you elaborate more on how you added the patches to your yocto build? what steps did you follow to add the mentioned modifications?

Are there any log errors when you try to run the bitbake arm-trusted- firmware-c cleansstate command? can you share them with me?

 

Thanks in advance for the information.

0 Kudos
Reply