Bananapi BPI-R3: Update OpenWrt to 22.03.3 SNAPSHOT

Something is not quite right with the latest snapshot respectively when installing packages. I installed the latest OpenWrt Snapshot into NOR via " 7. Install bootloader, recovery and production to NOR." from:

https://downloads.openwrt.org/snapshots/targets/mediatek/filogic/

Then I proceeded installing some basic packages for luci interface and USB Support:

opkg update && opkg install luci luci-ssl block-mount e2fsprogs kmod-fs-ext4 kmod-usb-storage kmod-usb2 kmod-usb3

However, after reboot I just get:

F0: 102B 0000
FA: 5100 0000
FA: 5100 0000 [0200]
F9: 103F 0000
F3: 1001 0000 [0200]
F3: 1001 0000
F6: 102C 0000
F5: 1026 0000
00: 1005 0000
FA: 5100 0000
FA: 5100 0000 [0200]
F9: 103F 0000
F3: 1001 0000 [0200]
F3: 1001 0000
F6: 102C 0000
01: 102A 0001
02: 1005 0000
BP: 2000 00C0 [0001]
EC: 0000 0000 [0000]
T0: 0000 00DC [010F]
System halt!


F0: 102B 0000
FA: 5100 0000
FA: 5100 0000 [0200]
F9: 103F 0000
F3: 1001 0000 [0200]
F3: 1001 0000
F6: 102C 0000
F5: 1026 0000
00: 1005 0000
FA: 5100 0000
FA: 5100 0000 [0200]
F9: 103F 0000
F3: 1001 0000 [0200]
F3: 1001 0000
F6: 102C 0000
01: 102A 0001
02: 1005 0000
BP: 2000 00C0 [0001]
EC: 0000 0000 [0000]
T0: 0000 00DC [010F]
System halt!


F0: 102B 0000
FA: 5100 0000
FA: 5100 0000 [0200]
F9: 103F 0000
F3: 1001 0000 [0200]
F3: 1001 0000
F6: 102C 0000
F5: 1026 0000
00: 1005 0000
FA: 5100 0000
FA: 5100 0000 [0200]
F9: 103F 0000
F3: 1001 0000 [0200]
F3: 1001 0000
F6: 102C 0000
01: 102A 0001
02: 1005 0000
BP: 2000 00C0 [0001]
EC: 0000 0000 [0000]
T0: 0000 00DC [010F]
System halt!

Any idea?

Seems this install function does not install the right bl2 to nor

Have you booted the nor before installing the additional packages?

Yes, I booted NOR before installation. I have now, since I familiarized more with the issue around not saved settings and the “overlay” system more (this article helped), started to:

  1. Install on SD
  2. Expand the SD card file system
  3. Boot from SD
  4. Install packages
  5. Restore to NOR

Quite a steep learning curve as I formerly just flashed the OpenWRT firmware via GUI. Despite not being a shell rookie, there are still quite some interesting things to catch up to.

Update That is quite frustrating. Burning the image on the SD card creates many partitions which seems nowhere to be explained. The errors thrown cause more confusion.

root@OpenWrt:/# lsblk -o PATH,SIZE,PARTUUID
PATH               SIZE PARTUUID
/dev/mtdblock0      20M 
/dev/mtdblock1     9.9M 
/dev/mtdblock2    10.5M 
/dev/mtdblock3     512K 
/dev/mtdblock4     512K 
/dev/mtdblock5     256K 
/dev/mtdblock6     256K 
/dev/mmcblk0     238.3G 
/dev/mmcblk0p1       4M 5452574f-2211-4433-5566-778899aabb01
/dev/mmcblk0p2     512K 5452574f-2211-4433-5566-778899aabb02
/dev/mmcblk0p3       2M 5452574f-2211-4433-5566-778899aabb03
/dev/mmcblk0p4       4M 5452574f-2211-4433-5566-778899aabb04
/dev/mmcblk0p5      32M 5452574f-2211-4433-5566-778899aabb05
/dev/mmcblk0p6      20M 5452574f-2211-4433-5566-778899aabb06
/dev/mmcblk0p7     104M 5452574f-2211-4433-5566-778899aabb07
/dev/mtdblock0p1   4.8M 
/dev/mmcblk0p65    4.8M 
/dev/mmcblk0p66   93.9M

root@OpenWrt:/# echo fix | parted -l ---pretend-input-tty
Error: /dev/mtdblock6: unrecognised disk label
Model: Unknown (unknown)                                                  
Disk /dev/mtdblock6: 262kB
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags: 

Error: /dev/mtdblock4: unrecognised disk label
Model: Unknown (unknown)                                                  
Disk /dev/mtdblock4: 524kB
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags: 

Error: The backup GPT table is corrupt, but the primary appears OK, so that will be used.
OK/Cancel? fix                                                            
parted: invalid token: fix
OK/Cancel? Warning: Not all of the space available to /dev/mmcblk0 appears to be used, you can fix the GPT to use all of the space (an extra 499400671 blocks) or continue with the current setting? 
Fix/Ignore? Model: SD SC256 (sd/mmc)                                      
Disk /dev/mmcblk0: 256GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name        Flags
 1      17.4kB  4194kB  4177kB               bl2         hidden, legacy_boot
 2      4194kB  4719kB  524kB                ubootenv    hidden
 3      4719kB  6816kB  2097kB               factory     hidden
 4      6816kB  11.0MB  4194kB               fip         boot, hidden, esp
 5      12.6MB  46.1MB  33.6MB               recovery    boot, hidden, esp
 6      46.1MB  67.1MB  21.0MB               install     boot, hidden, esp
 7      67.1MB  176MB   109MB                production 

