[Banana Pi BPI-R64] Mainline OpenWRT image

I have one more trouble, if I picked “Install bootloader and recovery to eMMC.” and try load from eMMC I take this:

[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks)
[PART] [0x0000000000004400-0x00000000001FFFFF] "" (4062 blocks)

Device APC domain init setup:

Domain Setup (0x0)
Domain Setup (0x0)
Device APC domain after setup:
Domain Setup (0x0)
Domain Setup (0x0)
[get_part] part->nr_sects=2048, part->info->name=fip
[get_part] part->nr_sects=2048, part->info->name=ubootenv
[get_part] part->nr_sects=65536, part->info->name=recovery
[get_part] part->nr_sects=2007040, part->info->name=production
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=1, part->info->name=
[get_part] part->nr_sects=4062, part->info->name=
[BLDR] lk partition not found
load lk (ret=-1)
[BLDR] Second Bootloader Load Failed
PL fatal error...

And during Banana PI loading, Windows find new network. On earlier builds It Fixed by set MAC address in Network interface options but in last build it dont work.

Maybe try setting a fixed address in the bootloader environment as well, because apparently bootloader also brings up the interface to some level (haven’t checked).

fw_setenv ethaddr 11:22:33:44:55:66

(in OpenWrt)

or

setenv  ethaddr 11:22:33:44:55:66

(in U-Boot)

I have set ethaddr in U-boot, but this is don’t help. But if I open network settings in Windows It connect to network witch I set in Network interface ( for example Windows have find new network 68, but connected to network 60 witch mac addres set in Network interface options)

We need to tell U-Boot to pass down the MAC address to Linux. It works like that:

