Request support to use frank system Banana BPI-R4

Greetings All

I’m seeking the support if someone can guide me . to use Kernel 6.9 on my router …I didn’t try Mr.frank image before . usually i’m using OpenWRT system (where there is some lack of utilization with this system)

Kernel 6.9 images build by Dear /Sir @frank-w https://drive.google.com/drive/folders/1A5S7_82Bg4EYxjzdQ5FKyBw9Qi2C3uK-?sort=13&direction=a

My Computer : Windows 11 ( I didn’t use Linxus system before )

My Router : Banana BPI-R4

Modem : Snapdragon X75 - Fibocom FM190W and Quectel RM551

I burned the Kernel bpi-R4_6.9.0 on SD but I tried to run it on router but nothing happened

I appreciate if you deal & guide me as beginner


Edit & Update:

Special Thanks to Mr. @frank-w. Really he spent most of his time to support this case to let 5G/4G modems work in Debian System / Ubnu system Kernel 6.9 — 6.10

Main Commands :

date -s "2024-XX-XX 19:31 CEST" ----- XX-XX = Put current date Month-Day
apt update 

apt upgrade 

apt search XX -------> XX = Put the package you are looking for it 

I Installed these Packages on Frank system

modemmanager usb-modeswitch usb-modeswitch-data ppp wvdial minicom socat usbutils pciutils mc modem-cmd python3-networkmanager network-manager

To run modem Download these files on USB and plug it on Banana BPI-R4 at USB port

Run this command on putty app

mount /dev/sda1 /mnt
kernelfile=/mnt/bpi-r4_6.9.0-main.tar.gz
cp /boot/bpi-r4.itb{,.bak}
tar -xzf $kernelfile --strip-components=1 -C /boot BPI-BOOT
tar -xzf $kernelfile --strip-components=2 -C /lib/. BPI-ROOT/lib/
nft add table nat
nft 'add chain nat postrouting { type nat hook postrouting priority 100 ; }'
nft add rule nat postrouting oifname wwan0 masquerade

To connect the modem to system

systemctl start ModemManager
systemctl enable ModemManager

Check the modem (detected by system or not)

mmcli -L

Set APN----- Replace [your_apn]with your APN

nmcli con add type gsm ifname '*' con-name "My 5G Connection" apn [your_apn]
nmcli con up "My 5G Connection"

have you unpacked the image before writing to sdcard? you have to flash the img not the img.gz

Yes I unpacked them and I burned first one and didn’t work and second one is same issue …

I think the issue because I don’t know how to use system so I need guide

is board set to boot from sdcard (both switches down)? what do you see on debug-uart?

Hello, @KFO,

I assume that you already know the Getting started with BPI-R4 wiki page?

I am not Linux kernel developer, but I am using some Linux distributions daily, and this page with external links and this forum are really good start to play with the BPI-R4.

Hi Boss @frank-w

I flashed ( bpi-r4_bookworm_6.9.0-main) on SD card

I Put Username : root and Password : root … I got this error image

Also I tried to enter page 192.168.1.1 … but nothing

@Rup Thank you but i’m looking for guidance (steps) how to run this system (Linux) on this board … I’m windows user … doesn’t know anything about Linux

I searched in YouTube if someone tried Mr. @frank-w system with steps but nothing I found… also here same thing…

you should use the user/passwort from readme :wink:

there is no web-frontend as the images are really plain debian images with only basic config

Hi … What I should do next …

no network … how I can control they system like to create interface or install package

ip a

shows interfaces with ip-address

wan (most left rj45 port) has dhcp enabled so should get valid config from your existing router

ip r

shows your routes and there schould a default route to your existing router…if “ip a” shows that wan is up and have an ip from your existing lan, you can try to ping first your routers ip, then ping e.g. 8.8.8.8 (google-dns ip to skip name-resolution and test routing only) and then maybe www.google.de to test name-resolution

if all above works, you should be able to do “apt update”. most likely you get an error that packages are not valid yet because your system time is wrong you can set it like this (change time+timezone to your needs)

date -s "2024-07-29 19:31 CEST"

and run apt update again…then you can do “apt install <package>” with package you want

Hi

I’m connecting the banana BPI-R4 through cable ethernet to my laptop but no network … your advise please

I’m using Modem Fibocom FM190W (X75 snapdragon) PCie

root@bpi-r4:~# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute
       valid_lft forever preferred_lft forever
