How to change RCW on flexbuild_lsdk1712

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

How to change RCW on flexbuild_lsdk1712

Jump to solution
1,905 Views
notshure
Contributor IV

Hello everyone.

I have been trying to perform this task for several days:

Target:

I am working with the LS1043a board. I want to generate a Boot from SD for my platform. I would also like to insert a PBI command in the Boot (command to disable cores). To generate the boot I am using flex-builder, in particular flexbuild_lsdk1712. I saw from the documentation Layerscape Software Development Kit 17.12 Documentation, Rev. 0, 02/201 that it is possible to make the file firmware_ls1043ardb_uboot_sdboot.img with the following command: flex-builder -i mkfw -m ls1043ardb -b sd -B uboot.

I have already done such a thing using the latest version of flex-builder: flexbuild_lsdk2108

In fact, this link describes in detail all the steps necessary to obtain this result.

I want to do what I did with flexbuild_lsdk2108 with flexbuild_lsdk1712 as well.

I do this because I need to generate the boot from SD with U-Boot 2017 on it

 

Problem:

I can't find in the flexbuild_lsdk1712 directory the file rcw_1600_sdboot.rcw, in which I have to enter the command to turn off the cores under RCW:

.pbi
write 0xee0094, 0x0000000e
.end

Question:

Does the rcw_1600_sdboot.rcw file also exist in this old version of flex-builder (flexbuild_lsdk1712)?

If it exists where is it?

If it doesn't exist, what should I change to until it gets the same result as the new flex-builder version (flexbuild_lsdk2108)?

 Thank you very much for your availability.

0 Kudos
Reply
1 Solution
1,854 Views
notshure
Contributor IV

Thanks for your reply. I have found the solution.

View solution in original post

0 Kudos
Reply
4 Replies
1,899 Views
yipingwang
NXP TechSupport
NXP TechSupport

In LSDK1712, SD RCW(PBI) configuration file is in u-boot source code.

1. $ flex-builder -c u-boot -m ls1043ardb

Please go to u-boot source code folder packages/firmware/u-boot/, please modify board/freescale/ls1043ardb/ls1043ardb_pbi.cfg according to your requirement.

2. Please remove u-boot build folder and rebuild u-boot.

$ cd ~/flexbuild

$ rm -rf build/firmware/u-boot/ls1043ardb/

$ flex-builder -c u-boot -m ls1043ardb -b sd

3. Generate firmware image

$ flex-builder -i mkfw -m ls1043ardb -b sd -B uboot

0 Kudos
Reply
1,890 Views
notshure
Contributor IV

I have to write:

#CORE DIS
09ee0094 0000000e

before

#flus PBI data
096100c0 000fffff

on the file ls1043ardb_pbi.cfg ?

#Configure Scratch register
09570600 00000000
09570604 10000000
#Alt base register
09570158 00001000
#Disable CCI barrier tranaction
09570178 0000e010
09180000 00000008
#USB PHY frequency sel
09570418 0000009e
0957041c 0000009e
09570420 0000009e
#Core DIS
09ee0094 0000000e
#flush PBI data
096100c0 000fffff

must be so in the end the content of that file?

0 Kudos
Reply
1,864 Views
yipingwang
NXP TechSupport
NXP TechSupport

The modification makes sense.

0 Kudos
Reply
1,855 Views
notshure
Contributor IV

Thanks for your reply. I have found the solution.

0 Kudos
Reply