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

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

image

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

2 Likes

Is LAN switch working?

switch function working fine ,but VLAN not support

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?

5.6G should be corrected into 5G (?)

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

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

1 Like

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

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

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.

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

1 Like

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

Could you deliver this image in google drive?

1 Like

google drive image, please

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

2 Likes

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

image

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

Is it a way to make it works correctly?

Hello friends!

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

Thanks

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

1 Like

Thank You Frank-W! Nice work!

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