-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
alternate xloader that boots ATF/BL2 (fastboot) from UFS LUN1 #36
Comments
@theopolis No updates from hisilicon. I'll continue to ping them. |
@theopolis Here're a few questions from Hisilicon guys. I appended my comments on these questions. Teddy, please append your comments too.
|
Right, That xloader expects the next stage, the BL2 (l-loader) code to be in LUN3. This is the logic I'd like to change. I'd like to keep l-loader in LUN1 so I can write-protect both LUN0 and LUN1. This is because the l-loader holds the ROT public key hash and verifies the FIP/etc. All of the code and data loaded after l-loader can be in LUN3, which will remain R/W. |
HI,theopolis,I have several questions to confirm:
|
Hi! Thanks for all of the great work on the HiKey960 board.
I am not certain but it seems the current behavior of
hisi-sec_xloader.img
is to search LUN3 for afastboot
partition then load arm-trusted-firmware/BL2 from that partition.I was curious if it is possible to produce an alternate version of the
hisi-sec_xloader.img
binary that loads the BL2/fastboot binary from the UFS LUN1? The LUN1 should be 4MB, plenty of space to hold the BL2 binary. You could call thishisi-alt_xloader.img
.My goal is to configure the UFS to write-protect LUN0/LUN1. This means setting
bLUWriteProtect
for LUN0/LUN1 and settingfPermanentWPEn
to enabled for the UFS. I can combine this with TBB support for the HiKey in arm-trusted-firmware: ARM-software/arm-trusted-firmware#1555 and create a write-protected ROM/root-of-trust from arm-trusted-firmware.I know this is non-trivial work and I understand if it cannot be prioritized, but I figured I would at least ask. 😄
The text was updated successfully, but these errors were encountered: