target box: tp-link XDR6050
SoC: MT7986BLA(512MB DDR3 on chip)
ROM: 16MB spi-nor flash
since it's only storage chip is a XMC spi flash, I can easily r/w it by using a 8-pins clamp connected to the programmer board.
And the UART pins(near reset button) work fine.
in the post "Adding support for TP-Link XDR-6086" we had known tp's uboot is locked, so my first job is to compile the corresponding TF-A and uboot. but since there's no defconfig and dts matching mt7986b+nor, I've try serval version of uboot(2023.7, 2024.1, and MTK's github fork) and adjust some configs to compile.
Unfortunately none of them works. I can't even see uboot's version string.
A representative bootlog is post at the end. seems TF-A is working well?
I don't have much experience working with uboot, how to deal with this kind of this error?
F0: 102B 0000
FA: 0000 0000
V0: 0000 0000 [0001]
00: 0000 0000
BP: 2400 0041 [0000]
G0: 1190 0000
EC: 0000 0000 [0000]
T0: 0000 01FB [010F]
Jump to BL
NOTICE: BL2: v2.9.0(release):my TF-A
NOTICE: BL2: Built : 02:43:37, Mar 7 2024
NOTICE: WDT: Cold boot
NOTICE: WDT: disabled
NOTICE: CPU: MT7986 (1600MHz)
NOTICE: EMI: Using DDR3 settings
NOTICE: EMI: Detected DRAM size: 512MB
NOTICE: EMI: complex R/W mem test passed
NOTICE: BL2: Booting BL31
NOTICE: BL31: v2.9.0(release):my TF-A
NOTICE: BL31: Built : 02:43:42, Mar 7 2024
size=30, ptr=30, limit=4000: 41ed8f90
size=30, ptr=60, limit=4000: 41ed8fc0
size=98, ptr=f8, limit=4000: 41ed8ff0
bind node config
Device 'config' has no compatible string
bind node cpus
Device 'cpus' has no compatible string
bind node dummy12m
- attempt to match compatible string 'fixed-clock'
- found match at 'fixed_clock': 'fixed-clock' matches 'fixed-clock'
size=30, ptr=128, limit=4000: 41ed9088
size=98, ptr=1c0, limit=4000: 41ed90b8
size=30, ptr=1f0, limit=4000: 41ed9150
Bound device dummy12m to root_driver
bind node hwver
- attempt to match compatible string 'mediatek,hwver'
- attempt to match compatible string 'syscon'
Skipping device pre-relocation
bind node timer
- attempt to match compatible string 'arm,armv8-timer'
No match for node 'timer'
- ignoring disabled device
- ignoring disabled device
bind node interrupt-controller@c000000
- attempt to match compatible string 'arm,gic-v3'
No match for node 'interrupt-controller@c000000'
bind node apmixedsys@1001E000
- attempt to match compatible string 'mediatek,mt7986-fixed-plls'
- found match at 'mt7986-clock-fixed-pll': 'mediatek,mt7986-fixed-plls' matches 'mediatek,mt7986-fixed-plls'
size=98, ptr=288, limit=4000: 41ed9180
Bound device apmixedsys@1001E000 to root_driver
bind node topckgen@1001B000
- attempt to match compatible string 'mediatek,mt7986-topckgen'
- found match at 'mt7986-clock-topckgen': 'mediatek,mt7986-topckgen' matches 'mediatek,mt7986-topckgen'
size=98, ptr=320, limit=4000: 41ed9218
Bound device topckgen@1001B000 to root_driver
bind node infracfg_ao@10001000
- attempt to match compatible string 'mediatek,mt7986-infracfg_ao'
- found match at 'mt7986-clock-infracfg-ao': 'mediatek,mt7986-infracfg_ao' matches 'mediatek,mt7986-infracfg_ao'
size=98, ptr=3b8, limit=4000: 41ed92b0
Bound device infracfg_ao@10001000 to root_driver
bind node infracfg@10001040
- attempt to match compatible string 'mediatek,mt7986-infracfg'
- found match at 'mt7986-clock-infracfg': 'mediatek,mt7986-infracfg' matches 'mediatek,mt7986-infracfg'
size=98, ptr=450, limit=4000: 41ed9348
Bound device infracfg@10001040 to root_driver
bind node pinctrl@1001f000
- attempt to match compatible string 'mediatek,mt7986-pinctrl'
Skipping device pre-relocation
- ignoring disabled device
bind node serial@11002000
- attempt to match compatible string 'mediatek,hsuart'
- found match at 'serial_mtk': 'mediatek,hsuart' matches 'mediatek,hsuart'
size=30, ptr=480, limit=4000: 41ed93e0
size=98, ptr=518, limit=4000: 41ed9410
Bound device serial@11002000 to root_driver
- ignoring disabled device
- ignoring disabled device
- ignoring disabled device
bind node syscon@15000000
- attempt to match compatible string 'mediatek,mt7986-ethsys'
Skipping device pre-relocation
bind node ethernet@15100000
- attempt to match compatible string 'mediatek,mt7986-eth'
Skipping device pre-relocation
bind node syscon@10060000
- attempt to match compatible string 'mediatek,mt7986-sgmiisys'
- attempt to match compatible string 'syscon'
Skipping device pre-relocation
bind node syscon@10070000
- attempt to match compatible string 'mediatek,mt7986-sgmiisys'
- attempt to match compatible string 'syscon'
Skipping device pre-relocation
bind node spi@1100a000
- attempt to match compatible string 'mediatek,ipm-spi'
Skipping device pre-relocation
- ignoring disabled device
- ignoring disabled device
- ignoring disabled device
- ignoring disabled device
bind node chosen
Device 'chosen' has no compatible string
bind node memory@40000000
Device 'memory@40000000' has no compatible string
"Synchronous Abort" handler, esr 0x96000021, far 0x41e42a81
elr: 0000000041e02394 lr : 0000000041e283cc
x0 : 0000000041ed8ec8 x1 : 0000000041e42a81
x2 : 0000000000000007 x3 : 0000000000000065
x4 : 0000000041e42a88 x5 : 0000000041ed8ecf
x6 : 0000000000000065 x7 : 0000000041e5cf90
x8 : 0000000000000d5c x9 : 0000000041ed8c1c
x10: 0000000000000003 x11: 0000000000001bb0
x12: 0000000041ed8cc8 x13: 0000000041e5cf90
x14: 0000000041e5cf90 x15: 0000000041ed8940
x16: 0000000000000000 x17: 0000000000000000
x18: 0000000041ed8dd0 x19: 0000000000000006
x20: 0000000041e42a78 x21: 0000000000000009
x22: 0000000041e46937 x23: 0000000000000020
x24: 0000000041ed8ec8 x25: 0000000041e42a78
x26: 0000000000000000 x27: 0000000000000000
x28: 0000000000000000 x29: 0000000041ed8cb0
Code: f9000006 f81f80a7 d65f03c0 361000c2 (b9400026)
Resetting CPU ...
resetting ...
size=30, ptr=548, limit=4000: 41ed94a8
(rebooting)