LS1028 - RCW generation to boot from SD Card to NOR Flash

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

LS1028 - RCW generation to boot from SD Card to NOR Flash

1,344 次查看
kumar_086
Contributor IV

Dear Experts,

I started with the LS1028A processor EVM which booted with the onboard NOR flash images.

Now, booting from SD Card [RCW] and jumping to NOR Flash [U-Boot Image] is required. How to specify this in RCW PBI commands?

Please help!

0 项奖励
回复
3 回复数

1,308 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Queries:

1) I need to understand what is the customer's purpose here.

2) Would you please elaborate on the exact requirement?

3) Please confirm when you say LS1028A processor EVM, you mean LS1028ARDB.

4) Does the customer use LSDK or their custom code? 

 

In the LSDK, PBI commands program the OCRAM with BL2 image and also set the boot location pointer to 0x1800D000 OCRAM location. After completing RCW, PBI commands, and boot ROM execution, the CPU fetches the instruction from the 0x1800D000 OCRAM location. When the core executes the BL2 image, one task is to copy the u-boot image (fip.bin) from the boot source to DDR. Is this where the customer wants the fip.bin image to be copied from flash instead of the SD card?

 

If the customer wants to jump directly at the FLEXSPI NOR flash address after boot ROM execution, set the FLEXSPI NOR Flash address in the DCFG boot location pointer register using the PBI command. Assuming they have properly programmed their FLEXSPI NOR flash. (Require some changes in the code)

-> Boot location pointer low-order address (BOOTLOCPTRL) @ 0x1E00400

-> Boot location pointer high-order address (BOOTLOCPTRH) @ 0x1E00404

 

0 项奖励
回复

1,295 次查看
kumar_086
Contributor IV

Dear @yipingwang 

Thanks for your reply. Here are the inline comments.

1) I need to understand what is the customer's purpose here.

-To implement a secure booting method with SD Card. This is in the experimental stage.

2) Would you please elaborate on the exact requirement?

-This is a boot safety requirement for the product. This is in the experimental stage. Not yet finalized of this requirement.

3) Please confirm when you say LS1028A processor EVM, you mean LS1028ARDB.

-Yes

4) Does the customer use LSDK or their custom code? 

-LSDK (flexbuild)

Thanks for detailing the boot flow. Yes, the fip image will be in NOR Flash.

What kind of changes in code for this?

Regards

Kumar

0 项奖励
回复

1,268 次查看
yipingwang
NXP TechSupport
NXP TechSupport

You can try the following procedure:
1) Add the following at the beginning of bl2 code (atf).
a. Read POR Status Register 1 (PORSR1), dat = PORSR1
b. Set RCW_SRC bits (bit 23:26): dat[RCW_SRC] = 4b1111
c. Write the updated data value, dat, to address: 0x700100000

2) Program bl2_sd.pbl in SD card at 8 sector and fip.bin in XSPI flash at 0x100000 offset.

3) Set boot source as SD card on the board. Turn on the board.

0 项奖励
回复