I then used this approach to expand the partition named “production” as anything else would cause an overlap but that threw another error.

parted -s /dev/mmcblk0p7 resizepart 2 100%
Error: /dev/mmcblk0p7: unrecognised disk label

Why can’t this as normal as setting up like any other OS via terminal when partitions are created? Suing a USB drive as extroot make this. I start to believe I need a totally different approach burning the image. I currently use balanaEtcher …

Anyone got any thoughts on this?

Your parted command shows a partition name :slight_smile:

bl2 is second stage bootloader after bootrom, ubootenv is for storing environment of uboot,factory is openwrt specific,fip is uboot itself (with bl3x atf),recovery is openwrt specific, install same and production is working system

1 Like

I used the official OpenWRT tutorial that uses the dev-path. Another one for SD cards, the section about ext4 image, doesn’t work or is incomplete but the actual command points to x86. Not to speak about the grub file i cannot locate in case of UUID changes.

Embedded systems (arm,arm64) normally use uboot instead of grub

For resizing rootfs daniel wrote some tutorials i have linked in my wiki

https://wiki.fw-web.de/doku.php?id=en:bpi-r3:start#linux

Thanks @frank-w. What bugs and likely hinders me to succeed is that the partitions on the SD cart seems to have no properly file system and the many partitions are nowhere explained. Though, @VA1DER posted about this:

I get:

resize2fs /dev/mmcblk0p5 
resize2fs 1.47.0 (5-Feb-2023)
resize2fs: Bad magic number in super-block while trying to open /dev/mmcblk0p5
Couldn't find valid filesystem superblock.

Is my approach using balanaEtcher maybe less desirable?

I am going in circles. despite successfully expanding the SD Cards overlay partition:

lsblk 
NAME         MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
mtdblock0     31:0    0 122.5M  0 disk 
mtdblock1     31:1    0     2M  1 disk 
mtdblock2     31:2    0     3M  0 disk 
mtdblock3     31:3    0   512K  1 disk 
mmcblk0      179:0    0 238.3G  0 disk 
├─mmcblk0p1  179:1    0     4M  0 part 
├─mmcblk0p2  179:2    0   512K  0 part 
├─mmcblk0p3  179:3    0     2M  0 part 
├─mmcblk0p4  179:4    0     4M  0 part 
├─mmcblk0p5  179:5    0    32M  0 part 
├─mmcblk0p6  179:6    0    20M  0 part 
├─mmcblk0p7  179:7    0 238.2G  0 part 
├─mmcblk0p65 259:0    0   4.8M  1 part /rom
└─mmcblk0p66 259:1    0 238.2G  0 part /overlay
ubiblock0_1  254:0    0    28M  0 disk

It seems to take no effect when booting from SD Card (all jumpers up).

df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                 5.0M      5.0M         0 100% /rom
tmpfs                   997.9M     64.0K    997.8M   0% /tmp
/dev/mmcblk0p66          91.9M     60.5M     31.4M  66% /overlay
overlayfs:/overlay       91.9M     60.5M     31.4M  66% /
tmpfs                   512.0K         0    512.0K   0% /dev

What could I possibly miss?

The easiest way is to zero-out the existing filesystem in /dev/mmcblk0p66, ie.

dd if=/dev/zero of=/dev/mmcblk0p66 bs=512 count=1024

Then power cycle, the filesystem will be re-created on the next boot in the full size. You could also use resize.f2fs from f2fsck package, but that’s just complicating things imho, unless you already got a lot of data there and don’t want to do a backup.

In that case, you’d have to use it on /dev/mmcblk0p66 as that’s the virtual volume which holds the F2FS filesystem.

1 Like

That is a very interesting trick. Thanks for sharing! I will test it on Sunday afternoon when back from my trip.

Update Albeit an ingenious idea exploiting recovery mechanisms, it seems to not work. I booted into SD Recovery system, checked the the space allocation via lsblk, executed and did a power cycle into SD recovery once more. The partition “mmcblk0p66” is still only 93.9M.

What confused me by using cfdisk was the different partition labels and sizes. I now just said to me f**k it and proceeded by cfdisk /dev/mmcblk0, chose “/dev/mmcblk0p7” and resized to the full remaining capacity. Then checked like lsblk again and “mmcblk0p66” grew to 238.2G.

Booting from the SD and checking the space finally yield the expected results.

root@OpenWrt:/# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                 5.0M      5.0M         0 100% /rom
tmpfs                   997.9M     64.0K    997.8M   0% /tmp
/dev/mmcblk0p66         238.2G      2.6G    235.6G   1% /overlay
overlayfs:/overlay      238.2G      2.6G    235.6G   1% /
tmpfs                   512.0K         0    512.0K   0% /dev

Now I am trying to resolve issues around packages, even simple ones like iptables, which cannot be installed. I really fall over every single stone on my path …

Update 2 Installed packages on the factoy Bana Pi OpenWRT 21.02

