Howto install OpenWRT packages on BPI-R4

When I try to fetch packages with the SD Release image from the official wiki I get the error:

Downloading https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/aarch64_cortex-a53/base/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/aarch64_cortex-a53/base/Packages.gz

Apperently 21.02-SNAPSHOT does not exist.

How do I install packages such as luci-app-sqm and its dependencies?

Try daniels fork…openwrt 21.02 (and especially snapshots) is deprecated.

Daniel is about to merge his changes to official openwrt,then actual snapshots will become available.

1 Like

I just tried openwrt-mediatek-filogic-bananapi_bpi-r4-sdcard.img.gz from https://dl.pi0.io/openwrt/bpi-r4/targets/mediatek/filogic/ which I found linked from the openwrt forum.

and it works for the most part, but some packages can’t be found. E.g. when installing the web GUI (luci) I get:

opkg update
opkg install luci
...
Configuring luci-light.
Configuring luci.
Collected errors:
 * pkg_hash_check_unresolved: cannot find dependency libip4tc2 for firewall
 * pkg_hash_check_unresolved: cannot find dependency libip6tc2 for firewall
 * pkg_hash_check_unresolved: cannot find dependency libiptext0 for firewall
 * pkg_hash_check_unresolved: cannot find dependency libiptext6-0 for firewall
 * pkg_hash_check_unresolved: cannot find dependency libxtables12 for firewall
 * pkg_hash_check_unresolved: cannot find dependency kmod-ipt-core for firewall
 * pkg_hash_check_unresolved: cannot find dependency kmod-ipt-conntrack for firewall
 * pkg_hash_check_unresolved: cannot find dependency kmod-ipt-nat for firewall

and when installing luci-app-sqm I get:

Can we please remove the old, apparently deprecated link to BPI-R4-mtk-bpi-r4-SD-20231030 from the wiki at Banana Pi BPI-R4 - Banana Pi Wiki ? Because a lot of new users will make the same mistake as me and try that one first!

If you think it will work better with Daniel’s fork then I will try to reinstall the thing for the 5th time, but I will wait for official builds, I don’t want to build from source if I can avoid it. I see that there are no images in Releases · dangowrt/openwrt · GitHub

You can maybe use my Repository and target, it is the recent Sources: http://frontend.schmidtie.net/openwrt/

Be aware: In this image the HardwareNAT Offloading is broken, see:

1 Like

You can try to use my version (if you don’t have place to compile): Release Test build for bpi-r4 based on Dango branch - 06.02.2024 · danpawlik/openwrt · GitHub

@kwinz because some of them are related to the kernel and there is no repository available yet in OpenWRT. If you create your custom image, you can just add the content below by adding into .config and run make menuconfig:

CONFIG_PACKAGE_libip4tc=y
CONFIG_PACKAGE_libip6tc=y
CONFIG_PACKAGE_libiptext=y
CONFIG_PACKAGE_libiptext6=y
CONFIG_PACKAGE_libxtables=y
CONFIG_PACKAGE_kmod-ipt-core=y
CONFIG_PACKAGE_kmod-ipt-conntrack=y
CONFIG_PACKAGE_kmod-ipt-nat=y

EDIT: but I think you should not use kmod-ipt-, but kmod-nf-

1 Like