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

Because you are poiting to use snapshot and yours repos set are pointing to release 21.02-SNAPSHOT which is wrong.

Update it to:

src/gz openwrt_core https://downloads.openwrt.org/snapshots/targets/mediatek/filogic/packages
src/gz openwrt_base https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/base
src/gz openwrt_luci https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/luci
src/gz openwrt_packages https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/packages
src/gz openwrt_routing https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/routing
src/gz openwrt_telephony https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/telephony

if you are using snapshot release (from e.g. https://firmware-selector.openwrt.org/ )

1 Like

You need to flash your system to use official Openwrt to use the repos, not Banana Openwrt. Do not mix system and repos, due Banana system is in totally different version and it might do some troubles. If you donā€™t want to change systen, build your own with included packages.

1 Like

I am a gigantic idiot. I am using two different project folders and got them mixed up and accidentally flashed the ancient Bananapi image again instead of the official current day OpenWrt snapshot. I can confirm that with the official OpenWrt snapshot the package management is working. I am gonna delete the above post. Sorry for the confusion and for wasting your time!

Hi, going off on this post.

In the official OpenWRT snapshot page, I see an SD card image, but how could I copy that image onto the EMMC? Sorry if it sounds like a dumb question, I am still new here.

Basicly it is same as on BPI-R3 except on r4 there are only 2 boot switches

Maybe daniel posted a manual here or on openwrt forum,but have not found it on quick look

I found this answer Daniel gave me for that question: BPI-R4 building with AsiaRF 7916 - Need help - #17 by dangowrt