1905daemon - 1
8021xd - 1
ated_ext - 2
base-files - 220121.25747-unknown
blkid - 2.36.1-2
block-mount - 2021-01-04-c53b1882-1
blockd - 2021-01-04-c53b1882-1
blockdev - 2.36.1-2
bluez-libs - 5.56-1
bluez-utils - 5.56-1
busybox - 1.33.2-220121.25747
ca-bundle - 20210119-1
ca-certificates - 20210119-1
cgi-io - 2021-09-08-98cef9dd-20
coreutils - 8.32-6
coreutils-base64 - 8.32-6
curl - 7.82.0-1
datconf - 1
datconf-lua - 1
dns2socks - 2.1-2
dnsmasq-full - 2.85-220121.25747
dropbear - 2020.81-2
e2fsprogs - 1.45.6-2
ethtool - 5.10-1
fdisk - 2.36.1-2
firewall - 2021-03-23-61db17ed-1
fstools - 2021-01-04-c53b1882-1
fwdd - 1
fwtool - 2019-11-12-8f7fe925-1
getrandom - 2020-10-25-9ef88681-2
gre - 12
hwclock - 2.36.1-2
ip-bridge - 5.11.0-3
ip-full - 5.11.0-3
ip6tables - 1.8.7-1
iperf - 2.0.13-2
iperf3 - 3.10.1-1
ipset - 7.6-1
ipt2socks - 1.1.3-2
iptables - 1.8.7-1
iptables-mod-conntrack-extra - 1.8.7-1
iptables-mod-iprange - 1.8.7-1
iptables-mod-ipsec - 1.8.7-1
iptables-mod-tproxy - 1.8.7-1
iw - 5.9-8fab0c9e-220121.25747
iwinfo - 2021-04-30-c45f0b58-2.1
jshn - 2021-05-16-b14c4688-2
jsonfilter - 2018-02-04-c7e938d6-1
kernel - 5.4.171-1-826e0580e7f61a7222d94fecbe7fd0bf
kmod-asn1-decoder - 5.4.171-1
kmod-ata-core - 5.4.171-1
kmod-bluetooth - 5.4.171-1
kmod-conninfra - 5.4.171-1
kmod-crypto-acompress - 5.4.171-1
kmod-crypto-aead - 5.4.171-1
kmod-crypto-arc4 - 5.4.171-1
kmod-crypto-authenc - 5.4.171-1
kmod-crypto-cbc - 5.4.171-1
kmod-crypto-ccm - 5.4.171-1
kmod-crypto-cmac - 5.4.171-1
kmod-crypto-crc32c - 5.4.171-1
kmod-crypto-ctr - 5.4.171-1
kmod-crypto-cts - 5.4.171-1
kmod-crypto-deflate - 5.4.171-1
kmod-crypto-des - 5.4.171-1
kmod-crypto-ecb - 5.4.171-1
kmod-crypto-ecdh - 5.4.171-1
kmod-crypto-echainiv - 5.4.171-1
kmod-crypto-gcm - 5.4.171-1
kmod-crypto-gf128 - 5.4.171-1
kmod-crypto-ghash - 5.4.171-1
kmod-crypto-hash - 5.4.171-1
kmod-crypto-hmac - 5.4.171-1
kmod-crypto-kpp - 5.4.171-1
kmod-crypto-manager - 5.4.171-1
kmod-crypto-md4 - 5.4.171-1
kmod-crypto-md5 - 5.4.171-1
kmod-crypto-null - 5.4.171-1
kmod-crypto-pcompress - 5.4.171-1
kmod-crypto-rng - 5.4.171-1
kmod-crypto-seqiv - 5.4.171-1
kmod-crypto-sha1 - 5.4.171-1
kmod-crypto-sha256 - 5.4.171-1
kmod-crypto-sha512 - 5.4.171-1
kmod-dax - 5.4.171-1
kmod-dm - 5.4.171-1
kmod-fs-autofs4 - 5.4.171-1
kmod-fs-exportfs - 5.4.171-1
kmod-fs-ksmbd - 5.4.171+3.4.4-1
kmod-fs-nfs-common - 5.4.171-1
kmod-fs-nfs-common-rpcsec - 5.4.171-1
kmod-fs-nfsd - 5.4.171-1
kmod-fs-vfat - 5.4.171-1
kmod-gpio-button-hotplug - 5.4.171-3
kmod-gre - 5.4.171-1
kmod-gre6 - 5.4.171-1
kmod-hid - 5.4.171-1
kmod-input-core - 5.4.171-1
kmod-input-evdev - 5.4.171-1
kmod-ip6-tunnel - 5.4.171-1
kmod-ip6tables - 5.4.171-1
kmod-ipsec - 5.4.171-1
kmod-ipsec4 - 5.4.171-1
kmod-ipsec6 - 5.4.171-1
kmod-ipt-conntrack - 5.4.171-1
kmod-ipt-conntrack-extra - 5.4.171-1
kmod-ipt-core - 5.4.171-1
kmod-ipt-iprange - 5.4.171-1
kmod-ipt-ipsec - 5.4.171-1
kmod-ipt-ipset - 5.4.171-1
kmod-ipt-nat - 5.4.171-1
kmod-ipt-offload - 5.4.171-1
kmod-ipt-raw - 5.4.171-1
kmod-ipt-tproxy - 5.4.171-1
kmod-iptunnel - 5.4.171-1
kmod-iptunnel4 - 5.4.171-1
kmod-iptunnel6 - 5.4.171-1
kmod-l2tp - 5.4.171-1
kmod-leds-gpio - 5.4.171-1
kmod-lib-crc-ccitt - 5.4.171-1
kmod-lib-crc16 - 5.4.171-1
kmod-lib-crc32c - 5.4.171-1
kmod-lib-textsearch - 5.4.171-1
kmod-lib-zlib-deflate - 5.4.171-1
kmod-lib-zlib-inflate - 5.4.171-1
kmod-macsec - 5.4.171-1
kmod-mapfilter - 5.4.171-1
kmod-mediatek_hnat - 5.4.171-1
kmod-mppe - 5.4.171-1
kmod-mt_wifi - 5.4.171+TEST-1
kmod-mtdtests - 5.4.171-1
kmod-mtfwd - 5.4.171-1
kmod-nf-conntrack - 5.4.171-1
kmod-nf-conntrack-netlink - 5.4.171-1
kmod-nf-conntrack6 - 5.4.171-1
kmod-nf-flow - 5.4.171-1
kmod-nf-ipt - 5.4.171-1
kmod-nf-ipt6 - 5.4.171-1
kmod-nf-nat - 5.4.171-1
kmod-nf-nathelper-extra - 5.4.171-1
kmod-nf-reject - 5.4.171-1
kmod-nf-reject6 - 5.4.171-1
kmod-nfnetlink - 5.4.171-1
kmod-nls-base - 5.4.171-1
kmod-nls-cp437 - 5.4.171-1
kmod-nls-iso8859-1 - 5.4.171-1
kmod-nls-utf8 - 5.4.171-1
kmod-ppp - 5.4.171-1
kmod-pppoe - 5.4.171-1
kmod-pppol2tp - 5.4.171-1
kmod-pppox - 5.4.171-1
kmod-pptp - 5.4.171-1
kmod-regmap-core - 5.4.171-1
kmod-scsi-core - 5.4.171-1
kmod-slhc - 5.4.171-1
kmod-udptunnel4 - 5.4.171-1
kmod-udptunnel6 - 5.4.171-1
kmod-usb-core - 5.4.171-1
kmod-usb-ehci - 5.4.171-1
kmod-usb-ohci - 5.4.171-1
kmod-usb-storage - 5.4.171-1
kmod-usb2 - 5.4.171-1
kmod-usb3 - 5.4.171-1
kmod-warp - 5.4.171-1
ksmbd-server - 3.4.2-1
kvcedit - 1
libblkid1 - 2.36.1-2
libblobmsg-json20210516 - 2021-05-16-b14c4688-2
libbpf0 - 5.10.10-2
libbz2-1.0 - 1.0.8-1
libc - 1.1.24-3
libcomerr0 - 1.45.6-2
libcurl4 - 7.82.0-1
libdb47 - 4.7.25.4.NC-6
libdevmapper - 2.03.14-1
libelf1 - 0.180-1
libev - 4.31-1
libevdev - 1.12.0-1
libext2fs2 - 1.45.6-2
libfdisk1 - 2.36.1-2
libffi - 3.3-2
libgcc1 - 8.4.0-3
libgdbm - 1.18.1-2
libgmp10 - 6.2.1-1
libip4tc2 - 1.8.7-1
libip6tc2 - 1.8.7-1
libipset13 - 7.6-1
libiwinfo-data - 2021-04-30-c45f0b58-2.1
libiwinfo-lua - 2021-04-30-c45f0b58-2.1
libiwinfo20210430 - 2021-04-30-c45f0b58-2.1
libjson-c5 - 0.15-2
libjson-script20210516 - 2021-05-16-b14c4688-2
libkmod - 27-2
libkvcutil - 1
liblua5.1.5 - 5.1.5-9
liblucihttp-lua - 2021-06-11-3dc89af4-1
liblucihttp0 - 2021-06-11-3dc89af4-1
liblzma - 5.2.5-3
libmapd - 1
libmbedtls12 - 2.16.11-220121.25747
libmnl0 - 1.0.4-2
libmount1 - 2.36.1-2
libncurses6 - 6.2-3
libnetfilter-conntrack3 - 1.0.8-1
libnettle8 - 3.6-1
libnfnetlink0 - 1.0.1-4
libnghttp2-14 - 1.43.0-1
libnl-core200 - 3.5.0-1
libnl-genl200 - 3.5.0-1
libnl-tiny1 - 2020-08-05-c291088f-2
libopenssl1.1 - 1.1.1m-1
libpcap1 - 1.9.1-3.1
libpci - 3.7.0-2
libpcre - 8.44-3
libpthread - 1.1.24-3
libpython3-3.9 - 3.9.12-1
libreadline8 - 8.1-1
librt - 1.1.24-3
libselinux - 3.2-1
libsepol - 3.2-1
libsmartcols1 - 2.36.1-2
libsodium - 1.0.18-4
libsqlite3-0 - 3330000-1
libss2 - 1.45.6-2
libstdcpp6 - 8.4.0-3
libubox20210516 - 2021-05-16-b14c4688-2
libubus-lua - 2021-06-30-4fc532c8-2
libubus20210630 - 2021-06-30-4fc532c8-2
libuci-lua - 2020-10-06-52bbc99f-5
libuci20130104 - 2020-10-06-52bbc99f-5
libuclient20201210 - 2021-05-14-6a6011df-1
libudev-zero - 1.0.0-1
libudns - 0.4-1
libusb-1.0-0 - 1.0.24-220121.25747
libustream-openssl20201210 - 2020-12-10-68d09243-2
libuuid1 - 2.36.1-2
libuv1 - 1.40.0-3
libwolfssl4.8.1.66253b90 - 4.8.1-stable-220121.25747
libxtables12 - 1.8.7-1
logd - 2020-10-25-9ef88681-2
lrzsz - 0.12.20-2
lsblk - 2.36.1-2
lscpu - 2.36.1-2
lua - 5.1.5-9
luci - git-22.130.58625-78a8c67
luci-app-firewall - git-22.130.58625-78a8c67
luci-app-ksmbd - git-22.130.58625-78a8c67
luci-app-mtk - 220121.26001
luci-app-opkg - git-22.130.58625-78a8c67
luci-app-shadowsocks-libev - git-22.130.58625-78a8c67
luci-app-ssr-mudb-server - 11
luci-app-ssr-plus - 185
luci-base - git-22.130.58625-78a8c67
luci-compat - git-22.130.58625-78a8c67
luci-lib-base - git-22.130.58625-78a8c67
luci-lib-ip - git-22.130.58625-78a8c67
luci-lib-jsonc - git-22.130.58625-78a8c67
luci-lib-nixio - git-22.130.58625-78a8c67
luci-mod-admin-full - git-22.130.58625-78a8c67
luci-mod-network - git-22.130.58625-78a8c67
luci-mod-status - git-22.130.58625-78a8c67
luci-mod-system - git-22.130.58625-78a8c67
luci-proto-ipv6 - git-22.130.58625-78a8c67
luci-proto-ppp - git-22.130.58625-78a8c67
luci-theme-bootstrap - git-22.130.58625-78a8c67
mapd - 1
microsocks - 1.0.3-1
mii_mgr - 1
mmc-utils - 2019-10-10-73d6c59a-2
mtd - 26
mtk-base-files - 1-unknown
mtk_factory_rw - 1-unknown
mtkhnat_util - 1-unknown
musl-fts - 1.2.7-1
nand-utils - 2.1.2-1
netifd - 2021-10-30-8f82742c-1
odhcp6c - 2021-01-09-53f07e90-16
odhcpd-ipv6only - 2021-07-18-bc9d317f-220121.25747
omcproxy - 2018-12-14-722151f0-9
openwrt-keyring - 2021-02-20-49283916-2
opkg - 2021-06-13-1bf042dd-1
pciids - 0.359-1
pciutils - 3.7.0-2
pdnsd-alt - 1.2.9b-par-3
ppp - 2.4.8.git-2020-10-03-3
ppp-mod-pppoe - 2.4.8.git-2020-10-03-3
ppp-mod-pppol2tp - 2.4.8.git-2020-10-03-3
ppp-mod-pptp - 2.4.8.git-2020-10-03-3
procd - 2021-03-08-2cfc26f8-220121.25747
python3 - 3.9.12-1
python3-asyncio - 3.9.12-1
python3-base - 3.9.12-1
python3-cgi - 3.9.12-1
python3-cgitb - 3.9.12-1
python3-codecs - 3.9.12-1
python3-ctypes - 3.9.12-1
python3-dbm - 3.9.12-1
python3-decimal - 3.9.12-1
python3-distutils - 3.9.12-1
python3-email - 3.9.12-1
python3-gdbm - 3.9.12-1
python3-light - 3.9.12-1
python3-logging - 3.9.12-1
python3-lzma - 3.9.12-1
python3-multiprocessing - 3.9.12-1
python3-ncurses - 3.9.12-1
python3-openssl - 3.9.12-1
python3-pydoc - 3.9.12-1
python3-readline - 3.9.12-1
python3-sqlite3 - 3.9.12-1
python3-unittest - 3.9.12-1
python3-urllib - 3.9.12-1
python3-xml - 3.9.12-1
regs - 1
resolveip - 2
rpcd - 2021-03-11-ccb75178-1
rpcd-mod-file - 2021-03-11-ccb75178-1
rpcd-mod-iwinfo - 2021-03-11-ccb75178-1
rpcd-mod-luci - 20210614
rpcd-mod-rrdns - 20170710
shadowsocks-rust-sslocal - 1.14.3-1
shadowsocks-rust-ssserver - 1.14.3-1
shadowsocksr-libev-ssr-check - 2.5.6-9
shadowsocksr-libev-ssr-local - 2.5.6-9
shadowsocksr-libev-ssr-redir - 2.5.6-9
sigma_daemon - 1
sigma_dut - 1
swconfig - 12
switch - 1
tcpdump - 4.9.3-3
tcping - 0.3-1
terminfo - 6.2-3
ubi-utils - 2.1.2-1
ubox - 2020-10-25-9ef88681-2
ubus - 2021-06-30-4fc532c8-2
ubusd - 2021-06-30-4fc532c8-2
uci - 2020-10-06-52bbc99f-5
uclient-fetch - 2021-05-14-6a6011df-1
uhttpd - 2021-03-21-15346de8-2
uhttpd-mod-ubus - 2021-03-21-15346de8-2
urandom-seed - 3
urngd - 2020-01-21-c7f7b6b6-1
usbids - 0.359-1
usbutils - 013-2
usign - 2020-05-23-f1f65026-1
wapp - 1
wifi-profile - 1-unknown
wificonf - 1
wireless-regdb - 2021.08.28-1
wireless-tools - 29-6
wsdd2 - 2021-08-09-bcc51c3e-1
xray-core - 1.5.5-1
zlib - 1.2.11-3

