ophub / amlogic-s9xxx-openwrt

Support for OpenWrt in Amlogic, Rockchip and Allwinner boxes. Support a311d, s922x, s905x3, s905x2, s912, s905d, s905x, s905w, s905, s905l, rk3588, rk3568, rk3399, rk3328, h6, etc.
GNU General Public License v2.0
1.7k stars 1.5k forks source link

Install Wireguard #570

Closed Adam1986 closed 2 months ago

Adam1986 commented 2 months ago

Device Information | 设备信息

OpenWrt Version | 系统版本

Have just discovered this wonderful project, used the above image on my X96 Air but I am struggling to install wireguard:

root@OpenWrt:~# opkg install wireguard-tools
Installing wireguard-tools (1.0.20210914-r3) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/aarch64_generic/base/wireguard-tools_1.0.20210914-r3_aarch64_generic.ipk
Collected errors:
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.1.82~4f759fb637b59dfd021404e96ce9f182-r1) for kmod-crypto-lib-chacha20
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-crypto-lib-chacha20 found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.1.82~4f759fb637b59dfd021404e96ce9f182-r1) for kmod-crypto-lib-poly1305
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-crypto-lib-poly1305 found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.1.82~4f759fb637b59dfd021404e96ce9f182-r1) for kmod-crypto-lib-chacha20poly1305
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-crypto-lib-chacha20poly1305 found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.1.82~4f759fb637b59dfd021404e96ce9f182-r1) for kmod-crypto-kpp
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-crypto-kpp found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.1.82~4f759fb637b59dfd021404e96ce9f182-r1) for kmod-crypto-lib-curve25519
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-crypto-lib-curve25519 found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.1.82~4f759fb637b59dfd021404e96ce9f182-r1) for kmod-udptunnel4
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-udptunnel4 found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.1.82~4f759fb637b59dfd021404e96ce9f182-r1) for kmod-udptunnel6
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-udptunnel6 found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.1.82~4f759fb637b59dfd021404e96ce9f182-r1) for kmod-wireguard
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-wireguard found, but incompatible with the architectures configured
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for wireguard-tools:
 *      kernel (= 6.1.82~4f759fb637b59dfd021404e96ce9f182-r1)
 * opkg_install_cmd: Cannot install package wireguard-tools.

Is it safe to install using --force-depends?

Thanks

Adam1986 commented 2 months ago

No feedback?

DynamicLoader commented 2 months ago

The same, caused by the snapshot kernel used. Currently the kmods are not provided by official, so the alternative way is to re-compile whole image, either full build or just use the image builder. It's suggested to use 5.15.x kernel which has been tested today to work with official opkg source (in my case).

:-D

Adam1986 commented 2 months ago

The same, caused by the snapshot kernel used. Currently the kmods are not provided by official, so the alternative way is to re-compile whole image, either full build or just use the image builder. It's suggested to use 5.15.x kernel which has been tested today to work with official opkg source (in my case).

:-D

How do you go about doing this then? thanks.

DynamicLoader commented 2 months ago

re-compile whole image, either full build or just use the image builder

The full instruction is just in the document, so please refer to it.

Or, you can jsut downgrade it back to a version that uses 5.15.x kernel, which feeds are maintained by official and compatible with the kernel here.

Adam1986 commented 2 months ago

I did try release named "openwrt_official_amlogic_s905x3_k5.15.153_2024.04.08.img.gz" but this was just coming up with a similar error when trying to install wireguard?