can you interrupt the boot sequence at
*** U-Boot Boot Menu ***
1. Startup system (Default)
2. Upgrade firmware
3. Upgrade ATF BL2
4. Upgrade ATF FIP
5. Upgrade single image
6. Load image
0. U-Boot console
sorry didn’t get it. can you tell with more detail steps how to do that?
did you read the menu items ?
tried 0 (zero) ?
after interrupt and tried 0 U-Boot console
F0: 102B 0000
FA: 1040 0000
FA: 1040 0000 [0200]
F9: 0000 0000
V0: 0000 0000 [0001]
00: 0000 0000
BP: 2400 0041 [0000]
G0: 1190 0000
EC: 0000 0000 [1000]
T0: 0000 024B [010F]
Jump to BL
NOTICE: BL2: v2.7(release):b62657e
NOTICE: BL2: Built : 09:27:14, Mar 29 2024
NOTICE: WDT: disabled
NOTICE: EMI: Using DDR3 settings
NOTICE: DDR_frequency:1866
dump toprgu registers data:
1001c000 | 00000000 0000ffe0 00000000 00000000
1001c010 | 00000fff 00000000 00f00000 00000000
1001c020 | 00000000 0000074a 00000000 00000000
1001c030 | 003c0003 003c0003 00000000 00000000
1001c040 | 00000000 00000000 00000000 00000000
1001c050 | 00000000 00000000 00000000 00000000
1001c060 | 00000000 00000000 00000000 00000000
1001c070 | 00000000 00000000 00000000 00000000
1001c080 | 00000000 00000000 00000000 00000000
dump drm registers data:
1001d000 | 00000000 00000000 00000000 00000000
1001d010 | 00000000 00000000 00000000 00000000
1001d020 | 00000000 00000000 00000000 00000000
1001d030 | 00a083f1 000003ff 00100000 00000000
1001d040 | 00000000 00000000 00020303 000000ff
1001d050 | 00000000 00000000 00000000 00000000
1001d060 | 00000002 00000000 00000000 00000000
drm: 500 = 0x8
[DDR Reserve] ddr reserve mode not be enabled yet
DDR RESERVE Success 0
[EMI] ComboMCP not ready, using default setting
BYTE_swap:0
BYTE_swap:0
Window Sum 600, worse bit 6, min window 72
Window Sum 580, worse bit 9, min window 68
Window Sum 522, worse bit 3, min window 62
Window Sum 516, worse bit 14, min window 62
Window Sum 528, worse bit 3, min window 64
Window Sum 522, worse bit 8, min window 64
NOTICE: EMI: Detected DRAM size: 256MB
NOTICE: EMI: complex R/W mem test passed
NOTICE: CPU: MT7981 (1300MHz)
NOTICE: SPI_NAND parses attributes from parameter page.
NOTICE: SPI_NAND Detected ID 0xcd
NOTICE: Page size 2048, Block size 131072, size 134217728
NOTICE: Initializing NMBM ...
NOTICE: Signature found at block 1023 [0x07fe0000]
NOTICE: First info table with writecount 0 found in block 960
NOTICE: Second info table with writecount 0 found in block 963
NOTICE: NMBM has been successfully attached in read-only mode
NOTICE: BL2: Booting BL31
NOTICE: BL31: v2.7(release):b62657e
NOTICE: BL31: Built : 09:27:14, Mar 29 2024
NOTICE: Hello BL31!!!
U-Boot 2022.07-rc3-gd587e37f-dirty (Mar 22 2024 - 07:26:00 +0000)
CPU: MediaTek MT7981
Model: mt7981-rfb
DRAM: 256 MiB
Core: 35 devices, 16 uclasses, devicetree: separate
Initializing NMBM ...
spi-nand: spi_nand spi_nand@0: Foresee SPI NAND was found.
spi-nand: spi_nand spi_nand@0: 128 MiB, block size: 128 KiB, page size: 2048, OO B size: 64
Could not find a valid device for nmbm0
Signature found at block 1023 [0x07fe0000]
First info table with writecount 0 found in block 960
Second info table with writecount 0 found in block 963
NMBM has been successfully attached
Loading Environment from UBI... ubi0: attaching mtd6
ubi0: scanning is finished
ubi0: attached mtd6 (name "ubi", size 114 MiB)
ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
ubi0: good PEBs: 916, bad PEBs: 0, corrupted PEBs: 0
ubi0: user volume: 7, internal volumes: 1, max. volumes count: 128
ubi0: max/mean erase counter: 26/13, WL threshold: 4096, image sequence number: 1711704434
ubi0: available PEBs: 0, total reserved PEBs: 916, PEBs reserved for bad PEB han dling: 19
Read 524288 bytes from volume u-boot-env to 000000004f77e2c0
OK
In: serial@11002000
Out: serial@11002000
Err: serial@11002000
Net:
Warning: ethernet@15100000 (eth0) using random MAC address - f6:d0:43:a0:4e:1f
eth0: ethernet@15100000
Set MAC ipaddr: 10.13.126.90
Using ethernet@15100000 device
TFTP from server 10.0.0.11; our IP address is 10.13.126.90
Filename 'upgrade_info_7db780a713a4.txt'.
Load address: 0x46000000
Loading: *
ARP Retry count exceeded; starting again
Download info file failed, will retry 2 times.
Download info file retry:1
Using ethernet@15100000 device
TFTP from server 10.0.0.11; our IP address is 10.13.126.90
Filename 'upgrade_info_7db780a713a4.txt'.
Load address: 0x46000000
Loading: *
ARP Retry count exceeded; starting again
Download info file retry:2
Using ethernet@15100000 device
TFTP from server 10.0.0.11; our IP address is 10.13.126.90
Filename 'upgrade_info_7db780a713a4.txt'.
Load address: 0x46000000
Loading: *
ARP Retry count exceeded; starting again
Failed to get info.txt
Fail to get info file!
Init error!
Using ethernet@15100000 device
TFTP from server 10.0.0.11; our IP address is 10.13.126.90
Filename 'failed.txt'.
Load address: 0x46000000
Loading: *
ARP Retry count exceeded; starting again
*** U-Boot Boot Menu ***
1. Startup system (Default)
2. Upgrade firmware
3. Upgrade ATF BL2
4. Upgrade ATF FIP
5. Upgrade single image
6. Load image
0. U-Boot console
Press UP/DOWN to move, ENTER to select, ESC/CTRL+C to quit
MT7981> printenv
DeviceType=HX21
InnerDeviceType=HX21
baudrate=115200
bootcmd=mtkautoboot
bootdelay=2
bootmenu_0=Startup system (Default)=mtkboardboot
bootmenu_1=Upgrade firmware=mtkupgrade fw
bootmenu_2=Upgrade ATF BL2=mtkupgrade bl2
bootmenu_3=Upgrade ATF FIP=mtkupgrade fip
bootmenu_4=Upgrade single image=mtkupgrade simg
bootmenu_5=Load image=mtkload
bootmenu_delay=2
country=BD
da=mtkflwrite fip
dsk=DS96812566200972L94MVAUK6CY4FAG0
ethact=ethernet@15100000
ethaddr=f6:d0:43:a0:4e:1f
fdtcontroladdr=4f7fe370
gatewayip=10.0.0.1
ipaddr=10.13.126.90
language=English
loadaddr=0x46000000
mac=A831620D7E5A
netmask=255.0.0.0
serverip=10.0.0.11
sn=BCAADX3SKXRU5
stderr=serial@11002000
stdin=serial@11002000
stdout=serial@11002000
up=mtkflwrite fw
Environment size: 729/524284 bytes
MT7981> bdinfo
Unknown command 'bdinfo' - try 'help'
MT7981> version
U-Boot 2022.07-rc3-gd587e37f-dirty (Mar 22 2024 - 07:26:00 +0000)
aarch64-buildroot-linux-gnu-gcc.br_real (Buildroot 2018.02-rc3-00437-g93415b29-dirty) 9.3.0
GNU ld (GNU Binutils) 2.32
MT7981> mtdparts
Unknown command 'mtdparts' - try 'help'
MT7981> help
? - alias for 'help'
gpio - query and control gpio pins
help - print command description/usage
imoubootm - boot application image from memory
imoubootmenu- ANSI terminal bootmenu
imouenv - environment handling commands
imousetenv- set environment variables
imoutftpboot- boot image via network using TFTP protocol
mtd - MTD utils
mtkautoboot- Display MediaTek bootmenu
mtkboardboot- Boot MTK firmware
mtkflwrite- MTK firmware/bootloader upgrading utility
mtkload - MTK image loading utility
mtkupgrade- MTK firmware/bootloader upgrading utility
net - NET sub-system
nmbm - NMBM utility commands
panic - Panic with optional message
ping - send ICMP ECHO_REQUEST to network host
pinmux - show pin-controller muxing
printenv - print environment variables
reset - Perform RESET of the CPU
run - run commands in an environment variable
saveenv - save environment variables to persistent storage
setenv - set environment variables
version - print monitor, compiler and linker version
MT7981> mtd help
mtd - MTD utils
Usage:
mtd - generic operations on memory technology devices
mtd list
mtd read[.raw][.oob] <name> <addr> [<off> [<size>]]
mtd dump[.raw][.oob] <name> [<off> [<size>]]
mtd write[.raw][.oob][.dontskipff] <name> <addr> [<off> [<size>]]
mtd erase[.dontskipbad] <name> [<off> [<size>]]
Specific functions:
mtd bad <name>
mtd markbad <name> <off>
With:
<name>: NAND partition/chip name (or corresponding DM device name or OF path)
<addr>: user address from/to which data will be retrieved/stored
<off>: offset in <name> in bytes (default: start of the part)
* must be block-aligned for erase
* must be page-aligned otherwise
<size>: length of the operation in bytes (default: the entire device)
* must be a multiple of a block for erase
* must be a multiple of a page otherwise (special case: default is a page with dump)
The .dontskipff option forces writing empty pages, don't use it if unsure.
MT7981> mtd list
List of MTD devices:
* spi-nand0
- device: spi_nand@0
- parent: spi@1100a000
- driver: spi_nand
- path: /spi@1100a000/spi_nand@0
- type: NAND flash
- block size: 0x20000 bytes
- min I/O: 0x800 bytes
- OOB size: 64 bytes
- OOB available: 62 bytes
- 0x000000000000-0x000008000000 : "spi-nand0"
* nmbm0
- type: Unknown
- block size: 0x20000 bytes
- min I/O: 0x800 bytes
- OOB size: 64 bytes
- OOB available: 62 bytes
- 0x000000000000-0x000007800000 : "nmbm0"
- 0x000000000000-0x000000100000 : "bl2"
- 0x000000100000-0x000000180000 : "u-boot-env"
- 0x000000180000-0x000000380000 : "factory"
- 0x000000380000-0x000000580000 : "fip"
- 0x000000580000-0x000007800000 : "ubi"
MT7981> mtd info
mtd - MTD utils
Usage:
mtd - generic operations on memory technology devices
mtd list
mtd read[.raw][.oob] <name> <addr> [<off> [<size>]]
mtd dump[.raw][.oob] <name> [<off> [<size>]]
mtd write[.raw][.oob][.dontskipff] <name> <addr> [<off> [<size>]]
mtd erase[.dontskipbad] <name> [<off> [<size>]]
Specific functions:
mtd bad <name>
mtd markbad <name> <off>
With:
<name>: NAND partition/chip name (or corresponding DM device name or OF path)
<addr>: user address from/to which data will be retrieved/stored
<off>: offset in <name> in bytes (default: start of the part)
* must be block-aligned for erase
* must be page-aligned otherwise
<size>: length of the operation in bytes (default: the entire device)
* must be a multiple of a block for erase
* must be a multiple of a page otherwise (special case: default is a page with dump)
The .dontskipff option forces writing empty pages, don't use it if unsure.
MT7981>
Is there anything else need to do or provide?
is this enough for dev?
ask the guy staring back at you from the mirror, you're the "dev" here ...
sorry but i don’t know how build. isn’t there any dev who can help to build test images?
devs don't grow on trees, if you're willing to supply a sample device, someone might be interested.
this was outlined in July already - Request for OpenWrt Support: Imou HX21 Router (MediaTek MT7981BA) - #2 by brada4.
What do you think, based on reading this thread?
Why are you responding to frollic, who doesn't own this particular device (and made that clear) and can't do anything about it?
The mere passing of time won't do anything.
any update
what part of the 1st reply you received, from @slh was unclear ?
**Sorry sir I understand **
This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.