Attempt to reinstall via the following command which derived and slightly adjusted from here:

opkg update && opkg list-installed | cut -f 1 -d ' ' | sort -u > /tmp/currentpkg && cat /etc/backup/my_installed_packages.txt | cut -f 1 -d ' ' | sort -u > /tmp/oldpkg && grep -v -F -x -f /tmp/currentpkg /tmp/oldpkg > /tmp/inst && opkg install --force-depends $(cat /tmp/inst | sort -u) && rm /tmp/currentpkg /tmp/oldpkg /tmp/inst

Installation issues identified

 * opkg_install_cmd: Cannot install package 1905daemon.
 * opkg_install_cmd: Cannot install package 8021xd.
 * opkg_install_cmd: Cannot install package ated_ext.
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.15.98-1-f45626394ef59e61e30a38e05ba287ea) for kmod-fs-autofs4
 * opkg_install_cmd: Cannot install package datconf.
 * opkg_install_cmd: Cannot install package datconf-lua.
 * opkg_install_cmd: Cannot install package dns2socks.
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.15.98-1-f45626394ef59e61e30a38e05ba287ea) for kmod-nf-conntrack
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.15.98-1-f45626394ef59e61e30a38e05ba287ea) for kmod-nf-reject
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.15.98-1-f45626394ef59e61e30a38e05ba287ea) for kmod-nf-reject6
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.15.98-1-f45626394ef59e61e30a38e05ba287ea) for kmod-nf-nat
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.15.98-1-f45626394ef59e61e30a38e05ba287ea) for kmod-nf-log
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.15.98-1-f45626394ef59e61e30a38e05ba287ea) for kmod-nf-log6
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.15.98-1-f45626394ef59e61e30a38e05ba287ea) for kmod-crypto-crc32c
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.15.98-1-f45626394ef59e61e30a38e05ba287ea) for kmod-nft-core
 * check_data_file_clashes: Package dnsmasq-full wants to install file /etc/hotplug.d/ntp/25-dnsmasqsec
	But that file is already provided by package  * dnsmasq
 * check_data_file_clashes: Package dnsmasq-full wants to install file /etc/init.d/dnsmasq
	But that file is already provided by package  * dnsmasq
 * check_data_file_clashes: Package dnsmasq-full wants to install file /usr/lib/dnsmasq/dhcp-script.sh
	But that file is already provided by package  * dnsmasq
 * check_data_file_clashes: Package dnsmasq-full wants to install file /usr/sbin/dnsmasq
	But that file is already provided by package  * dnsmasq
 * check_data_file_clashes: Package dnsmasq-full wants to install file /usr/share/acl.d/dnsmasq_acl.json
	But that file is already provided by package  * dnsmasq
 * check_data_file_clashes: Package dnsmasq-full wants to install file /usr/share/dnsmasq/dhcpbogushostname.conf
	But that file is already provided by package  * dnsmasq
 * check_data_file_clashes: Package dnsmasq-full wants to install file /usr/share/dnsmasq/rfc6761.conf
	But that file is already provided by package  * dnsmasq
 * opkg_install_cmd: Cannot install package dnsmasq-full.
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.15.98-1-f45626394ef59e61e30a38e05ba287ea) for kmod-nf-ipt
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.15.98-1-f45626394ef59e61e30a38e05ba287ea) for kmod-ipt-core
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.15.98-1-f45626394ef59e61e30a38e05ba287ea) for kmod-ipt-conntrack
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.15.98-1-f45626394ef59e61e30a38e05ba287ea) for kmod-ipt-nat
 * check_conflicts_for: The following packages conflict with firewall:
 * check_conflicts_for: 	firewall4 * 
 * opkg_install_cmd: Cannot install package firewall.
 * opkg_install_cmd: Cannot install package fwdd.
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.15.98-1-f45626394ef59e61e30a38e05ba287ea) for kmod-nf-ipt6
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.15.98-1-f45626394ef59e61e30a38e05ba287ea) for kmod-ip6tables
 * opkg_install_cmd: Cannot install package ipt2socks.
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.15.98-1-f45626394ef59e61e30a38e05ba287ea) for kmod-nf-conncount
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.15.98-1-f45626394ef59e61e30a38e05ba287ea) for kmod-ipt-conntrack-extra
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.15.98-1-f45626394ef59e61e30a38e05ba287ea) for kmod-ipt-iprange
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.15.98-1-f45626394ef59e61e30a38e05ba287ea) for kmod-ipt-ipsec
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.15.98-1-f45626394ef59e61e30a38e05ba287ea) for kmod-nf-tproxy
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.15.98-1-f45626394ef59e61e30a38e05ba287ea) for kmod-ipt-tproxy
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.15.98-1-f45626394ef59e61e30a38e05ba287ea) for kmod-scsi-core
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.15.98-1-f45626394ef59e61e30a38e05ba287ea) for kmod-ata-core
 * opkg_install_cmd: Cannot install package kmod-conninfra.
 * opkg_install_cmd: Cannot install package kmod-crypto-pcompress.
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.15.98-1-f45626394ef59e61e30a38e05ba287ea) for kmod-nls-base
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.15.98-1-f45626394ef59e61e30a38e05ba287ea) for kmod-nls-cp437
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.15.98-1-f45626394ef59e61e30a38e05ba287ea) for kmod-nls-iso8859-1
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.15.98-1-f45626394ef59e61e30a38e05ba287ea) for kmod-nls-utf8
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.15.98-1-f45626394ef59e61e30a38e05ba287ea) for kmod-fs-vfat
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.15.98-1-f45626394ef59e61e30a38e05ba287ea) for kmod-crypto-aead
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.15.98-1-f45626394ef59e61e30a38e05ba287ea) for kmod-crypto-acompress
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.15.98-1-f45626394ef59e61e30a38e05ba287ea) for kmod-ipsec
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.15.98-1-f45626394ef59e61e30a38e05ba287ea) for kmod-iptunnel4
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.15.98-1-f45626394ef59e61e30a38e05ba287ea) for kmod-ipsec4
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-ipt-nat:
 * 	kernel (= 5.15.98-1-f45626394ef59e61e30a38e05ba287ea)
 * opkg_install_cmd: Cannot install package kmod-ipt-nat.
 * opkg_install_cmd: Cannot install package kmod-mapfilter.
 * opkg_install_cmd: Cannot install package kmod-mediatek_hnat.
 * opkg_install_cmd: Cannot install package kmod-mt_wifi.
 * opkg_install_cmd: Cannot install package kmod-mtfwd.
 * opkg_install_cmd: Cannot install package kmod-warp.
 * opkg_install_cmd: Cannot install package kvcedit.
 * opkg_install_cmd: Cannot install package libblobmsg-json20210516.
 * opkg_install_cmd: Cannot install package libbpf0.
 * opkg_install_cmd: Cannot install package libiwinfo20210430.
 * opkg_install_cmd: Cannot install package libjson-script20210516.
 * opkg_install_cmd: Cannot install package libkvcutil.
 * opkg_install_cmd: Cannot install package libmapd.
 * opkg_install_cmd: Cannot install package libnl-tiny1.
 * opkg_install_cmd: Cannot install package libopenssl1.1.
 * opkg_install_cmd: Cannot install package libpython3-3.9.
 * opkg_install_cmd: Cannot install package libubox20210516.
 * opkg_install_cmd: Cannot install package libubus20210630.
 * check_data_file_clashes: Package libustream-openssl20201210 wants to install file /lib/libustream-ssl.so
	But that file is already provided by package  * libustream-mbedtls20201210
 * opkg_install_cmd: Cannot install package libustream-openssl20201210.
 * opkg_install_cmd: Cannot install package libwolfssl4.8.1.66253b90.
 * opkg_install_cmd: Cannot install package luci-app-mtk.
 * opkg_install_cmd: Cannot install package luci-app-ssr-mudb-server.
 * opkg_install_cmd: Cannot install package luci-app-ssr-plus.
 * opkg_install_cmd: Cannot install package mapd.
 * opkg_install_cmd: Cannot install package mii_mgr.
 * opkg_install_cmd: Cannot install package mtk-base-files.
 * opkg_install_cmd: Cannot install package mtk_factory_rw.
 * opkg_install_cmd: Cannot install package mtkhnat_util.
 * opkg_install_cmd: Cannot install package pdnsd-alt.
 * opkg_install_cmd: Cannot install package python3-gdbm.
 * opkg_install_cmd: Cannot install package regs.
 * opkg_install_cmd: Cannot install package shadowsocks-rust-sslocal.
 * opkg_install_cmd: Cannot install package shadowsocks-rust-ssserver.
 * opkg_install_cmd: Cannot install package shadowsocksr-libev-ssr-check.
 * opkg_install_cmd: Cannot install package shadowsocksr-libev-ssr-local.
 * opkg_install_cmd: Cannot install package shadowsocksr-libev-ssr-redir.
 * opkg_install_cmd: Cannot install package sigma_daemon.
 * opkg_install_cmd: Cannot install package sigma_dut.
 * opkg_install_cmd: Cannot install package switch.
 * opkg_install_cmd: Cannot install package tcping.
 * opkg_install_cmd: Cannot install package wapp.
 * opkg_install_cmd: Cannot install package wifi-profile.
 * opkg_install_cmd: Cannot install package wificonf.

