openmptcprouter icon indicating copy to clipboard operation
openmptcprouter copied to clipboard

Banana PI BPI-R2

Open Ysurac opened this issue 7 years ago • 62 comments

What is working:

  • LAN & WAN (using 2 GMAC)
  • Hardware NAT (HNAT)

What is not working:

  • Ethernet when something on LAN (that are used as WAN) ports
  • Wifi
  • Bluetooth
  • Hardware QoS

What is not tested:

  • 4G using PCI-E

Ysurac avatar Sep 27 '18 14:09 Ysurac

Wifi was working, but not working now... Can't load wlan_gen2 module:

[   14.028644] vmap allocation for size 425984 failed: use vmalloc=<size> to increase size
[   14.036630] kmodloader: vmalloc: allocation failure: 421888 bytes, mode:0x14000c0(GFP_KERNEL), nodemask=(null)
[   14.046586] CPU: 2 PID: 344 Comm: kmodloader Not tainted 4.14.71 #0
[   14.052797] Hardware name: Mediatek Cortex-A7 (Device Tree)
[   14.058340] [<c010f1d4>] (unwind_backtrace) from [<c010b2f8>] (show_stack+0x10/0x14)
[   14.066024] [<c010b2f8>] (show_stack) from [<c062c7bc>] (dump_stack+0x78/0x8c)
[   14.073192] [<c062c7bc>] (dump_stack) from [<c01a3698>] (warn_alloc+0xc0/0x16c)
[   14.080446] [<c01a3698>] (warn_alloc) from [<c01ce1cc>] (__vmalloc_node_range+0x218/0x224)
[   14.088645] [<c01ce1cc>] (__vmalloc_node_range) from [<c010c63c>] (module_alloc+0x4c/0x54)
[   14.096843] [<c010c63c>] (module_alloc) from [<c017f434>] (load_module+0x9e8/0x20f0)
[   14.104524] [<c017f434>] (load_module) from [<c0180c68>] (SyS_init_module+0x12c/0x160)
[   14.112378] [<c0180c68>] (SyS_init_module) from [<c01079a0>] (ret_fast_syscall+0x0/0x54)
[   14.120800] kmodloader: 1 module could not be probed
[   14.125904] kmodloader: - wlan_gen2 - 0

And it's not a problem with vmalloc size.

Ysurac avatar Sep 27 '18 14:09 Ysurac

Wifi is solved in OpenMPTCProuter 0.37.3

Ysurac avatar Sep 28 '18 16:09 Ysurac

I am unable to get 0.37.3 working correctly.

  1. I seem to loose my settings after a reboot, its like the settings are stored on a RAM disk. I am booting from SD not EMMC.
  2. I set WAN1 to DHCP, an IP address was obtained and I could see the default route was set correctly (I had not enabled shadowsocks or the VPN yet) however internet connectivity was very intermittent, almost like HNAT isn't working.

its27 avatar Sep 30 '18 18:09 its27

  1. Changes are stored on JFFS2 partition that can take some time to be initialized at startup
  2. There is a network problem when something is connected to "lan" ports... Need to fix this.

Ysurac avatar Sep 30 '18 18:09 Ysurac

  1. Can this be improved? When I boot it tells me I need to set a root password again.
  2. Thanks, will it help if I make the LAN ports all bridges as LAN and use the single WAN port for now?

its27 avatar Sep 30 '18 19:09 its27

  1. Maybe
  2. No. But you can use Macvlan instead.

Ysurac avatar Sep 30 '18 19:09 Ysurac

Ok thanks, I hope than LAN ports can be used soon.

its27 avatar Sep 30 '18 19:09 its27

Do you know when you may be able to release a fix for the LAN ports and config?

its27 avatar Oct 05 '18 15:10 its27

When it will be fixed.

Ysurac avatar Oct 05 '18 15:10 Ysurac

When using a already used sd card, rootfs_data need to be erased. So for now a mtd -r erase rootfs_data on OpenMPTCProuter will erase this partition and reboot. At reboot the partition should be formatted to JFFS2 and is used to save all changes made.

