Yocto Build SCFW: Difference between revisions

From Variscite Wiki
No edit summary
No edit summary
Line 10: Line 10:
= Download the SCFW source code =
= Download the SCFW source code =


  git clone {{#var:SCFW_GIT}} -b {{#var:SCFW_BRANCH}}
  $ git clone {{#var:SCFW_GIT}} -b {{#var:SCFW_BRANCH}}


= Build the SCFW image =
= Build the SCFW image =
  cd imx-sc-firmware/src/scfw_export_{{#var:SCFW_SOC}}
  $ 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:46, 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