What's the usage of BL31 for SRAM for S32G399A?

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

What's the usage of BL31 for SRAM for S32G399A?

Jump to solution
411 Views
cranes
Contributor IV

Hello,

In TF-A for NXP S32G399A-RDB3, the images for bl31 to run in both SRAM and DRAM are generated in the release folder. But what's loaded by bl2 is only the bl31 version of running in DRAM. Why both images are generated then? 

I heard that bl31 for SRAM might be called directly by BootROM in other boot path and it is built in fip.bin and written to SD card together with bl31 for DRAM when flashing fip.bin. Is it true?

Thanks!

Crane

0 Kudos
Reply
1 Solution
189 Views
cranes
Contributor IV

Thank you for your reply.

Ok, it looks like it is still needed and might be put in fip.bin together with the image of bl31 for dram when TF-A is built so as to be stored in SD card.

Regards,

Crane

View solution in original post

0 Kudos
Reply
6 Replies
380 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @cranes 

Thanks for your post.

BSP code varies within the different versions, may I know which version BSP you are referring to?

 

BR

Chenyin

0 Kudos
Reply
361 Views
cranes
Contributor IV

Thank you for your reply.

Here is the version I am using:

On branch release/bsp44.0-2.10.14

Thanks!

Crane

0 Kudos
Reply
348 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @cranes 

Thanks for your confirmation.

1. Currently, at least based on BSP44, the BL31 is loaded by BL2 in DDR, at a statically-defined address.  

2. BL31SRAM is also enabled for the images on emulator.

3. Currently, there is no other available information that could be shared publicly on this feature in the BSP, I suggest checking the release notes of the BSP release for major features changes.

Apologize for your inconvenience.

 

BR

Chenyin

0 Kudos
Reply
331 Views
cranes
Contributor IV

Hello,

You mean the documents in the red box as in below picture, right?

cranes_0-1764787876765.png

The below statement implies that BL31SRAM image does exist, right? 

cranes_1-1764788027861.png

 

Then the question is, what is it used for?

I find this post https://community.nxp.com/t5/S32G/quot-ATF-quot-quot-My-bootloader-NOT-U-Boot-quot-combination/m-p/1... for another processor of S32G2 series. I suspect it is the same for S32G399A or for other purpose as you said for the images on emulator. Appreciate if you help get it clear.

Thanks!

Crane

0 Kudos
Reply
234 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @cranes 

Thanks for your reply.

Yes, it is existed, and could be found from the build directory once built the TFA

1. It is not described in BSP UM and related public document, so there is not formal description for it.

2. I have gone through the code carefully, by reviewing the code, the bl31sram related implementation is currently only used during system standby, to implement necessary configuration for the whole operation.

 

BR

Chenyin 

 

0 Kudos
Reply
190 Views
cranes
Contributor IV

Thank you for your reply.

Ok, it looks like it is still needed and might be put in fip.bin together with the image of bl31 for dram when TF-A is built so as to be stored in SD card.

Regards,