--- a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts	2021-02-18 18:06:59.890603978 +0000
+++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts	2021-03-03 21:47:52.562303132 +0000
@@ -18,6 +18,8 @@
 
 	aliases {
 		serial0 = &uart0;
+		ethernet0 = &gmac0;
+		ethernet1 = &gmac1;
 	};
 
 	chosen {

(at least this is how they do with U-Boot on sunxi, guess it’d work the same on this platform)

Was the eMMC empty at the time of installation? Because there is something lokking for lk partition, we don’t have such a partition. It should be bl2 looking for partition fip instead. Maybe your eMMC was already installed and the boot partition write protected, so the installer could not overwrite that old Preloader?

Yes on my eMMC had been install this is image https://cloud.mail.ru/public/cq89/AVqxejYqM . It contain 7 partitions:

But I don’t lock eMMC. And after that I had recovered previous firmware by command dd of=/dev/mmcblk0 bs=512 seek=0 if=openwrt-mediatek-mt7622-bpi_bananapi-r64-rootdisk-ext4-fullimage-emmc.bin And it flashed without troubles.

Apart from the content of the generic partition which you show above there are also two hardware protected boot areas on the eMMC (boot0 and boot1). The installer also needs to have write access to the boot0 partition of the eMMC. If this is write protected, the installer cannot work and will result in previous Preloader still sitting in boot0 hardware partition fail finding it’s lk partition. You will need to make sure that the boot0 hardware partition is not write protected in hardware. (ie. look into how to control eMMC in U-Boot, this is not not about GPT software partition on generic hardware partition but a whole separate thing)

Hi, this is my mmc info

MT7622> mmc info
Device: mmc@11230000
Manufacturer ID: 11
OEM: 100
Name: 008G3
Bus Speed: 26000000
Mode: MMC High Speed (26MHz)
Rd Block Len: 512
MMC version 5.1
High Capacity: Yes
Capacity: 7.3 GiB
Bus Width: 8-bit
Erase Group Size: 512 KiB
HC WP Group Size: 4 MiB
User Capacity: 7.3 GiB WRREL
Boot Capacity: 4 MiB ENH
RPMB Capacity: 4 MiB ENH
Boot area 0 is not write protected
Boot area 1 is not write protected

That looks all normal. I assume you prepared the installer SD Card in the proposed way, ie.

wget https://downloads.openwrt.org/snapshots/targets/mediatek/mt7622/openwrt-mediatek-mt7622-bananapi_bpi-r64-sdcard.img
wget https://downloads.openwrt.org/snapshots/targets/mediatek/mt7622/openwrt-mediatek-mt7622-bananapi_bpi-r64-initramfs-recovery.itb
wget https://downloads.openwrt.org/snapshots/targets/mediatek/mt7622/openwrt-mediatek-mt7622-bananapi_bpi-r64-squashfs-sysupgrade.itb

cat openwrt-mediatek-mt7622-bananapi_bpi-r64-sdcard.img openwrt-mediatek-mt7622-bananapi_bpi-r64-initramfs-recovery.itb > /dev/mmcblkX

blockdev --rereadpt /dev/mmcblkX

dd if=openwrt-mediatek-mt7622-bananapi_bpi-r64-squashfs-sysupgrade.itb of=/dev/mmcblkXp4

If installation using that does not work, please enter U-Boot console and make sure each step succeeds:

run sdmmc_read_emmc_hdr
run emmc_write_hdr
run sdmmc_read_emmc_bl3
run emmc_write_bl3
run sdmmc_read_recovery
run emmc_write_recovery
run sdmmc_read_emmc_bl2
run emmc_write_bl2

Thing is that the installer will only write new bl2 if everything else has succeeded, and that includes writing the recovery image which needs to be on the SD Card as well. I can see that this order is a bit stupid and I may change things in U-Boot after dinner :wink:

All troubles have been because I don’t install recovery image. After I install recovery image all work good. I think it need write big red letters, because initramfs imge perceived as preview system.

The idea behind requiring to also write the initramfs image is that this can then be used for dual-boot (recovery vs. production) in future and also allow flashing production image using that, so no serial console is required during installation as it can also be triggered on next reboot by using fw_setenv on system running from the SD Card.

After I flash new image OpenWRT in found that I can’t return to my previous system, if Iflash it, It don’t load with log:

NOTиёE¦=-BL¦¦-Ж-.2¬¦elг¦seL OpЕ-WrЄ-v2¦-0-¦¦ґ0¦ґ03¦¦73ЁЄґ8 ¬ґt7І-2-Еґmcґ¦єdrL-+NOтLCE¦  Bл¦  B¦Llt=  0¦ 00¦¦?,=-ar==? 2¦-1
ELu+¦-пX.W-гҐn--V
¦at PC : 0x0000000000204800!9%
F0: 102B 0000
F5: 480A 0031
F5: 480A 0031
F3: 0000 0000
V0: 0000 0000 [0001]
00: 0000 0000
BP: 0400 0041 [0000]
G0: 1190 0000
T0: 0000 02D1 [000F]
Jump to BL

N¦TIц-   --2: v2.¦TreЛгasЕL:OpЕ-Їrt=Ж-02¦-11ґ¦9-0Ё¦17ЁЁ¦-8=Tmt7І-2-Еґmcґ-ddР+-+NOт+Cе¦- B-¦  б¦Llt=¦ 0¦¦00:¦?, -¦r =? 2¦-1
гLu+¦-=иtL7Кы--6
¦at PC : 0x00000000002048009%

About new networks. This is my ifconfig from 2 times. One before and one after reboot:

root@OpenWrt:/# ifconfig -a
br-lan    Link encap:Ethernet  HWaddr 12:01:45:43:41:8D
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::1001:45ff:fe43:418d/64 Scope:Link
          inet6 addr: fd22:49a1:1d35::1/60 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1542 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1110 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:249057 (243.2 KiB)  TX bytes:918033 (896.5 KiB)

eth0      Link encap:Ethernet  HWaddr F6:62:2B:6E:E1:8E
          inet6 addr: fe80::f462:2bff:fe6e:e18e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1504  Metric:1
          RX packets:2908 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2217 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1219430 (1.1 MiB)  TX bytes:1118580 (1.0 MiB)
          Interrupt:39

eth1      Link encap:Ethernet  HWaddr 3A:28:47:C5:18:6B
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:39

lan1      Link encap:Ethernet  HWaddr F6:62:2B:6E:E1:8E
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1627 errors:0 dropped:5 overruns:0 frame:0
          TX packets:1118 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:262190 (256.0 KiB)  TX bytes:918761 (897.2 KiB)

lan2      Link encap:Ethernet  HWaddr F6:62:2B:6E:E1:8E
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lan3      Link encap:Ethernet  HWaddr F6:62:2B:6E:E1:8E
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lan4      Link encap:Ethernet  HWaddr F6:62:2B:6E:E1:8E
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:19 errors:0 dropped:0 overruns:0 frame:0
          TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1994 (1.9 KiB)  TX bytes:1994 (1.9 KiB)

wan       Link encap:Ethernet  HWaddr 12:01:45:43:41:8D
          inet addr:10.31.172.29  Bcast:10.31.172.255  Mask:255.255.255.0
          inet6 addr: fe80::1001:45ff:fe43:418d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1281 errors:0 dropped:0 overruns:0 frame:0
          TX packets:984 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:904896 (883.6 KiB)  TX bytes:173793 (169.7 KiB)

wlan0     Link encap:Ethernet  HWaddr 5E:6F:88:86:45:13
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)




