Ysurac / openmptcprouter

OpenMPTCProuter is an open source solution to aggregate multiple internet connections using Multipath TCP (MPTCP) on OpenWrt
https://www.openmptcprouter.com/
GNU General Public License v3.0
1.83k stars 259 forks source link

Allwinner h5 #3571

Open Silvanskii opened 2 weeks ago

Silvanskii commented 2 weeks ago

I have a few problems. 0.59-0.60r2 core 6.1 (I tried to compile all versions for H5) When I use any of these versions when connecting two modems in MBIM or NCM mode in modemmanager everything works fine until system reboot. After reboot new ports are assigned and the same modem is assigned to different wan1 and wan2 until you fix it manually. Sometimes it matches, but more often after rebooting the modems will not work until you select them manually. But the wifi and opkg tab works correctly. How to bind modem1 to wan1 and modem2 to wan2? 0.59-0.60r2 core 5.4 modemmanager Works great! after reboot all modems are in their places and USB port names do not change very fast as they did for core 6.1. But there is another problem, wifi and opkg tab doesn't work (I can't see how much free space is available) packages are installed via cli without problems. I have spent a lot of time compiling different versions, so far the result is like this.

2024-10-04_19-09-16 2024-10-04_19-09-52

Ysurac commented 2 weeks ago

Please use template. Try v0.61 snapshot, and if you have still same issue, I will need the result of uci show network

Silvanskii commented 2 weeks ago

Please use template. Try v0.61 snapshot, and if you have still same issue, I will need the result of uci show network

v0.61-6.1-develop I managed to do it the 1st time. Sometimes this error then loading "printk: console [ttyS0] disabled" appears and OS booting stops until reboot. Error "MPTCP kernel on router and VPS doesn't match" but server Debian12 core 6.1 2 modems in mmbi mode worked 3 times after reboot without additional settings. Like this. wan1=modem1 wan2=modem2 After several reboots wan1-modem1 wan2-modem1 and that's why it doesn't work. After every reboot a new wifi is created, even though I didn't even take it out of the pc, just rebooted 2024-10-04_23-36-14

