DavidJS Posted April 4, 2022 Posted April 4, 2022 Yes, this is another rookie question: if I only modify the dts file of the kernel or a certain part of the driver code, I run ./compile.sh, need to wait a long time for the compilation process of uboot and various libraries. How can I only compile the kernel part? I see there is a compile option: KERNEL_ONLY, is this possible? How do I need to update the kenel part after compiling?
Werner Posted April 4, 2022 Posted April 4, 2022 If you use the menu to choose to build packages only it is the same as using KERNEL_ONLY. This will build kernel image, headers, dtb and uboot packages but not a whole image. Use these packages on your board and install them via dpkg.
DavidJS Posted April 5, 2022 Author Posted April 5, 2022 @Werner, thank you . So I can config KERNEL_ONLY to be yes, and use dpkg to install the .debs.
Werner Posted April 5, 2022 Posted April 5, 2022 Yes. Keep in mind that user built images/packages are unsupported. So if you run into trouble like unexpected behavior after installation or inability to boot you are on your own. Create proper backups before tinkering.
ning Posted April 5, 2022 Posted April 5, 2022 if your board is running armbian, and you want to rebuild kernel, I suggest to build kernel natively.
ning Posted April 5, 2022 Posted April 5, 2022 here is handbook https://kernel-team.pages.debian.net/kernel-handbook/ you need to patch debian kernel before build.
Recommended Posts