Yocto Build SCFW: Difference between revisions
From Variscite Wiki
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
--> {{#lst:Yocto_Platform_Customization|{{#var:RELEASE_PARAM|RELEASE_SUMO_V1.0_VAR-SOM-MX8X}}}} <!-- | --> {{#lst:Yocto_Platform_Customization|{{#var:RELEASE_PARAM|RELEASE_SUMO_V1.0_VAR-SOM-MX8X}}}} <!-- | ||
--> {{PageHeader|Yocto Build SCFW from source code}} {{DocImage|category1=Yocto|category2={{#var:HARDWARE_NAME}}}} __toc__ | --> {{PageHeader|Yocto Build SCFW from source code}} {{DocImage|category1=Yocto|category2={{#var:HARDWARE_NAME}}}} __toc__ | ||
= Install SCFW | = Install the SCFW toolchain = | ||
$ wget {{#var:SCFW_TOOLCHAIN_URL}}/{{#var:SCFW_TOOLCHAIN}} | $ wget {{#var:SCFW_TOOLCHAIN_URL}}/{{#var:SCFW_TOOLCHAIN}} | ||
$ sudo tar xf {{#var:SCFW_TOOLCHAIN}} -C /opt | $ sudo tar xf {{#var:SCFW_TOOLCHAIN}} -C /opt | ||
= Download SCFW | = Download the SCFW source code = | ||
Download the SCFW Porting Kit, {{#var:SCFW_PACKAGE}}.tar.gz, from:<br> | Download the SCFW Porting Kit, {{#var:SCFW_PACKAGE}}.tar.gz, from:<br> | ||
{{#var:SCFW_URL}} | {{#var:SCFW_URL}} | ||
Line 15: | Line 15: | ||
https://www.nxp.com/design/i.mx-developer-resources/i.mx-software-and-development-tool:IMX-SW) | https://www.nxp.com/design/i.mx-developer-resources/i.mx-software-and-development-tool:IMX-SW) | ||
= Unpack SCFW | = Unpack the SCFW source code = | ||
$ mkdir imx-scfw-porting-kit | $ mkdir imx-scfw-porting-kit | ||
Line 31: | Line 31: | ||
$ patch -p1 < ../{{#var:SCFW_PATCH}} | $ patch -p1 < ../{{#var:SCFW_PATCH}} | ||
= Build SCFW image = | = Build the SCFW image = | ||
$ export TOOLS=/opt | $ export TOOLS=/opt | ||
Line 46: | Line 46: | ||
}} | }} | ||
The SCFW image scfw_tcm.bin is located under build_{{#var:SCFW_SOC}} | The SCFW image, scfw_tcm.bin, is located under build_{{#var:SCFW_SOC}} |
Revision as of 15:43, 1 September 2019
Yocto Build SCFW from source code
Install the SCFW toolchain
$ wget https://developer.arm.com/-/media/Files/downloads/gnu-rm/6-2017q2/gcc-arm-none-eabi-6-2017-q2-update-linux.tar.bz $ sudo tar xf gcc-arm-none-eabi-6-2017-q2-update-linux.tar.bz -C /opt
Download the SCFW source code
Download the SCFW Porting Kit, imx-scfw-porting-kit-1.2.2.tar.gz, from:
https://www.nxp.com/webapp/Download?colCode=L4.14.98_2.0.1_SCFWKIT-1.2.2&appType=license
(Or find it in the NXP i.MX Software and Development Tool webpage:
https://www.nxp.com/design/i.mx-developer-resources/i.mx-software-and-development-tool:IMX-SW)
Unpack the SCFW source code
$ mkdir imx-scfw-porting-kit $ tar xf imx-scfw-porting-kit-1.2.2.tar.gz -C imx-scfw-porting-kit $ cd imx-scfw-porting-kit/packages/ $ chmod +x imx-scfw-porting-kit-1.2.2.bin $ ./imx-scfw-porting-kit-1.2.2.bin $ cd imx-scfw-porting-kit/src $ tar xf scfw_export_mx8qx_b0.tar.gz
Apply the Variscite VAR-SOM-MX8X patch
$ wget https://variscite-public.nyc3.cdn.digitaloceanspaces.com/VAR-SOM-MX8X/Software/SCFW/scfw_mx8qxp_var-som_1.2.2.diff $ cd scfw_export_mx8qx_b0 $ patch -p1 < ../scfw_mx8qxp_var-som_1.2.2.diff
Build the SCFW image
$ export TOOLS=/opt
$ make clean-qx $ make qx R=B0 B=var_som V=1
The SCFW image, scfw_tcm.bin, is located under build_mx8qx_b0