2: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1000
    link/sit 0.0.0.0 brd 0.0.0.0
3: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1504 qdisc mq state UP group default qlen 1000
    link/ether 9e:e8:56:a5:08:e3 brd ff:ff:ff:ff:ff:ff
4: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 56:6e:58:df:32:e0 brd ff:ff:ff:ff:ff:ff
5: eth2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether be:be:e6:44:f7:09 brd ff:ff:ff:ff:ff:ff
6: wan@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state LOWERLAYERDOWN group default qlen 1000
    link/ether 9e:e8:56:a5:08:e3 brd ff:ff:ff:ff:ff:ff
7: lan1@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master lanbr0 state LOWERLAYERDOWN group default qlen 1000
    link/ether 9e:e8:56:a5:08:e3 brd ff:ff:ff:ff:ff:ff
8: lan2@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master lanbr0 state UP group default qlen 1000
    link/ether 9e:e8:56:a5:08:e3 brd ff:ff:ff:ff:ff:ff
9: lan3@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master lanbr0 state LOWERLAYERDOWN group default qlen 1000
    link/ether 9e:e8:56:a5:08:e3 brd ff:ff:ff:ff:ff:ff
10: lanbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 1a:03:b0:1e:b6:0e brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.1/24 brd 192.168.1.255 scope global lanbr0
       valid_lft forever preferred_lft forever
    inet6 fe80::1803:b0ff:fe1e:b60e/64 scope link
       valid_lft forever preferred_lft forever
11: he-ipv6@lanbr0: <NOARP,UP,LOWER_UP> mtu 1480 qdisc noqueue state UNKNOWN group default qlen 1000
    link/sit 0.0.0.0 brd 0.0.0.0
    inet6 ::127.0.0.1/96 scope host
root@bpi-r4:~# apt update
Ign:1 http://security.debian.org/debian-security bookworm-security InRelease
Ign:2 http://ftp.de.debian.org/debian bookworm InRelease
Ign:3 http://ftp.de.debian.org/debian bookworm-updates InRelease
Ign:2 http://ftp.de.debian.org/debian bookworm InRelease
Ign:1 http://security.debian.org/debian-security bookworm-security InRelease
Ign:3 http://ftp.de.debian.org/debian bookworm-updates InRelease
Ign:1 http://security.debian.org/debian-security bookworm-security InRelease
Ign:2 http://ftp.de.debian.org/debian bookworm InRelease
Ign:3 http://ftp.de.debian.org/debian bookworm-updates InRelease
Err:1 http://security.debian.org/debian-security bookworm-security InRelease
  Temporary failure resolving 'security.debian.org'
Err:2 http://ftp.de.debian.org/debian bookworm InRelease
  Temporary failure resolving 'ftp.de.debian.org'
Err:3 http://ftp.de.debian.org/debian bookworm-updates InRelease
  Temporary failure resolving 'ftp.de.debian.org'
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://ftp.de.debian.org/debian/dists/bookworm/InRelease  Temporary failure resolving 'ftp.de.debian.org'
W: Failed to fetch http://ftp.de.debian.org/debian/dists/bookworm-updates/InRelease  Temporary failure resolving 'ftp.de.debian.org'
W: Failed to fetch http://security.debian.org/debian-security/dists/bookworm-security/InRelease  Temporary failure resolving 'security.debian.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.

your wan has no ip-adress…have you connected this port to your existing lan? or is your existing lan same subnet as i use on lan-ports?

running apt-commands before the others does not make sense…

i see only lan2 is up

Note:

I’m connecting the Lan from BPI-R4 to my laptop


root@bpi-r4:~# apt-commands
-bash: apt-commands: command not found
root@bpi-r4:~# apt-commands
-bash: apt-commands: command not found
root@bpi-r4:~# apt-command
-bash: apt-command: command not found
root@bpi-r4:~#

you can go only with the modem into internet? no existing router to make the first steps??

for apt you need an internet connection first…so you have to solve this first…the easiest way is using existing router and connecting wan of r4 to lan of your existing router, so no dial needed and just using existing internet-connection

Ok I got other router with network … Tplink

So I connected the other router lan ----> To Banana BPI R4 - Wan and from Banana BPI Lan to my laptop

but still no network …

What does “ip a” say? And if it is up,try the ping-steps…

ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute
       valid_lft forever preferred_lft forever
2: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1000
    link/sit 0.0.0.0 brd 0.0.0.0