---uci show network core 6.1--- network.loopback=interface network.loopback.proto='static' network.loopback.ipaddr='127.0.0.1' network.loopback.netmask='255.0.0.0' network.loopback.multipath='off' network.loopback.device='lo' network.loopback.metric='7' network.globals=globals network.globals.ula_prefix='fdaf:fb98:e19f::/48' network.globals.multipath='enable' network.globals.mptcp_path_manager='fullmesh' network.globals.mptcp_scheduler='default' network.globals.congestion='bbr' network.globals.mptcp_checksum='0' network.globals.mptcp_debug='0' network.globals.mptcp_syn_retries='4' network.globals.mptcp_subflows='8' network.globals.mptcp_add_addr_accepted='1' network.globals.mptcp_add_addr_timeout='120' network.globals.mptcp_pm_type='0' network.globals.mptcp_disable_initial_config='0' network.globals.mptcp_force_multipath='1' network.globals.mptcpd_enable='0' network.globals.mptcp_fullmesh_num_subflows='1' network.globals.mptcp_fullmesh_create_on_err='1' network.globals.mptcp_ndiffports_num_subflows='1' network.lan=interface network.lan.proto='static' network.lan.ipaddr='192.168.100.1' network.lan.netmask='255.255.255.0' network.lan.device='eth0' network.lan.ifname='eth0' network.lan.metric='9999' network.lan.ipv6='0' network.lan.delegate='0' network.lan.addlatency='0' network.lan.txqueuelen='2000' network.lan.multipath='off' network.lan.ip4table='lan' network.lan.defaultroute='0' network.lan.peerdns='0' network.lan_rule=rule network.lan_rule.lookup='lan' network.lan_rule.priority='100' network.wan1=interface network.wan1.proto='modemmanager' network.wan1.peerdns='0' network.wan1.device='/sys/devices/platform/soc/1c1b000.usb/usb6/6-1' network.wan1.iptype='ipv4' network.wan1.loglevel='ERR' network.wan1.multipath='master' network.wan1.addlatency='0' network.wan1.metric='5' network.wan1.ipv6='0' network.wan1.defaultroute='0' network.wan1.delegate='0' network.wan1.apn='internet' network.wan1.auth='none' network.wan1_dev=device network.wan1_dev.name='wan1' network.wan1_dev.txqueuelen='1000' network.wan2_dev=device network.wan2_dev.name='wan2' network.wan2_dev.txqueuelen='1000' network.omrvpn=interface network.omrvpn.device='tun0' network.omrvpn.proto='none' network.omrvpn.ip4table='vpn' network.omrvpn.multipath='off' network.omrvpn.leasetime='12h' network.omrvpn.type='tunnel' network.omrvpn.txqueuelen='100' network.omrvpn.metric='1500' network.tun0=device network.tun0.name='tun0' network.tun0.mtu='1500' network.omr6in4=interface network.omr6in4.proto='6in4' network.omr6in4.ip4table='vpn' network.omr6in4.multipath='off' network.omr6in4.ipaddr='10.255.255.2' network.omr6in4.peeraddr='10.255.255.1' network.omr6in4.gateway='fe80::a00:1/126' network.omr6in4.ip6addr='fe80::a00:2/126' network.omr6in4.auto='0' network.omr6in4.metric='1201' network.eth0_fw_rule6=rule6 network.eth0_fw_rule6.priority='1' network.eth0_fw_rule6.mark='0x65399999' network.eth0_fw_rule6.lookup='9999' network.wan1_fw_rule6=rule6 network.wan1_fw_rule6.priority='1' network.wan1_fw_rule6.mark='0x65395' network.wan1_fw_rule6.lookup='5' network.wan2_fw_rule6=rule6 network.wan2_fw_rule6.priority='1' network.wan2_fw_rule6.mark='0x65396' network.wan2_fw_rule6.lookup='6' network.tun0_fw_rule6=rule6 network.tun0_fw_rule6.priority='1' network.tun0_fw_rule6.mark='0x65391500' network.tun0_fw_rule6.lookup='1500' network.all_fw_rule6=rule6 network.all_fw_rule6.priority='1' network.all_fw_rule6.mark='0x6539' network.all_fw_rule6.lookup='6991337' network.wwan0_fw_rule6=rule6 network.wwan0_fw_rule6.priority='1' network.wwan0_fw_rule6.mark='0x65398' network.wwan0_fw_rule6.lookup='8' network.lan_dev=device network.lan_dev.name='eth0' network.wan3=interface network.wan3.proto='modemmanager' network.wan3.device='/sys/devices/platform/soc/1c1d000.usb/usb8/8-1/8-1.2' network.wan3.iptype='ipv4' network.wan3.loglevel='ERR' network.wan3.multipath='on' network.wan3.addlatency='0' network.wan3.metric='8' network.wan3.apn='internet' network.wan3.ipv6='0' network.wan3.defaultroute='0' network.wan3.peerdns='0' network.wan3.delegate='0' network.wan3.auth='none' network.wwan1_fw_rule6=rule6 network.wwan1_fw_rule6.priority='1' network.wwan1_fw_rule6.mark='0x65395' network.wwan1_fw_rule6.lookup='5' network.wan3_dev=device network.eth0_fw_rule=rule network.eth0_fw_rule.priority='1' network.eth0_fw_rule.mark='0x45399999' network.eth0_fw_rule.lookup='9999' network.wwan1_fw_rule=rule network.wwan1_fw_rule.priority='1' network.wwan1_fw_rule.mark='0x45395' network.wwan1_fw_rule.lookup='5' network.tun0_fw_rule=rule network.tun0_fw_rule.priority='1' network.tun0_fw_rule.mark='0x45391500' network.tun0_fw_rule.lookup='1500' network.wwan0_fw_rule=rule network.wwan0_fw_rule.priority='1' network.wwan0_fw_rule.mark='0x45398' network.wwan0_fw_rule.lookup='8' network.all_fw_rule=rule network.all_fw_rule.priority='1' network.all_fw_rule.mark='0x4539' network.all_fw_rule.lookup='991337'

