Re: What replaces the 4.19.y scripts/mkknlimg in 5.16-rc6-rt12?

From: Randy Dunlap
Date: Tue Jan 18 2022 - 22:37:03 EST


Hi Gene,

On 1/16/22 18:56, gene heskett wrote:
> Greetings all;
>
> That script/mkknlimg is missing in v5.16-rc6-rt2. What replaces it?
>
> Or, can this script be copied to a v5.16-rc6-rt12 build and used?
>
> Thanks a bunch, I'm trying to build a v5.16-rc6-rt12 on a rpi4 for the
> rpi4. The build itself was flawless.
>
> Cheers, Gene Heskett.

Mainline 4.19.* does not have a file called scripts/mkknlimg.
Since I am not familiar with that script, I used some internet search
engine and found several sites that might help you. Good luck. :)

https://autostatic.com/tag/mkknlimg/
https://github.com/raspberrypi/linux/issues/3249

Bottom line is that it is no longer needed. The second URL above says:

It's not at all clear what would be going wrong in your case. Our standard kernel build instructions (https://www.raspberrypi.org/documentation/linux/kernel/building.md) just copy the zImage:

sudo cp arch/arm/boot/zImage /boot/$KERNEL.img

and

sudo cp arch/arm/boot/zImage mnt/fat32/$KERNEL.img


cheers.
--
~Randy