====== LEDE (OpenWRT) ======
* [[https://github.com/garywangcn/bpi-r2_lede/tree/bpi-r2-on-lede-v1|Garys github]]
* [[http://forum.banana-pi.org/t/bpi-r2-new-image-openwrt-lede-2017-09-08/3797/40|Forum (img)]]
* [[http://forum.banana-pi.org/t/bpi-r2-lede-openwrt-source-code/3878/42|Forum (compile)]]
git clone https://github.com/garywangcn/bpi-r2_lede.git
cd bpi-r2_lede/
git checkout bpi-r2-on-lede-v1
make menuconfig
here "Target System" must be set to "MediaTek Ralink ARM" and in "Boot Loaders" the entry "u-boot-bpi_r2" must be selected with a ∗
build with:
make -j1 V=s
nach dem kompilieren liegen 2 img-Dateien im Ordner build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_32/:
frank@Frank-Laptop:/media/data_ext/bpi-r2_lede$ ls -lh build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_32/*.img
-rw-r--r-- 1 frank frank 67M Jan 16 12:03 build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_32/mtk-bpi-r2-EMMC.img
-rw-r--r-- 1 frank frank 67M Jan 16 12:03 build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_32/mtk-bpi-r2-SD.img
img-files are on my [[https://drive.google.com/drive/folders/1oP7jy1KrrIOifvImo2nQ59wx3_9hHkgk?usp=sharing|gdrive]]
Please note that lede currently not support hdmi-output (you will see only a purple screen).
===== SD =====
dd if=mtk-bpi-r2-SD.img of=/dev/sdx
===== EMMC =====
- Copy EMMC image to a running system which is on SD card
- start system and look which mmcblk is the emmc: cat /proc/partitions (search for boot0 and this mmcblk [0|1] is the emmc)
- flash EMMC image to User Data Area of EMMC: dd if=mtk-bpi-r2-EMMC.img of=/dev/mmcblkX
- Unlock EMMC boot0 block: echo 0 > /sys/block/mmcblkXboot0/force_ro
- flash preloader to EMMC boot0 block: dd if=mtk-bpi-r2-EMMC.img of=/dev/mmcblkXboot0 bs=1M count=1
- Change the Partition configurion of EMMC to 48h: reboot the system which is running from SD, and enter the [[uboot|U-boot-console]], run command "emmc pconf 48"
- Power off, remove SD card, and then power on R2 board.
===== Network-configuration =====
By default lan-ports are bridged together with IP-address 192.168.1.1
Further configuration see here:
https://wiki.openwrt.org/doc/uci/network