Comparing the /etc/opkg/distfeeds.conf of the latest snapshot and the manufacturer flashed OpenWRT 21.02 I noticed a few disjoints.

21.02

src/gz openwrt_core https://downloads.openwrt.org/releases/21.02-SNAPSHOT/targets/mediatek/mt7986/packages
src/gz openwrt_base https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/aarch64_cortex-a53/base
src/gz openwrt_kenzo https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/aarch64_cortex-a53/kenzo
src/gz openwrt_luci https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/aarch64_cortex-a53/luci
src/gz openwrt_mtk_openwrt_feed https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/aarch64_cortex-a53/mtk_openwrt_feed
src/gz openwrt_packages https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/aarch64_cortex-a53/packages
src/gz openwrt_routing https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/aarch64_cortex-a53/routing
src/gz openwrt_small https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/aarch64_cortex-a53/small
src/gz openwrt_telephony https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/aarch64_cortex-a53/telephony

Latest Snapshot

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_kmods https://downloads.openwrt.org/snapshots/targets/mediatek/filogic/kmods/5.15.94-1-aadda5b870b93fb02556b4f301f8fa1b
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

The difference are too many for me to distinguish what to adjust. Anyone got some recommendations?

Is it okay? Is the swipe in method using the following command? *mount -t vfat /dev/sda1 /mnt

  • echo 0 > /sys/block/mmcblk0boot0/force_ro
  • dd if=openwrt-mediatek-filogic-bananapi_bpi-r3-emmc-preloader.bin of=/dev/mmcblk0
  • mmc bootpart enable 1 1 /dev/mmcblk0

