./mkimage.sh fails on copy kernel

Hi. I am stuck on this and I have been wrecking my head against it for days.

Basically, I have run all the steps outlined in the “Edge build Android10” guide (https://docs.khadas.com/edge/BuildAndroid.html).

I am able to do a full ./.make -j6 successfully, but the issue is with the ./mkimage.sh script. It will not find teh kernel image…

The console output is the following:

~/KEdge $ ./mkimage.sh
TARGET_PRODUCT=aosp_arm
TARGET_BASE_PARAMETER_IMAGE==
HIGH_RELIABLE_RECOVERY_OTA=
BOARD_AVB_ENABLE=true
system filesystem is ext4
kernel image not fount![/home/aosp/KEdge/out/target/product/generic/kernel]
copy kernel from TARGET_PREBUILT_KERNEL[] (y/n) n to exit?y
cp: missing destination file operand after '/home/aosp/KEdge/out/target/product/generic/kernel'
Try 'cp --help' for more information.

Please, if anyone knows how to get past this section it would be of immense help.
Thank you kindly.

Lorenzo

source build/envsetup.sh
lunch rk3399_Android10-userdebug
make installclean
make -j6
./mkimage.sh
1 Like

@goenjoy yes, only just saw it now. I forgot to do lunch

It would be useful to add into the docs that lunch needs to be done between make -jN and ./mkimage.sh… that was what was catching me out!

Thank you very much anyway.