Ysurac avatar Oct 06 '18 06:10 Ysurac

working emmc can save config mtd -r erase rootfs_data

thanks

kapook007 avatar Oct 07 '18 03:10 kapook007

Are the LAN ports still a problem with 0.38?

its27 avatar Oct 11 '18 17:10 its27

LAN ports cycle up and down.

Ysurac avatar Oct 12 '18 12:10 Ysurac

Ok does this need to be fixed by openwrt or the vendor?

its27 avatar Oct 12 '18 18:10 its27

OpenWrt doesn't fully support Banana PI R2 and the vendor doesn't support kernel 4.14... So this will be fixed by me when I will be able to find exactly what is causing this.

Ysurac avatar Oct 12 '18 18:10 Ysurac

Last crash:

[171111.766436] WARNING: CPU: 3 PID: 0 at net/sched/sch_generic.c:320 dev_watchdog+0x158/0x224
[171111.774740] NETDEV WATCHDOG: eth1 (mtk_soc_eth): transmit queue 0 timed out
[171111.781737] Modules linked in: rtl8192cu rtl8192c_common rtl_usb rt2800usb rt2800lib qcserial option ipw cdc_mbim wlan_gen2 usb_wwan usb_serial_simple ti_usb_3410_5052 sr9700 smsc95xx sierra_net sierra rtlwifi rtl8xxxu rt2x00usb rt2x00lib rndis_host qmi_wwan pppoe ppp_async pl2303 oti6858 nf_nat_pptp nf_conntrack_pptp mt76x2e mt7603e mt7601u mt76 mos7720 mmc_spi mct_u232 mcs7830 mac80211 keyspan kalmia iptable_nat ipt_REJECT ipt_MASQUERADE huawei_cdc_ncm garmin_gps ftdi_sio ebtable_nat ebtable_filter ebtable_broute dm9601 cypress_m8 cp210x ch341 cfg80211 cdc_subset cdc_ncm cdc_ether cdc_eem belkin_sa bas_gigaset ax88179_178a asix ark3116 xt_time xt_tcpudp xt_tcpmss xt_statistic xt_state xt_recent xt_quota xt_pkttype xt_owner xt_ndpi xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_iface xt_hl
[171111.852312]  xt_helper xt_hashlimit xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_condition xt_comment xt_addrtype xt_TRACE xt_TPROXY xt_TCPMSS xt_REDIRECT xt_LOG xt_IPMARK xt_HL xt_FLOWOFFLOAD xt_DSCP xt_CT xt_CLASSIFY xt_ACCOUNT visor via_velocity via_rhine usbserial usbnet usbhid usb_gigaset tulip ts_fsm ts_bm solos_pci sky2 skge sis900 sis190 ser_gigaset rtl8150 r8712u r8169 r8152 r6040 pppox ppp_generic pegasus pcnet32 of_mmc_spi nf_reject_ipv4 nf_nat_tftp nf_nat_snmp_basic nf_nat_sip nf_nat_redirect nf_nat_proto_gre nf_nat_masquerade_ipv4 nf_nat_irc nf_conntrack_ipv4 nf_nat_ipv4 nf_nat_h323 nf_nat_ftp nf_nat_amanda nf_log_ipv4 nf_flow_table_hw nf_flow_table nf_defrag_ipv4 nf_conntrack_tftp nf_conntrack_snmp nf_conntrack_sip nf_conntrack_rtcache nf_conntrack_proto_gre
[171111.922438]  nf_conntrack_netlink nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp nf_conntrack_broadcast ts_kmp nf_conntrack_amanda ne2k_pci macvlan kaweth iptable_raw iptable_mangle iptable_filter ipt_ECN ipheth ip6table_raw ip_tables hso hid_generic gigaset forcedeth ezusb ethoc et131x ebtables ebt_vlan ebt_stp ebt_redirect ebt_pkttype ebt_mark_m ebt_mark ebt_limit ebt_among ebt_802_3 e1000e e100 crc7 crc_itu_t crc_ccitt compat_xtables compat cdc_wdm cdc_acm bnx2 atl2 atl1e atl1c atl1 arptable_filter arpt_mangle arp_tables 8390 8250_pci mtkhnat 8139too 8139cp sch_cake act_skbedit act_mirred em_u32 cls_u32 cls_tcindex cls_flow cls_route cls_fw sch_tbf sch_htb sch_hfsc sch_ingress configs hid evdev input_core i2c_gpio i2c_algo_bit spi_ks8995 xt_set ip_set_list_set ip_set_hash_netiface ip_set_hash_netport
[171111.993714]  ip_set_hash_netnet ip_set_hash_net ip_set_hash_netportnet ip_set_hash_mac ip_set_hash_ipportnet ip_set_hash_ipportip ip_set_hash_ipport ip_set_hash_ipmark ip_set_hash_ip ip_set_bitmap_port ip_set_bitmap_ipmac ip_set_bitmap_ip ip_set nfnetlink ip6t_NPT ip6t_MASQUERADE nf_nat_masquerade_ipv6 ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 nf_nat nf_conntrack ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables dss1_divert isdn_bsdcomp isdn slhc 3c59x vmxnet3 e1000 ifb dm9000 sit sctp libcrc32c tunnel4 ip_tunnel hfcpci hfcmulti veth tun l1oip mISDN_dsp mISDN_core vfat fat br2684 atm nls_utf8 nls_iso8859_1 nls_cp437 natsemi broadcom bcm_phy_lib md5 usb_storage leds_gpio ahci libahci libata ehci_platform sd_mod scsi_mod ehci_hcd
[171112.064014]  gpio_button_hotplug tg3 b44 ssb ptp pps_core mii
[171112.069815] CPU: 3 PID: 0 Comm: swapper/3 Not tainted 4.14.72 #0
[171112.075853] Hardware name: Mediatek Cortex-A7 (Device Tree)
[171112.081482] [<c010f1f4>] (unwind_backtrace) from [<c010b318>] (show_stack+0x10/0x14)
[171112.089254] [<c010b318>] (show_stack) from [<c063223c>] (dump_stack+0x78/0x8c)
[171112.096507] [<c063223c>] (dump_stack) from [<c0117210>] (__warn+0xe4/0x100)
[171112.103500] [<c0117210>] (__warn) from [<c0117264>] (warn_slowpath_fmt+0x38/0x48)
[171112.111012] [<c0117264>] (warn_slowpath_fmt) from [<c053cb48>] (dev_watchdog+0x158/0x224)
[171112.119213] [<c053cb48>] (dev_watchdog) from [<c0167c4c>] (call_timer_fn.constprop.3+0x28/0x94)
[171112.127928] [<c0167c4c>] (call_timer_fn.constprop.3) from [<c0167e14>] (run_timer_softirq+0x15c/0x1b4)
[171112.137247] [<c0167e14>] (run_timer_softirq) from [<c010155c>] (__do_softirq+0xe4/0x250)
[171112.145362] [<c010155c>] (__do_softirq) from [<c011bd9c>] (irq_exit+0xac/0xbc)
[171112.152614] [<c011bd9c>] (irq_exit) from [<c0155110>] (__handle_domain_irq+0xbc/0xe4)
[171112.160467] [<c0155110>] (__handle_domain_irq) from [<c0101440>] (gic_handle_irq+0x5c/0x90)
[171112.168836] [<c0101440>] (gic_handle_irq) from [<c010becc>] (__irq_svc+0x6c/0xa8)
[171112.176341] Exception stack(0xdfc75f88 to 0xdfc75fd0)
[171112.181435] 5f80:                   00000003 c07dae08 1f999000 c0114040 ffffe000 c0a03c34
[171112.189632] 5fa0: c0a03be8 c0a30e90 8000406a 410fc073 00000000 00000000 c0a03a6c dfc75fd8
[171112.197827] 5fc0: c01084e4 c01084e8 60000013 ffffffff
[171112.202925] [<c010becc>] (__irq_svc) from [<c01084e8>] (arch_cpu_idle+0x34/0x38)
[171112.210349] [<c01084e8>] (arch_cpu_idle) from [<c014a63c>] (do_idle+0xa4/0x114)
[171112.217685] [<c014a63c>] (do_idle) from [<c014a930>] (cpu_startup_entry+0x18/0x1c)
[171112.225279] [<c014a930>] (cpu_startup_entry) from [<8010176c>] (0x8010176c)
[171112.232284] ---[ end trace 355d4262dba74a94 ]---
[171112.236953] mtk_soc_eth 1b100000.ethernet eth1: transmit timed out

