BPI-R2 OpenWrt(LEDE) Souce code : 2018-04-11

You can uncomment openwrt source feeds in feeds.conf.default file. And compile the required packages. If they compile successfully, they will work. I, for example, compile a package of vtun, absent in LEDE.

Well, when i see this. I think the switch is work in Openwrt with 802.1q VLAN support. So I ask you for latest code.

I don’t have any special packages to add. Just some useful for me, like mentohust for ruijie 802.1x verification. And some web packages like php. Also some network tools like mtr and nmap.

VLAN isn’t supported yet, a few patch is required, we will support it later.

Hello,

I have built the image yesterday. I had to change a few things (libuci-lua old version). But a after a while the build was successful and the new image works. Somethings still need more work: WLAN, VLAN, HWNAT Especially the loading of the wlan-module is not very comfortable, it should be loaded automatically at boot of the bpi-r2. Another thing is vlan, every cheap wlan-router can do that …

But for now this is the first image usable!

THANKS A LOT for all the work, I know it is not easy to implent something new!

2 Likes

John Crispin seems have added the support for bpi r2 to nbd staging tree

https://git.openwrt.org/?p=openwrt/staging/nbd.git;a=commit;h=7762c07c88980cff85ec20c12f18cd172260e9d9

I think as long as the new kernel supports it, openwert or lede should also support it easily

These are the patches that are not working correctly…currently i have response from john,lede-team or sean about the damaged packets

Please fill in the normal file hosting. From Baidu or torn or archive the bad and is not unpacked.

Hi Garywang

updated downloaded from https://downloads.openwrt.org/snapshots/targets/mediatek/32/openwrt-mediatek-32-bananapi,bpi-r2-sysupgrade.tar. Does not start the kernel panic, is it not compatible with your build?

Did you choose Boot Loader?

you could execute make menuconfig

Choose : Boot Loader —> u-boot-bpi_r2

then you could build successfully.

I don’t think it’s compatibile

We found a tool mmc-utils that is for configuring MMC storage devices from userspace, so we can change the Boot Partition setting in userspance.

How to build it

  1. install by running below commands ./scripts/feeds update -a ./scripts/feeds install -a

  2. Select in menuconfig make menuconfig -> Utililes -> mmc-utils

  3. Rebuild Openwrt project

How to use it

1 .mmc extcsd read /dev/mmcblk0 | grep PARTITION_CONFIG Boot configuration bytes [PARTITION_CONFIG: 0x00]

  1. mmc bootpart enable 1 1 /dev/mmcblk0

  2. mmc extcsd read /dev/mmcblk1 | grep PARTITION_CONFIG Boot configuration bytes [PARTITION_CONFIG: 0x48]

After finishing above steps, the board can boot from eMMC, so we don’t need enter u-boot shell to change PARTITION_CONFIG.

2 Likes

Software environment

  • System: Linux LEDE 4.9.44 #0 SMP PREEMPT Fri Apr 13 13:46:33 2018 armv7l GNU/Linux
  • Firmware: All intel firmwares are installed
  • Kernel module: All dependencies are installed

I insert Intel Dual Band Wireless-AC 7260 NIC into BPI-R2. Use lspci can see the network card but use ifconfig -a can’t find it. I check the system log(/var/log/messages). It reminds the missing “iwlwifi-7260-17.ucode” file. I find and copy this file to /lib/firmware and reload modules.

insmod iwlwifi.ko
insmod iwlegacy.ko

Terminal output

failed to insert iwlegacy.ko

System log(/var/log/messages)

Apr 19 11:19:59 LEDE kernel: [ 200.968773] iwlegacy: Unknown symbol __ieee80211_get_radio_led_name (err 0)

insmod iwlmvm.ko

Terminal output

failed to insert iwlmvm.ko

System log output(/var/log/messages)

Apr 19 11:21:42 LEDE kernel: [  303.969064] iwlmvm: Unknown symbol ieee80211_wake_queue (err 0)
Apr 19 11:21:42 LEDE kernel: [  303.999996] iwlmvm: Unknown symbol ieee80211_sta_set_buffered (err 0)
Apr 19 11:21:42 LEDE kernel: [  304.019293] iwlmvm: Unknown symbol ieee80211_stop_tx_ba_cb_irqsafe (err 0)
Apr 19 11:21:42 LEDE kernel: [  304.057047] iwlmvm: Unknown symbol ieee80211_sta_block_awake (err 0)
Apr 19 11:21:42 LEDE kernel: [  304.070646] iwlmvm: Unknown symbol ieee80211_sta_pspoll (err 0)
Apr 19 11:21:42 LEDE kernel: [  304.120227] iwlmvm: Unknown symbol ieee80211_stop_queue (err 0)
Apr 19 11:21:43 LEDE kernel: [  304.158954] iwlmvm: Unknown symbol ieee80211_sched_scan_results (err 0)
Apr 19 11:21:43 LEDE kernel: [  304.179765] iwlmvm: Unknown symbol rate_control_send_low (err 0)
Apr 19 11:21:43 LEDE kernel: [  304.198025] iwlmvm: Unknown symbol ieee80211_resume_disconnect (err 0)
Apr 19 11:21:43 LEDE kernel: [  304.211234] iwlmvm: Unknown symbol ieee80211_tdls_oper_request (err 0)
Apr 19 11:21:43 LEDE kernel: [  304.256943] iwlmvm: Unknown symbol ieee80211_rx_napi (err 0)

There is still no way to load this wireless network card. Help me!!!

you must want to enable

CONFIG_MAC80211

in your kernel

to add the unknown symbols and allow your added module able to reference to them.

Except for kmod-mac80211-hwsim and zabbix-extra-mac80211, other options about mac80211 are enable.

zabbix-extra-mac80211 is not set
kmod-cfg80211=y
kmod-lib80211=y
kmod-mac80211=y
MAC80211_DEBUGFS=y
MAC80211_TRACING=y
MAC80211_MESH=y
kmod-mac80211-hwsim is not set

But it still can’t work.

Please upload this image on Google Drive/Microsoft OneDrive, Baidu is not available in every country, and there’s no option to change the language to English.

1 Like

I try to build a new image to my BPI-R2 but the Intel 7260 can’t work.

Hi Symowl

BPI-R2 doesn’t support Intel PCIe card, this is a hardware limitation, we can’t fix it in software level.

So, Gray Wang, Could you tell me the supported mini-pice WLAN model list in R2 ? Because we want to give up the MT6625L onboard.

Another question:

  1. the Onboard wifi chip MT6625L only working in 2.4G or 5G, can’t work in double frequency?
  2. During we test throughout performance in 5G, we found the wifi crash when download speed in 50 Mbps. It is right ?

Thank. I tried to install other wireless network cards. Do you know the wireless network cards it supports?

We are looking for replacement of MT6625L, now we are developping a WIFI module(PCIe) based on MT7615 and we’ve validated RTL8723BU(USB).