---------------------------------v0.61-5.4-develop The wifi and opkg section is still not working in this version. ---uci show network core 5.4--- network.loopback=interface network.loopback.proto='static' network.loopback.ipaddr='127.0.0.1' network.loopback.netmask='255.0.0.0' network.loopback.multipath='off' network.loopback.device='lo' network.loopback.metric='5' network.globals=globals network.globals.ula_prefix='fd91:950a:4ebd::/48' network.globals.packet_steering='0' network.globals.multipath='enable' network.globals.mptcp_path_manager='fullmesh' network.globals.mptcp_scheduler='blest' network.globals.congestion='bbr2' network.globals.mptcp_checksum='0' network.globals.mptcp_debug='0' network.globals.mptcp_syn_retries='4' network.globals.mptcp_subflows='8' network.globals.mptcp_add_addr_accepted='1' network.globals.mptcp_add_addr_timeout='120' network.globals.mptcp_pm_type='0' network.globals.mptcp_disable_initial_config='0' network.globals.mptcp_force_multipath='1' network.globals.mptcpd_enable='0' network.globals.mptcp_fullmesh_num_subflows='1' network.globals.mptcp_fullmesh_create_on_err='1' network.globals.mptcp_ndiffports_num_subflows='1' network.lan=interface network.lan.proto='static' network.lan.ipaddr='192.168.100.1' network.lan.netmask='255.255.255.0' network.lan.device='eth0' network.lan.ifname='eth0' network.lan.ipv6='0' network.lan.delegate='0' network.lan.addlatency='0' network.lan.txqueuelen='2000' network.lan.multipath='off' network.lan.ip4table='lan' network.lan.metric='9999' network.lan_rule=rule network.lan_rule.lookup='lan' network.lan_rule.priority='100' network.wan1=interface network.wan1.proto='static' network.wan1.ip4table='wan' network.wan1.multipath='master' network.wan1.defaultroute='0' network.wan1.delegate='0' network.wan1.addlatency='0' network.wan1.type='macvlan' network.wan1.device='wan1' network.wan1.masterintf='eth0' network.wan1.peerdns='0' network.wan1.metric='6' network.wan1.ipv6='0' network.wan1_dev=device network.wan1_dev.txqueuelen='1000' network.wan1_dev.name='wan1' network.wan1_dev.type='macvlan' network.wan1_dev.ifname='eth0' network.wan1_dev.mode='vepa' network.wan1_dev.macaddr='92:4a:a9:fb:94:31' network.wan2=interface network.wan2.proto='static' network.wan2.ip4table='wan' network.wan2.multipath='on' network.wan2.defaultroute='0' network.wan2.delegate='0' network.wan2.addlatency='0' network.wan2.type='macvlan' network.wan2.device='wan2' network.wan2.masterintf='eth0' network.wan2.peerdns='0' network.wan2.metric='7' network.wan2.ipv6='0' network.wan2_dev=device network.wan2_dev.txqueuelen='1000' network.wan2_dev.name='wan2' network.wan2_dev.type='macvlan' network.wan2_dev.ifname='eth0' network.wan2_dev.mode='vepa' network.wan2_dev.macaddr='4c:43:a4:ca:8e:30' network.omrvpn=interface network.omrvpn.device='tun0' network.omrvpn.proto='none' network.omrvpn.ip4table='vpn' network.omrvpn.multipath='off' network.omrvpn.leasetime='12h' network.omrvpn.type='tunnel' network.omrvpn.txqueuelen='100' network.omrvpn.metric='1500' network.tun0=device network.tun0.name='tun0' network.tun0.mtu='1500' network.omr6in4=interface network.omr6in4.proto='6in4' network.omr6in4.ip4table='vpn' network.omr6in4.multipath='off' network.omr6in4.ipaddr='10.255.255.2' network.omr6in4.peeraddr='10.255.255.1' network.omr6in4.gateway='fe80::a00:1' network.omr6in4.ip6addr='fe80::a00:2/128' network.omr6in4.auto='0' network.omr6in4.metric='1201' 2024-10-04_23-50-18 2024-10-04_23-46-58

Ysurac commented 2 weeks ago

For snapshot, you need to use kernel 6.6. I don't see modems in your 5.4 config.

Silvanskii commented 2 weeks ago

For snapshot, you need to use kernel 6.6. I don't see modems in your 5.4 config. When I try to make an image with kernel 6.6 I get an error "bpf-headers failed to build". Maybe I'm doing the wrong commands to create the image: git switch -c v0.61-6.6 git checkout v0.61-6.6 OMR_TARGET="Deb12-i9-0.61-6.6" OMR_RELEASE="0.61-6.6" OMR_KERNEL="6.6" ./build.sh

Silvanskii commented 2 weeks ago