This means the snapshot you are using is already outdated again. Update to the most recent snapshot should resolve all these errors. To make this easy, you can install and use auc.

All the packages which show this error are not part of official OpenWrt. Feel free to grab their sourcecode and make a pull-request adding them to github.com/openwrt/packages.

Many of them seem to be part of MediaTek’s SDK and are not actually needed on OpenWrt. e.g. kmod-conninfra is the wifi driver of MediaTek SDK, when using OpenWrt (or any distribution around vanilla Linux kernel) the same functionality is provided by kmod-mt7915e for this chip.

1 Like

If you use official OpenWrt this is done for you automatically. You don’t need any of this.

How to put the official have to enter emmc

@dangowrt I wouldn’t have thought the kernel headers getting outdated so quickly. Installation runs almost smooth.

Collected errors:
 * opkg_install_cmd: Cannot install package datconf.
 * opkg_install_cmd: Cannot install package datconf-lua.
 * opkg_install_cmd: Cannot install package dns2socks.
 * check_data_file_clashes: Package dnsmasq-full wants to install file /etc/hotplug.d/ntp/25-dnsmasqsec
	But that file is already provided by package  * dnsmasq
 * check_data_file_clashes: Package dnsmasq-full wants to install file /etc/init.d/dnsmasq
	But that file is already provided by package  * dnsmasq
 * check_data_file_clashes: Package dnsmasq-full wants to install file /usr/lib/dnsmasq/dhcp-script.sh
	But that file is already provided by package  * dnsmasq
 * check_data_file_clashes: Package dnsmasq-full wants to install file /usr/sbin/dnsmasq
	But that file is already provided by package  * dnsmasq
 * check_data_file_clashes: Package dnsmasq-full wants to install file /usr/share/acl.d/dnsmasq_acl.json
	But that file is already provided by package  * dnsmasq
 * check_data_file_clashes: Package dnsmasq-full wants to install file /usr/share/dnsmasq/dhcpbogushostname.conf
	But that file is already provided by package  * dnsmasq
 * check_data_file_clashes: Package dnsmasq-full wants to install file /usr/share/dnsmasq/rfc6761.conf
	But that file is already provided by package  * dnsmasq
 * opkg_install_cmd: Cannot install package dnsmasq-full.
 * check_data_file_clashes: Package firewall wants to install file /etc/hotplug.d/iface/20-firewall
	But that file is already provided by package  * firewall4
 * check_data_file_clashes: Package firewall wants to install file /etc/init.d/firewall
	But that file is already provided by package  * firewall4
 * check_data_file_clashes: Package firewall wants to install file /sbin/fw3
	But that file is already provided by package  * firewall4
 * opkg_install_cmd: Cannot install package firewall.
 * opkg_install_cmd: Cannot install package fwdd.
 * opkg_install_cmd: Cannot install package ipt2socks.
 * opkg_install_cmd: Cannot install package kmod-conninfra.
 * opkg_install_cmd: Cannot install package kmod-crypto-pcompress.
 * opkg_install_cmd: Cannot install package kmod-mapfilter.
 * opkg_install_cmd: Cannot install package kmod-mediatek_hnat.
 * opkg_install_cmd: Cannot install package kmod-mt_wifi.
 * opkg_install_cmd: Cannot install package kmod-mtfwd.
 * opkg_install_cmd: Cannot install package kmod-warp.
 * opkg_install_cmd: Cannot install package kvcedit.
 * opkg_install_cmd: Cannot install package libblobmsg-json20210516.
 * opkg_install_cmd: Cannot install package libbpf0.
 * opkg_install_cmd: Cannot install package libiwinfo20210430.
 * opkg_install_cmd: Cannot install package libjson-script20210516.
 * opkg_install_cmd: Cannot install package libkvcutil.
 * opkg_install_cmd: Cannot install package libmapd.
 * opkg_install_cmd: Cannot install package libnl-tiny1.
 * opkg_install_cmd: Cannot install package libopenssl1.1.
 * opkg_install_cmd: Cannot install package libpython3-3.9.
 * opkg_install_cmd: Cannot install package libubox20210516.
 * opkg_install_cmd: Cannot install package libubus20210630.
 * check_data_file_clashes: Package libustream-openssl20201210 wants to install file /lib/libustream-ssl.so
	But that file is already provided by package  * libustream-mbedtls20201210
 * opkg_install_cmd: Cannot install package libustream-openssl20201210.
 * opkg_install_cmd: Cannot install package libwolfssl4.8.1.66253b90.
 * opkg_install_cmd: Cannot install package luci-app-mtk.
 * opkg_install_cmd: Cannot install package luci-app-ssr-mudb-server.
 * opkg_install_cmd: Cannot install package luci-app-ssr-plus.
 * opkg_install_cmd: Cannot install package mapd.
 * opkg_install_cmd: Cannot install package mii_mgr.
 * opkg_install_cmd: Cannot install package mtk-base-files.
 * opkg_install_cmd: Cannot install package mtk_factory_rw.
 * opkg_install_cmd: Cannot install package mtkhnat_util.
 * opkg_install_cmd: Cannot install package pdnsd-alt.
 * opkg_install_cmd: Cannot install package python3-gdbm.
 * opkg_install_cmd: Cannot install package regs.
 * opkg_install_cmd: Cannot install package shadowsocks-rust-sslocal.
 * opkg_install_cmd: Cannot install package shadowsocks-rust-ssserver.
 * opkg_install_cmd: Cannot install package shadowsocksr-libev-ssr-check.
 * opkg_install_cmd: Cannot install package shadowsocksr-libev-ssr-local.
 * opkg_install_cmd: Cannot install package shadowsocksr-libev-ssr-redir.
 * opkg_install_cmd: Cannot install package sigma_daemon.
 * opkg_install_cmd: Cannot install package sigma_dut.
 * opkg_install_cmd: Cannot install package switch.
 * opkg_install_cmd: Cannot install package tcping.
 * opkg_install_cmd: Cannot install package ted_ext.
 * opkg_install_cmd: Cannot install package wapp.
 * opkg_install_cmd: Cannot install package wifi-profile.
 * opkg_install_cmd: Cannot install package wificonf.

