Hi
I want to compile an SCFW bin file myself, and then use the imx_mkimage tool to create a bootable image to execute on i.mx8dxl evk:
(I haven't changed any code, just want to confirm if the compilation method is correct)
I downloaded imx-scfw-porting-kit-1.17.0.tar.gz
Compiled in scfw_export_mx8dxl_a0, the log is as follows
$ sudo make dxl R=A0
Compiling platform/drivers/pmic/fsl_pmic.c
Compiling platform/drivers/pmic/pf8100/fsl_pf8100.c
Compiling platform/board/mx8dxl_evk/board.c
Compiling platform/board/board_common.c
Compiling platform/board/drivers/pca6416a/pca6416a.c
Assembling platform/board/board.S
Compiling platform/svc/irq/svc.c
Compiling platform/svc/misc/svc.c
Compiling platform/svc/pad/svc.c
Compiling platform/svc/pm/svc.c
Compiling platform/svc/rm/svc.c
Compiling platform/svc/seco/svc.c
Compiling platform/svc/timer/svc.c
Compiling platform/svc/irq/rpc_srv.c
Compiling platform/svc/misc/rpc_srv.c
Compiling platform/svc/pad/rpc_srv.c
Compiling platform/svc/pm/rpc_srv.c
Compiling platform/svc/rm/rpc_srv.c
Compiling platform/svc/seco/rpc_srv.c
Compiling platform/svc/timer/rpc_srv.c
Compiling platform/svc/irq/rpc_clnt.c
Compiling platform/svc/misc/rpc_clnt.c
Compiling platform/svc/pad/rpc_clnt.c
Compiling platform/svc/pm/rpc_clnt.c
Compiling platform/svc/rm/rpc_clnt.c
Compiling platform/svc/seco/rpc_clnt.c
Compiling platform/svc/timer/rpc_clnt.c
Linking build_mx8dxl_a0/scfw_tcm.elf ....
Objcopy build_mx8dxl_a0/scfw_tcm.bin ....
done.
In the build_mx8dxl_a0 directory, scfw_tcm.bin(Size is 152768Byte) was generated.
Then, I used the imx_mkimage tool to generate the boot image with the following bin files:
・scfw_tcm.bin
・mx8dxlb0-ahab-container.img (※ confirmed no issues)
・u-boot.bin (※ confirmed no issues)
However, I found that this image does not run on the i.mx8dxl evk.
I would like to ask if my method of compiling SCFW is correct?
Hello,
Your steps are correct for the SCFW, while for the imx-boot image I see that you are missing bl31.bin (imx-atf)
Please double check that you have all images needed to create the imx-boot image.
Best regards/Saludos,
Aldo.
Hello,
Even if not used bl31 is needed to create a bootable image for the i.MX8DXL as it is part of the boot sequence, regarding having precompiled SCFW binaries we do not provide it, but you may use any of our pre-built imx-boot images for the i.MX8DXL MEK board.
Best regards/Saludos,
Aldo.