Why? (Really, hear me out.)
killemov opened this issue · 3 comments
I currently run Bullseye with a Buster kernel on ye olde QNAP TS119. And after having a kernel clusterf*ck of my own design (kernel in flash older than kernel on disk) I started to wonder if having the kernel image in flash is absolutely necessary.
The kernel is expected to keep growing in size and eventually it won't fit in the resized mtdblock anymore anyway. I also had the experience in the past that (unchanged) images were flashed waaay to often. (I had it triggered when simply doing a minor upgrade of Python 2.x.) The kernel in flash is also not self-contained like the QNAP firmware itself. (At least the old version as I only used it for a short period many years ago.) It still needs the kernel modules on disk. Meanwhile the /boot area appears to be used only for staging when building new flash files.
So why not go the way of the Odroid and flash Petitboot instead of a patched kernel? (mkimage and injecting dtb) Looking at some image sizes the total is always less than 9M. That is for an arm64 Odroid HC4, a stripped armel build is expected to be way smaller.
And even if you could flash a Bullseye, or larger, kernel or go with Petitboot instead ... Is it worth it in terms of performance and security?
Positive feedback but ...
And even if you could flash a Bullseye, or larger, kernel or go with Petitboot instead ... Is it worth it in terms of performance and security?