Difference between revisions of "IoTGateway/BSP/SCU"

From ESS-WIKI
Jump to: navigation, search
 
(5 intermediate revisions by the same user not shown)
Line 23: Line 23:
 
Add the .cfg file to dcd directory from the DDR tool. [https://community.nxp.com/docs/DOC-346060 https://community.nxp.com/docs/DOC-346060]
 
Add the .cfg file to dcd directory from the DDR tool. [https://community.nxp.com/docs/DOC-346060 https://community.nxp.com/docs/DOC-346060]
  
For example: packages/imx-scfw-porting-kit/src/scfw_export_mx8qm_b0/platform/board/mx8qm_val/dcd/ROM7720_imx8qm_dcd_1.6GHz.cfg
+
*For the ROM-7720:
 +
 
 +
packages/imx-scfw-porting-kit/src/scfw_export_mx8qm_b0/platform/board/mx8qm_val/dcd/ROM7720_imx8qm_dcd_1.6GHz.cfg
 +
 
 +
*For the ROM-5620:
 +
 
 +
packages/imx-scfw-porting-kit/src/scfw_export_mx8qx_b0/platform/board/mx8qx_mek/dcd/ROM5620_MX8QXP_B0_LPDDR4_2GB_RPA_1.2GHz_v12.cfg
  
 
= 4.Build SCFW Porting Kit =
 
= 4.Build SCFW Porting Kit =
Line 33: Line 39:
 
$ make clean
 
$ make clean
  
 
+
(1) Build the SCFW with debug message:
 
 
Build the SCFW with debug message:
 
  
 
$ make qm B=val D=1 M=1 R=B0 DDR_CON=ROM7720_imx8qm_dcd_1.6GHz
 
$ make qm B=val D=1 M=1 R=B0 DDR_CON=ROM7720_imx8qm_dcd_1.6GHz
  
 
+
(2) Build the SCFW with no debug message:
 
 
Build the SCFW with no debug message:
 
  
 
$ make qm B=val D=0 M=0 R=B0 DDR_CON=ROM7720_imx8qm_dcd_1.6GHz
 
$ make qm B=val D=0 M=0 R=B0 DDR_CON=ROM7720_imx8qm_dcd_1.6GHz
 
 
  
 
*For the ROM-5620:
 
*For the ROM-5620:
Line 53: Line 53:
 
$ make clean
 
$ make clean
  
 
+
(1) Build the SCFW with debug message:
 
 
Build the SCFW with debug message:
 
  
 
$ make qx B=mek D=1 M=1 R=B0 DDR_CON=ROM5620_MX8QXP_B0_LPDDR4_2GB_RPA_1.2GHz_v12
 
$ make qx B=mek D=1 M=1 R=B0 DDR_CON=ROM5620_MX8QXP_B0_LPDDR4_2GB_RPA_1.2GHz_v12
  
 
+
(2) Build the SCFW with no debug message:
 
 
Build the SCFW with no debug message:
 
  
 
$ make qx B=mek D=0 M=0 R=B0 DDR_CON=ROM5620_MX8QXP_B0_LPDDR4_2GB_RPA_1.2GHz_v12
 
$ make qx B=mek D=0 M=0 R=B0 DDR_CON=ROM5620_MX8QXP_B0_LPDDR4_2GB_RPA_1.2GHz_v12
  
 +
= 5.SCFW File =
  
 
+
The scfw_tcm.bin is the SCFW.
the output scfw_tcm.bin is the SCFW.
 

Latest revision as of 11:18, 15 June 2020

Set up imx8 SCFW Porting Kit​ environment

1.Download the SCFW Porting Kit​

Download the SCFW Porting Kit​ according to the Linux Release​ from the following website

https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applications-processors:IMXLINUX

2.Setup the cross compiler

Download and run the installer from launchpad.net/gcc-arm-embedded. https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads

1.You can download the latest version cross-compiler gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2 from the site and decompression it to get the directory gcc-arm-none-eabi-9-2019-q4-major.

2.Create a new system environment variable and name it TOOLS.

The value of this variable should point to the Arm GCC Embedded tool chain installation path. For this example, the path is:

$ export TOOLS=/work/platforms/tmp/gcc-arm-none-eabi-9-2019-q4-major

3.Add DDR cfg file

Add the .cfg file to dcd directory from the DDR tool. https://community.nxp.com/docs/DOC-346060

  • For the ROM-7720:

packages/imx-scfw-porting-kit/src/scfw_export_mx8qm_b0/platform/board/mx8qm_val/dcd/ROM7720_imx8qm_dcd_1.6GHz.cfg

  • For the ROM-5620:

packages/imx-scfw-porting-kit/src/scfw_export_mx8qx_b0/platform/board/mx8qx_mek/dcd/ROM5620_MX8QXP_B0_LPDDR4_2GB_RPA_1.2GHz_v12.cfg

4.Build SCFW Porting Kit

  • For the ROM-7720:

$ make clean-qm

$ make clean

(1) Build the SCFW with debug message:

$ make qm B=val D=1 M=1 R=B0 DDR_CON=ROM7720_imx8qm_dcd_1.6GHz

(2) Build the SCFW with no debug message:

$ make qm B=val D=0 M=0 R=B0 DDR_CON=ROM7720_imx8qm_dcd_1.6GHz

  • For the ROM-5620:

$ make clean-qx

$ make clean

(1) Build the SCFW with debug message:

$ make qx B=mek D=1 M=1 R=B0 DDR_CON=ROM5620_MX8QXP_B0_LPDDR4_2GB_RPA_1.2GHz_v12

(2) Build the SCFW with no debug message:

$ make qx B=mek D=0 M=0 R=B0 DDR_CON=ROM5620_MX8QXP_B0_LPDDR4_2GB_RPA_1.2GHz_v12

5.SCFW File

The scfw_tcm.bin is the SCFW.