Jump to content
dellfer

Tinker Board 2S do not boot. UART log question

Recommended Posts

Hi all.

Tinker Board 2S do not boot. In the UART console log I saw:

PMIC:  RK808
rk8xx_write: write reg 0x4f failed, ret=-121
virq_add_chip: Set mask register 0x4f failed, ret=-121
rk8xx_read: read reg 0x2f failed, ret=-121
vdd_center -121 uV
rk8xx_write: write reg 0x23 failed, ret=-121
vdd_cpu_l 900000 uV
rk8xx_read: read reg 0x23 failed, ret=-121
rk8xx_write: write reg 0x23 failed, ret=-121
rk8xx_write: write reg 0x90 failed, ret=-121
rk8xx_write: write reg 0x24 failed, ret=-121
rk8xx_write: write reg 0x24 failed, ret=-121
rk8xx_write: write reg 0x24 failed, ret=-121
rk8xx_read: read reg 0x24 failed, ret=-121
rk8xx_write: write reg 0x24 failed, ret=-121
rk8xx_write: write reg 0x24 failed, ret=-121
rk8xx_write: write reg 0x24 failed, ret=-121
rk8xx_write: write reg 0x23 failed, ret=-121
vdd_log 1100000 uV
rk8xx_read: read reg 0x49 failed, ret=-121
-121 uV is too high from LDO_REG8

Spoiler

DDR Version 1.30 20230417 DOE10
In
channel 0
CS = 0
MR0=0x18
MR4=0x2
MR5=0x1
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
channel 1
CS = 0
MR0=0x18
MR4=0x2
MR5=0x1
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
channel 0 training pass!
channel 1 training pass!
change freq to 416MHz 0,1
Channel 0: LPDDR4,416MHz
Bus Width=32 Col=10 Bank=8 Row=15 CS=1 Die Bus-Width=16 Size=1024MB
Channel 1: LPDDR4,416MHz
Bus Width=32 Col=10 Bank=8 Row=15 CS=1 Die Bus-Width=16 Size=1024MB
256B stride
channel 0
CS = 0
MR0=0x98
MR4=0x2
MR5=0x1
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
channel 1
CS = 0
MR0=0x98
MR4=0x2
MR5=0x1
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
channel 0 training pass!
channel 1 training pass!
channel 0, cs 0, advanced training done
channel 1, cs 0, advanced training done
change freq to 856MHz 1,0
ch 0 ddrconfig = 0x101, ddrsize = 0x20
ch 1 ddrconfig = 0x101, ddrsize = 0x20
pmugrf_os_reg[2] = 0x3281F281, stride = 0x9


mr11 = 0x11


mr11 = 0x11
ddr_set_rate to 328MHZ


mr11 = 0x11


mr11 = 0x11


mr22 = 0x3


mr22 = 0x3
ddr_set_rate to 666MHZ


mr11 = 0x11


mr11 = 0x11
ddr_set_rate to 416MHZ, ctl_index 0


mr11 = 0x11


mr11 = 0x11


mr22 = 0x3