root@OpenWrt:~# ifconfig -a
br-lan    Link encap:Ethernet  HWaddr 12:01:45:43:41:8D
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fd14:c5bc:6bf1::1/60 Scope:Global
          inet6 addr: fe80::1001:45ff:fe43:418d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3609 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2387 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:769304 (751.2 KiB)  TX bytes:1181753 (1.1 MiB)

eth0      Link encap:Ethernet  HWaddr 96:C8:45:2F:FD:76
          inet6 addr: fe80::94c8:45ff:fe2f:fd76/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1504  Metric:1
          RX packets:13949 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11173 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:6453442 (6.1 MiB)  TX bytes:5136191 (4.8 MiB)
          Interrupt:39

eth1      Link encap:Ethernet  HWaddr 9E:0F:BE:F9:58:91
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:39

lan1      Link encap:Ethernet  HWaddr 96:C8:45:2F:FD:76
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:7644 errors:0 dropped:7 overruns:0 frame:0
          TX packets:5747 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1349901 (1.2 MiB)  TX bytes:3971598 (3.7 MiB)

lan2      Link encap:Ethernet  HWaddr 96:C8:45:2F:FD:76
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lan3      Link encap:Ethernet  HWaddr 96:C8:45:2F:FD:76
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lan4      Link encap:Ethernet  HWaddr 96:C8:45:2F:FD:76
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:1195 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1195 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:117757 (114.9 KiB)  TX bytes:117757 (114.9 KiB)

wan       Link encap:Ethernet  HWaddr 12:01:45:43:41:8D
          inet addr:10.31.172.29  Bcast:10.31.172.255  Mask:255.255.255.0
          inet6 addr: fe80::1001:45ff:fe43:418d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6305 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5134 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4852459 (4.6 MiB)  TX bytes:1053618 (1.0 MiB)

wlan0     Link encap:Ethernet  HWaddr 32:CB:2F:41:CC:77
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

As you can see only br-lan and wan has MAC addres as I set in Network interface settings but lan1, lan2, lan3, lan4 has new MAC addres every boot and I can not set It In settings. I think from this Windows find new network evry time.

You will have to build from source and try patching the mt7622-bananapi-bpi-r64.dts in U-Boot and OpenWrt to inherit the main mac address set from U-Boot down to Linux. This will then automatically also be the default address for DSA child devices (like ‘lan1’ – ‘lan4’). I will also try this in the next days when I get back to the board, but don’t have time for it now.

To go back to your previous system, you also once again have to replace the bl2 stored in the boot0 hardware partition of the eMMC with the version needed for that legacy bootchain.

But where I can find bl2? Preloader from this, is bl2 or not?

From what I understood, the original Sinovoip SD Card writes the preloader to eMMC when installation this OS from the SD Card to eMMC. At least this commit suggests that:

Yes, preloader this is bl2 from boot0 partition. I have flash it and recover my previous firmware.

I think you need notice in BPI-R64 wiki that sata port and pcie-slot CN8 share resources among themselves. And sata port don’t work without this patch. https://github.com/frank-w/BPI-R2-4.14/commit/a5669c8a802749175008392ca2b2c6b90a3183ea