This put eth1 down, so all lan* ports are down too.

Ysurac avatar Oct 17 '18 17:10 Ysurac

Is this still an issue in 0.39?

its27 avatar Oct 24 '18 06:10 its27

No need to ask on each release. I will put a message here if I can fix something.

Ysurac avatar Oct 24 '18 06:10 Ysurac

Report a bug. Bananapi BPI-R2 No wifi network settings

suyuan168 avatar Jan 12 '19 13:01 suyuan168

hello PI BPI-R2 WIFI When can I solve this problem?

suyuan168 avatar Jan 18 '19 07:01 suyuan168

Wifi work in latest version but all memory is not available. Wifi can't work when HIGHMEM is enabled in Kernel config for now. I need to find the good settings to make full memory and wifi working...

Ysurac avatar Jan 20 '19 08:01 Ysurac

BPI-R2 shutdown problem. How to shut down. Power button is invalid。Thank you very much for the administrator to solve the problem of wifi

suyuan168 avatar Jan 20 '19 13:01 suyuan168

Wifi work in latest version but all memory is not available. Wifi can't work when HIGHMEM is enabled in Kernel config for now. I need to find the good settings to make full memory and wifi working...

Oh, I am sorry that there is always a problem. Is BPI-R2 working at V0.45.16 wifi now? I can see the options in openwrt.

