I am trying to build an image for a device that space-wise can only use a "tiny" kernel but I need swap support (it should be noted in the extroot wiki that tiny kernels do not support swap, I'll see if may do that - if not, please direct me to relevant person).
Imagebuilder is therefore not enough.
So I went with the dev-guide and built an image myself.
"WARNING: No feed for package 'jansson' found" and similar on the go, as I checked out the v19.06.7 tag and did not use master, adapted feeds.conf.default to read "src-git packages https://git.openwrt.org/feed/packages.git;openwrt-19.07" for example, hope that's right, also did not see this in the wiki)
It completes as it should, no visible errors. Swap works as well, so I achieved what I wanted initially.
However there are files missing from the build, e.g.
Fstools is untouched (so default=y), and I also see the file in
In the final image, it is not contained, however, at least I can not find it on the extroot-booted device.
A few questions:
- Can I only build the kernel for my device
- and not build all packages for all devices? Kernel might probably not work then, I know, but just adding one option should be OK from my desktop kernel-compiling experience)?
Building takes ages and I feel I don't need most of the stuff as I can use ready-made packages anyway.
- Can I stop the build system from rebuilding all packages If I only add a package? This also seems unnecessary to me.
- Can I just trigger the squashfs building step (in debug mode) so I can see why the files do not get added?
I have a full
make V=s build log for searching through, but it has 395M so I don't upload it just yet.
Also info similar to this one seems error free in the log:
install -m0755 /home/tbart/openwrt/git/build_dir/target-mips_24kc_musl/fstools-2020-05-12-84269037/ipkg-install/usr/sbin/block /home/tbart/openwrt/git/build_dir/target-mips_24kc_musl/fstools-2020-05-12-84269037/ipkg-mips_24kc/block-mount/sbin/
I am a little clueless as to how this can be debugged further.
Thanks in advance for any help!