I've been attempting to get 7.8 installed on this unit and have some
observations and problems. Any pointers welcome.
With some help from ChatGPT I successfully built u-boot-rockchip.bin on
both a Ubuntu 22.04 and an OpenBSD 7.8 (on a apu2 box) system by download
of latest githup RK3528 information.
Following the instructions for arm64/INSTALL.arm64 I built a microSD
card and was able uboot and bring up the install from miniroot78.img.
I got the option of either sd0 (the emmc card) or sd1 (the microSD card)
so tried sd0, but ended up with not being able to write the disklabel:
here's what I got then:
sd0*> p
OpenBSD area: 0-61554688; size: 61554688; free: 2097176
# size offset fstype [fsize bsize cpg]
a: 55499552 6055136 4.2BSD 2048 16384 1 # /
b: 3957960 2097152 swap
c: 61554688 0 unused
sd0*> w
disklabel: DIOCWDINFO: Input/output error
disklabel: unable to write label
It may or not be relevant that the e20c has the radxa debian image
installed - it will boot this in the absense of the micorsd card.
Also, I cannot get to maskrom. The sequence outlined in radxa instructions
does not work now that the debian image is installed.
I then installed on the sd card, but 1) am unable to do anything with sd0,
2) do not find both ethernet ports.
I'm connected from my ubuntu box with minicom. Here's a reboot showing
the u-boot and dmesg for startup. At the end is what I find with disklabel
sd0 - it's consistent with my install problem.
reboot
stopping package daemons: smokeping_fcgi(killed) smokeping mrtg.
syncing disks... done
rebooting...
DDR 56f70fd2ad huan.he 25/02/26-09:55:30,fwver: v1.11
LP4/4x derate en, other dram:1x trefi
ddrconfig:7
MID:0x6
LPDDR4, 324MHz
BW=32 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=4096MB
tdqss_lf: cs0 dqs0: 217ps, dqs1: 192ps, dqs2: 265ps, dqs3: 192ps,
tdqss_lf: cs1 dqs0: 217ps, dqs1: 168ps, dqs2: 289ps, dqs3: 217ps,
tdqss_hf: cs0 dqs0: 217ps, dqs1: 192ps, dqs2: 265ps, dqs3: 192ps,
tdqss_hf: cs1 dqs0: 217ps, dqs1: 168ps, dqs2: 289ps, dqs3: 217ps,
change to: 324MHz
PHY drv:clk:49,ca:49,DQ:40,odt:0
vrefinner:27%, vrefout:41%
dram drv:40,odt:0
clk skew:0x58
change to: 528MHz
PHY drv:clk:49,ca:49,DQ:40,odt:0
vrefinner:27%, vrefout:41%
dram drv:40,odt:0
clk skew:0x7d
change to: 780MHz
PHY drv:clk:49,ca:49,DQ:40,odt:80
vrefinner:19%, vrefout:41%
dram drv:40,odt:0
clk skew:0x64
rx vref: 18.9%
tx vref: 38.0%
change to: 1056MHz(final freq)
PHY drv:clk:49,ca:49,DQ:40,odt:80
vrefinner:19%, vrefout:26%
dram drv:40,odt:60
vref_ca:0000005E
clk skew:0x48
rx vref: 17.9%
tx vref: 26.8%
cs 0:
rdtrn RS:
DQS0:0x42, DQS1:0x47, DQS2:0x43, DQS3:0x40,
min : 0x8 0x9 0xd 0xb 0x8 0x1 0x3 0x3 , 0xd 0xd 0x4 0x1 0x7 0xe
0x8 0x9 ,
0xb 0xd 0xf 0xe 0xa 0x2 0xa 0x6 , 0x8 0x1 0x6 0x3 0x5 0xd
0xb 0x8 ,
mid :0x25 0x27 0x29 0x27 0x23 0x1e 0x1e 0x1e ,0x2a 0x2a 0x1e 0x1b 0x24 0x2c
0x24 0x22 ,
0x28 0x29 0x2a 0x29 0x25 0x1c 0x25 0x21 ,0x23 0x1d 0x20 0x1f 0x20 0x27
0x25 0x22 ,
max :0x43 0x45 0x46 0x44 0x3e 0x3b 0x39 0x3a ,0x47 0x47 0x39 0x36 0x41 0x4b
0x40 0x3c ,
0x45 0x46 0x46 0x45 0x40 0x37 0x40 0x3d ,0x3f 0x39 0x3b 0x3b 0x3b 0x42
0x3f 0x3c ,
range:0x3b 0x3c 0x39 0x39 0x36 0x3a 0x36 0x37 ,0x3a 0x3a 0x35 0x35 0x3a 0x3d
0x38 0x33 ,
0x3a 0x39 0x37 0x37 0x36 0x35 0x36 0x37 ,0x37 0x38 0x35 0x38 0x36 0x35
0x34 0x34 ,
wrtrn RS:
DQS0:0x65, DQS1:0x61, DQS2:0x6b, DQS3:0x61,
min :0x8d 0x8f 0x91 0x8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f 0x2f ,0x30 0x32 0x31 0x31 0x31
0x33 0x2d 0x2f 0x32 ,
CBT RS:
cs:0 min :0x3e 0x40 0x4d 0x4b 0x43 0x48 0x46 ,0x37 0x39 0x39 0x40 0x42 0x42
0x3a ,
cs:0 mid :0x7a 0x7a 0x89 0x86 0x7e 0x83 0x79 ,0x74 0x75 0x73 0x79 0x7b 0x7b
0x73 ,
cs:0 max :0xb6 0xb4 0xc6 0xc2 0xba 0xbe 0xad ,0xb2 0xb1 0xad 0xb3 0xb5 0xb5
0xad ,
cs:0 range:0x78 0x74 0x79 0x77 0x77 0x76 0x67 ,0x7b 0x78 0x74 0x73 0x73 0x73
0x73 ,
cs:1 min :0x41 0x40 0x4f 0x4f 0x46 0x49 0x3e ,0x3a 0x3a 0x3a 0x42 0x43 0x42
0x36 ,
cs:1 mid :0x7d 0x7e 0x8c 0x8b 0x82 0x86 0x75 ,0x76 0x77 0x75 0x7d 0x7e 0x7d
0x71 ,
cs:1 max :0xb9 0xbc 0xca 0xc8 0xbf 0xc3 0xac ,0xb3 0xb4 0xb0 0xb9 0xb9 0xb8
0xac ,
cs:1 range:0x78 0x7c 0x7b 0x79 0x79 0x7a 0x6e ,0x79 0x7a 0x76 0x77 0x76 0x76
0x76 ,
out
U-Boot SPL 2025.10 (Oct 16 2025 - 11:50:45 -0700)
Trying to boot from MMC2
## Checking hash(es) for config config-1 ... OK
## Checking hash(es) for Image atf-1 ... sha256+ OK
## Checking hash(es) for Image u-boot ... sha256+ OK
## Checking hash(es) for Image fdt-1 ... sha256+ OK
## Checking hash(es) for Image atf-2 ... sha256+ OK
## Checking hash(es) for Image atf-3 ... sha256+ OK
INFO: Preloader serial: 0
NOTICE: BL31: v2.3():v2.3-912-gfe961b77f:derrick.huang, fwver: v1.20
NOTICE: BL31: Built : 16:59:19, Mar 31 2025
INFO: rk_otp_init finish!
INFO: code: 0x28
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: 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 = 0x200000
INFO: SPSR = 0x3c9
U-Boot 2025.10 (Oct 16 2025 - 11:50:45 -0700)
Model: Radxa E20C
SoC: RK3528A
DRAM: 4 GiB (total 3.9 GiB)
Core: 184 devices, 28 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: 2 Hit any key to stop autoboot: 1Hit 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: Label: mmc 1 Device path:
/VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b,0000000000000000)/VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b,6f00000000000000)/SD(1)/SD(1)
disks: sd0* sd1
OpenBSD/arm64 BOOTAA64 1.22
boot>
booting sd0a:/bsd: 12319256+2896512+320880+862632
[1019778+91+1362792+859553]=0x1438b10
[ using 3243000 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.8 (GENERIC.MP) #38: Sun Oct 12 18:23:44 MDT 2025
[email protected]:/usr/src/sys/arch/arm64/compile/GENERIC.MP
real mem = 4224163840 (4028MB)
avail mem = 4008316928 (3822MB)
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 0x20251000
smbios0 at efi0: SMBIOS 3.7.0
smbios0: vendor U-Boot version "2025.10" date 10/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
rkpinctrl0 at mainbus0: no registers
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: "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, 9, 150000000)
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, 76, 500000000)
syscon34 at simplebus0: "syscon"
com0 at simplebus0: dw16550, 64 byte fifo
com0: console
rkiic0 at simplebus0
iic0 at rkiic0
"belling,bl24c16a" at iic0 addr 0x50 not configured
rkpwm0 at simplebus0
rkpwm1 at simplebus0
"adc" at simplebus0 not configured
dwqe0 at simplebus0 gmac 1: rev 0x51, address 0a:88:e0:48:ba:75
ytphy0 at dwqe0 phy 1: YT8531, rev. 11
dwmshc0 at simplebus0
dwmshc0: SDHC 4.20, 200 MHz base clock
sdmmc0 at dwmshc0: 8-bit, sd high-speed, mmc high-speed, dma
dwmmc0 at simplebus0: 49 MHz base clock
sdmmc1 at dwmmc0: 4-bit, sd high-speed, mmc high-speed, dma
"dma-controller" at simplebus0 not configured
"rng" at simplebus0 not configured
"nvmem" at simplebus0 not configured
"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-vccio-sd" at mainbus0 not configured
"binman" at mainbus0 not configured
"dmc" at mainbus0 not configured
scsibus0 at sdmmc0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <SD/MMC, TLimmc, 0000>
sd0: 30056MB, 512 bytes/sector, 61554688 sectors
scsibus1 at sdmmc1: 2 targets, initiator 0
sd1 at scsibus1 targ 1 lun 0: <Sandisk, SD32G, 0085> removable
sd1: 30436MB, 512 bytes/sector, 62333952 sectors
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd1a (2e6fb31dc1a1d9bc.a) swap on sd1b dump on sd1b
WARNING: CHECK AND RESET THE DATE!
Automatic boot in progress: starting file system checks.
/dev/sd1a (2e6fb31dc1a1d9bc.a): file system is clean; not checking
pf enabled
starting network
reordering: ld.so libc libcrypto sshd sshd-session sshd-auth ssh-agent.
starting early daemons: syslogd pflogd ntpd.
starting RPC daemons:.
savecore: no core dump
checking quotas: done.
clearing /tmp
kern.securelevel: 0 -> 1
creating runtime link editor directory cache.
preserving editor files.
starting network daemons: sshd smtpd httpd sndiod.
starting package daemons: mrtg smokeping smokeping_fcgi.
starting local daemons: cron.
Thu Nov 13 21:36:20 PST 2025
OpenBSD/arm64 (radxa-sd.10-42.net) (console)
login: root
$Password:
Login incorrect
login: root
Password:
Last unsuccessful login: Thu Nov 13 21:36:33 on console
Last login: Thu Nov 13 21:31:37 on console
OpenBSD 7.8 (GENERIC.MP) #38: Sun Oct 12 18:23:44 MDT 2025
Welcome to OpenBSD: The proactively secure Unix-like operating system.
Please use the sendbug(1) utility to report bugs in the system.
Before reporting a bug, please try to reproduce it with the latest
version of the code. With bug reports, please try to ensure that
enough information to reproduce the problem is enclosed, and if a
known fix for it exists, include that as well.
You have mail.
radxa-sd# disklabel sd0
# /dev/rsd0c:
type: SCSI
disk: SCSI disk
label: SD/MMC TLimmc
duid: 0000000000000000
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 3831
total sectors: 61554688
boundstart: 0
boundend: 61554688
16 partitions:
# size offset fstype [fsize bsize cpg]
c: 61554688 0 unused
radxa-sd# fdisk /dev/sd0
fdisk: /dev/sd0 is not a character device
radxa-sd#