I am having issues building a kernel image using the rockchip-bsp repository and instructions.
The end goal is to add in the ENC28J60 driver for the rk3566-radxa-cm3-rasp4io def config, but I am starting out just building by the exact instructions.
After cloning the repository, and doing a successful build of the u-boot image using build/mk-uboot.sh, I run the script to build the kernel and get this output with a failure:
Building kernel for rk3568-rock-3a board! 4.19.193 scripts/kconfig/conf --syncconfig Kconfig CALL scripts/checksyscalls.sh CHK include/generated/compile.h GZIP kernel/config_data.gz MKIMAGE arch/arm64/boot/dts/rockchip/overlay/rockchip-fixup.scr /bin/sh: 1: mkimage: not found scripts/Makefile.lib:330: recipe for target 'arch/arm64/boot/dts/rockchip/overlay/rockchip-fixup.scr' failed make: *** [arch/arm64/boot/dts/rockchip/overlay/rockchip-fixup.scr] Error 127 scripts/Makefile.build:637: recipe for target 'arch/arm64/boot/dts/rockchip/overlay' failed make: *** [arch/arm64/boot/dts/rockchip/overlay] Error 2 scripts/Makefile.build:637: recipe for target 'arch/arm64/boot/dts/rockchip' failed make: *** [arch/arm64/boot/dts/rockchip] Error 2 arch/arm64/Makefile:150: recipe for target 'dtbs' failed make: *** [dtbs] Error 2 make: *** Waiting for unfinished jobs.... MAKE KERNEL IMAGE FAILED.
My understanding is that the mkimage is only for the u-boot image. Though the error is specifically calling out rockchip-fixup.scr as an ERROR 127, which I can confirm does exist, and is in the correct directory.
I am finding it impossible to move on to the next step of menuconfig and adding in the ENC28J60 if I cannot get the kernel to build with no modifications whatsoever…
Any help is appreciated!