Hi Mark,
I managed to compile a kernel with the patch applied with a bit of fuzz.
I put it on the sdcard I had (with snapshot/miniroot77.img + u-boot),
but could only fit the non-debug version, so output is missing function
names. :-/
I'll see if I can get complete output from debug kernel later.
In the mean time, that' what I have, with franken-u-boot, hopefully
formatting not too damaged...
DDR V1.05 2eef4a672d huan.he 23/04/14-10:57:28
LP4/4x derate disable, other dram:1x trefi
ddrconfig:0
LP4 MR14:0x4d
LPDDR4, 324MHz
BW=32 Col=10 Bk=8 CS0 Row=15 CS=1 Die BW=16 Size=1024MB
tdqss: cs0 dqs0: 506ps, dqs1: 434ps, dqs2: 578ps, dqs3: 506ps,
change to: 324MHz
clk skew:0x58
change to: 528MHz
clk skew:0x61
change to: 780MHz
clk skew:0x58
change to: 1056MHz(final freq)
PHY drv:clk:49,ca:49,DQ:40,odt:80
vrefinner:19%, vrefout:31%
dram drv:40,odt:60
vref_ca:0000005E
clk skew:0x11
cs 0:
the read training result:
DQS0:0x3d, DQS1:0x3f, DQS2:0x3e, DQS3:0x3a,
min : 0xb 0xc 0xe 0xe 0x9 0x2 0x6 0x5 , 0xd 0xb 0x5 0x1
0x7 0xe 0x9 0x9 ,
0xd 0xf 0xf 0xe 0x7 0x2 0xa 0x6 , 0x7 0x2 0x4 0x4
0x4 0x9 0x9 0x6 ,
mid :0x23 0x24 0x25 0x23 0x20 0x19 0x1c 0x1c ,0x24 0x23 0x1b 0x17
0x1f 0x27 0x20 0x1e ,
0x27 0x28 0x28 0x25 0x1e 0x19 0x22 0x1e ,0x20 0x1a 0x1d 0x1c
0x1d 0x22 0x20 0x1e ,
max :0x3b 0x3c 0x3c 0x39 0x38 0x31 0x32 0x34 ,0x3c 0x3c 0x31 0x2e
0x38 0x40 0x37 0x34 ,
0x42 0x42 0x41 0x3d 0x36 0x30 0x3a 0x37 ,0x39 0x33 0x36 0x35
0x36 0x3c 0x38 0x36 ,
range:0x30 0x30 0x2e 0x2b 0x2f 0x2f 0x2c 0x2f ,0x2f 0x31 0x2c 0x2d
0x31 0x32 0x2e 0x2b ,
0x35 0x33 0x32 0x2f 0x2f 0x2e 0x30 0x31 ,0x32 0x31 0x32 0x31
0x32 0x33 0x2f 0x30 ,
the write training result:
DQS0:0x55, DQS1:0x4b, DQS2:0x5f, DQS3:0x55,
min :0x92 0x93 0x96 0x95 0x8f 0x88 0x8c 0x8c 0x90 ,0x88 0x87 0x7b
0x79 0x82 0x88 0x82 0x83 0x88 ,
0x9d 0x9d 0x9e 0x9d 0x96 0x90 0x98 0x96 0x9a ,0x90 0x88 0x8c
0x8b 0x8c 0x90 0x90 0x8e 0x8b ,
mid :0xa7 0xa7 0xa9 0xa8 0xa3 0x9d 0x9e 0x9f 0xa5 ,0x9d 0x9c 0x8f
0x8c 0x97 0x9e 0x96 0x95 0x9e ,
0xb3 0xb2 0xb2 0xb1 0xa9 0xa3 0xae 0xa9 0xaf ,0xa4 0x9c 0xa0
0x9f 0xa0 0xa5 0xa2 0xa1 0x9f ,
max :0xbd 0xbc 0xbd 0xbb 0xb7 0xb2 0xb0 0xb2 0xba ,0xb3 0xb1 0xa3
0x9f 0xad 0xb4 0xaa 0xa8 0xb4 ,
0xc9 0xc8 0xc7 0xc6 0xbd 0xb7 0xc4 0xbd 0xc5 ,0xb9 0xb1 0xb5
0xb3 0xb4 0xba 0xb5 0xb4 0xb4 ,
range:0x2b 0x29 0x27 0x26 0x28 0x2a 0x24 0x26 0x2a ,0x2b 0x2a 0x28
0x26 0x2b 0x2c 0x28 0x25 0x2c ,
0x2c 0x2b 0x29 0x29 0x27 0x27 0x2c 0x27 0x2b ,0x29 0x29 0x29
0x28 0x28 0x2a 0x25 0x26 0x29 ,
CA Training result:
cs:0 min :0x43 0x43 0x51 0x4c 0x48 0x49 0x3f ,0x3a 0x3c 0x3c 0x3f
0x45 0x44 0x31 ,
cs:0 mid :0x7c 0x7b 0x8a 0x85 0x80 0x83 0x66 ,0x74 0x76 0x74 0x79
0x7d 0x7d 0x5f ,
cs:0 max :0xb6 0xb3 0xc4 0xbf 0xb8 0xbd 0x8e ,0xae 0xb1 0xac 0xb3
0xb6 0xb6 0x8e ,
cs:0 range:0x73 0x70 0x73 0x73 0x70 0x74 0x4f ,0x74 0x75 0x70 0x74
0x71 0x72 0x5d ,
out
U-Boot SPL board init
U-Boot SPL 2017.09-OpenWrt-2024062614 (Jun 26 2024 - 06:57:14)
Trying to boot from MMC2
Trying fit image at 0x4000 sector
## Verified-boot: 0
## Checking atf-1 0x00080000 ... sha256(0fa4440864...) + OK
## Checking u-boot 0x00800000 ... sha256(5ce4adafc3...) + OK
## Checking fdt-1 0x008b6a88 ... sha256(0e75c9b91e...) + OK
## Checking atf-2 0xfe48d000 ... sha256(95d2a58aef...) + OK
## Checking atf-3 0xfe490000 ... sha256(9e4547a3b3...) + OK
Jumping to U-Boot(0x00800000) via ARM Trusted Firmware(0x00080000)
Total: 326.799/376.454 ms
INFO: Preloader serial: 0
NOTICE: BL31: v2.3():v2.3-857-g059b3c586:derrick.huang, fwver: v1.18
NOTICE: BL31: Built : 17:43:24, Nov 18 2024
INFO: rk_otp_init finish!
INFO: ARM GICv2 driver initialized
INFO: nonboot_cpus_off: clst_st=0xc0e, core_st=0xe1e0 boot_cpu=0
INFO: dfs DDR fsp_param[0].freq_mhz= 1056MHz
INFO: dfs DDR fsp_param[1].freq_mhz= 324MHz
INFO: dfs DDR fsp_param[2].freq_mhz= 528MHz
INFO: dfs DDR fsp_param[3].freq_mhz= 780MHz
INFO: idle_st=0x0, pd_st=0x0
INFO: Using opteed sec cpu_context!
INFO: boot cpu mask: 1
INFO: rk_otp_init finish!
INFO: RK3528 SoC (0x101)
INFO: BL31: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader, Booting device without
OPTEE initialization. SMC`s destined for OPTEE will return SMC_UNK
ERROR: Error initializing runtime service opteed_fast
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0x800000
INFO: SPSR = 0x3c9
U-Boot 2025.04-rc4-g471f33d42f7a (Apr 06 2025 - 18:56:20 +0200)
Model: Radxa E20C
SoC: RK3528A
DRAM: 1 GiB (effective 1022 MiB)
Core: 188 devices, 30 uclasses, devicetree: separate
MMC: mmc@ffbf0000: 0, mmc@ffc30000: 1
Loading Environment from nowhere... OK
In: serial@ff9f0000
Out: serial@ff9f0000
Err: serial@ff9f0000
Net: eth0: ethernet@ffbe0000
Hit any key to stop autoboot: 0
Scanning for bootflows in all bootdevs
Seq Method State Uclass Part Name Filename
--- ----------- ------ -------- ---- ------------------------
----------------
Scanning global bootmeth 'efi_mgr':
Cannot persist EFI variables without system partition
0 efi_mgr ready (none) 0 <NULL>
** Booting bootflow '<NULL>' with efi_mgr
Loading Boot0000 'mmc 0' failed
Booting: mmc 1
disks: sd0* sd1
>> OpenBSD/arm64 BOOTAA64 1.20
boot>
cannot open sd0a:/etc/random.seed: No such file or directory
booting sd0a:/bsd: 12197192+2897360+321328+864408
[1034973+91+1357224+855763]=0x143aa88
[ using 3248832 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
Copyright (c) 1995-2025 OpenBSD. All rights reserved. https://www.OpenBSD.org
OpenBSD 7.7 (GENERIC.MP) #0: Wed Apr 9 22:32:38 CEST 2025
[email protected]:/sys/arch/arm64/compile/GENERIC.MP
real mem = 1069924352 (1020MB)
avail mem = 996188160 (950MB)
random: good seed from bootblocks
mainbus0 at root: Radxa E20C
psci0 at mainbus0: PSCI 1.1, SMCCC 1.2, SYSTEM_SUSPEND
efi0 at mainbus0: UEFI 2.11
efi0: Das U-Boot rev 0x20250400
smbios0 at efi0: SMBIOS 3.7.0
smbios0: vendor U-Boot version "2025.04-rc4-g471f33d42f7a" date 04/01/2025
smbios0: radxa Radxa E20C
cpu0 at mainbus0 mpidr 0: ARM Cortex-A53 r0p4
cpu0: 32KB 64b/line 2-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
cpu0: 256KB 64b/line 16-way L2 cache
cpu0: CRC32,SHA2,SHA1,AES+PMULL,ASID16
cpu1 at mainbus0 mpidr 1: ARM Cortex-A53 r0p4
cpu1: 32KB 64b/line 2-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
cpu1: 256KB 64b/line 16-way L2 cache
cpu2 at mainbus0 mpidr 2: ARM Cortex-A53 r0p4
cpu2: 32KB 64b/line 2-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
cpu2: 256KB 64b/line 16-way L2 cache
cpu3 at mainbus0 mpidr 3: ARM Cortex-A53 r0p4
cpu3: 32KB 64b/line 2-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
cpu3: 256KB 64b/line 16-way L2 cache
scmi0 at mainbus0: SCMI 2.0
"shmem" at mainbus0 not configured
apm0 at mainbus0
pwmreg0 at mainbus0
pwmreg1 at mainbus0
"fit-images" at mainbus0 not configured
"firmware" at mainbus0 not configured
agtimer0 at mainbus0: 24000 kHz
"clock-xin24m" at mainbus0 not configured
"clock-gmac50m" at mainbus0 not configured
simplebus0 at mainbus0: "soc"
ampintc0 at simplebus0 nirq 224, ncpu 4 ipi: 0, 1, 2: "interrupt-controller"
syscon0 at simplebus0: "qos"
syscon1 at simplebus0: "qos"
syscon2 at simplebus0: "qos"
syscon3 at simplebus0: "qos"
syscon4 at simplebus0: "qos"
syscon5 at simplebus0: "qos"
syscon6 at simplebus0: "qos"
syscon7 at simplebus0: "qos"
syscon8 at simplebus0: "qos"
syscon9 at simplebus0: "qos"
syscon10 at simplebus0: "qos"
syscon11 at simplebus0: "qos"
syscon12 at simplebus0: "qos"
syscon13 at simplebus0: "qos"
syscon14 at simplebus0: "qos"
syscon15 at simplebus0: "qos"
syscon16 at simplebus0: "qos"
syscon17 at simplebus0: "qos"
syscon18 at simplebus0: "qos"
syscon19 at simplebus0: "qos"
syscon20 at simplebus0: "qos"
syscon21 at simplebus0: "qos"
syscon22 at simplebus0: "qos"
syscon23 at simplebus0: "qos"
syscon24 at simplebus0: "qos"
syscon25 at simplebus0: "qos"
syscon26 at simplebus0: "qos"
syscon27 at simplebus0: "qos"
syscon28 at simplebus0: "qos"
syscon29 at simplebus0: "qos"
syscon30 at simplebus0: "qos"
syscon31 at simplebus0: "qos"
syscon32 at simplebus0: "syscon"
syscon33 at simplebus0: "syscon"
rkclock0 at simplebus0
rkclock_set_frequency(rkclock0, 372, 32768)
rkclock_set_frequency(rkclock0, 2, 1188000000)
rkclock_set_frequency(rkclock0, 3, 1000000000)
rkclock_set_frequency(rkclock0, 1, 996000000)
rkclock_set_frequency(rkclock0, 5, 408000000)
rkclock_set_frequency(rkclock0, 11, 250000000)
rkclock_set_frequency(rkclock0, 15, 500000000)
rkclock_set_frequency(rkclock0, 7, 50000000)
rkclock_set_frequency(rkclock0, 8, 100000000)
rkclock_set_frequency(rkclock0, 9, 150000000)
rkclock_set_frequency(rkclock0, 10, 200000000)
rkclock_set_frequency(rkclock0, 12, 300000000)
rkclock_set_frequency(rkclock0, 13, 340000000)
rkclock_set_frequency(rkclock0, 14, 400000000)
rkclock_set_frequency(rkclock0, 16, 600000000)
rkclock_set_frequency(rkclock0, 122, 50000000)
rkclock_set_frequency(rkclock0, 121, 100000000)
rkclock_set_frequency(rkclock0, 127, 125000000)
rkclock_set_frequency(rkclock0, 76, 500000000)
syscon34 at simplebus0: "syscon"
ehci0 at simplebus0
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Generic EHCI root hub" rev
2.00/1.00 addr 1
ohci0 at simplebus0: version 1.0
com0 at simplebus0: dw16550, 64 byte fifo
com0: console
rkiic0 at simplebus0
rkclock_get_frequency(rkclock0, 221)
iic0 at rkiic0
"belling,bl24c16a" at iic0 addr 0x50 not configured
rkpwm0 at simplebus0rkclock_get_frequency(rkclock0, 111)
: no clock
rkpwm1 at simplebus0rkclock_get_frequency(rkclock0, 111)
: no clock
"adc" at simplebus0 not configured
dwqe0 at simplebus0: unknown controller at 0xffbe0000
dwmshc0 at simplebus0rkclock_set_frequency(rkclock0, 143, 200000000)
rkclock_set_frequency(rkclock0, 144, 24000000)
rkclock_set_frequency(rkclock0, 140, 200000000)
rk3528_reset: 0x00000041
rk3528_reset: 0x00000042
rk3528_reset: 0x00000043
rk3528_reset: 0x00000044
rk3528_reset: 0x00000045
rkclock_get_frequency(rkclock0, 143)
dwmshc0: SDHC 4.20, 200 MHz base clock
sdmmc0 at dwmshc0: 8-bit, sd high-speed, mmc high-speed, dma
dwmmc0 at simplebus0rk3528_reset: 0x000000bd
rkclock_set_frequency(rkclock0, 295, 100000000)
rkclock_get_frequency(rkclock0, 295)
: 25 MHz base clock
sdmmc1 at dwmmc0: 4-bit, sd high-speed, mmc high-speed, dma
"dma-controller" at simplebus0 not configured
"usb2phy" at simplebus0 not configured
"pinctrl" at simplebus0 not configured
"rng" at simplebus0 not configured
"nvmem" at simplebus0 not configured
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 configuration 1 interface 0 "Generic OHCI root hub" rev
1.00/1.00 addr 1
"adc-keys" at mainbus0 not configured
gpiokeys0 at mainbus0: "USER"
gpioleds0 at mainbus0: "lan", "heartbeat", "wan"
"regulator-0v9-vdd" at mainbus0 not configured
"regulator-1v1-vcc-ddr" at mainbus0 not configured
"regulator-1v8-vcc" at mainbus0 not configured
"regulator-3v3-vcc" at mainbus0 not configured
"regulator-5v0-vcc-sys" at mainbus0 not configured
"regulator-5v0-vcc-usb20" at mainbus0 not configured
"regulator-vccio-sd" at mainbus0 not configured
"binman" at mainbus0 not configured
"dmc" at mainbus0 not configured
rkclock_set_frequency(rkclock0, 140, 400000)
sdmmc0: can't identify card
sdmmc0: no functions
scsibus0 at sdmmc1: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <SD/MMC, NCard, 0010> removable
sd0: 15173MB, 512 bytes/sector, 31074304 sectors
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
root on sd0a (eea8209c394fdbb2.a) swap on sd0b dump on sd0b
WARNING: CHECK AND RESET THE DATE!
warning: /dev/console does not exist
init: not found
panic: no init
Stopped at panic+0x140: cmp w21, #0x0
TID PID UID PRFLAGS PFLAGS CPU COMMAND
449921 37498 0 0x14000 0x200 1 zerothread
*383713 1 0 0 0 0 swapper
db_enter() at panic+0x13c
panic() at start_init+0x2a4
start_init() at proc_trampoline+0xc
https://www.openbsd.org/ddb.html describes the minimum info required in bug
reports. Insufficient info makes it difficult to find and fix bugs.
ddb{0}>
--
Vincent Legoll