For snapshot, you need to use kernel 6.6. I don't see modems in your 5.4 config. uci show network ---- core 5.4 (Work good) network.loopback=interface network.loopback.proto='static' network.loopback.ipaddr='127.0.0.1' network.loopback.netmask='255.0.0.0' network.loopback.multipath='off' network.loopback.device='lo' network.loopback.metric='7' network.globals=globals network.globals.ula_prefix='fdea:2e38:2b37::/48' network.globals.multipath='enable' network.globals.mptcp_path_manager='fullmesh' network.globals.mptcp_scheduler='blest' network.globals.congestion='bbr2' network.globals.mptcp_checksum='0' network.globals.mptcp_debug='0' network.globals.mptcp_syn_retries='4' network.globals.mptcp_subflows='8' network.globals.mptcp_add_addr_accepted='1' network.globals.mptcp_add_addr_timeout='120' network.globals.mptcp_pm_type='0' network.globals.mptcp_disable_initial_config='0' network.globals.mptcp_force_multipath='1' network.globals.mptcpd_enable='0' network.globals.mptcp_fullmesh_num_subflows='1' network.globals.mptcp_fullmesh_create_on_err='1' network.globals.mptcp_ndiffports_num_subflows='1' network.lan=interface network.lan.proto='static' network.lan.ipaddr='192.168.100.1' network.lan.netmask='255.255.255.0' network.lan.device='eth0' network.lan.ifname='eth0' network.lan.ipv6='0' network.lan.delegate='0' network.lan.addlatency='0' network.lan.txqueuelen='2000' network.lan.multipath='off' network.lan.ip4table='lan' network.lan.metric='9999' network.lan_rule=rule network.lan_rule.lookup='lan' network.lan_rule.priority='100' network.wan1=interface network.wan1.type='macvlan' network.wan1.masterintf='eth0' network.wan1.peerdns='0' network.wan1.proto='modemmanager' network.wan1.device='/sys/devices/platform/soc/1c1d000.usb/usb4/4-1/4-1.2' network.wan1.iptype='ipv4v6' network.wan1.loglevel='ERR' network.wan1.multipath='off' network.wan1.addlatency='0' network.wan1.metric='5' network.wan1_dev=device network.wan1_dev.txqueuelen='1000' network.wan1_dev.name='wan1' network.wan1_dev.type='macvlan' network.wan1_dev.ifname='eth0' network.wan1_dev.mode='vepa' network.wan1_dev.macaddr='20:ce:65:66:a7:ca' network.wan2=interface network.wan2.type='macvlan' network.wan2.masterintf='eth0' network.wan2.peerdns='0' network.wan2.proto='modemmanager' network.wan2.device='/sys/devices/platform/soc/1c1b000.usb/usb2/2-1' network.wan2.iptype='ipv4v6' network.wan2.loglevel='ERR' network.wan2.multipath='off' network.wan2.addlatency='0' network.wan2.metric='6' network.wan2_dev=device network.wan2_dev.txqueuelen='1000' network.wan2_dev.name='wan2' network.wan2_dev.type='macvlan' network.wan2_dev.ifname='eth0' network.wan2_dev.mode='vepa' network.wan2_dev.macaddr='a6:1b:c2:18:d6:8c' network.omrvpn=interface network.omrvpn.device='tun0' network.omrvpn.proto='none' network.omrvpn.ip4table='vpn' network.omrvpn.multipath='off' network.omrvpn.leasetime='12h' network.omrvpn.type='tunnel' network.omrvpn.txqueuelen='100' network.omrvpn.metric='1500' network.tun0=device network.tun0.name='tun0' network.tun0.mtu='1500' network.omr6in4=interface network.omr6in4.proto='6in4' network.omr6in4.ip4table='vpn' network.omr6in4.multipath='off' network.omr6in4.ipaddr='10.255.255.2' network.omr6in4.peeraddr='10.255.255.1' network.omr6in4.gateway='fe80::a00:1' network.omr6in4.ip6addr='fe80::a00:2/128' network.omr6in4.auto='0' network.omr6in4.metric='1201'

Silvanskii commented 2 weeks ago

--------- v0.61-snapshot-6.6-develop ---------
Special thanks for the fact that I can now see the temperature of the device again, this function has been missing for a long time and this version works! In the log, some commands occur 2 times. After rebooting a new interface appears in the wifi tab and it has to be configured again (in kernel version 5.4 I rebooted more than 10 times and the interface was the same). Unfortunately after times of rebooting the modems stopped working. Wan1=modem1, wan2=modem. I see that the log says everything is fine, but the names from the log and the USB names do not match. 2024-10-05_19-53-53 2024-10-05_20-04-25 2024-10-05_20-04-35 2024-10-05_20-05-03

