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 a fastboot 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 this hisi-alt_xloader.img.
My goal is to configure the UFS to write-protect LUN0/LUN1. This means setting bLUWriteProtect for LUN0/LUN1 and setting fPermanentWPEn 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. 😄
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.imgis to search LUN3 for afastbootpartition 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.imgbinary 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
bLUWriteProtectfor LUN0/LUN1 and settingfPermanentWPEnto 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. 😄