Xiaomi R3G boot problem

As in the tittle with this log ROM , RAM ?


Boot and Recovery Environment for Embedded Devices
Copyright (C) 2018 HackPascal <hackpascal@gmail.com>
Build date 2018-12-29 [git-135bed9]
Version 1.1 (r1266)

DRAM: 256MB
Platform: MediaTek MT7621A ver 1, eco 3
Board: Xiaomi R3G
Clocks: CPU: 880MHz, DDR: 1200MHz, Bus: 220MHz, Ref: 40MHz
Environment variables @ 00060000 on flash bank 0, size 00020000
Flash: ESMT NAND 128MiB 3.3V 8-bit (128MB) on mt7621-nfi.0
mt7621-nfi.0: Error: Unrecoverable error bit(s) found in page 65408
mt7621-nfi.0: Error: Unrecoverable error bit(s) found in page 65408
mt7621-nfi.0: Error: Unrecoverable error bit(s) found in page 65408

================================================================================

In Bootup Thread:
    Access violation at 8ffcf2e4, read of address be00391d

    System halted.

  Registers:
    $0  - $3 : 00000000 fffffff9 00000002 33633030
    $4  - $7 : 00000001 be00391d 00000001 ffffffff
    $8  - $11: 8fdbcaa8 00000031 00000002 00000030
    $12 - $15: 00000080 00000008 0000007f 8fd7bc0c
    $16 - $19: 8fdbc0c8 8fdbc0c8 00000000 0000ff80
    $20 - $23: 00000003 00000008 8ffed444 8ffed478
    $24 - $27: 000000c8 8ffce89c 00000000 00000000
    $28 - $31: 8fffc0a0 8fd7bb94 8fdbc9c8 8ffcf24c

    Lo / Hi  : 000000da 00000002

    ra       : 8ffcf24c (mt7621_nfi_read_page+0x1bc)
    EPC      : 8ffcf2e4 (mt7621_nfi_read_page+0x254)
    BVA      : be00391d
    CAUSE    : 40008010
    STATUS   : 10002403

  Relocation Offset: efec0000

  Call trace:
    8ffcf2e4    mt7621_nfi_read_page+0x254
    8ffd11d4    mt7621_nfi_probe+0xac0
    8ffc5284    start_kernel+0x1e4
    8ffc1504    early_init+0x1b4

================================================================================

I'm not really familiar with the boot procedure on mt7621, but at least to my eyes, it looks like you'd have a problem with your bootloader - way before anything OpenWrt related would happen.

i think solution is for test to remove EEPROM and solder a SPI flash memory ( i have found infos to 4PDA russian forum ) …

i have another XIAOMI R3G and good boot is:

Boot and Recovery Environment for Embedded Devices
Copyright (C) 2018 HackPascal <hackpascal@gmail.com>
Build date 2018-12-29 [git-135bed9]
Version 1.1 (r1266)

DRAM: 256MB
Platform: MediaTek MT7621A ver 1, eco 3
Board: Xiaomi R3G
Clocks: CPU: 880MHz, DDR: 1200MHz, Bus: 220MHz, Ref: 40MHz
Environment variables @ 00060000 on flash bank 0, size 00020000
Flash: ESMT NAND 128MiB 3.3V 8-bit (128MB) on mt7621-nfi.0
mt7621-nfi.0: Found Fact BBT at block 1023 (offset 0x07fe0000)
rt2880-eth: MAC address from EEPROM is invalid, using default settings.
rt2880-eth: Using MAC address 00:0c:43:00:00:01
eth0: MediaTek MT7530 Gigabit switch

Network started on eth0, inet addr 192.168.1.1, netmask 255.255.255.0

Press any key to interrupt autoboot ... 0

Trying to boot firmware from 0x00200000 in flash bank 0 ...
Reading data into memory ...
U-Boot firmware image header detected.
    Image Name:   MIPS PandoraBox Linux-3.14.79
    Data Size:    1591560 Bytes
    Load Address: 80001000
    Entry Point:  80001000
Uncompressing data (LZMA) ... done.
Flushing cache ... done.

Starting kernel at 0x80001000...
.....

Those are the last messages you should get from the bootloader, before the flashed firmware (kernel+rootfs) takes over. It appears as if you had somehow damaged parts of the bootloader.

bootloader damaged …

how i repair i cannot stop bad boot with serial console ?