root@OpenMPTCProuter:~# uci show network network.loopback=interface network.loopback.proto='static' network.loopback.ipaddr='127.0.0.1' network.loopback.netmask='255.0.0.0' network.loopback.multipath='off' network.loopback.device='lo' network.loopback.metric='6' network.globals=globals network.globals.ula_prefix='fdaf:fb98:e19f::/48' network.globals.multipath='enable' network.globals.mptcp_path_manager='fullmesh' network.globals.mptcp_checksum='0' network.globals.mptcp_debug='0' network.globals.mptcp_syn_retries='4' network.globals.mptcp_subflows='8' network.globals.mptcp_add_addr_accepted='1' network.globals.mptcp_add_addr_timeout='120' network.globals.mptcp_pm_type='0' network.globals.mptcp_disable_initial_config='0' network.globals.mptcp_force_multipath='1' network.globals.mptcpd_enable='0' network.globals.mptcp_fullmesh_num_subflows='1' network.globals.mptcp_fullmesh_create_on_err='1' network.globals.mptcp_ndiffports_num_subflows='1' network.globals.mptcp_scheduler='blest' network.globals.congestion='bbr' network.lan=interface network.lan.proto='static' network.lan.ipaddr='192.168.100.1' network.lan.netmask='255.255.255.0' network.lan.device='br-lan' network.lan.ipv6='0' network.lan.delegate='0' network.lan.addlatency='0' network.lan.txqueuelen='2000' network.lan.multipath='off' network.lan.ip4table='lan' network.lan.defaultroute='0' network.lan.peerdns='0' network.lan.metric='9999' network.lan_rule=rule network.lan_rule.lookup='lan' network.lan_rule.priority='100' network.wan1=interface network.wan1.peerdns='0' network.wan1.modalias='usb:v2CB7p0007d0333dcEFdsc02dp01ic02isc0Eip00in00-72:4c:7 7:bb:cc:74' network.wan1.product='2cb7/7/333' network.wan1.proto='modemmanager' network.wan1.device='/sys/devices/platform/soc/1c1b000.usb/usb9/9-1' network.wan1.loglevel='ERR' network.wan1.addlatency='0' network.wan1.ipv6='0' network.wan1.defaultroute='0' network.wan1.delegate='0' network.wan1.multipath='master' network.wan1.apn='internet' network.wan1.iptype='ipv4' network.wan1.metric='3' network.wan1_dev=device network.wan1_dev.name='wan1' network.wan1_dev.txqueuelen='1000' network.wan2=interface network.wan2.peerdns='0' network.wan2.modalias='usb:v2CB7p0007d0333dcEFdsc02dp01ic02isc0Eip00in00-72:4c:7 7:bb:cc:74' network.wan2.product='2cb7/7/333' network.wan2.proto='modemmanager' network.wan2.loglevel='ERR' network.wan2.addlatency='0' network.wan2.ipv6='0' network.wan2.multipath='on' network.wan2.defaultroute='0' network.wan2.delegate='0' network.wan2.apn='internet' network.wan2.iptype='ipv4' network.wan2.device='/sys/devices/platform/soc/1c1d000.usb/usb3/3-1/3-1.2' network.wan2.metric='4' network.wan2_dev=device network.wan2_dev.name='wan2' network.wan2_dev.txqueuelen='1000' network.omrvpn=interface network.omrvpn.device='tun0' network.omrvpn.ip4table='vpn' network.omrvpn.multipath='off' network.omrvpn.leasetime='12h' network.omrvpn.type='tunnel' network.omrvpn.txqueuelen='100' network.omrvpn.proto='none' network.omrvpn.metric='1500' network.tun0=device network.tun0.name='tun0' network.tun0.mtu='1500' network.omr6in4=interface network.omr6in4.proto='6in4' network.omr6in4.ip4table='vpn' network.omr6in4.multipath='off' network.omr6in4.ipaddr='10.255.255.2' network.omr6in4.peeraddr='10.255.255.1' network.omr6in4.auto='0' network.omr6in4.ip6addr='fd00::a00:2/126' network.omr6in4.gateway='fd00::a00:1/126' network.omr6in4.metric='1201' network.eth0_fw_rule6=rule6 network.eth0_fw_rule6.priority='1' network.eth0_fw_rule6.mark='0x65399999' network.eth0_fw_rule6.lookup='9999' network.wan1_fw_rule6=rule6 network.wan1_fw_rule6.priority='1' network.wan1_fw_rule6.mark='0x65395' network.wan1_fw_rule6.lookup='5' network.wan2_fw_rule6=rule6 network.wan2_fw_rule6.priority='1' network.wan2_fw_rule6.mark='0x65396' network.wan2_fw_rule6.lookup='6' network.tun0_fw_rule6=rule6 network.tun0_fw_rule6.priority='1' network.tun0_fw_rule6.mark='0x65391500' network.tun0_fw_rule6.lookup='1500' network.all_fw_rule6=rule6 network.all_fw_rule6.priority='1' network.all_fw_rule6.mark='0x6539' network.all_fw_rule6.lookup='6991337' network.wwan1_fw_rule6=rule6 network.wwan1_fw_rule6.priority='1' network.wwan1_fw_rule6.mark='0x65396' network.wwan1_fw_rule6.lookup='6' network.wwan0_fw_rule6=rule6 network.wwan0_fw_rule6.priority='1' network.wwan0_fw_rule6.mark='0x65395' network.wwan0_fw_rule6.lookup='5' network.lan_dev=device network.lan_dev.name='eth0' network.phy2_ap0_fw_rule6=rule6 network.phy2_ap0_fw_rule6.priority='1' network.phy2_ap0_fw_rule6.mark='0x65398' network.phy2_ap0_fw_rule6.lookup='8' network.@device[4]=device network.@device[4].name='br-lan' network.@device[4].type='bridge' network.@device[4].ports='eth0' network.br_lan_fw_rule6=rule6 network.br_lan_fw_rule6.priority='1' network.br_lan_fw_rule6.mark='0x65399999' network.br_lan_fw_rule6.lookup='9999' network.wan3=interface network.wan3.proto='dhcp' network.wan3.device='eth7' network.wan3.addlatency='0' network.wan3.ipv6='0' network.wan3.multipath='on' network.wan3.defaultroute='0' network.wan3.peerdns='0' network.wan3.delegate='0' network.wan3.metric='5' network.wan3_dev=device network.wan3_dev.name='eth7' network.eth7_fw_rule6=rule6 network.eth7_fw_rule6.priority='1' network.eth7_fw_rule6.mark='0x65395' network.eth7_fw_rule6.lookup='5' network.ppp0_fw_rule6=rule6 network.ppp0_fw_rule6.priority='1' network.ppp0_fw_rule6.mark='0x65394' network.ppp0_fw_rule6.lookup='4' network.ppp1_fw_rule6=rule6 network.ppp1_fw_rule6.priority='1' network.ppp1_fw_rule6.mark='0x65393' network.ppp1_fw_rule6.lookup='3' network.br_lan_fw_rule=rule network.br_lan_fw_rule.priority='1' network.br_lan_fw_rule.mark='0x45399999' network.br_lan_fw_rule.lookup='9999' network.tun0_fw_rule=rule network.tun0_fw_rule.priority='1' network.tun0_fw_rule.mark='0x45391500' network.tun0_fw_rule.lookup='1500' network.eth7_fw_rule=rule network.eth7_fw_rule.priority='1' network.eth7_fw_rule.mark='0x45395' network.eth7_fw_rule.lookup='5' network.all_fw_rule=rule network.all_fw_rule.priority='1' network.all_fw_rule.mark='0x4539' network.all_fw_rule.lookup='991337'