suyuan168 avatar Jan 21 '19 15:01 suyuan168

Power button doesn't work, it's a know problem. It doesn't send any ACPI signal... Wifi is working in OpenMPTCProuter 0.45.16

Ysurac avatar Jan 21 '19 17:01 Ysurac

Hi,

I just tested 0.46.3 with the BPI-R2.

  1. The "LAN" ports seem to work OK now, I was able to use one of the ports to connect to my router via DHCP. The orange TX LED does not work.
  2. I was unable to get the WiFi to work, I enabled both wireless interfaces but neither would find any networks when I clicked 'Scan'.
  3. Speed is good when using Shadowsocks however the speed is terrible when using Glorytun TCP. I get 38Mbps download with Shadowsocks and 2Mbpps with Glorytun TCP. Is hardware crypto used for both? Are all encryption methods supported in hardware? Glorytun works fine with the same ADSL connection on my RPI3.
  4. USB ports do not work, can this be fixed so we can add 4G modems / tether phones?

Thanks,

its27 avatar Mar 04 '19 18:03 its27

  1. OK
  2. I will test again when I will have some times...
  3. Both use chacha20 by default, so I don't think this use hardware crypto. You can change it.
  4. I need to test that to

I will also make some tests with 4.19 kernel, this should perform better.

Ysurac avatar Mar 06 '19 21:03 Ysurac

Thanks, do you know what encryption methods will use hardware crypto?

its27 avatar Mar 06 '19 21:03 its27

why can't I get IP from LAN or WAN port? I'm running on v0.47.4.

lygjxh avatar Mar 23 '19 18:03 lygjxh

Really ? It's too much data. What do you mean by "I can't get IP" ?

Ysurac avatar Mar 23 '19 18:03 Ysurac

Really ? It's too much data. What do you mean by "I can't get IP" ?

Trying to connect.....

lygjxh avatar Mar 23 '19 18:03 lygjxh