Non-boot kernel gets frozen hlk7621(mkt7621)

Non-boot kernel gets frozen hlk7621(mkt7621)

We've done the basic edit of openwrt 21.02 and we're having a problem with the image decompression, so I've made the following changes.

iff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile
index a966ba4349..1fb37d7c6c 100644
--- a/target/linux/ramips/image/Makefile
+++ b/target/linux/ramips/image/Makefile
@@ -27,7 +27,11 @@  LOADER_PLATFORM := $(ldrplatform-y)
 KERNEL_DTB = kernel-bin | append-dtb | lzma
 define Device/Default
   PROFILES = Default
+ifeq ($(SUBTARGET),mt7621)
+  $(Device/uimage-lzma-loader)
+else
   KERNEL := $(KERNEL_DTB) | uImage lzma
+endif
   SOC := $(DEFAULT_SOC)
   DEVICE_DTS_DIR := ../dts
   DEVICE_DTS = $$(SOC)_$(1)
diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk
index 8980ff70d4..942308c29a 100644
--- a/target/linux/ramips/image/mt7621.mk
+++ b/target/linux/ramips/image/mt7621.mk
@@ -6,7 +6,6 @@  include ./common-tp-link.mk
 
 DEFAULT_SOC := mt7621
 
-KERNEL_DTB += -d21
 DEVICE_VARS += UIMAGE_MAGIC SERCOMM_HWNAME

->printenv<-

bootcmd=tftp
bootdelay=5
baudrate=57600
ethaddr="03:17:73:AB:CD:EF"
ethact=Eth0 (10/100-M)
ipaddr=10.10.10.123
serverip=10.10.10.3
bootfile=firmware.bin
stdin=serial
stdout=serial
stderr=serial

We are now facing problems with kernel startup freeze.
Could anyone help?

print start system->

U-Boot 1.1.3 (Aug 13 2021 - 17:33:24)

Board: Ralink APSoC DRAM:  256 MB
relocate_code Pointer at: 8ffb0000

Config XHCI 40M PLL
******************************
Software System Reset Occurred
******************************
flash manufacture id: ef, device id 40 19
info id : ef info->jedec_id :40160000 buf[1]:40 buf[2]:19
info id : ef info->jedec_id :40170000 buf[1]:40 buf[2]:19
info id : ef info->jedec_id :40180000 buf[1]:40 buf[2]:19
info id : ef info->jedec_id :40190000 buf[1]:40 buf[2]:19
find flash: W25Q256FV
============================================
Pinney UBoot Version: 1.0
--------------------------------------------
ASIC MT7621A SingleCore (MAC to MT7530 Mode)
DRAM_CONF_FROM: Auto-Detection
DRAM_TYPE: DDR3
DRAM bus: 16 bit
Xtal Mode=3 OCP Ratio=1/4
Flash component: SPI Flash
Date:Aug 13 2021  Time:17:33:24
============================================
icache: sets:256, ways:4, linesz:32 ,total:32768
dcache: sets:256, ways:4, linesz:32 ,total:32768

  _    _   _        _  __  ______     __    ___    __
 | |  | | | |      | |/ / |____  |   / /   |__ \  /_ |
 | |__| | | |      | ' /      / /   / /_      ) |  | |
 |  __  | | |      |  <      / /   | '_ \    / /   | |
 | |  | | | |____  | . \    / /    | (_) |  / /_   | |
 |_|  |_| |______| |_|\_\  /_/      \___/  |____|  |_|

-------------------------------------------------------------------------
             https://github.com/gnubee-git
----------------build:Aug 13 2021 17:33:24 --------------------
-------------------------------------------------------------------------

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.
   5: Load system code then write to Flash via Httpd.
   7: Load Boot Loader code then write to Flash via Serial.
   9: Load Boot Loader code then write to Flash via TFTP.                                                                                                             0

3: System Boot system code via Flash.
## Booting image at bfc50000 ...
   Image Name:   MIPS OpenWrt Linux-5.4.143
   Image Type:   MIPS Linux Kernel Image (uncompressed)
   Data Size:    2593084 Bytes =  2.5 MB
   Load Address: 80001000
   Entry Point:  80001000
   Verifying Checksum ... OK
OK
No initrd
## Transferring control to Linux (at address 80001000) ...
## Giving linux memsize in MB, 256

Starting kernel ...