Silvanskii commented 2 weeks ago

-----0.61 - 5.4 snapshot ------ No temperature display, also wireless partition doesn't work and no free space for opkg (in 0.61 core 6.6 it all works)/ New red errors that I didn't see before, but they disappeared 6 minutes after powering on. Most in this version and in 0.60rc1-5.4-develop the modems work fine. After rebooting everything is in place. WIFI I configured manually and it works, without web interface. 2024-10-05_20-12-32 2024-10-05_20-12-42 2024-10-05_20-24-35

root@OpenMPTCProuter:~# uci show network network.loopback=interface network.loopback.proto='static' network.loopback.ipaddr='127.0.0.1' network.loopback.netmask='255.0.0.0' network.loopback.multipath='off' network.loopback.device='lo' network.loopback.metric='9' network.globals=globals network.globals.ula_prefix='fdaf:fb98:e19f::/48' network.globals.multipath='enable' network.globals.mptcp_path_manager='fullmesh' network.globals.congestion='bbr' network.globals.mptcp_checksum='0' network.globals.mptcp_debug='0' network.globals.mptcp_syn_retries='4' network.globals.mptcp_subflows='8' network.globals.mptcp_add_addr_accepted='1' network.globals.mptcp_add_addr_timeout='120' network.globals.mptcp_pm_type='0' network.globals.mptcp_disable_initial_config='0' network.globals.mptcp_force_multipath='1' network.globals.mptcpd_enable='0' network.globals.mptcp_fullmesh_num_subflows='1' network.globals.mptcp_fullmesh_create_on_err='1' network.globals.mptcp_ndiffports_num_subflows='1' network.globals.mptcp_scheduler='blest' network.lan=interface network.lan.proto='static' network.lan.ipaddr='192.168.100.1' network.lan.netmask='255.255.255.0' network.lan.device='br-lan' network.lan.metric='9999' network.lan.ipv6='0' network.lan.delegate='0' network.lan.addlatency='0' network.lan.txqueuelen='2000' network.lan.multipath='off' network.lan.ip4table='lan' network.lan.defaultroute='0' network.lan.peerdns='0' network.lan_rule=rule network.lan_rule.lookup='lan' network.lan_rule.priority='100' network.wan1=interface network.wan1.peerdns='0' network.wan1.modalias='usb:v2CB7p0007d0333dcEFdsc02dp01ic02isc0Eip00in00-72:4c:77:bb:cc:74' network.wan1.product='2cb7/7/333' network.wan1.proto='modemmanager' network.wan1.device='/sys/devices/platform/soc/1c1b000.usb/usb2/2-1' network.wan1.loglevel='ERR' network.wan1.addlatency='0' network.wan1.ipv6='0' network.wan1.defaultroute='0' network.wan1.delegate='0' network.wan1.multipath='master' network.wan1.apn='internet' network.wan1.metric='10' network.wan1.iptype='ipv4' network.wan1_dev=device network.wan1_dev.name='wan1' network.wan1_dev.txqueuelen='1000' network.wan2=interface network.wan2.peerdns='0' network.wan2.modalias='usb:v2CB7p0007d0333dcEFdsc02dp01ic02isc0Eip00in00-72:4c:77:bb:cc:74' network.wan2.product='2cb7/7/333' network.wan2.proto='modemmanager' network.wan2.loglevel='ERR' network.wan2.addlatency='0' network.wan2.ipv6='0' network.wan2.multipath='on' network.wan2.defaultroute='0' network.wan2.delegate='0' network.wan2.apn='internet' network.wan2.iptype='ipv4' network.wan2.device='/sys/devices/platform/soc/1c1d000.usb/usb4/4-1/4-1.2' network.wan2.metric='11' network.wan2_dev=device network.wan2_dev.name='wan2' network.wan2_dev.txqueuelen='1000' network.omrvpn=interface network.omrvpn.device='tun0' network.omrvpn.ip4table='vpn' network.omrvpn.multipath='off' network.omrvpn.leasetime='12h' network.omrvpn.type='tunnel' network.omrvpn.txqueuelen='100' network.omrvpn.metric='1500' network.omrvpn.proto='none' network.tun0=device network.tun0.name='tun0' network.tun0.mtu='1500' network.omr6in4=interface network.omr6in4.proto='6in4' network.omr6in4.ip4table='vpn' network.omr6in4.multipath='off' network.omr6in4.ipaddr='10.255.255.2' network.omr6in4.peeraddr='10.255.255.1' network.omr6in4.auto='0' network.omr6in4.metric='1201' network.omr6in4.ip6addr='fd00::a00:2/126' network.omr6in4.gateway='fd00::a00:1/126' network.eth0_fw_rule6=rule6 network.eth0_fw_rule6.priority='1' network.eth0_fw_rule6.mark='0x65399999' network.eth0_fw_rule6.lookup='9999' network.wan1_fw_rule6=rule6 network.wan1_fw_rule6.priority='1' network.wan1_fw_rule6.mark='0x65395' network.wan1_fw_rule6.lookup='5' network.wan2_fw_rule6=rule6 network.wan2_fw_rule6.priority='1' network.wan2_fw_rule6.mark='0x65396' network.wan2_fw_rule6.lookup='6' network.tun0_fw_rule6=rule6 network.tun0_fw_rule6.priority='1' network.tun0_fw_rule6.mark='0x65391500' network.tun0_fw_rule6.lookup='1500' network.all_fw_rule6=rule6 network.all_fw_rule6.priority='1' network.all_fw_rule6.mark='0x6539' network.all_fw_rule6.lookup='6991337' network.wwan1_fw_rule6=rule6 network.wwan1_fw_rule6.priority='1' network.wwan1_fw_rule6.mark='0x65396' network.wwan1_fw_rule6.lookup='6' network.wwan0_fw_rule6=rule6 network.wwan0_fw_rule6.priority='1' network.wwan0_fw_rule6.mark='0x65395' network.wwan0_fw_rule6.lookup='5' network.lan_dev=device network.lan_dev.name='eth0' network.phy2_ap0_fw_rule6=rule6 network.phy2_ap0_fw_rule6.priority='1' network.phy2_ap0_fw_rule6.mark='0x65398' network.phy2_ap0_fw_rule6.lookup='8' network.@device[4]=device network.@device[4].name='br-lan' network.@device[4].type='bridge' network.@device[4].ports='eth0' network.br_lan_fw_rule6=rule6 network.br_lan_fw_rule6.priority='1' network.br_lan_fw_rule6.mark='0x65399999' network.br_lan_fw_rule6.lookup='9999' network.br_lan_fw_rule=rule network.br_lan_fw_rule.priority='1' network.br_lan_fw_rule.mark='0x45399999' network.br_lan_fw_rule.lookup='9999' network.tun0_fw_rule=rule network.tun0_fw_rule.priority='1' network.tun0_fw_rule.mark='0x45391500' network.tun0_fw_rule.lookup='1500' network.all_fw_rule=rule network.all_fw_rule.priority='1' network.all_fw_rule.mark='0x4539' network.all_fw_rule.lookup='991337'

