The source code is at: https://github.com/garywangcn/bpi-r2_lede/tree/bpi-r2-on-lede-v1
Please clone the code to local and checkout the code from branch bpi-r2-on-lede-v1.
Run “make menuconfig” to configure this project, and run command “make -j1 V=s” to build it. A configuration file of this project is attached for you referenceconfig (153.1 KB)
The differences between this and the previous release(2018-04-11) is that the following packages are integrated by default:
- WIFI support package(wmt)
- MMC tool
- LUCI(based on branch lede-17.01)
You will get three images from below image links:
build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_32/mtk-bpi-r2-SD.img: This is for SD image, please program it to SD card by executing command “dd if=mtk-bpi-r2-SD.img of=/dev/mmcblkx”
build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_32/mtk-bpi-r2-EMMC.img: This is for EMMC image, please follow below steps to program it EMMC: We need another system which is running on SD card to program EMMC image to EMMC, please follow below steps to do:
- Copy EMMC image to a running system which is from SD card
- Program EMMC image to User Data Area of EMMC: dd if=mtk-bpi-r2-EMMC.img of=/dev/mmcblk0 (assume /dev/mmcblk0 is for EMMC)
- Unlock EMMC boot0 block: echo 0 > /sys/block/mmcblk0boot0/force_ro
- Program preloader to EMMC boot0 block: dd if=mtk-bpi-r2-EMMC.img of=/dev/mmcblk0boot0 bs=1M count=1
- Change the Partition configurion of EMMC is 48h: reboot the system which is running SD, and enter the U-boot command line, run command emmc pconf 48 (for this steps, we can change partition configuration in userspace by using mmc-utils, see more information in BPI-R2 OpenWrt(LEDE) Souce code : 2018-04-11)
- Power off, remove SD card, and then power on R2 board.
This is for runtime upgrade, copy it to R2 board which is running OpenWrt system(no matter where(SD or EMMC) it boots from), and then run command “sysupgrade lede-mediatek-32-bananapi,bpi-r2-sysupgrade.tar” to update both kernel and rootfs.
Note1: sysupgrade can be executed when jffs2 file system is initialized completely, the log “jffs2_build_xattr_subsystem: complete building xattr subsystem” means the initialization of jffs2 file system is done.
Note2: The images in Image link2 are compiled with hard-float, and you can install the userland package which is from online repositories.
Image link1(Without hard-float instructions)
- Baidu Drive: https://pan.baidu.com/s/1F2oO1r9F8y-4Dh0WgIyK_g
- Google Drive: https://drive.google.com/open?id=1J-1BmMXu-odVWMJNwPsXtaRaLIlGrj6r
Image link2(With hard-float instructions)
- Baidu Drive: https://pan.baidu.com/s/105hVCPYXxJ_87rkLc1hdYw
- Google Drive:
- Support WIFI module(package package/utils/wmt)
- Two pre-program image and one upgrade package are generated
- Add uboot package to this project(package/boot/uboot-mtk-bpi-r2)
- Two Ethernet interfaces and switch works
- Both PCIe0 and PCIe1 works
- sysupgrade tool is supported
- Both SATA interfaces works
- LUCI support(New)
- Updating from web is supported, please use image lede-mediatek-32-bananapi,bpi-r2-sysupgrade.tar
- If you use image from Image link 2, installing a userland package from online repositories is supported.
- Both HDMI and MIPI interface do NOT work
- PCIe2 (which is shared with USB3.0) does NOT work
- BT doesn’t work
- If you use image from Image link 1, installing package from online repository(opkg update/install) is not supported, the workaround is that please build the package you required by yourself.
- Don’t use the latest code of feeds. looks like they are unstable.