3: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1504 qdisc mq state UP group default qlen 1000
    link/ether 12:ef:1c:74:73:e3 brd ff:ff:ff:ff:ff:ff
4: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether d6:7f:81:fc:97:34 brd ff:ff:ff:ff:ff:ff
5: eth2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 02:e5:c2:8d:d8:47 brd ff:ff:ff:ff:ff:ff
6: wan@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 12:ef:1c:74:73:e3 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.103/24 metric 1024 brd 192.168.1.255 scope global dynamic wan
       valid_lft 86303sec preferred_lft 86303sec
    inet6 fe80::10ef:1cff:fe74:73e3/64 scope link
       valid_lft forever preferred_lft forever
7: lan1@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master lanbr0 state LOWERLAYERDOWN group default qlen 1000
    link/ether 12:ef:1c:74:73:e3 brd ff:ff:ff:ff:ff:ff
8: lan2@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master lanbr0 state UP group default qlen 1000
    link/ether 12:ef:1c:74:73:e3 brd ff:ff:ff:ff:ff:ff
9: lan3@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master lanbr0 state LOWERLAYERDOWN group default qlen 1000
    link/ether 12:ef:1c:74:73:e3 brd ff:ff:ff:ff:ff:ff
10: lanbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 1a:03:b0:1e:b6:0e brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.1/24 brd 192.168.1.255 scope global lanbr0
       valid_lft forever preferred_lft forever
    inet6 fe80::1803:b0ff:fe1e:b60e/64 scope link
       valid_lft forever preferred_lft forever
11: he-ipv6@lanbr0: <NOARP,UP,LOWER_UP> mtu 1480 qdisc noqueue state UNKNOWN group default qlen 1000
    link/sit 0.0.0.0 brd 0.0.0.0
    inet6 ::127.0.0.1/96 scope host
       valid_lft forever preferred_lft forever

root@bpi-r4:~# apt update
Ign:1 http://ftp.de.debian.org/debian bookworm InRelease
Ign:2 http://security.debian.org/debian-security bookworm-security InRelease
Ign:3 http://ftp.de.debian.org/debian bookworm-updates InRelease
Ign:2 http://security.debian.org/debian-security bookworm-security InRelease
Ign:1 http://ftp.de.debian.org/debian bookworm InRelease
Ign:3 http://ftp.de.debian.org/debian bookworm-updates InRelease
Ign:2 http://security.debian.org/debian-security bookworm-security InRelease
Ign:1 http://ftp.de.debian.org/debian bookworm InRelease
Ign:3 http://ftp.de.debian.org/debian bookworm-updates InRelease
Err:2 http://security.debian.org/debian-security bookworm-security InRelease
  Could not resolve 'security.debian.org'
Err:1 http://ftp.de.debian.org/debian bookworm InRelease
  Could not resolve 'ftp.de.debian.org'
Err:3 http://ftp.de.debian.org/debian bookworm-updates InRelease
  Could not resolve 'ftp.de.debian.org'
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://ftp.de.debian.org/debian/dists/bookworm/InRelease  Could not resolve 'ftp.de.debian.org'
W: Failed to fetch http://ftp.de.debian.org/debian/dists/bookworm-updates/InRelease  Could not resolve 'ftp.de.debian.org'
W: Failed to fetch http://security.debian.org/debian-security/dists/bookworm-security/InRelease  Could not resolve 'security.debian.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.

So you use same subnet on lan and wan which causes routing issues…

Easiest way should be putting lanbr0 down (should happen automaticly when no device is connected to lan) and connect to the r3 via your existing lan.

But to be sure just make it manually…Do not disconnect wan now.

ip l set lanbr0 down # you will loose ssh connection

Connect your laptop to existing lan and reestablish ssh to your wan-ip 192.168.1.103 then look first for routes (see above),ping your main router,then 8.8.8.8,then www.google.com

No network

the lan was one 2 and i tried it on lan 3

I tried 192.168.1.1 also no signal

Dude , Tplink router admin page is 192.168.1.1

conflict ?

how I can change your image ip wan … maybe this is the reason ?

Changing wan is not so easy as it has to be same as your existing lan, thought that putting lanbridge down let access wan through wan-ip. 1.1 is not reachable because we set lanbridge down.

Have you serial adapter?

Can you look into dhcp log from main-router? Then disconnect wan-port and reconnect it. Get ip for r3 from tplink log/web-gui. Ssh should work on wan too.