Ysurac commented 2 weeks ago

Don't try 5.4 kernel, it's a legacy version so without any updates. For 6.6, I'm not sure to understand correctly, you have issues with modems or wireless ? Modems should always be same as it's using the direct USB path to modem so if modem stay on same USB port (internal or external), it should always be same modem. For wireless, if you have issues, I would need uci show wireless

Silvanskii commented 2 weeks ago

Don't try 5.4 kernel, it's a legacy version so without any updates. For 6.6, I'm not sure to understand correctly, you have issues with modems or wireless ? Modems should always be same as it's using the direct USB path to modem so if modem stay on same USB port (internal or external), it should always be same modem. For wireless, if you have issues, I would need uci show wireless

For version 6.6 there is a problem with modems. After reboot they don't work as wan1=modem1 wan2=modem1. In version 6.6 wifi and opkg works fine. I think the problem is with interface assignment. After 10 reboots in kernel 5.4 radio0=wifi0, in kernel 6.1 and 6.6 every reboot new names for the interface, but they do not change from their location, all devices are set in the same place and not removed.

Ysurac commented 1 week ago

Make sure you have "Disable interfaces auto rename" checked in System->OpenMPTCProuter, "Advanced settings" tab.

Silvanskii commented 1 week ago

Make sure you have "Disable interfaces auto rename" checked in System->OpenMPTCProuter, "Advanced settings" tab.

