Mi 4AGigabit Failed OpenWrt Install

I have successfully installed openwrt on my other mi rouer 4a gigabit but this one always bootloops and stuck at orange light, I have tried using mi wifi repair tool and it doesn't work, also tried tinypxe. I have tried connecting the router via serial port and it only shows this on loop from recovery mode:


Filtering pkt = -1

DHCPHandler: got packet: (src=5353, dst=5353, len=107) state: 3

Filtering pkt = -1

DHCPHandler: got packet: (src=5353, dst=5353, len=107) state: 3

Filtering pkt = -1

DHCPHandler: got packet: (src=5353, dst=5353, len=107) state: 3

Filtering pkt = -1

DHCPHandler: got packet: (src=49952, dst=51007, len=144) state: 3

Filtering pkt = -1

DHCPHandler: got packet: (src=5353, dst=5353, len=130) state: 3

Filtering pkt = -1

DHCPHandler: got packet: (src=5353, dst=5353, len=274) state: 3

Filtering pkt = -1

DHCPHandler: got packet: (src=52053, dst=1900, len=170) state: 3

Filtering pkt = -1

DHCPHandler: got packet: (src=5353, dst=5353, len=274) state: 3

Filtering pkt = -1

DHCPHandler: got packet: (src=5353, dst=5353, len=40) state: 3

Filtering pkt = -1

DHCPHandler: got packet: (src=5353, dst=5353, len=40) state: 3

Filtering pkt = -1

DHCPHandler: got packet: (src=52053, dst=1900, len=170) state: 3

Filtering pkt = -1

DHCPHandler: got packet: (src=5353, dst=5353, len=40) state: 3

Filtering pkt = -1

DHCPHandler: got packet: (src=5353, dst=5353, len=40) state: 3

Filtering pkt = -1

BOOTP broadcast 2

DHCPHandler: got packet: (src=5353, dst=5353, len=130) state: 3

Filtering pkt = -1

DHCPHandler: got packet: (src=5353, dst=5353, len=274) state: 3

Filtering pkt = -1

DHCPHandler: got packet: (src=49952, dst=51007, len=144) state: 3

Filtering pkt = -1

DHCPHandler: got packet: (src=5353, dst=5353, len=40) state: 3

Filtering pkt = -1

DHCPHandler: got packet: (src=5353, dst=5353, len=40) state: 3

Filtering pkt = -1

DHCPHandler: got packet: (src=6771, dst=6771, len=137) state: 3

Filtering pkt = -1

DHCPHandler: got packet: (src=5353, dst=5353, len=274) state: 3

Filtering pkt = -1

DHCPHandler: got packet: (src=49952, dst=51007, len=144) sta

and the serial output on stuck orange light is looping this:



 ##### The CPU freq = 880 MHZ #### 

 estimate memory size =128 Mbytes

#Reset_MT7530

set LAN/WAN LLLLW



restore_defaults:<NULL>


Please choose the operation: 

   1: Load system code to SDRAM via TFTP. 

   2: Load system code then write to Flash via TFTP. 

   3: Boot system code via Flash (default).

   4: Entr boot command line interface.

   7: Load Boot Loader code then write to Flash via Serial. 

   9: Load Boot Loader code then write to Flash via TFTP. 


   n3: System Boot system code via Flash.

Booting System 1

## Booting image at bc180000 ...

Bad Magic Number,504B0304, try to reboot

Erasing SPI Flash...

raspi_erase: offs:ff0000 len:10000

.

Writing to SPI Flash...

.

done


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

     		MT7621   stage1 code Mar 26 2019 09:44:48 (ASIC)

     		CPU=500000000 HZ BUS=166666666 HZ

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

SPI-NOR flash has JEDEC ID: ef4018

Status Register 1 = 0x00

Status Register 3 = 0x68

Change MPLL source from XTAL to CR...

do MEMPLL setting..

MEMPLL Config : 0x11100000

3PLL mode + External loopback

=== XTAL-40Mhz === DDR-1200Mhz ===

PLL4 FB_DL: 0x6, 1/0 = 558/466 19000000

PLL3 FB_DL: 0xd, 1/0 = 614/410 35000000

PLL2 FB_DL: 0x13, 1/0 = 659/365 4D000000

If any one of you could be so kind to assist me in fixing this or point me to a correct tutorial to follow in how to fix this

There are 2 versions of 4A gigabit. Which one you have?

the one with shielded motherboard and the flash chip that is compatible with openwrt

I followed the acecilia tutorial for other models of that line. It may work with yours as well. If you success, please let us know.