Closed gsora closed 5 years ago
After some tinkering, I got a fastboot.bin image that correctly boots OP-TEE, but only if I manually build the ATF and l-loader with recovery switches active.
My guess is that building this way, I'm embedding all the needed binaries right in the fastboot image, while with the standard method I'm reading off the eMMC. Something is missing from the partition images maybe?
The recovery images don't include OP-TEE due to bootrom size limitation. Can you please specify the exact commands you used for your build?
I didn't issue any particular command, I just initialized my work folder with the poplar.xml
manifest file, and then issued make
. The fastboot.bin
produced by this process leaves the board in the state described in my first message.
To produce a USB-bootable fastboot image I followed these instructions: https://github.com/96boards-poplar/Documentation/blob/master/OP-TEE/OP-TEE.md
I passed the POPLAR_RECOVERY=1
to make when building ATF, and RECOVERY=1
when building l-loader.
The image produced includes OP-TEE, and passes the test suite.
It's been a while so I don't quite remember all the details, but if I'm reading everything correctly, fastboot.bin
shouldn't be generated by this process?
https://github.com/OP-TEE/build/blob/master/poplar.mk#L150 https://github.com/96boards-poplar/l-loader/blob/master/Makefile#L54
Yes, exactly, I am able to generate a recovery fastboot.img that boots via USB, but somehow it doesn't boot when flashed to the board.
I'm pretty sure the eMMC is not faulty either because with the USB supplied fastboot image, Debian boots.
I am using the 1GB version of the Poplar board, and I've supplied the relevant flag to the OP-TEE build phase, but at this point I'm wondering if there's something else I should tweak to make the boot image load on my board revision.
I just tried and verified that fastboot.bin
is not generated.
repo init -u https://github.com/OP-TEE/manifest.git -m poplar.xml
repo sync
make toolchains
make l-loader
If you're having trouble, please follow recovery procedure here.
The recovery procedure does produce a valid fastboot.bin
file (which is the l-loader.bin
file renamed), the problem I'm having is that I'm not able to produce a working fastboot image, at least something that does load BL2 and beyond. I've opened an issue on ARM Trusted Firmware repository here, because it might be related.
@gsora did you get anywhere with this? Still an issue? If not, then I'd like to close the ticket.
I'm having some troubles getting my Poplar board to boot anything.
I've followed the standard build guide, everything went smoothly, but when I reset the board to make it load from the eMMC, the boot process stops with this error:
Is there anything I could try to make it boot correctly?
Thanks.