Official OpenWRT 18.06.4 for Banana Pi BPI-R2 image released 2019-7-04

hi. can i have question ? do someone have open wrt 18.06.4 i tryied many times to compile into IMG with EXT4 but i failed.

What sources had you been using to compile this image? Official upstream OpenWRT do not support ext4 as rootfs for BPi R2.

i am now on 18.06.2 openwrt-mediatek-mt7623-7623n-bananapi-bpi-r2-ext4-sdcard.img, i tryied to compile 18.06.4 to img. not a chance i am compiling from Openwrt page. (mediatek 7623), updating from official dont work too.

This version digits and filename do not tell anything useful about their origin :-). Where did you get them?

from this G-drive page ā€œDriveā€

Aha, I see. This is an image that was built from my openwrt fork by @Tohin. I hadnā€™t had a chance to update my fork to 18.06.4 (as I donā€™t see this task to be a really urgent one) but it was done by other people. You may want to check the link below for the info on how to achieve the thing you want:

I have problems booting openwrt from emmc in the sense that after reboot, all settings are gone and the login screen tells me that there is no root password set . I tried serveral images I found on the forum, I even compiled it my selfā€¦same result.

I followed these steps :

root@bpi-r2:~# dd if=mtk-bpi-r2-EMMC_Custom_by_ME.img of=/dev/mmcblk1
156747+1 records in
156747+1 records out
80254502 bytes (80 MB, 77 MiB) copied, 10.9279 s, 7.3 MB/s
root@bpi-r2:~#

root@bpi-r2:~# echo 0 > /sys/block/mmcblk1boot0/force_ro

root@bpi-r2:~# dd if=mtk-bpi-r2-EMMC_Custom_by_ME.img of=/dev/mmcblk1boot0 bs=1M count=1
1+0 records in
1+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.0434202 s, 24.1 MB/s

root@bpi-r2:~# ./mmc extcsd read /dev/mmcblk1 | grep PARTITION_CONFIG
Boot configuration bytes [PARTITION_CONFIG: 0x48]

root@bpi-r2:~# fdisk -l
Disk /dev/mmcblk0: 29 GiB, 31104958464 bytes, 60751872 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x000ed6cd

Device         Boot  Start      End  Sectors  Size Id Type
/dev/mmcblk0p1      204800   729087   524288  256M  c W95 FAT32 (LBA)
/dev/mmcblk0p2      729088 15269887 14540800    7G 83 Linux


Disk /dev/mmcblk1: 7.3 GiB, 7818182656 bytes, 15269888 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
root@bpi-r2:~#

root@bpi-r2:~# ls -lia /dev/mmcblk*
   29 brw-rw---- 1 root disk 179,  0 Nov  3  2016 /dev/mmcblk0
13237 brw-rw---- 1 root disk 179,  1 Nov  3  2016 /dev/mmcblk0p1
13238 brw-rw---- 1 root disk 179,  2 Nov  3  2016 /dev/mmcblk0p2
13240 brw-rw---- 1 root disk 179,  8 Dec 29 21:52 /dev/mmcblk1
13243 brw-rw---- 1 root disk 179, 16 Dec 29 21:55 /dev/mmcblk1boot0
13242 brw-rw---- 1 root disk 179, 24 Nov  3  2016 /dev/mmcblk1boot1
13241 brw-rw---- 1 root disk 179,  9 Nov  3  2016 /dev/mmcblk1p1
13239 crw------- 1 root root 248,  0 Nov  3  2016 /dev/mmcblk1rpmb
root@bpi-r2:~#


Here I I booted into openwrt :

root@OpenWrt:/# df -h
Filesystem                Size      Used Available Use% Mounted on
tmpfs                   503.7M    328.0K    503.4M   0% /tmp
tmpfs                   512.0K         0    512.0K   0% /dev
root@OpenWrt:/#

The single error/warning I encounter on boot is the following :

UBoot 2014.04-rc1 (Mar 05 2019 - 02:09:09)
g_nr_bank = 1.
g_total_rank_size = 0x80000000
DRAM:  2 GiB
WARNING: Caches not enabled
MMC:     emmc: 0,  sdcard: 1
booting from eMMC
dev_num = 0
*** Warning - bad CRC, using default environment

Can anyone help me with a hint in my problem ? Thank in advance.

you write openwrt-image to boot0 block instead of only preloaderā€¦

Thanks for your quick response Frank, but you can be a little more explicit ?

In my case, the preloader is /dev/mmcblk1 ? If yes, I already tried to write the .img only to mmcblk1 and I have the same resultā€¦

On boot0 only emmc bootloader have to be writtenā€¦on userpartition the full image with with sd-preloader,and other bootheaders has to be flashed

Edit: found out that your way was correct copying first 1mb from emmc imageā€¦itā€™s different to ubuntu/debian way.

The CRC error can be ignored.itā€™s because you have no environment stored on your sd/emmc.

Main problem should be that no change is persistent because image is loaded to ram,then executed without any overlayfs (like squashfs) written back to non volatile storage. Imho any user (afair lexa2) have a github repo with some patches to load openwrt from ext4 partition where changes can be written

I try 18.06.4 and 19.07.1 official images, write on SD card. Its starts, but jffs2 not created, ā€˜firstbootā€™ says ā€˜no rootfs_data partitionā€™, any settings not saved after reboot, packets not installs and router totally useless. Help me to make proper SD image with LEDE for my banana, pls.

Hi all,

I buy Banana Pi BPI-R2 few days ago, because I have no experience using Pi board, When I try to power on that board, I press power button for about 10 sec. all led off after I release power button. Is I must have a ttl cable when I install system ?

yuenyuen

that means your system is not bootableā€¦have you flashed an image to sdcard? is your boot-switch in right position?

a debug-uart cable helps to find problemā€¦if your board does not boot into uboot it does not stay on