Hello,
as written in the title, I am trying to build a image for i.MX8M Mini that is a part of HummingBoard Pulse.
I have followed the instructions that are written here as well as here (basically the same thing).
I am building the image with bitbake imx-image-multimedia
command.
The problem that have that the build stops due to an compilation error in linux kernel.
The log file can be seen below:
DEBUG: Executing shell function do_compile
NOTE: make -j 32 HOSTCC=gcc -isystem/mnt/yocto_data_ssd/mini/yocto_project/build_fsl-imx-xwayland/tmp/work/imx8mmsolidrun-poky-linux/linux-imx/4.19.35-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/mnt/yocto_data_ssd/mini/yocto_project/build_fsl-imx-xwayland/tmp/work/imx8mmsolidrun-poky-linux/linux-imx/4.19.35-r0/recipe-sysroot-native/usr/lib -L/mnt/yocto_data_ssd/mini/yocto_project/build_fsl-imx-xwayland/tmp/work/imx8mmsolidrun-poky-linux/linux-imx/4.19.35-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/mnt/yocto_data_ssd/mini/yocto_project/build_fsl-imx-xwayland/tmp/work/imx8mmsolidrun-poky-linux/linux-imx/4.19.35-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/mnt/yocto_data_ssd/mini/yocto_project/build_fsl-imx-xwayland/tmp/work/imx8mmsolidrun-poky-linux/linux-imx/4.19.35-r0/recipe-sysroot-native/lib -Wl,-rpath,/mnt/yocto_data_ssd/mini/yocto_project/build_fsl-imx-xwayland/tmp/work/imx8mmsolidrun-poky-linux/linux-imx/4.19.35-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/mnt/yocto_data_ssd/mini/yocto_project/build_fsl-imx-xwayland/tmp/work/imx8mmsolidrun-poky-linux/linux-imx/4.19.35-r0/recipe-sysroot-native/lib -Wl,-O1 HOSTCPP=gcc -E Image CC=aarch64-poky-linux-gcc -fuse-ld=bfd -fmacro-prefix-map=/mnt/yocto_data_ssd/mini/yocto_project/build_fsl-imx-xwayland/tmp/work/imx8mmsolidrun-poky-linux/linux-imx/4.19.35-r0=/usr/src/debug/linux-imx/4.19.35-r0 -fdebug-prefix-map=/mnt/yocto_data_ssd/mini/yocto_project/build_fsl-imx-xwayland/tmp/work/imx8mmsolidrun-poky-linux/linux-imx/4.19.35-r0=/usr/src/debug/linux-imx/4.19.35-r0 -fdebug-prefix-map=/mnt/yocto_data_ssd/mini/yocto_project/build_fsl-imx-xwayland/tmp/work/imx8mmsolidrun-poky-linux/linux-imx/4.19.35-r0/recipe-sysroot= -fdebug-prefix-map=/mnt/yocto_data_ssd/mini/yocto_project/build_fsl-imx-xwayland/tmp/work/imx8mmsolidrun-poky-linux/linux-imx/4.19.35-r0/recipe-sysroot-native= -fdebug-prefix-map=/mnt/yocto_data_ssd/mini/yocto_project/build_fsl-imx-xwayland/tmp/work-shared/imx8mmsolidrun/kernel-source=/usr/src/kernel --sysroot=/mnt/yocto_data_ssd/mini/yocto_project/build_fsl-imx-xwayland/tmp/work/imx8mmsolidrun-poky-linux/linux-imx/4.19.35-r0/recipe-sysroot LD=aarch64-poky-linux-ld.bfd --sysroot=/mnt/yocto_data_ssd/mini/yocto_project/build_fsl-imx-xwayland/tmp/work/imx8mmsolidrun-poky-linux/linux-imx/4.19.35-r0/recipe-sysroot
GEN ./Makefile
Using /mnt/yocto_data_ssd/mini/yocto_project/build_fsl-imx-xwayland/tmp/work-shared/imx8mmsolidrun/kernel-source as source for kernel
CALL /mnt/yocto_data_ssd/mini/yocto_project/build_fsl-imx-xwayland/tmp/work-shared/imx8mmsolidrun/kernel-source/scripts/checksyscalls.sh
CHK include/generated/compile.h
make[3]: *** No rule to make target '/lib/firmware//imx/sdma/sdma-imx7d.bin', needed by 'firmware//imx/sdma/sdma-imx7d.bin.gen.o'. Stop.
/mnt/yocto_data_ssd/mini/yocto_project/build_fsl-imx-xwayland/tmp/work-shared/imx8mmsolidrun/kernel-source/Makefile:1052: recipe for target 'firmware' failed
make[2]: *** [firmware] Error 2
make[2]: *** Waiting for unfinished jobs....
CC drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_device.o
CC drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_linux.o
CC drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_math.o
CC drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.o
CC drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_debugfs.o
CC drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_allocator.o
CC drivers/mxc/gpu-viv/hal/os/linux/kernel/allocator/default/gc_hal_kernel_allocator_user_memory.o
CC drivers/mxc/gpu-viv/hal/os/linux/kernel/allocator/default/gc_hal_kernel_allocator_dma.o
CC drivers/mxc/gpu-viv/hal/os/linux/kernel/allocator/default/gc_hal_kernel_allocator_gfp.o
CC drivers/mxc/gpu-viv/hal/os/linux/kernel/allocator/default/gc_hal_kernel_allocator_reserved_mem.o
CC drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.o
CC drivers/mxc/gpu-viv/hal/os/linux/kernel/platform/freescale/gc_hal_kernel_platform_imx.o
CC drivers/mxc/gpu-viv/hal/os/linux/kernel/allocator/default/gc_hal_kernel_allocator_dmabuf.o
CC drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_iommu.o
CC drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_drm.o
CC drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel.o
CC drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel_command.o
CC drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel_debug.o
CC drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel_db.o
CC drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel_event.o
CC drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel_heap.o
CC drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel_mmu.o
CC drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel_video_memory.o
CC drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel_power.o
CC drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel_security_v1.o
CC drivers/mxc/gpu-viv/hal/kernel/arch/gc_hal_kernel_context.o
CC drivers/mxc/gpu-viv/hal/kernel/arch/gc_hal_kernel_hardware.o
CC drivers/mxc/gpu-viv/hal/kernel/arch/gc_hal_kernel_hardware_async_fe.o
CC drivers/mxc/gpu-viv/hal/kernel/arch/gc_hal_kernel_hardware_mc_fe.o
CC drivers/mxc/gpu-viv/hal/kernel/arch/gc_hal_kernel_hardware_waitlink_fe.o
CC drivers/mxc/gpu-viv/hal/kernel/arch/gc_hal_kernel_recorder.o
CC drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_sync.o
CC drivers/mxc/gpu-viv/hal/os/linux/kernel/allocator/freescale/gc_hal_kernel_allocator_cma.o
CC drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_security_channel_emulator.o
CC drivers/mxc/gpu-viv/hal/security_v1/gc_hal_ta.o
CC drivers/mxc/gpu-viv/hal/security_v1/gc_hal_ta_mmu.o
CC drivers/mxc/gpu-viv/hal/security_v1/gc_hal_ta_hardware.o
CC drivers/mxc/gpu-viv/hal/security_v1/os/emulator/gc_hal_ta_emulator.o
AR drivers/mxc/gpu-viv/built-in.a
AR drivers/mxc/built-in.a
AR drivers/built-in.a
Makefile:146: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
Makefile:24: recipe for target '__sub-make' failed
make: *** [__sub-make] Error 2
ERROR: oe_runmake failed
WARNING: /mnt/yocto_data_ssd/mini/yocto_project/build_fsl-imx-xwayland/tmp/work/imx8mmsolidrun-poky-linux/linux-imx/4.19.35-r0/temp/run.do_compile.334:1 exit 1 from 'exit 1'
ERROR: Function failed: do_compile (log file is located at /mnt/yocto_data_ssd/mini/yocto_project/build_fsl-imx-xwayland/tmp/work/imx8mmsolidrun-poky-linux/linux-imx/4.19.35-r0/temp/log.do_compile.334)
The main line that is problem is this one:
make[3]: *** No rule to make target '/lib/firmware//imx/sdma/sdma-imx7d.bin', needed by 'firmware//imx/sdma/sdma-imx7d.bin.gen.o'. Stop.
I am not sure what a imx7 related files are doing here, are they needed for i.MX8M Mini images?
Can somebody help?
Best regards,
Marko