Hello Volodymyr,
If you would like to boot on i.MX 8QM MEK board you best option I would say is to go with the yocto receipe you will find on Code aurora. You can use imx-5.4.3-2.0.0.xml manifest that you will find there https://source.codeaurora.org/external/imx/imx-manifest/tree/?h=imx-linux-ze... You will be able to generate a complete image with Linux and file system If you do not want everything you will be able to generate a boot binary (imx-boot) that you give you everything to boot up to a u-boot prompt.
On QM the boot is slightly different than on the MQ that Rouven described below as the System Controller is controlling the boot sequence. Also as you may have understood, we do not use barebox as bootloader but u-boot.
If you want to go that route then the step you should follow the guide https://source.codeaurora.org/external/imx/imx-manifest/tree/README?h=imx-li... In you specific case the MACHINE= imx8qmmek and DISTRO=fsl-imx-xwayland
Finally a bitbake core-image-minimal will give you that simple sdcard image ready to boot bitbake imx-boot will give you a boot image to be burn in the sdcard
once you have that up and running, you may be able to look at the recipe available in yocto to understand how the image is construct.
hope it helps Silvano -----Original Message----- From: Rouven Czerwinski r.czerwinski@pengutronix.de Sent: Friday, March 27, 2020 7:39 AM To: Volodymyr Babchuk vlad.babchuk@gmail.com; Peng Fan peng.fan@nxp.com; Cedric Neveux cedric.neveux@nxp.com; Silvano Di Ninno silvano.dininno@nxp.com; Clément Faure clement.faure@nxp.com Cc: tee-dev@lists.linaro.org Subject: [EXT] Re: [Tee-dev] Booting OP-TEE on iMX8QM
Caution: EXT Email
Hi Volodymyr,
I have run OP-TEE on an i.MX8MQ EVK together with TF-A and Barebox. For the TF-A I used the imx-atf found at https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsource.cod..., a current OP-TEE revision for i.MX8MQ and a current Barebox Release. Boot Flow works like this:
ROM -> Barebox PBL (DDR Setup, load TF-A from SD-Card) -> TF-A -> OP- TEE -> Barebox PBL -> Barebox.
OP-TEE needs to be compiled into the TF-A, and TF-A is compiled into Barebox. I don't have the exact compile flags for TF-A on hand any longer, you'll have to look at the source, should be in the plat/arm/imx/ directory. If you have more questions let me know.
Regards, Rouven
On Thu, 2020-03-26 at 23:54 +0200, Volodymyr Babchuk wrote:
Hello maintainers,
I'm trying to boot OP-TEE in custom imx8qm-based board. As I can see from OP-TEE sources, it is available for this type of SOC. But, I can't find any instructions on how to actually load and boot it.
Would you please share inputs?
Tee-dev mailing list Tee-dev@lists.linaro.org https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flist s.linaro.org%2Fmailman%2Flistinfo%2Ftee-dev&data=02%7C01%7Csilvano .dininno%40nxp.com%7C903f1d6aa0644a013d2308d7d2197bb6%7C686ea1d3bc2b4c 6fa92cd99c5c301635%7C0%7C0%7C637208879207801024&sdata=1taTIDB2eHaR vls3Sgv0BRXV6xUQUn60WubMPkB7uhs%3D&reserved=0