mr22 = 0x3
ddr_set_rate to 856MHZ, ctl_index 1
support 416 856 328 666 MHz, current 856MHz
OUT
Boot1 Release Time: Jun 13 2022 09:58:34, version: 1.28
CPUId = 0x0
ChipType = 0x10, 632
mmc_set_bus_width: 1
EmmcClk: 375KHZ
EmmcClk: 375KHZ
mmc_set_bus_width: 8
EmmcClk: 200000KHZ
SdmmcInit=2 0
BootCapSize=100000
UserCapSize=14910MB
FwPartOffset=2000 , 100000
NeedKHz=200KHz, Clock=12000KHz
NeedKHz=200KHz, Clock=12000KHz
NeedKHz=200KHz, Clock=12000KHz
mmc0:cmd0,0
mmc0:cmd8,20
mmc0:cmd5,20
mmc0:cmd55,20
mmc0:cmd1,20
NeedKHz=200KHz, Clock=12000KHz
NeedKHz=200KHz, Clock=12000KHz
mmc0:cmd0,0
mmc0:cmd8,20
mmc0:cmd5,20
mmc0:cmd55,20
mmc0:cmd1,20
NeedKHz=200KHz, Clock=12000KHz
NeedKHz=200KHz, Clock=12000KHz
mmc0:cmd0,0
mmc0:cmd8,20
mmc0:cmd5,20
mmc0:cmd55,20
mmc0:cmd1,20
NeedKHz=200KHz, Clock=12000KHz
SdmmcInit=0 1
StorageInit ok = 111134
SecureMode = 0
SecureInit read PBA: 0x4
SecureInit read PBA: 0x404
SecureInit read PBA: 0x804
SecureInit read PBA: 0xc04
SecureInit read PBA: 0x1004
SecureInit read PBA: 0x1404
SecureInit read PBA: 0x1804
SecureInit read PBA: 0x1c04
SecureInit ret = 0, SecureMode = 0
atags_set_bootdev: ret:(0)
GPT part:  0, name:            uboot, start:0x4000, size:0x2000
GPT part:  1, name:            trust, start:0x6000, size:0x2000
GPT part:  2, name:             misc, start:0x8000, size:0x2000
GPT part:  3, name:             boot, start:0xa000, size:0x20000
GPT part:  4, name:         recovery, start:0x2a000, size:0x40000
GPT part:  5, name:           backup, start:0x6a000, size:0x10000
GPT part:  6, name:           splash, start:0x7a000, size:0x8000
GPT part:  7, name:         userdata, start:0x82000, size:0x20000
GPT part:  8, name:           rootfs, start:0xa2000, size:0x1c7cfdf
find part:uboot OK. first_lba:0x4000.
find part:trust OK. first_lba:0x6000.
LoadTrust Addr:0x6000
No find bl30.bin
Load uboot, ReadLba = 4000
Load OK, addr=0x200000, size=0x116c38
RunBL31 0x40000 @ 231631 us
NOTICE:  BL31: v1.3(release):1d45bd4ef
NOTICE:  BL31: Built : 10:55:02, May 22 2023
NOTICE:  BL31: Rockchip release version: v1.1
INFO:    GICv3 with legacy support detected. ARM GICV3 driver initialized in EL3
INFO:    Using opteed sec cpu_context!
INFO:    boot cpu mask: 0
INFO:    plat_rockchip_pmu_init(1203): pd status 3e
INFO:    BL31: Initializing runtime services
INFO:    BL31: Initializing BL32
INF [0x0] TEE-CORE:init_primary_helper:337: Initializing (1.1.0-286-g44e25f04e #                                                            
hisping.lin #10 Fri Jul 28 06:18:14 UTC 2023 aarch64)

INF [0x0] TEE-CORE:init_primary_helper:338: Release version: 1.2

INF [0x0] TEE-CORE:init_teecore:83: teecore inits done
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x200000
INFO:    SPSR = 0x3c9


U-Boot 2017.09-g3a6d08ae01-231011 #android (May 27 2024 - 07:10:29 +0000)

Model: Rockchip RK3399 Evaluation Board
MPIDR: 0x80000000
PreSerial: 2, raw, 0xff1a0000
DRAM:  2 GiB
Sysmem: init
Relocation Offset: 7da4b000
Relocation fdt: 7bc3f2c8 - 7bc41ce3
CR: M/C/I
DM: v1
Set GPIO2_A4 (MASK_RELEASE) output high
dwmmc@fe320000: 1, sdhci@fe330000: 0
Bootdev(atags): mmc 0
MMC0: HS400, 150Mhz
PartType: EFI
boot mode: None
RESC: 'boot', blk@0x0001ec14
optee api revision: 2.0
TEEC: Waring: Could not find security partition
Device is: UNLOCKED
DTB: rk-kernel.dtb
HASH(c): OK
I2c0 speed: 400000Hz
PMIC:  RK808
rk8xx_write: write reg 0x4f failed, ret=-121
virq_add_chip: Set mask register 0x4f failed, ret=-121
rk8xx_read: read reg 0x2f failed, ret=-121
vdd_center -121 uV
rk8xx_write: write reg 0x23 failed, ret=-121
vdd_cpu_l 900000 uV
rk8xx_read: read reg 0x23 failed, ret=-121
rk8xx_write: write reg 0x23 failed, ret=-121
rk8xx_write: write reg 0x90 failed, ret=-121
rk8xx_write: write reg 0x24 failed, ret=-121
rk8xx_write: write reg 0x24 failed, ret=-121
rk8xx_write: write reg 0x24 failed, ret=-121
rk8xx_read: read reg 0x24 failed, ret=-121
rk8xx_write: write reg 0x24 failed, ret=-121
rk8xx_write: write reg 0x24 failed, ret=-121
rk8xx_write: write reg 0x24 failed, ret=-121
rk8xx_write: write reg 0x23 failed, ret=-121
vdd_log 1100000 uV
rk8xx_read: read reg 0x49 failed, ret=-121
-121 uV is too high from LDO_REG8
io-domain: OK
*** Warning - bad CRC, using default environment

Could not find baseparameter partition
Model: ASUS Tinker Board 2/2S
MPIDR: 0x80000000
read_bmp_header:BMP singature incorrectly 0x0 0x0load_bmp_logo  42 4d bit_count=                                                            
8 width=258 height=94 file_size=2d40
Rockchip UBOOT DRM driver version: v1.0.1
hdmi@ff940000 disconnected
CLK: (uboot. arml: enter 816000 KHz, init 816000 KHz, kernel 0N/A)
CLK: (uboot. armb: enter 816000 KHz, init 816000 KHz, kernel 0N/A)
  aplll 816000 KHz
  apllb 816000 KHz
  dpll 856000 KHz
  cpll 24000 KHz
  gpll 800000 KHz
  npll 600000 KHz
  vpll 24000 KHz
  aclk_perihp 133333 KHz
  hclk_perihp 66666 KHz
  pclk_perihp 33333 KHz
  aclk_perilp0 266666 KHz
  hclk_perilp0 88888 KHz
  pclk_perilp0 44444 KHz
  hclk_perilp1 100000 KHz
  pclk_perilp1 50000 KHz
Net:   rk3399_gmac_set_clk: internal clock is UNIMPLEMENTED
No ethernet found.
Hit key to stop autoboot('CTRL+C'):  0
ANDROID: reboot reason: "(none)"
Not AVB images, AVB skip
** Invalid partition 16 **
fs_devread read outside partition 2
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
[cmdline] do_ext2load fail from /data/overlay-boot/upper/cmdline.txt
112 bytes read in 1 ms (109.4 KiB/s)
[cmdline] do_ext2load pass from /boot/cmdline.txt
cmdline.txt size = 112
cmdline.txt valid = 1
** Invalid partition 16 **
** File not found overlay-boot/upper/config.txt **
[conf] do_ext2load fail from /data/overlay-boot/upper/config.txt
1774 bytes read in 1 ms (1.7 MiB/s)
[conf] do_ext2load pass from /boot/config.txt
config.txt size = 1774
[conf] hw_parse_property: illegal line
[conf] hw_parse_property: illegal line
[conf] hw_parse_property: illegal line
[conf] hw_parse_property: illegal line
[conf] hw_parse_property: illegal line
[conf] hw_parse_property: illegal line
[conf] hw_parse_property: illegal line
[conf] hw_parse_property: illegal line
config.txt valid = 1
config on: 1, config off: -1, no config: 0
intf.fiq_debugger = 1
intf.i2c6 = 0
intf.i2c7 = 0
intf.uart0 = 0
intf.uart4 = 0
intf.i2s0 = 0
intf.spi1 = 0
intf.spi5 = 0
intf.pwm0 = 0
intf.pwm1 = 0
intf.pwm3a = 0
intf.spdif = 0
intf.test_clkout2 = 0
conf.gmac = 1
conf.ums = 1
fdt magic number edfe0dd0
fdt size 1048576
set_hw_property_u32: /fiq-debugger rockchip,serial-id 00000002
flash_device_node: /pinctrl/testclk/test-clkout2 rockchip,pins
set_hw_property: /ethernet@fe300000 wakeup-enable 1
Booting IMAGE kernel at 0x00280000 with fdt at 0x08300000...


Fdt Ramdisk skip relocation
## Booting Android Image at 0x0027f800 ...
Kernel: 0x00280000 - 0x02c01a00 (42503 KiB)
devnum=0, boot from eMMC
## Flattened Device Tree blob at 0x08300000
   Booting using the fdt blob at 0x08300000
   XIP Kernel Image from 0x00280000 to 0x00280000 ... OK
   kernel loaded at 0x00280000, end = 0x02c01a00
   Using Device Tree in place at 0000000008300000, end 0000000008402fff
read_bmp_header:BMP singature incorrectly 0x0 0x0load_bmp_logo  42 4d bit_count=                                                            
8 width=258 height=94 file_size=2d40
WARNING: could not set reg FDT_ERR_BADOFFSET.
## reserved-memory:
  drm-logo@00000000: addr=7df00000 size=5e000
  ramoops@110000: addr=110000 size=f0000
Adding bank: 0x00200000 - 0x08400000 (size: 0x08200000)
Adding bank: 0x0a200000 - 0x80000000 (size: 0x75e00000)
== DO RELOCATE == Kernel from 0x00280000 to 0x00200000
Total: 3931.37/4022.764 ms

Starting kernel ...

[    4.035024] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    4.035055] Linux version 5.10.198 (android@e9e11c78b7f1) (aarch64-none-linux                                                            
-gnu-gcc (GNU Toolchain for the A-profile Architecture 10.3-2021.07 (arm-10.29))                                                             
10.3.1 20210621, GNU ld (GNU Toolchain for the A-profile Architecture 10.3-2021                                                            
.07 (arm-10.29)) 2.36.1.20210621) #1 SMP Mon May 27 07:10:54 UTC 2024
[    4.042266] Machine model: ASUS Tinker Board 2/2S
[    4.124179] earlycon: uart8250 at MMIO32 0x00000000ff1a0000 (options '')
[    4.173213] printk: bootconsole [uart8250] enabled
[    4.180003] efi: UEFI not found.
[    4.246978] Zone ranges:
[    4.249764]   DMA      [mem 0x0000000000200000-0x000000007fffffff]
[    4.256546]   DMA32    empty
[    4.259700]   Normal   empty
[    4.262854] Movable zone start for each node
[    4.267530] Early memory node ranges
[    4.271446]   node   0: [mem 0x0000000000200000-0x00000000083fffff]
[    4.278319]   node   0: [mem 0x000000000a200000-0x000000007fffffff]
[    4.285186] Initmem setup node 0 [mem 0x0000000000200000-0x000000007fffffff]
[    4.309503] cma: Reserved 16 MiB at 0x000000007e800000
[    4.315191] psci: probing for conduit method from DT.
[    4.320733] psci: PSCIv1.0 detected in firmware.
[    4.325791] psci: Using standard PSCI v0.2 function IDs
[    4.331521] psci: Trusted OS migration not required
[    4.336867] psci: SMC Calling Convention v1.0
[    4.342111] percpu: Embedded 31 pages/cpu s88344 r8192 d30440 u126976
[    4.349336] Detected VIPT I-cache on CPU0
[    4.353773] CPU features: detected: ARM erratum 845719
[    4.359407] CPU features: detected: GIC system register CPU interface
[    4.366869] Built 1 zonelists, mobility grouping on.  Total pages: 507912
[    4.374319] Kernel command line: storagemedia=emmc androidboot.storagemedia=e                                                            
mmc androidboot.mode=normal  androidboot.verifiedbootstate=orange androidboot.se                                                            
rialno=81be46ddac0dc09a root=/dev/mmcblk0p9 rw rootwait console=tty0 earlycon=ua                                                            
rt8250,mmio32,0xff1a0000 console=ttyFIQ0 rootfstype=ext4 coherent_pool=1m androi                                                            
dboot.fwver=uboot-3a6d08ae01-05/27/2024
[    4.409622] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes,                                                             
linear)
[    4.418419] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes,                                                             
linear)
[    4.426915] mem auto-init: stack:off, heap alloc:off, heap free:off
[    4.469298] Memory: 1963124K/2064384K available (22400K kernel code, 4038K rw                                                            
data, 8124K rodata, 7808K init, 649K bss, 84876K reserved, 16384K cma-reserved)
[    4.484829] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=6, Nodes=1
[    4.492030] ftrace: allocating 67519 entries in 264 pages
[    4.636364] ftrace: allocated 264 pages with 2 groups
[    4.642252] rcu: Hierarchical RCU implementation.
[    4.647412] rcu:     RCU event tracing is enabled.
[    4.652376] rcu:     RCU dyntick-idle grace-period acceleration is enabled.
[    4.659724] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=6.
[    4.666882]  Rude variant of Tasks RCU enabled.
[    4.671844]  Tracing variant of Tasks RCU enabled.
[    4.677095] rcu: RCU calculated value of scheduler-enlistment delay is 30 jif                                                            
fies.
[    4.685396] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=6
[    4.700505] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    4.708644] GICv3: GIC: Using split EOI/Deactivate mode
[    4.714380] GICv3: 256 SPIs implemented
[    4.718581] GICv3: 0 Extended SPIs implemented
[    4.723488] GICv3: Distributor has no Range Selector support
[    4.729728] GICv3: 16 PPIs implemented
[    4.735011] GICv3: CPU0: found redistributor 0 region 0:0x00000000fef00000
[    4.742776] ITS [mem 0xfee20000-0xfee3ffff]
[    4.747643] ITS@0x00000000fee20000: allocated 65536 Devices @3480000 (flat, e                                                            
sz 8, psz 64K, shr 0)
[    4.757498] ITS: using cache flushing for cmd queue
[    4.763238] GICv3: using LPI property table @0x0000000003410000
[    4.769924] GIC: using cache flushing for LPI property table
[    4.776146] GICv3: CPU0: using allocated LPI pending table @0x000000000342000                                                            
0
[    4.784119] GICv3: GIC: PPI partition interrupt-partition-0[0] { /cpus/cpu@0[                                                            
0] /cpus/cpu@1[1] /cpus/cpu@2[2] /cpus/cpu@3[3] }
[    4.796710] GICv3: GIC: PPI partition interrupt-partition-1[1] { /cpus/cpu@10                                                            
0[4] /cpus/cpu@101[5] }
[    4.807109] rcu:     Offload RCU callbacks from CPUs: (none).
[    4.924781] rockchip_clk_register_frac_branch: could not find dclk_vop0_frac                                                             
as parent of dclk_vop0, rate changes may not work
[    4.943668] rockchip_clk_register_frac_branch: could not find dclk_vop1_frac                                                             
as parent of dclk_vop1, rate changes may not work
[    5.023821] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    5.030514] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles:                                                            
 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    5.042351] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 43980                                                            
