User Tools

Site Tools



en:bpi-r2:lede

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:bpi-r2:lede [2018/02/06 21:46]
frank [EMMC]
en:bpi-r2:lede [2020/08/29 17:14]
Line 1: Line 1:
-====== 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)]] 
- 
-<code bash> 
-git clone https://github.com/garywangcn/bpi-r2_lede.git 
-cd bpi-r2_lede/ 
-git checkout bpi-r2-on-lede-v1 
-make menuconfig 
-</code> 
-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: 
-<code bash> 
-make -j1 V=s 
-</code> 
- 
-nach dem kompilieren liegen 2 img-Dateien im Ordner build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_32/: 
-<code bash> 
-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 
-</code> 
- 
-img-files are on my [[https://drive.google.com/drive/folders/1oP7jy1KrrIOifvImo2nQ59wx3_9hHkgk?usp=sharing|gdrive]] 
- 
-===== 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. 
en/bpi-r2/lede.txt · Last modified: 2020/08/29 17:14 (external edit)