I have a tiny device with limited flash memory (WLR 755 / WN577A2-C). I need to install wireguard, openvpn and vpn-policy-routing, openssh-sftp-server (and for conveniance luci). Therefore I need to remove the ppp package as I don't use the router directly with an ISP connection but behind an ISP-router.
I read that I need to compile the build myself. I used the quickstart-build-images guide. I tried to compile with the following command.:
The resulting bin does not include the ppp package, but not the enforced ones. Trying to install the missing packages generates an error with kernel mismatch:
pkg_hash_fetch_best_installation_candidate: Packages for kmod-wireguard found, but incompatible with the architectures configured
* opkg_install_cmd: Cannot install package kmod-wireguard.
* satisfy_dependencies_for: Cannot satisfy the following dependencies for wireguard-tools:
* kernel (= 5.4.110-1-9401209e0805a74743a4bd680f6767f8)
The image builder pulls the packages from the online package repositories, such a hash error usually indicates your image builder is older than the packages it's grabbing. Try again with a freshly downloaded image builder.
I'm not sure why you are pulling in the git tree if all you are doing is repackaging the images (not building them). The image builder is sufficient for that. You can find the image builder tarballs readymade at the bottom of a target list, e.g. scroll to the bottom for ath79 here:
I managed to use makeconfig and go through all option to select the needed packages. Then it works.
It's just unclear to me, why the command line does not work.
Puzzling as well: If I include the additional packages the total build leaves more free flash space than installing the same packages on top of the standard snapshot build. But I did not check the list of all packages of both options.