[BPI-R2 new image] debian 10 buster image with Kernel 4.19.62

This page links to my buster-image…

try to unpack this in rootfs: https://drive.google.com/drive/u/0/mobile/folders/1WLWAR1FC-rF4n2SgFecBlU1ym_XKqAR_/15Y5Y3NAOwg_IMmN3k6hdb7pAQj9oTVTl/15lHk7IEyVyQdYzVfvPvV-3jMhz7GSL7p?usp=drive_open&sort=13&direction=a

And then run wifi.sh

Frank that link takes me to your Google Drive but i dont see your buster image. I only see 5 Items in there they are as follows: r2_wifi_firmware.zip , r2_wifi_helper.zip, wifi_helper.tar.gz, wmt-tools+script.tar.gz, wmt-tools+script+conf.zip Thats is all I see nothing labeled buster -Brian-

Just unpack wmt-tools+script+conf.zip over the buster-rootfs (after burning the buster-image you allready have)

Frank… THANK YOU that got the access point running. Istill isnt persistant however i have to run that script each time the BPI-R2 loses power or reboots however. Now to try to bridge the ap0 and lan0@eth0 so I can share the Internet coming in on lan0@eth0.

-Brian-

just put the script in rc.local after creating/install it

steps should be same as in debian 9: https://www.itechlounge.net/2017/10/linux-how-to-add-rc-local-in-debian-9/

do not bridge ap0 with any other network-device…make separate subnets and do routing between

https://wiki.fw-web.de/doku.php?id=en/bpi-r2/network/start#routing

Thanks again Frank going to tackle the bridge thing in an hour or so…appreciate your assistance couldn’t have done it without you!

Thought I had a handle on how to get this BPI-R2 routing set up its kicking my ass. I am not giving up on this…

Your mainrouter have to know that your wifi-subnet is reachable via r2s lan ip…so you need static route on it…else packets go out,but response goes to your mainrouter and not further (or gets routed via defaultroute = back to internet)

Here is my current setup DSL Router NAT IP Schema (172.16.42.0/24 )

BPI-R2 Schema lan0@eth0 172.16.42.118 BPI-R2 AP Schema ap0 192.168.10.1/24

I have created a static route on the DSL Router as follows Destination IP Address = 192.168.10.1 (BPI-R2 ap0) IP Subnet Mask = 255.255.255.0 Gateway Address = 172.16.42.118 (lan0@eth0 on BPI-R2) Metric = 2

On the BPI-R2 for routes I have: 172.16.42.0/24 dev lan0 proto kernel scope link src 172.16.42.118 192.168.10.0/24 dev ap0 proto kernel scope link src 192.168.10.1

While from the BPI-R2 I can ping my DSl Router (172.16.42.2) I cannot ping in the other direction.

Obviously my perspective on settings is flawed can you assist?

-Brian-

static route has to be defined as this:

192.168.10.0 (network-address not ip-address) is reachable via 172.16.42.118

Ping between these 2 hosts should not be affected only traffic going over both ones. Don’t forget to set default route on wifi-client (192.168.10.1) and r2 (172.16.42.2)

OK got default route set on BPI-R2 as follows:

root@bpi-r2:~# ip route show default via 172.16.42.2 dev lan0 onlink 172.16.42.0/24 dev lan0 proto kernel scope link src 172.16.42.118 192.168.10.0/24 dev ap0 proto kernel scope link src 192.168.10.1

Now while I can ping everything from both directions ( 172.16.42.xx and 192.168.10.xx ) when my Phone Connects to BPI-R2 ap0 it says “no internet” and sure enough when trying to access gmail or facebook etc… It doesnt refresh like it has no Internet. While connected with my phone and Data connection is turned off I cannot ping 8.8.8.8 or www.google.com. However when I ssh into the BPI-R2 on the 192.168.10.1 ap0 I can ping 8.8.8.8 and www.google.com

-Brian

Is there someway to upgrade from debian 9 to 10? I don’t want to reinstall all the packages

Here is my kernel info:

uname -a
Linux BPI-R2 4.14.122-bpi-r2-main #1 SMP Thu Jun 6 17:46:54 CST 2019 armv7l GNU/Linux

btw, i have an issue. If i add mac-address in bpi-r2-mac.dts, I can get well performant. But with random macaddress and change 802-3-ethernet.cloned-mac-address in NetworkManager. I could not get more then 10Mpbs

Imho you can upgrade the normal debian way by changing the apt-sources,but this makes not a clean system and maybe break your ols one…so i prefer a fresh system and have old as backup.

You use dto in uboot? Else mac.dtb isn’t loaded…which kernels have you tried (maybe 4.19,5.x-phylink)?

You can ssh from your phone to r2 and dns/ping works from there (r2).

Can you ping your mainrouter from your mobile device? if not: Can you ping lan0-address of r2?

If also not: Have you enabled v4-routing on r2 (needs to be done every boot if only used the echo)? Make it permanant with sysctl.conf have you set default route for wifi-devices set to r2’s ap0-address?

Because The R2 is my NAS and home media center and network base server. Too many package are installed. Maybe i will not upgrade it, but performace is necessary for me.

Thanks frank-w :grinning:

you can install on new sd-card and switch back to old system multiple times when needing the NAS and install it step-by-step…

you can also do a full backup first (dd not from running system) and try to upgrade with changed apt-sources

or maybe use emmc to switch between…if your current system is on sd, you can install buster on emmc

You can ssh from your phone to r2 and dns/ping works from there (r2). When SSH’d into the ap0 yes I can ping my main DSL router

Can you ping your mainrouter from your mobile device? if not: Can you ping lan0-address of r2? YES when my mobile device is connected to ap0 and data is turned off I can ping my main DSL Router

If also not: Have you enabled v4-routing on r2 (needs to be done every boot if only used the echo)? Make it permanant with sysctl.conf have you set default route for wifi-devices set to r2’s ap0-address? [/quote] I haven done this I will try it now one I google the command architecture

Turns out IPv4 Forwarding is enabled in /etc/sysctl.conf the following line is uncommented there net.ipv4.ip_forward=1

When you ask have you set default route for wifi-devices set to r2’s ap0- I havent done anything with each wifi device I thought they wouldnt need special treatment when just accessing another Access Point am I wrong?

default-route is normally pushed by dhcp if using it (default for wifi)

If using android you can use ip route command in any terminal-app

Hmm im rebooting my BPI-R2 and hoping every it gets pushed, if not I wont be able to use the BPI-R2 as my household router as having new devices that connect (Friends coming over) they will have to mess with there phone. :frowning:

Still no worky… DAMN