Building SCFW for Colibri iMX8X and Torizon

Dear Community,

starting from the article “Build Custom i.MX 8/8X System Controller Firmware (SCFW)”, I am working to build SCFW for Colibri iMX8X to get control some of the SCU/SCFW features. The procedure goes smoothly up to the actual build step, where I am getting this error:

~/build-scfw/packages/imx-scfw-porting-kit-1.5.1/src/scfw_export_mx8qx_b0$ make clean;make SOC=MX8QX B=colibri DL=2 R=b0 U=0 V=0 qx
make: *** No rule to make target 'build_mx8qx_b0/drivers/pmic/fsl_pmic.o', needed by 'build_mx8qx_b0/scfw_tcm.elf'.  Stop.

In detail, that dependency seems due to this sub-Makefile below. Do you have idea of why it is broken?

~/build-scfw/packages/imx-scfw-porting-kit-1.5.1/src/scfw_export_mx8qx_b0$ grep -r fsl_pmic.o .
./platform/drivers/pmic/Makefile:OBJS += $(OUT)/drivers/pmic/fsl_pmic.o

According to release matrix and porting documentation, I am using

  • SCFW firmware: based on imx-scfw-porting-kit 1.5.1 (imx-scfw-porting-kit-1.5.1.tar.gz)
  • ARM GCC toolchain 8-2018-q4-major 12-20-2018 (gcc-arm-none-eabi-8-2018-q4-major-linux.tar.bz2)
  • Toradex i.MX-System-Controller-Firmware.git commit bad4eef87700c1834f8510bdf72bd18826b87cd7

Of course, I am ready and willing to run commands or checks you can think are useful to troubleshoot the issue. Thank you in advance for the help and the suggestions.

Best regards,

ldvp

Greetings @ldvp,

There’s a bit of additional information for building SCFW releases older than the latest. As per the table here: https://developer.toradex.com/knowledge-base/build-u-boot-and-linux-kernel-from-source-code#tab-imx-88x

You need match the git commit of our “i.MX-System-Controller-Firmware” repository to the specific commit for a release. So for 5.1.0 of our BSP you want to checkout commit hash “1f184f1”. You’ll want to do this right after you git clone and before you copy.

Best Regards,
Jeremias

Hi @jeremias.tx, thanks for the fast reply! Worked like a charm.

You’re welcome!