Hi,
To process by step and not generate full break I wish just use constructor kernel for a device, I have source of the constructor kernel with some binary (.ko). Then how do this? (I had already replaced RO squashfs contructor by OpenWRT squashfs)
The uboot require tar uploading containing RO part, kernel.
The constructor kernel/uboot of the device boot rootfs as RO, and mount after some part as RW. I wish the kernel mount as overlayfs.
There is no easy (or 'supported') way to do this, the buildsystem is designed around the notion of applying multiple layers of patches and to have dependency resolution into the Kconfig symbols. This means you're pretty much on your own.
The sensible solution to this would be to identify and split out the necessary patches on top of OpenWrt's normal kernel (in the sense of a new (sub-)target(?)), another would be to use the facilities around EXTERNAL_KERNEL_TREE
, but that's here-are-dragons-territory).
1 Like
Then other way is patch the OpenWRT kernel, but this new kernel will use overlayFS? how it will choose the part RO and RW?