It seems everything went fine after building the deb package from 5.3-rc branch. I can see the DTB file exists in arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dtb in but the message “build uImage without appended DTB” still appears during the build
Kernel: arch/arm/boot/zImage is ready
Image Name: Linux Kernel 5.3.0-rc1
Created: Sat Aug 24 13:39:28 2019
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 7517433 Bytes = 7341.24 kB = 7.17 MB
Load Address: 80008000
Entry Point: 80008000
build uImage without appended DTB...
Image Name: Linux Kernel 5.3.0-rc1
Created: Sat Aug 24 13:39:34 2019
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 7488960 Bytes = 7313.44 kB = 7.14 MB
Load Address: 80008000
Entry Point: 80008000
===========================================
1) pack
2) install to SD-Card
3) deb-package
4) upload
choice [1234]:3
this is not an error…my build-script builds a uImage containing the dtb (appended_DTB-option) and one uImage without it (needed for dt-overlays where dtb have to be loaded separately)
but at least your dtb itself gets created, so you can now try to merge 1 branch, try to compile again, then the next and so on till it gets broken again and then compare whats changed between working and non-working. try starting with poweroff,wifi,and hdmi…lima is not working as fas as i know because it needs some additional setup for mesa
merging phylink can be tricky because it uses net-next-patches which may break something
It’s strange that after booting the 5.3-rc kernel I have a very limited set of modules loaded. I cannot even run iptables or perform masquerading. I have tried manually to load the module “ modprobe ipt_MASQUERADE ” and the serial console freezes.
Yes a did a new rebuild yesterday late night with rc6 and that crash does not appear anymore after connecting a cable to one of the LAN ports (br0).
I saw DHCP is working fine and I received IP address on PC behind BPI-R2 but I stiil need to setup NAT.
I’m using firewalld and later today I’ll try to setup masquerading and do some speed tests.
What is the default wan interface for 5.3-rc image ? I thought it was eth1 but I cannot see any eth1 interface available. I see the wan interface is bound to eth0.
Right now i’m using DHCP on wan interface
I’m trying to setup pppoe on wan but it seems it does not work when using pppoeconf tool on Debian.
Below is the list of the interfaces
ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group defau0
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
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP g0
link/ether e6:75:09:46:d5:d9 brd ff:ff:ff:ff:ff:ff
inet6 fe80::e475:9ff:fe46:d5d9/64 scope link
valid_lft forever preferred_lft forever
3: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1000
link/sit 0.0.0.0 brd 0.0.0.0
4: wan@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP 0
link/ether e6:75:09:46:d5:d9 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.146/24 brd 192.168.1.255 scope global dynamic wan
valid_lft 82744sec preferred_lft 82744sec
inet6 fe80::e475:9ff:fe46:d5d9/64 scope link
valid_lft forever preferred_lft forever
5: lan0@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master0
link/ether e6:75:09:46:d5:d9 brd ff:ff:ff:ff:ff:ff
6: lan1@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master0
link/ether e6:75:09:46:d5:d9 brd ff:ff:ff:ff:ff:ff
7: lan2@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master0
link/ether e6:75:09:46:d5:d9 brd ff:ff:ff:ff:ff:ff
8: lan3@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master0
link/ether e6:75:09:46:d5:d9 brd ff:ff:ff:ff:ff:ff
9: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br0 s0
link/ether f8:62:aa:50:16:10 brd ff:ff:ff:ff:ff:ff
10: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP grou0
link/ether e6:75:09:46:d5:d9 brd ff:ff:ff:ff:ff:ff
inet 192.168.40.1/24 brd 192.168.40.255 scope global br0
valid_lft forever preferred_lft forever
inet6 fe80::e475:9ff:fe46:d5d9/64 scope link
valid_lft forever preferred_lft forever
20: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast s0
link/none
inet 172.31.31.1/24 brd 172.31.31.255 scope global tun0
valid_lft forever preferred_lft forever
inet6 fe80::1d25:8055:949:edd5/64 scope link stable-privacy
valid_lft forever preferred_lft forever
eth1 is second gmac, which is only available if patches for second gmac are applied (4.19). i have not ported them because phylink-patches also using second gmac (renaming eth1 to wan) but with right setup.
so wan is connected to first gmac as it is displayed in “ip a” (wan@eth0)
have you set eth0 to up before configure wan to dhcp? you can try it manually by ip-tool and running “dhclient wan”
Right now my BPI-R2 wan port is connected behind other TP-link gigabit router and it receives DHCP on wan port from TP-link.
I want to get rid of the TP-link router and connect the PPPoE line directly into the BPI-R2 wan port.
This is the config I have in the interfaces file on Debian. Right now the PPP options are commented
auto eth0
iface eth0 inet manual
pre-up ip link set $IFACE up
post-down ip link set $IFACE down
auto eth1
iface eth1 inet manual
#auto dsl-provider
#iface dsl-provider inet ppp
#pre-up ip link set eth1 up
#provider dsl-provider
auto br0
iface br0 inet static
address 192.168.40.1
netmask 255.255.255.0
bridge_ports lan0 lan1 lan2 lan3 wlan0
bridge_fd 5
bridge_stp no
so your dhcp works (currently with your old router),right?
I have also pppoe running on wan,but with 2 vlan (but before i had 1 directly on wan). I suggest using a lts-kernel and setup well configured (whitelisting) iptables before using r2 directly on public internet!
if you have no second gmac you need to drop eth1 block (it will cause a hang on “raise network interfaces”) and change dsl-provider interface (also in /etc/ppp/peers) to wan instead of ethx
I have managed to setup the PPPoE connection on BPI-R2 router and it connected successfully (kernel 5.3-rc)
After running some speedtests I saw the maximum I can get on the BPI-R2 box is around 170Mbps download compared with the old TP-link router which can reach around 450Mbps (using DD-WRT).
I think the BPI-R2 limitations comes from missing HNAT support. The TPlink device has some hardware NAT implemented using SFE (shortcut forwarding engine)
I have an 500Mbps (download) / 250Mbps (upload) connection.