OpenWRT/LEDE
Last updated
Last updated
BPI-R2 new image: OpenWrt(LEDE) Image and Souce code : 2018-04-11
Source code
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**.
Build
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 reference(<a class="attachment" href="/uploads/default/original/2X/6/64b5e0beee8f164a2c4121cbe97a97777bda2aaf">.config</a> (122.4 KB)
Image
You will get three images:
* **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:
* **bin/targets/mediatek/32/lede-mediatek-32-bananapi,bpi-r2-sysupgrade.tar**:
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.
Please note that 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.
Image link
* Baidu Drive: https://pan.baidu.com/s/16HN4elpEzK3A6cvqvhtgfA
* Google Drive: https://drive.google.com/open?id=1yEP6o3EGhICOV2DJRW-eqDg0vO_xK1Mg
Supported Features
Support WIFI module(package package/utils/wmt) (New)
Two pre-program image and one upgrade package are generated (New)
Add uboot package to this project(package/boot/uboot-mtk-bpi-r2) (New)
Two Ethernet interfaces and switch works
Both PCIe0 and PCIe1 works
sysupgrade tool is supported (New)
Both SATA interfaces works
Limitations
Both HDMI and MIPI interface do NOT work
PCIe2 (which is shared with USB3.0) does NOT work
BPI-R2 New image : Openwrt/LEDE 2017-09-08
Summary
The linux kernel from LEDE does't work on banana-pi R2 board so far, so we are using the banana-pi R2 Linux 4.4.70 kernel and LEDE file system to make this image.
How to use this image
Please note that this image is used to copy the bootable image from SD to EMMC, so it just works at u-boot phase. Finally the LEDE system will boot from EMMC, instead of SD card.
Download this image to your host PC
Copy it to your SD card by executing below command
dd if=<image> of=/dev/<device>
Move this SD card from host PC to R2 board
Power on this board by pressing power button a few seconds
Please turn power off and remove SD card when you see U-boot prompt
Before u-boot prompt occurs, all parts(pre-loader/u-boot/kernel image/ramdisk iamge) will be copied from SD card to EMMC.
Power on this board by press power button a few seconds
The LEDE system will boot successfually
Image
Baidu drive link:
http://pan.baidu.com/s/1eS1pRCA
MD5: e6483762a47336eab45beefcf030cd8f
Let me know if you have any question, and any suggestion is appreciated.
discuss on forum:
http://forum.banana-pi.org/t/bpi-r2-new-image-openwrt-lede-2017-09-08/3797