This is a cache of https://discuss.96boards.org/t/prepare-kernel-snap-for-dragonboard410c/1107. It is a snapshot of the page at 2024-10-31T04:51:34.894+0000.
Prepare Kernel-snap for dragonboard410c - DragonBoard410c - 96Boards Forum

Prepare Kernel-snap for dragonboard410c

Hello,
I am following the steps as mentioned in the below link:
http://blog.sergiusens.org/posts/Snapcrafting-a-kernel/

While preparing kernel-snap using command “sudo snapcraft --target-arch arm64”
It shows error:
Command ‘[’/bin/sh’, ‘/tmp/tmpz7dy8dq9’, ‘make’, ‘-j4’, ‘ARCH=arm64’, ‘CROSS_COMPILE=aarch64-linux-gnu-’, ‘Image’, ‘modules’, ‘qcom/apq8016-sbc.dtb’, ‘qcom/msm8916-mtp.dtb’]’ returned non-zero exit status 2

After cloning, At compiling stage it gives the error as listed below:

./arch/arm64/boot/dts/include/dt-bindings/input/input.h:12:31: fatal error: linux-event-codes.h: No such file or directory
compilation terminated.
scripts/Makefile.lib:293: recipe for target ‘arch/arm64/boot/dts/qcom/apq8016-sbc.dtb’ failed
make[1]: *** [arch/arm64/boot/dts/qcom/apq8016-sbc.dtb] Error 1
arch/arm64/Makefile:94: recipe for target ‘qcom/apq8016-sbc.dtb’ failed
make: *** [qcom/apq8016-sbc.dtb] Error 2

Anyone faced the same issue?