dnsmasq-full seems to have been superseded by dnsmasq and firewall by firewall4. Other packages like luci-app-mtk are nowhere to be found. I assume some repos are missing, aren’t they?

I also tried familiarizing with CONTRIBUTING.md but admittedly this goes ways beyond what I currently can do since I never worked with git to such an extend.

Best Mike

All those packages have simply never been part of OpenWrt, but were just present in MediaTek’s SDK which is based on OpenWrt, but heavily modified and with an outdated kernel. The is similar to e.g. Raspbian which contains vendor-specific packages which are not available in (upstream) Debian.

You can use the SD card image and then either navigate the bootmenu via the serial console or use the methods described here: Banana Pi BPI-R3 OpenWRT image

So I guess there is nothing, except going into extreme length, to get the current OpenWRT version working. I’ve searched all over the place to get an idea but only find obstacle after obstacle which let me assume or better hope, with OpenWRT v23 things will improve.

Wonder what your take on this is? I am not a fan et all running outdated software …

SinoVoip has provided this board to me in June 2022, this was long after the branch-off of OpenWrt 22.03. Hence it will only be supported in the next release (OpenWrt 23.xx), which is about to branch-off in the next weeks, but certainly still some months away from being actually released. Up to that point the best is certainly to run OpenWrt snapshots and keep them up-to-date using auc.