Yocto Build SCFW: Difference between revisions

From Variscite Wiki
No edit summary
No edit summary
Line 9: Line 9:


= Download the SCFW source code =
= Download the SCFW source code =
Download the SCFW Porting Kit, {{#var:SCFW_PACKAGE}}.tar.gz, from:<br>
{{#var:SCFW_URL}}
<br><br>
(Or find it in the NXP i.MX Software and Development Tool webpage:<br>
https://www.nxp.com/design/i.mx-developer-resources/i.mx-software-and-development-tool:IMX-SW)


= Unpack the SCFW source code =
  git clone {{#var:SCFW_GIT}} -b {{#var:SCFW_BRANCH}}
 
  $ mkdir imx-scfw-porting-kit
$ tar xf {{#var:SCFW_PACKAGE}}.tar.gz -C imx-scfw-porting-kit
$ cd imx-scfw-porting-kit/packages/
$ chmod +x {{#var:SCFW_PACKAGE}}.bin
$ ./{{#var:SCFW_PACKAGE}}.bin
$ cd imx-scfw-porting-kit/src
$ tar xf scfw_export_{{#var:SCFW_SOC}}.tar.gz
 
= Apply the Variscite {{#var:HARDWARE_NAME}} patch =
$ wget {{#var:SCFW_PATCH_URL}}/{{#var:SCFW_PATCH}}
$ cd scfw_export_{{#var:SCFW_SOC}}
$ patch -p1 < ../{{#var:SCFW_PATCH}}


= Build the SCFW image =
= Build the SCFW image =
 
cd imx-sc-firmware/src/scfw_export_{{#var:SCFW_SOC}}
  $ export TOOLS=/opt
  $ export TOOLS=/opt
{{#ifeq: {{#var:SCFW_SOC}} | mx8qx_b0 |
{{#ifeq: {{#var:SCFW_SOC}} | mx8qx_b0 |

Revision as of 14:43, 24 February 2020

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

git clone https://github.com/varigit/imx-sc-firmware.git -b 1.2.2

Build the SCFW image

cd imx-sc-firmware/src/scfw_export_mx8qx_b0
$ 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