I checked the position, Disable renaming interfaces in the enabled position. There are a lot of new interfaces after the reboot. 2024-10-10_10-36-06 I spent several days testing, modemmanager works quite poorly in the 6.6 kernel. After about a reboot, the modem does not start working. I replaced the modem, it is preserved. I installed the 5.4 kernel and I see the modem in it every reboot and it works.

Silvanskii commented 1 week ago

Today I turned on h5 with kernel 6.6 and it didn't work. Went to look through uart and the configs are missing...this is after about 20 reboots 2024-10-11_08-18-40

Ysurac commented 1 week ago

As it's not supported hardware and I don't own any, it's difficult to help...

Silvanskii commented 1 week ago

What's the bottom line: Kernel 6.6. wan interfaces do not keep their places after reboot. I created different types of interfaces and like QMI and Modemmeneger and it got better. WI-fi new interface is not every reboot anymore, better than in kernel 6.1r2 but still often enough I have to go in and reconfigure. After several reboots sometimes some of the modems are not displayed, after rebooting it starts working. And the worst thing is that after rebooting the configs disappeared and it stopped working.

Kernel 6.1 version 061r2 To enable it I have to reboot several times, judging by uart everything hangs after the message “[ttyS0] disabled”. Wifi is often new. Modemmanedger is not stable.

Kernel 5.4 version 0.60rc1 Interfaces qmi and Modemmanedger work well Wifi in the same place after many reboots The page for wifi and opkg configuration does not work

Silvanskii commented 1 week ago

As it's not supported hardware and I don't own any, it's difficult to help...

actually overall it's fine, maybe there are tips on how to fix the web page in kernel 5.4 and I would keep this the most stable option to work with. Or perhaps there is something I can do to help troubleshoot this problem

Silvanskii commented 3 days ago

As it's not supported hardware and I don't own any, it's difficult to help...

I've tried the versions: 0.61r3 core 6.6 the situation with modemmaneger is the same, it also mixes interfaces several times. The situation with wifi became better, after 20 reboots there were only 3 wifi interfaces, in comparison with core 6.1 there were more than 8 wifi for 20 reboots. On the downside, in this version modems hang more often and have to be rebooted. But in this version modems in QMI mode work quite well. 0.61r3 core 5.4 compilation error with shadowsocks-rust package Page with wifi and opkg configuration does not work. Modems hang in mmbi and qmi mode. There is an error in the kernel log. 2024-10-17_12-21-44

As a result, now version 0.61r1 core 5.4 is the most stable in modemmanager, I do not know why but in it after 20 reboots all modems work perfectly and wifi works stably, but do not work wifi and opkg configuration pages, through cli everything is well configured, but not very convenient. Is it possible to make user commands in the web interface? e.g. reboot wifi or something like that, so that you don't have to go to the command line. Or maybe there is an archive of kernel 5.15? I think on this kernel will work fine since the board is quite old?

Silvanskii commented 18 hours ago

As it's not supported hardware and I don't own any, it's difficult to help...

It was a ridiculous situation. I installed version 5.4 core and accidentally opened the /cgi-bin/luci/admin/network/wireless page in another browser and it works correctly. This page /cgi-bin/luci/admin/system/opkg also works correctly. I reopened google chome and both pages are not working. I deleted the history, cleaned the cache and still the pages don't work. Uninstalled google chome with all folders and reinstalled, everything works fine. After compiling more than 20 versions I did not expect that it can not work only because of the browser. I wrote this for the future, maybe someone will have such problems.