Hello all,sorry for the late update for openwrt18.06 of R2.
Here release source code and demo openwrt18.06 image, which is based on kernel 4.14.98.
1.Github:
-
fork from upstream: https://github.com/BPI-SINOVOIP/openwrt/tree/openwrt-18.06
-
How to compile bpi-r2 openwrt kernel
-
check to openwrt-18.06: git checkout -b openwrt-18.06 remotes/origin/openwrt-18.06
-
build code: make menuconfig
Target System (MediaTek Ralink ARM) Subtarget (MT7623) Target Profile (MTK7623n BananaPi R2)
-
after config target, then make
-
after make, put the dtsi/dts(mt7623.dtsi (25.5 KB) mt7623n-bananapi-bpi-r2.dts (10.9 KB) ) to this dir “build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_mt7623/linux-4.14.82/arch/arm/boot/dts/”
-
then kernel will be generated in this dir “bin/targets/mediatek/mt7623/openwrt-mediatek-mt7623-7623n-bananapi-bpi-r2-initramfs-kernel.bin”
-
-
images will be generated in this dir:"./build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_mt7623/"
2.Image: https://dev.banana-pi.org.cn/Image/BPI-R2/Openwrt/1806/
- md5sum:
- mtk-bpi-r2-EMMC.img : 5d1537c45679de352dd25d8dda46b9ad
- mtk-bpi-r2-SD.img :71fce303abdceed4f1c3548d5a3fc207
3.How to load image to SD card and Emmc?
-
you could use bpi-copy load image to sd card, Here is an example:
-
you could use dd command load image to emmc, Here is an example:
-
Program EMMC image to User Data Area of EMMC: dd if=mtk-bpi-r2-EMMC.img of=/dev/mmcblk0
-
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
-