46511097ns
[    5.052455] Console: colour dummy device 80x25
[    5.057920] printk: console [tty0] enabled
[    5.062455] Calibrating delay loop (skipped), value calculated using timer fr                                                            
equency.. 48.00 BogoMIPS (lpj=80000)
[    5.073741] pid_max: default: 32768 minimum: 301
[    5.078980] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, line                                                            
ar)
[    5.087119] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes,                                                             
linear)
[    5.097753] rcu: Hierarchical SRCU implementation.
[    5.104169] Platform MSI: interrupt-controller@fee20000 domain created
[    5.111912] PCI/MSI: /interrupt-controller@fee00000/interrupt-controller@fee2                                                            
0000 domain created
[    5.121820] EFI services will not be available.
[    5.127270] smp: Bringing up secondary CPUs ...
[    5.132972] Detected VIPT I-cache on CPU1
[    5.133013] GICv3: CPU1: found redistributor 1 region 0:0x00000000fef20000
[    5.133041] GICv3: CPU1: using allocated LPI pending table @0x000000000343000                                                            
0
[    5.133102] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    5.134033] Detected VIPT I-cache on CPU2
[    5.134074] GICv3: CPU2: found redistributor 2 region 0:0x00000000fef40000
[    5.134102] GICv3: CPU2: using allocated LPI pending table @0x000000000344000                                                            
0
[    5.134159] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    5.135079] Detected VIPT I-cache on CPU3
[    5.135120] GICv3: CPU3: found redistributor 3 region 0:0x00000000fef60000
[    5.135147] GICv3: CPU3: using allocated LPI pending table @0x000000000345000                                                            
0
[    5.135204] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    5.136240] CPU features: detected: Spectre-v2
[    5.136246] CPU features: detected: Spectre-v4
[    5.136249] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
[    5.136253] CPU features: detected: Spectre-BHB
[    5.136255] CPU features: detected: ARM erratum 1742098
[    5.136261] Detected PIPT I-cache on CPU4
[    5.136287] GICv3: CPU4: found redistributor 100 region 0:0x00000000fef80000
[    5.136304] GICv3: CPU4: using allocated LPI pending table @0x000000000346000                                                            
0
[    5.136341] CPU4: Booted secondary processor 0x0000000100 [0x410fd082]
[    5.137096] Detected PIPT I-cache on CPU5
[    5.137124] GICv3: CPU5: found redistributor 101 region 0:0x00000000fefa0000
[    5.137143] GICv3: CPU5: using allocated LPI pending table @0x000000000347000                                                            
0
[    5.137178] CPU5: Booted secondary processor 0x0000000101 [0x410fd082]
[    5.137293] smp: Brought up 1 node, 6 CPUs
[    5.305532] SMP: Total of 6 processors activated.
[    5.310702] CPU features: detected: 32-bit EL0 Support
[    5.316349] CPU features: detected: CRC32 instructions
[    5.350139] CPU: All CPU(s) started at EL2
[    5.354738] alternatives: patching kernel code

 

RK808 is dead?

Share this post


Link to post
Share on other sites

UPD: I found broken chip PU5. Where can i find boardview for identify this chip?

photo_2025-03-17_13-49-29.jpg

Share this post


Link to post
Share on other sites

hello @dellfer

there's something wrong with pmic from the log, usually the boot process will set parameters for: 

vdd_center 900000 uV
vdd_cpu_l 900000 uV
vdd_log 1100000 uV

it might be caused by the uboot defconfig & kernel dts changes. have these been modified? if so, what are the modifications? 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...