Open cveilleux opened 2 years ago
It seems that arm-trusted-firmware is already supported by meta-espressobin which we are based on.
https://github.com/teamredlabs/meta-espressobin/tree/dunfell/recipes-bsp/arm-trusted-firmware
The flashable flash-image.bin
is not automatically built when compiling an image. I will need to look-into why, but it can be built by calling it directly:
bitbake arm-trusted-firmware
This will produce the required flash-image-espressobin-vX.bin
under tmp/deploy/images/MACHINE
Warning, this binary contains the cpu clock and ram clock configuration. The timings are defined under ATF_CLOCKSPRESET here:
https://github.com/teamredlabs/meta-espressobin/tree/dunfell/conf/machine/include
There are many different boards floating around, depending on production date. The defaults seem to be the most common ones.
Once tested, full instructions to flash u-boot should be added to the README
The layer will produce a u-boot.bin binary, but espressobin requires the bootloader to be signed/processed by atf-marvell in order to work.
https://github.com/MarvellEmbeddedProcessors/atf-marvell
Espressobin documentation on building:
http://wiki.espressobin.net/tiki-index.php?page=Build+From+Source+-+Bootloader