Yocto Build SCFW: Difference between revisions
From Variscite Wiki
(Created page with "<!-- Set release according to "release" parameter in URL and use RELEASE_MORTY_V1.0_VAR-SOM-MX6 as default --> {{#vardefine:RELEASE_PARAM|{{#urlget:release}}}} <!-- --> {{#lst...") |
No edit summary |
||
Line 5: | Line 5: | ||
= Install SCFW Toolchain = | = Install SCFW Toolchain = | ||
$ wget | $ wget {{#var:SCFW_TOOLCHAIN_URL}}/{{#var:SCFW_TOOLCHAIN}} | ||
$ sudo tar xf | $ sudo tar xf {{#var:SCFW_TOOLCHAIN}} -C /opt | ||
= Download SWCF sources = | = Download SWCF sources = | ||
Download SWFW source package {{#var:SCFW_PACKAGE}}.tar.gz from {{#var:SCFW_URL}} | |||
= Unpack SWCF sources = | = Unpack SWCF sources = | ||
Line 23: | Line 24: | ||
= Apply Variscite patch = | = Apply Variscite patch = | ||
$ wget {{#var:SCFW_PATCH_URL}} | $ wget {{#var:SCFW_PATCH_URL}}/{{#var:SCFW_PATCH} | ||
$ cd scfw_export_{{#var:SCFW_SOC}} | $ cd scfw_export_{{#var:SCFW_SOC}} | ||
$ cat ../{{#var:SCFW_PATCH}} | patch -p1 | $ cat ../{{#var:SCFW_PATCH}} | patch -p1 | ||
Line 30: | Line 31: | ||
$ export TOOLS=/opt | $ export TOOLS=/opt | ||
{{#ifeq: {{#var:SCFW_SOC}} | mx8qx_b0 | | |||
$ make clean-qx | $ make clean-qx | ||
$ make qx R=B0 B=var_som V=1 | $ make qx R=B0 B=var_som V=1 | ||
| | |||
$ make clean-qm | |||
$ make qm R=B0 B=var_som V=1 | |||
}} | |||
The SWCF image scfw_tcm.bin is located under build_{{#var:SCFW_SOC}} | The SWCF image scfw_tcm.bin is located under build_{{#var:SCFW_SOC}} |
Revision as of 16:28, 27 August 2019
Yocto Build SCFW from source code
Install 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 SWCF sources
Download SWFW source package 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
Unpack SWCF sources
$ 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-1.2.2/src $ tar xf scfw_export_mx8qx_b0.tar.gz
Apply Variscite patch
$ wget https://variscite-public.nyc3.cdn.digitaloceanspaces.com/VAR-SOM-MX8X/Software/SCFW/{{#var:SCFW_PATCH} $ cd scfw_export_mx8qx_b0 $ cat ../scfw_mx8qxp_var-som_1.2.2.diff | patch -p1
Build SCFW image
$ export TOOLS=/opt
$ make clean-qx
$ make qx R=B0 B=var_som V=1
The SWCF image scfw_tcm.bin is located under build_mx8qx_b0