Crane

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2252544%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EWhat's%20the%20usage%20of%20BL31%20for%20SRAM%20for%20S32G399A%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2252544%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%3CSPAN%3EIn%20TF-A%20for%20NXP%20S32G399A-RDB3%2C%20the%20images%20for%20bl31%20to%20run%20in%20both%20SRAM%20and%20DRAM%20are%20generated%20in%20the%20release%20folder.%20But%20what's%20loaded%20by%20bl2%20is%20only%20the%20bl31%20version%20of%20running%20in%20DRAM.%20Why%20both%20images%20are%20generated%20then%3F%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20heard%20that%20bl31%20for%20SRAM%20might%20be%20called%20directly%20by%20BootROM%20in%20other%20boot%20path%20and%20it%20is%20built%20in%20fip.bin%20and%20written%20to%20SD%20card%20together%20with%20bl31%20for%20DRAM%20when%20flashing%20fip.bin.%20Is%20it%20true%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EThanks!%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3ECrane%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2252659%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20What's%20the%20usage%20of%20BL31%20for%20SRAM%20for%20S32G399A%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2252659%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F224785%22%20target%3D%22_blank%22%3E%40cranes%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%20for%20your%20post.%3C%2FP%3E%0A%3CP%3EBSP%20code%20varies%20within%20the%20different%20versions%2C%20may%20I%20know%20which%20version%20BSP%20you%20are%20referring%20to%3F%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EChenyin%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2253668%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20What's%20the%20usage%20of%20BL31%20for%20SRAM%20for%20S32G399A%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2253668%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F224785%22%20target%3D%22_blank%22%3E%40cranes%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%20for%20your%20confirmation.%3C%2FP%3E%0A%3CP%3E1.%20Currently%2C%20at%20least%20based%20on%20BSP44%2C%20the%26nbsp%3B%3CSPAN%20class%3D%22fontstyle0%22%3EBL31%20is%20loaded%20by%20BL2%20in%20DDR%2C%20at%20a%20statically-defined%20address.%20%3C%2FSPAN%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E2.%20Initially%2C%20BL31SRAM%20is%20developed%20for%20the%20images%20on%20emulator.%3C%2FP%3E%0A%3CP%3E3.%20Currently%2C%20there%20is%20no%20other%20available%20information%20that%20could%20be%20shared%20publicly%20on%20this%20feature%20in%20the%20BSP%2C%20I%20suggest%20checking%20the%20release%20notes%20of%20the%20BSP%20release%20for%20major%20features%20changes.%3C%2FP%3E%0A%3CP%3EApologize%20for%20your%20inconvenience.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EChenyin%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2253364%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20What's%20the%20usage%20of%20BL31%20for%20SRAM%20for%20S32G399A%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2253364%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThank%20you%20for%20your%20reply.%3C%2FP%3E%3CP%3EHere%20is%20the%20version%20I%20am%20using%3A%3C%2FP%3E%3CP%3EOn%20branch%20release%2Fbsp44.0-2.10.14%3C%2FP%3E%3CP%3EThanks!%3C%2FP%3E%3CP%3ECrane%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2254416%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20What's%20the%20usage%20of%20BL31%20for%20SRAM%20for%20S32G399A%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2254416%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EYou%20mean%20the%20documents%20in%20the%20red%20box%20as%20in%20below%20picture%2C%20right%3F%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22cranes_0-1764787876765.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22cranes_0-1764787876765.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F368465i41668203EF4C7304%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22cranes_0-1764787876765.png%22%20alt%3D%22cranes_0-1764787876765.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EThe%20below%20statement%20implies%20that%20BL31SRAM%20image%20does%20exist%2C%20right%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22cranes_1-1764788027861.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22cranes_1-1764788027861.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F368466iF72CBA602BBE6636%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22cranes_1-1764788027861.png%22%20alt%3D%22cranes_1-1764788027861.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThen%20the%20question%20is%2C%20what%20is%20it%20used%20for%3F%3C%2FP%3E%3CP%3EI%20find%20this%20post%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32G%2Fquot-ATF-quot-quot-My-bootloader-NOT-U-Boot-quot-combination%2Fm-p%2F1525825%22%20target%3D%22_self%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32G%2Fquot-ATF-quot-quot-My-bootloader-NOT-U-Boot-quot-combination%2Fm-p%2F1525825%3C%2FA%3E%26nbsp%3Bfor%20another%20processor%20of%20S32G2%20series.%20I%20suspect%20it%20is%20the%20same%20for%20S32G399A%20or%20for%20other%20purpose%20as%20you%20said%20%3CSPAN%3Efor%20the%20images%20on%20emulator%3C%2FSPAN%3E.%20Appreciate%20if%20you%20help%20get%20it%20clear.%3C%2FP%3E%3CP%3EThanks!%3C%2FP%3E%3CP%3ECrane%3C%2FP%3E%3C%2FLINGO-BODY%3E