BPI-R2 new image : ubuntu 16.04 V1.2.1 BT and WIFI AP mode are working fine 2017-11-27


(gary) #1

BPI-R2 new image : ubuntu 16.04 V1.2.1 Release: BT and WIFI AP mode are working fine

V1.2.1 Release notes

  1. About this release This release is for banana pi R2 board which is based on MTK7623N, and it just includes Ubuntu image which is based on Ubuntu 16.04.2 LTS Mate Desktop with Linux kernel 4.4.70, we can get the Linux kernel 4.4.70 and u-boot from the link https://github.com/BPI-SINOVOIP/BPI-R2-bsp The file system is based on Ubuntu 16.04.2 LTS Mate Desktop, the default user name/password are pi/bananapi , root/bananapi.

  2. What’s new in this release

    1. Support AP mode of onboard WIFI module(MT6625)
    2. On board BT is supported
    3. Fix an ethernet issue in u-boot
    4. Add a command in u-boot to set partition configuration of EMMC
  3. Known limitations

    1. MIPI interface doesn’t work
    2. Somtimes HDMI doesn’t work fine
  4. Image link:

    Google drive: https://drive.google.com/file/d/1KvVln42OTXeNUOpendfMgKMFNhBmIR60/view?usp=sharing

    Baidu drive: https://pan.baidu.com/s/1o8R25N8

    md5sum: b8f4b305f0301d121971ab575c65bb0f

  5. FAQ

    1. How to enable AP mode Please refer to link: 2.4Ghz and 5.6Ghz Wifi Working fine

    2. How to enable BT Please use command: hciconfig hci0 up to enable it

    3. How to program Ubuntu image to EMMC

      a. Program ubuntu image to SD card

      b. Install this SD to R2 board and boot from SD

      c. Enter the Uboot prompt, and run command emmc pconf 48 to change Partition config of EMMC

      d. And then run command reset, let it boot to OS

      e. Enter the system with username pi or root

      f. Run command

       echo 0 > /sys/block/mmcblk1boot0/force_ro  to enable /dev/mmcblk1boot0 write mode`
      

      g. To write preloader to EMMC by running command:

       bpi-bootsel BPI-R2-EMMC-boot0-DDR1600-0k-0905.img.gz /dev/mmcblk1boot0
      

      where BPI-R2-EMMC-boot0-DDR1600-0k-0905.img.gz is the preloader for emmc, please download it from link https://github.com/BPI-SINOVOIP/BPI-files/blob/master/SD/100MB/BPI-R2-EMMC-boot0-DDR1600-0k-0905.img.gz

      h. To copy ubuntu image to EMMC:

            unzip -p <XXX.img.zip> | pv | dd of=<device> bs=10M status=noxfer
      

      or

           bpi-copy  <XXX.img.zip> <device> 
      

      where the XXX.img.zip is ubuntu image we can get it from http://www.banana-pi.org/r2-download.html, and where should be /dev/mmcblk1.

      i. power off

      j, remove SD & power on

    4. How to control GPIO Please refer to link: https://github.com/BPI-SINOVOIP/BPI-R2-bsp/issues/11#issuecomment-326988062


BPI-R2 emmc boot
BPI-R2 AP Mode Setup on New Ubuntu Image
BPI-R2 factory reset - eMMC clear
Has anyone added an RTC
BPI-R2 New Image Release : Android 6.0 V1.0
(Paweł Kalemba) #2

Is LAN switch working?


(bpi team) #3

switch function working fine ,but VLAN not support


(Frank W.) #4

DSA-driver will not be ported to 4.4.70 (current ubuntu-kernel)

4.14 is actually running well, only internal wlan/bt is not working yet

btw. baidu is hard to read for non-chinese people :wink: is there a way to turn language to english?


(dorabmon) #5

5.6G should be corrected into 5G (?)


(Alexander) #6

What if I need only kernel\modules update? How could this be achieved?


(Frank W.) #7

build Kernel from https://github.com/BPI-SINOVOIP/BPI-R2-bsp and replace uImage (BPI-BOOT-Partition) and Modules (BPI-ROOT-Partition)


(Alexander) #8

But may be there is already built kernel/modules, but stored separately?


(Frank W.) #9

if you build the kernel-modules are in the linux-mt-folder, but mixed with the code…simply search for *.ko, but you must use the same path for the module…so it’s easier to generate the SD-folder-structure with modules to copy all build modules (+index-files from depmod) together with uImage


(Alexander) #10

That is exactly what I do not want to do - build something. That is why I have asked - is there already built kernel\modules stored separately?

Download new image and unpack it is also not so effective way to update only mentioned software.


(Frank W.) #11

I’ve uploaded the actual 4.4.70 (my config)…

fwu.config (132,9 KB)

v1.2.1 (Nov 23, 2017),including mt76x2/x3 wireless driver

Bootloader (u-boot): https://www.file-upload.net/download-12838584/BOOTLOADER-bpi-r2.tgz.html

BOOT-Partition (uImage): https://www.file-upload.net/download-12838580/BPI-BOOT-bpi-r2.tgz.html

ROOT-Partition (modules): https://www.file-upload.net/download-12838589/4.4.70-BPI-R2-Kernel.tgz.html

to download use the blue button with the cloud-icon…the other are advertisements


(gary) #12

Build the latest BSP on host, and run below command:

  1. Insert your SD card to host
  2. cd SD
  3. bpi-update -c bpi-r2.conf -d /dev/sdx where the /dev/sdx is the disk of your SD

(Benoit) #13

Could you deliver this image in google drive?


(Mariano Marinas) #14

google drive image, please


(Frank W.) #15

uploaded it here: https://drive.google.com/drive/folders/15Y5Y3NAOwg_IMmN3k6hdb7pAQj9oTVTl?usp=sharing


(Dima) #16

In current version bluetooth doesn’t work correct with device LE. Tested by gatttool - Connection refued.

Also, tried hcitool lecc. It seems connected, but can’t disconnect.

Is it a way to make it works correctly?


BPI-R2 Ethernet MAC address
#17

Hello friends!

How can enter to u-boot prompt? It is a simple terminal?

Thanks


(Frank W.) #18

You have to use debug-uart ( http://www.fw-web.de/dokuwiki/doku.php?id=en:bpi-r2:debug-uart )

Before kernel is loaded you see a menu…take the last menuitem


#19

Thank You Frank-W! Nice work!


(Kenn Dyrvig) #20

Hi i have some problems with getting emmc boot working i have serial console on windows machine using putty and it boots the lede test image off sd but it dosent stop on bpi-r2 in uboot but continues past any interaction from keboard it starts to recive garbage in the console reboot it boots fine and i can see the bpi-r2 line but folowed by some more like this

In: serial Out: serial Err: serial Net: Eth0 Uip activated Hit any key to stop autoboot: 0 BPI-R2> BPI-R2> BPI-R2> BPI-R2> U-Boot 2014.04-rc1 (Sep 05 23>>>> U-Boot 2014.04-rc1 (Sep 05 23>>>> U-Boot 2014.04-rc1 (Sep 05 23>>>> U-Boot 2014.04-rc1 (Sep 05 23>>>> U-Boot 2014.04-rc1 (Sep 05 23>>>> U-Boot 2014.04-rc1 (Sep 05 23>>>> U-Boot 2014.04-rc1 (Sep 05 23>>>> U-Boot 2014.04-rc1 (Sep 05 23>>>> U-Boot 2014.04-rc1 (Sep 05 23>>>> U-Boot 2014.04-rc1 (Sep 05 23>>>> U-Boot 2014.04-rc1 (Sep 05 23>>>> U-Boot 2014.04-rc1 (Sep 05 23>>>> U-Boot 2014.04-rc1 (Sep 05 23>>>> U-Boot 2014.04-rc1 (Sep 05 23>>>> U-Boot 2014.04-rc1 (Sep 05 23>>>> U-Boot 2014.04-rc1 (Sep 05 23>>>> U-Boot 2014.04-rc1 (Sep 05 23>>>> U-Boot 2014.04-rc1 (Sep 05 23>>>> U-Boot 2014.04-rc1 (Sep 05 23>>>> U-Boot 2014.04-rc1 (Sep 05 23>>>> U-Boot 2014.04-rc1 (Sep 05 23>>>> U-Boot 2014.04-rc1 (Sep 05 23>>>> U-Boot 2014.04-rc1 (Sep 05 23>>>> U-Boot 2014.04-rc1 (Sep 05 23>>>> U-Boot 2014.04-rc1 (Sep 05 23>>>> U-Boot 2014.04-rc1 (Sep 05 23>>>> U-Boot 2014.04-rc1 (Sep 05 23>>>> U-Boot 2014.04-rc1 (Sep 05 23>>>> U-Boot 2014.04-rc1 (Sep 05 23>>>> U-Boot 2014.04-rc1 (Sep 05 23>>>> U-Bo