neggles / linux-quartz64

Development kernel for QuartzPro64
Other
17 stars 14 forks source link

SD card issue on rock5b #3

Closed warpme closed 1 year ago

warpme commented 1 year ago

Adrew,

Im playing with your code on rk3588 rock-5b. DT i'm using is QuartzPro64 with modifications related to different gpio wiring. I'm using radxa uboot and booting from sd card (so kernel image, dtb is read ok from sd card) Kernel boots, but fails at stage when rootfs should be mounted (see below) Maybe you have some hints how to move forward with this?


DDR Version V1.08 20220617
LPDDR4X, 2112MHz
channel[0] BW=16 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=2048MB
channel[1] BW=16 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=2048MB
channel[2] BW=16 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=2048MB
channel[3] BW=16 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=2048MB
Manufacturer ID:0x6 
CH0 RX Vref:31.7%, TX Vref:21.8%,21.8%
CH1 RX Vref:30.7%, TX Vref:21.8%,20.8%
CH2 RX Vref:32.7%, TX Vref:21.8%,21.8%
CH3 RX Vref:33.7%, TX Vref:21.8%,20.8%
change to F1: 528MHz
change to F2: 1068MHz
change to F3: 1560MHz
change to F0: 2112MHz
out
U-Boot SPL board init
U-Boot SPL 2017.09 (Feb 03 2023 - 16:22:19)
Trying to boot from MMC2
spl: partition error
Trying fit image at 0x4000 sector
## Verified-boot: 0
## Checking atf-1 0x00040000 ... sha256(806278dba1...) + OK
## Checking uboot 0x00200000 ... sha256(6c6bc83d9a...) + OK
## Checking fdt 0x0030a230 ... sha256(d32827d3ac...) + OK
## Checking atf-2 0x000f0000 ... sha256(c00c7fd75b...) + OK
## Checking atf-3 0xff100000 ... sha256(71c3a5841b...) + OK
## Checking atf-4 0xff001000 ... sha256(2301cf73be...) + OK
Jumping to U-Boot(0x00200000) via ARM Trusted Firmware(0x00040000)
Total: 598.895 ms

.INFO:    Preloader serial: 2
NOTICE:  BL31: v2.3():v2.3-405-gb52c2eadd:derrick.huang
NOTICE:  BL31: Built : 11:23:47, Aug 15 2022
INFO:    spec: 0x1
INFO:    ext 32k is not valid
INFO:    GICv3 without legacy support detected.
INFO:    ARM GICv3 driver initialized in EL3
INFO:    system boots from cpu-hwid-0
INFO:    idle_st=0x21fff, pd_st=0x11fff9, repair_st=0xfff70001
INFO:    dfs DDR fsp_params[0].freq_mhz= 2112MHz
INFO:    dfs DDR fsp_params[1].freq_mhz= 528MHz
INFO:    dfs DDR fsp_params[2].freq_mhz= 1068MHz
INFO:    dfs DDR fsp_params[3].freq_mhz= 1560MHz
INFO:    BL31: Initialising Exception Handling Framework
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 2017.09 (Feb 03 2023 - 16:22:19 +0100)

Model: Radxa ROCK 5B
PreSerial: 2, raw, 0xfeb50000
DRAM:  7.7 GiB
Sysmem: init
Relocation Offset: edb6d000
Relocation fdt: eb9f9ee0 - eb9fecb0
CR: M/C/I
Using default environment

Hotkey: ctrl+`
no mmc device at slot 1
mmc@fe2c0000: 1 (SD), mmc@fe2e0000: 0
Bootdev(atags): mmc 1
MMC1: Legacy, 52Mhz
PartType: EFI
DM: v2
No misc partition
boot mode: None
FIT: No boot partition
No resource partition
No resource partition
No resource partition
Failed to load DTB, ret=-19
No find valid DTB, ret=-22
Failed to get kernel dtb, ret=-22
In:    serial
Out:   serial
Err:   serial
Model: Radxa ROCK 5B
CLK: (sync kernel. arm: enter 1008000 KHz, init 1008000 KHz, kernel 0N/A)
  b0pll 24000 KHz
  b1pll 24000 KHz
  lpll 24000 KHz
  v0pll 24000 KHz
  aupll 24000 KHz
  cpll 1500000 KHz
  gpll 1188000 KHz
  npll 24000 KHz
  ppll 1100000 KHz
  aclk_center_root 702000 KHz
  pclk_center_root 100000 KHz
  hclk_center_root 396000 KHz
  aclk_center_low_root 500000 KHz
  aclk_top_root 750000 KHz
  pclk_top_root 100000 KHz
  aclk_low_top_root 396000 KHz
No misc partition
Net:   No ethernet found.
Hit key to stop autoboot('CTRL+C'):  2 ... 1 ... 0 
PCIe Linking... LTSSM is 0x0
PCIe Linking... LTSSM is 0x0
PCIe Linking... LTSSM is 0x0
PCIe Linking... LTSSM is 0x0
PCIe Linking... LTSSM is 0x1
PCIe Linking... LTSSM is 0x0
PCIe Linking... LTSSM is 0x0
PCIe Linking... LTSSM is 0x0
PCIe Linking... LTSSM is 0x1
PCIe Linking... LTSSM is 0x0
PCIe Linking... LTSSM is 0x0
PCIe Linking... LTSSM is 0x0
PCIe Linking... LTSSM is 0x1
PCIe Linking... LTSSM is 0x0
PCIe Linking... LTSSM is 0x0
PCIe Linking... LTSSM is 0x0
PCIe Linking... LTSSM is 0x1
PCIe Linking... LTSSM is 0x0
PCIe Linking... LTSSM is 0x0
PCIe Linking... LTSSM is 0x0
PCIe Linking... LTSSM is 0x1
PCIe Linking... LTSSM is 0x0
PCIe Linking... LTSSM is 0x0
PCIe Linking... LTSSM is 0x0
PCIe Linking... LTSSM is 0x1
PCIe Linking... LTSSM is 0x0
PCIe Linking... LTSSM is 0x0
PCIe Linking... LTSSM is 0x0
PCIe Linking... LTSSM is 0x1
PCIe Linking... LTSSM is 0x0
PCIe Linking... LTSSM is 0x0
PCIe Linking... LTSSM is 0x0
PCIe Linking... LTSSM is 0x1
PCIe Linking... LTSSM is 0x0
PCIe Linking... LTSSM is 0x0
PCIe Linking... LTSSM is 0x0
PCIe Linking... LTSSM is 0x1
PCIe Linking... LTSSM is 0x0
PCIe Linking... LTSSM is 0x0
PCIe Linking... LTSSM is 0x0
PCIe Linking... LTSSM is 0x1
PCIe Linking... LTSSM is 0x0
PCIe Linking... LTSSM is 0x0
PCIe Linking... LTSSM is 0x0
PCIe Linking... LTSSM is 0x1
PCIe Linking... LTSSM is 0x0
PCIe Linking... LTSSM is 0x0
PCIe Linking... LTSSM is 0x0
PCIe Linking... LTSSM is 0x1
PCIe Linking... LTSSM is 0x0
PCIe-0 Link Fail

Device 0: unknown device
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1...
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
reading /extlinux/extlinux.conf
385 bytes read in 2 ms (187.5 KiB/s)
1:.MiniMyth2
Retrieving file: /Image
reading /Image
31459840 bytes read in 2521 ms (11.9 MiB/s)
append: root=PARTUUID=346d1a6a-02 rw rootwait earlycon=uart8250,mmio32,0xfeb50000 console=ttyS2,1500000n8 debug MM_DEBUG="yes"
Retrieving file: /dtbs/rockchip/rk3588-rock-5b.dtb
reading /dtbs/rockchip/rk3588-rock-5b.dtb
75105 bytes read in 11 ms (6.5 MiB/s)
Fdt Ramdisk skip relocation
No misc partition
## Flattened Device Tree blob at 0x0a100000
   Booting using the fdt blob at 0x0a100000
   Using Device Tree in place at 000000000a100000, end 000000000a115560
can't found rockchip,drm-logo, use rockchip,fb-logo
WARNING: could not set reg FDT_ERR_BADOFFSET.
failed to reserve fb-loader-logo memory
Adding bank: 0x00200000 - 0xf0000000 (size: 0xefe00000)
Adding bank: 0x100000000 - 0x200000000 (size: 0x100000000)
Total: 5772.666 ms

Starting kernel ...

[    0.000000] efi: UEFI not found.
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000200000-0x00000000ffffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   [mem 0x0000000100000000-0x00000001ffffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000200000-0x00000000efffffff]
[    0.000000]   node   0: [mem 0x0000000100000000-0x00000001ffffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000200000-0x00000001ffffffff]
[    0.000000] On node 0, zone DMA: 512 pages in unavailable ranges
[    0.000000] cma: Reserved 64 MiB at 0x00000000ec000000
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.2
[    0.000000] percpu: Embedded 29 pages/cpu s80040 r8192 d30552 u118784
[    0.000000] pcpu-alloc: s80040 r8192 d30552 u118784 alloc=29*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [0] 4 [0] 5 [0] 6 [0] 7 
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: GIC system register CPU interface
[    0.000000] CPU features: detected: Virtualization Host Extensions
[    0.000000] CPU features: detected: Qualcomm erratum 1009, or ARM erratum 1286807, 2441009
[    0.000000] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
[    0.000000] alternatives: applying boot alternatives
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1999368
[    0.000000] Kernel command line: root=PARTUUID=346d1a6a-02 rw rootwait earlycon=uart8250,mmio32,0xfeb50000 console=ttyS2,1500000n8 debug MM_DEBUG="yes"
[    0.000000] Unknown kernel command line parameters "MM_DEBUG=yes", will be passed to user space.
[    0.000000] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes, linear)
[    0.000000] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: area num 8.
[    0.000000] software IO TLB: mapped [mem 0x00000000e8000000-0x00000000ec000000] (64MB)
[    0.000000] Memory: 7804484K/8124416K available (14272K kernel code, 3522K rwdata, 6012K rodata, 6784K init, 641K bss, 254396K reserved, 65536K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=8, Nodes=1
[    0.000000] ftrace: allocating 50502 entries in 198 pages
[    0.000000] ftrace: allocated 198 pages with 4 groups
[    0.000000] trace event string verifier disabled
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] .Trampoline variant of Tasks RCU enabled.
[    0.000000] .Rude variant of Tasks RCU enabled.
[    0.000000] .Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 30 jiffies.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[    0.000000] GICv3: 480 SPIs implemented
[    0.000000] GICv3: 0 Extended SPIs implemented
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GICv3: GICv3 features: 16 PPIs
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x00000000fe680000
[    0.000000] ITS [mem 0xfe640000-0xfe65ffff]
[    0.000000] GIC: enabling workaround for ITS: Rockchip RK3568 force no_local_cache
[    0.000000] ITS@0x00000000fe640000: allocated 8192 Devices @210000 (indirect, esz 8, psz 64K, shr 0)
[    0.000000] ITS@0x00000000fe640000: allocated 32768 Interrupt Collections @220000 (flat, esz 2, psz 64K, shr 0)
[    0.000000] ITS: using cache flushing for cmd queue
[    0.000000] ITS [mem 0xfe660000-0xfe67ffff]
[    0.000000] GIC: enabling workaround for ITS: Rockchip RK3568 force no_local_cache
[    0.000000] ITS@0x00000000fe660000: allocated 8192 Devices @240000 (indirect, esz 8, psz 64K, shr 0)
[    0.000000] ITS@0x00000000fe660000: allocated 32768 Interrupt Collections @250000 (flat, esz 2, psz 64K, shr 0)
[    0.000000] ITS: using cache flushing for cmd queue
[    0.000000] ITS ALLOCATE PROP WORKAROUND
[    0.000000] GICv3: using LPI property table @0x0000000000260000
[    0.000000] GIC: using cache flushing for LPI property table
[    0.000000] GICv3: CPU0: using allocated LPI pending table @0x0000000000270000
[    0.000000] GICv3: GIC: PPI partition interrupt-partition-0[0] { /cpus/cpu@0[0] /cpus/cpu@100[1] /cpus/cpu@200[2] /cpus/cpu@300[3] /cpus/cpu@400[4] /cpus/cpu@500[5] /cpus/cpu@600[6] /cpus/cpu@700[7] }
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000000] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.001623] Console: colour dummy device 80x25
[    0.002089] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=80000)
[    0.003021] pid_max: default: 32768 minimum: 301
[    0.003718] Mount-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.004421] Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.007227] cblist_init_generic: Setting adjustable number of callback queues.
[    0.007889] cblist_init_generic: Setting shift to 3 and lim to 1.
[    0.008525] cblist_init_generic: Setting shift to 3 and lim to 1.
[    0.009183] cblist_init_generic: Setting shift to 3 and lim to 1.
[    0.009946] rcu: Hierarchical SRCU implementation.
[    0.010383] rcu: .Max phase no-delay instances is 1000.
[    0.011941] Platform MSI: msi-controller@fe640000 domain created
[    0.012529] Platform MSI: msi-controller@fe660000 domain created
[    0.013218] PCI/MSI: /interrupt-controller@fe600000/msi-controller@fe640000 domain created
[    0.013992] PCI/MSI: /interrupt-controller@fe600000/msi-controller@fe660000 domain created
[    0.015969] EFI services will not be available.
[    0.016957] smp: Bringing up secondary CPUs ...
[    0.017924] Detected VIPT I-cache on CPU1
[    0.018012] GICv3: CPU1: found redistributor 100 region 0:0x00000000fe6a0000
[    0.018024] GICv3: CPU1: using allocated LPI pending table @0x0000000000280000
[    0.018064] CPU1: Booted secondary processor 0x0000000100 [0x412fd050]
[    0.018722] Detected VIPT I-cache on CPU2
[    0.018804] GICv3: CPU2: found redistributor 200 region 0:0x00000000fe6c0000
[    0.018816] GICv3: CPU2: using allocated LPI pending table @0x0000000000290000
[    0.018849] CPU2: Booted secondary processor 0x0000000200 [0x412fd050]
[    0.019510] Detected VIPT I-cache on CPU3
[    0.019590] GICv3: CPU3: found redistributor 300 region 0:0x00000000fe6e0000
[    0.019601] GICv3: CPU3: using allocated LPI pending table @0x00000000002a0000
[    0.019633] CPU3: Booted secondary processor 0x0000000300 [0x412fd050]
[    0.020258] CPU features: detected: Spectre-v4
[    0.020262] CPU features: detected: Spectre-BHB
[    0.020265] Detected PIPT I-cache on CPU4
[    0.020309] GICv3: CPU4: found redistributor 400 region 0:0x00000000fe700000
[    0.020316] GICv3: CPU4: using allocated LPI pending table @0x00000000002b0000
[    0.020337] CPU4: Booted secondary processor 0x0000000400 [0x414fd0b0]
[    0.020919] Detected PIPT I-cache on CPU5
[    0.020967] GICv3: CPU5: found redistributor 500 region 0:0x00000000fe720000
[    0.020974] GICv3: CPU5: using allocated LPI pending table @0x00000000002c0000
[    0.020995] CPU5: Booted secondary processor 0x0000000500 [0x414fd0b0]
[    0.021560] Detected PIPT I-cache on CPU6
[    0.021609] GICv3: CPU6: found redistributor 600 region 0:0x00000000fe740000
[    0.021616] GICv3: CPU6: using allocated LPI pending table @0x00000000002d0000
[    0.021636] CPU6: Booted secondary processor 0x0000000600 [0x414fd0b0]
[    0.022213] Detected PIPT I-cache on CPU7
[    0.022263] GICv3: CPU7: found redistributor 700 region 0:0x00000000fe760000
[    0.022270] GICv3: CPU7: using allocated LPI pending table @0x00000000002e0000
[    0.022291] CPU7: Booted secondary processor 0x0000000700 [0x414fd0b0]
[    0.022355] smp: Brought up 1 node, 8 CPUs
[    0.039157] SMP: Total of 8 processors activated.
[    0.039585] CPU features: detected: 32-bit EL0 Support
[    0.040049] CPU features: detected: Data cache clean to the PoU not required for I/D coherence
[    0.040827] CPU features: detected: Common not Private translations
[    0.041402] CPU features: detected: CRC32 instructions
[    0.041870] CPU features: detected: RCpc load-acquire (LDAPR)
[    0.042389] CPU features: detected: LSE atomic instructions
[    0.042891] CPU features: detected: Privileged Access Never
[    0.043395] CPU features: detected: RAS Extension Support
[    0.043882] CPU features: detected: Speculative Store Bypassing Safe (SSBS)
[    0.044546] spectre-bhb mitigation disabled by compile time option
[    0.045162] CPU: All CPU(s) started at EL2
[    0.045536] alternatives: applying system-wide alternatives
[    0.050206] devtmpfs: initialized
[    0.056001] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370867519511994 ns
[    0.056899] futex hash table entries: 2048 (order: 5, 131072 bytes, linear)
[    0.058000] pinctrl core: initialized pinctrl subsystem
[    0.058711] DMI not present or invalid.
[    0.059299] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.060542] DMA: preallocated 1024 KiB GFP_KERNEL pool for atomic allocations
[    0.061378] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.062256] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.063013] audit: initializing netlink subsys (disabled)
[    0.063617] audit: type=2000 audit(0.059:1): state=initialized audit_enabled=0 res=1
[    0.064143] thermal_sys: Registered thermal governor 'fair_share'
[    0.064322] thermal_sys: Registered thermal governor 'bang_bang'
[    0.064880] thermal_sys: Registered thermal governor 'step_wise'
[    0.065428] thermal_sys: Registered thermal governor 'user_space'
[    0.065996] cpuidle: using governor ladder
[    0.066932] cpuidle: using governor menu
[    0.067335] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.068056] ASID allocator initialised with 65536 entries
[    0.068926] Serial: AMBA PL011 UART driver
[    0.074692] rockchip-gpio fd8a0000.gpio: probed /pinctrl/gpio@fd8a0000
[    0.075490] rockchip-gpio fec20000.gpio: probed /pinctrl/gpio@fec20000
[    0.076276] rockchip-gpio fec30000.gpio: probed /pinctrl/gpio@fec30000
[    0.077069] rockchip-gpio fec40000.gpio: probed /pinctrl/gpio@fec40000
[    0.077878] rockchip-gpio fec50000.gpio: probed /pinctrl/gpio@fec50000
[    0.088870] cryptd: max_cpu_qlen set to 1000
[    0.089690] ACPI: Interpreter disabled.
[    0.091445] iommu: Default domain type: Translated 
[    0.091894] iommu: DMA domain TLB invalidation policy: strict mode 
[    0.092709] SCSI subsystem initialized
[    0.093130] usbcore: registered new interface driver usbfs
[    0.093642] usbcore: registered new interface driver hub
[    0.094138] usbcore: registered new device driver usb
[    0.094774] pps_core: LinuxPPS API ver. 1 registered
[    0.095228] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.096067] PTP clock support registered
[    0.096582] arm-scmi firmware:scmi: Enabled polling mode TX channel - prot_id:16
[    0.097308] arm-scmi firmware:scmi: SCMI Notifications - Core Enabled.
[    0.097930] arm-scmi firmware:scmi: SCMI Protocol v2.0 'rockchip:' Firmware version 0x0
[    0.098891] Advanced Linux Sound Architecture Driver Initialized.
[    0.099757] vgaarb: loaded
[    0.100155] clocksource: Switched to clocksource arch_sys_counter
[    0.100967] pnp: PnP ACPI: disabled
[    0.105606] NET: Registered PF_INET protocol family
[    0.106175] IP idents hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.109780] tcp_listen_portaddr_hash hash table entries: 4096 (order: 4, 65536 bytes, linear)
[    0.110612] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.111326] TCP established hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.112375] TCP bind hash table entries: 65536 (order: 9, 2097152 bytes, linear)
[    0.114311] TCP: Hash tables configured (established 65536 bind 65536)
[    0.114949] UDP hash table entries: 4096 (order: 5, 131072 bytes, linear)
[    0.115688] UDP-Lite hash table entries: 4096 (order: 5, 131072 bytes, linear)
[    0.116513] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.117219] RPC: Registered named UNIX socket transport module.
[    0.117762] RPC: Registered udp transport module.
[    0.118192] RPC: Registered tcp transport module.
[    0.118623] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.119213] NET: Registered PF_XDP protocol family
[    0.119654] PCI: CLS 0 bytes, default 64
[    0.120698] hw perfevents: enabled with armv8_cortex_a55 PMU driver, 7 counters available
[    0.121624] hw perfevents: enabled with armv8_cortex_a76 PMU driver, 7 counters available
[    0.122613] kvm [1]: IPA Size Limit: 40 bits
[    0.123018] kvm [1]: GICv3: no GICV resource entry
[    0.123457] kvm [1]: disabling GICv2 emulation
[    0.123879] kvm [1]: GIC system register CPU interface enabled
[    0.124525] kvm [1]: vgic interrupt IRQ18
[    0.125018] kvm [1]: VHE mode initialized successfully
[    0.532230] Initialise system trusted keyrings
[    0.532735] workingset: timestamp_bits=46 max_order=21 bucket_order=0
[    0.535308] zbud: loaded
[    0.536187] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.536987] NFS: Registering the id_resolver key type
[    0.537459] Key type id_resolver registered
[    0.537843] Key type id_legacy registered
[    0.538239] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.538851] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    0.559913] NET: Registered PF_ALG protocol family
[    0.560358] Key type asymmetric registered
[    0.560733] Asymmetric key parser 'x509' registered
[    0.561180] Asymmetric key parser 'pkcs8' registered
[    0.561635] Key type pkcs7_test registered
[    0.562884] alg: self-tests for CTR-KDF (hmac(sha256)) passed
[    0.563435] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    0.564230] io scheduler mq-deadline registered
[    0.564646] io scheduler kyber registered
[    0.565077] io scheduler bfq registered
[    0.576433] EINJ: ACPI disabled.
[    0.582731] dma-pl330 fea10000.dma-controller: Loaded driver for PL330 DMAC-241330
[    0.583424] dma-pl330 fea10000.dma-controller: .DBUFF-128x8bytes Num_Chans-8 Num_Peri-32 Num_Events-16
[    0.584806] dma-pl330 fea30000.dma-controller: Loaded driver for PL330 DMAC-241330
[    0.585498] dma-pl330 fea30000.dma-controller: .DBUFF-128x8bytes Num_Chans-8 Num_Peri-32 Num_Events-16
[    0.586872] dma-pl330 fed10000.dma-controller: Loaded driver for PL330 DMAC-241330
[    0.587563] dma-pl330 fed10000.dma-controller: .DBUFF-128x8bytes Num_Chans-8 Num_Peri-32 Num_Events-16
[    0.589246] arm-scmi firmware:scmi: Failed. SCMI protocol 23 not active.
[    0.590766] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.592059] printk: console [ttyS2] disabled
[    0.592467] feb50000.serial: ttyS2 at MMIO 0xfeb50000 (irq = 36, base_baud = 1500000) is a 16550A
[    0.593343] printk: console [ttyS2] enabled
[    0.593343] printk: console [ttyS2] enabled
[    0.594095] printk: bootconsole [uart8250] disabled
[    0.594095] printk: bootconsole [uart8250] disabled
[    0.595258] febb0000.serial: ttyS0 at MMIO 0xfebb0000 (irq = 37, base_baud = 1500000) is a 16550A
[    0.596376] Serial: AMBA driver
[    0.601234] rk8xx-spi spi2.0: chip id: 0x8060
[    0.603104] rk808-regulator rk808-regulator.1.auto: there is no dvs0 gpio
[    0.603712] rk808-regulator rk808-regulator.1.auto: there is no dvs1 gpio
[    0.606550] vdd_npu_mem_s0: Bringing 500000uV into 675000-675000uV
[    0.607734] vdd_2v0_pldo_s3: Bringing 1975000uV into 2000000-2000000uV
[    0.608851] vdd_vdenc_mem_s0: Bringing 3275000uV into 950000-950000uV
[    0.610540] vcc_1v1_nldo_s3: Bringing 1775000uV into 1100000-1100000uV
[    0.612238] vdd2l_0v9_ddr_s3: Bringing 850000uV into 900000-900000uV
[    0.613656] avdd_0v75_s0: Bringing 850000uV into 750000-750000uV
[    0.614658] vdd_0v85_s0: Bringing 750000uV into 850000-850000uV
[    0.616428] avcc_1v8_codec_s0: Bringing 1200000uV into 1800000-1800000uV
[    0.618751] rk8xx-spi spi2.1: chip id: 0x8060
[    0.620431] rk808-regulator rk808-regulator.4.auto: there is no dvs0 gpio
[    0.621025] rk808-regulator rk808-regulator.4.auto: there is no dvs1 gpio
[    0.621709] vdd_cpu_big1_s0: Bringing 3400000uV into 1050000-1050000uV
[    0.623180] vdd_cpu_big0_s0: Bringing 3400000uV into 1050000-1050000uV
[    0.624557] vdd_cpu_lit_s0: Bringing 3400000uV into 950000-950000uV
[    0.625920] vcc_3v3_s0: Bringing 3400000uV into 3300000-3300000uV
[    0.627012] vdd_cpu_big1_mem_s0: Bringing 3400000uV into 1050000-1050000uV
[    0.628406] vdd_cpu_big0_mem_s0: Bringing 3400000uV into 1050000-1050000uV
[    0.629805] vcc_1v8_s0: Bringing 3400000uV into 1800000-1800000uV
[    0.631131] vdd_cpu_lit_mem_s0: Bringing 3400000uV into 950000-950000uV
[    0.632837] vdd_ddr_s0: Bringing 3400000uV into 900000-900000uV
[    0.634280] vdd_0v75_pll_s0: Bringing 3400000uV into 750000-750000uV
[    0.635608] vdd_ddr_pll_s0: Bringing 3400000uV into 850000-850000uV
[    0.636587] avdd_0v85_s0: Bringing 3400000uV into 850000-850000uV
[    0.637855] avdd_1v2_cam_s0: Bringing 3400000uV into 1200000-1200000uV
[    0.639128] avdd_1v2_s0: Bringing 3400000uV into 1200000-1200000uV
[    0.640379] vcc_1v8_cam_s0: Bringing 3400000uV into 1800000-1800000uV
[    0.641641] avdd1v8_ddr_pll_s0: Bringing 3400000uV into 1800000-1800000uV
[    0.642893] vdd_1v8_pll_s0: Bringing 3400000uV into 1800000-1800000uV
[    0.644062] vcc_3v3_sd_s0: Bringing 3400000uV into 3300000-3300000uV
[    0.644997] vcc_2v8_cam_s0: Bringing 3400000uV into 2800000-2800000uV
[    0.646084] pldo6_s3: Bringing 3400000uV into 1800000-1800000uV
[    0.648956] usbcore: registered new interface driver usb-storage
[    0.649492] usbcore: registered new interface driver ums-realtek
[    0.650034] usbcore: registered new interface driver usbserial_generic
[    0.650614] usbserial: USB Serial support registered for generic
[    0.651811] mousedev: PS/2 mouse device common for all mice
[    0.654293] sdhci: Secure Digital Host Controller Interface driver
[    0.654830] sdhci: Copyright(c) Pierre Ossman
[    0.655317] Synopsys Designware Multimedia Card Interface Driver
[    0.656308] dwmmc_rockchip fe2c0000.mmc: IDMAC supports 32-bit address mode.
[    0.656488] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.656943] dwmmc_rockchip fe2c0000.mmc: Using internal DMA controller.
[    0.657993] dwmmc_rockchip fe2c0000.mmc: Version ID is 270a
[    0.658496] dwmmc_rockchip fe2c0000.mmc: DW MMC controller at irq 73,32 bit host data width,256 deep fifo
[    0.658505] ledtrig-cpu: registered to indicate activity on CPUs
[    0.660013] arm-scmi firmware:scmi: Failed. SCMI protocol 17 not active.
[    0.660712] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[    0.661282] hid: raw HID events driver (C) Jiri Kosina
[    0.661756] usbcore: registered new interface driver usbhid
[    0.662240] usbhid: USB HID core driver
[    0.664876] NET: Registered PF_PACKET protocol family
[    0.665423] Key type dns_resolver registered
[    0.666288] registered taskstats version 1
[    0.666651] Loading compiled-in X.509 certificates
[    0.667429] zswap: loaded using pool lzo/zbud
[    0.672176] mmc_host mmc1: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[    0.701025] rockchip-dw-pcie fe180000.pcie: host bridge /pcie@fe180000 ranges:
[    0.701669] rockchip-dw-pcie fe180000.pcie: Parsing ranges property...
[    0.702241] rockchip-dw-pcie fe180000.pcie:       IO 0x00f3100000..0x00f31fffff -> 0x00f3100000
[    0.703003] rockchip-dw-pcie fe180000.pcie:      MEM 0x00f3200000..0x00f3ffffff -> 0x00f3200000
[    0.703766] rockchip-dw-pcie fe180000.pcie:      MEM 0x09c0000000..0x09ffffffff -> 0x09c0000000
[    0.704610] rockchip-dw-pcie fe180000.pcie: iATU unroll: enabled
[    0.705132] rockchip-dw-pcie fe180000.pcie: iATU regions: 8 ob, 8 ib, align 64K, limit 8G
[    1.809483] rockchip-dw-pcie fe180000.pcie: Phy link never came up
[    1.810219] rockchip-dw-pcie fe180000.pcie: PCI host bridge to bus 0003:30
[    1.810826] pci_bus 0003:30: root bus resource [bus 30-3f]
[    1.811309] pci_bus 0003:30: root bus resource [io  0x0000-0xfffff] (bus address [0xf3100000-0xf31fffff])
[    1.812145] pci_bus 0003:30: root bus resource [mem 0xf3200000-0xf3ffffff]
[    1.812747] pci_bus 0003:30: root bus resource [mem 0x9c0000000-0x9ffffffff]
[    1.813364] pci_bus 0003:30: scanning bus
[    1.813755] pci 0003:30:00.0: [1d87:3588] type 01 class 0x060400
[    1.814307] pci 0003:30:00.0: reg 0x38: [mem 0x00000000-0x0000ffff pref]
[    1.814973] pci 0003:30:00.0: supports D1 D2
[    1.815350] pci 0003:30:00.0: PME# supported from D0 D1 D3hot
[    1.815857] pci 0003:30:00.0: PME# disabled
[    1.816412] pci 0003:30:00.0: vgaarb: pci_notify
[    1.819802] pci_bus 0003:30: fixups for bus
[    1.820188] pci 0003:30:00.0: scanning [bus 01-ff] behind bridge, pass 0
[    1.820778] pci 0003:30:00.0: Primary bus is hard wired to 0
[    1.821274] pci 0003:30:00.0: bridge configuration invalid ([bus 01-ff]), reconfiguring
[    1.821984] pci 0003:30:00.0: scanning [bus 00-00] behind bridge, pass 1
[    1.822663] pci_bus 0003:31: scanning bus
[    1.823119] pci_bus 0003:31: fixups for bus
[    1.823501] pci_bus 0003:31: bus scan returning with max=31
[    1.823992] pci_bus 0003:31: busn_res: [bus 31-3f] end is updated to 31
[    1.824577] pci_bus 0003:30: bus scan returning with max=31
[    1.825077] pci 0003:30:00.0: BAR 6: assigned [mem 0xf3200000-0xf320ffff pref]
[    1.825712] pci 0003:30:00.0: PCI bridge to [bus 31]
[    1.833596] rockchip-dw-pcie a40800000.pcie: host bridge /pcie@fe170000 ranges:
[    1.834240] rockchip-dw-pcie a40800000.pcie: Parsing ranges property...
[    1.834818] rockchip-dw-pcie a40800000.pcie:       IO 0x00f2100000..0x00f21fffff -> 0x00f2100000
[    1.835586] rockchip-dw-pcie a40800000.pcie:      MEM 0x00f2200000..0x00f2ffffff -> 0x00f2200000
[    1.836350] rockchip-dw-pcie a40800000.pcie:      MEM 0x0980000000..0x09bfffffff -> 0x0980000000
[    1.837190] rockchip-dw-pcie a40800000.pcie: iATU unroll: enabled
[    1.837719] rockchip-dw-pcie a40800000.pcie: iATU regions: 8 ob, 8 ib, align 64K, limit 8G
[    2.016304] mmc1: card never left busy state
[    2.016685] mmc1: error -110 whilst initialising SD card
[    2.043528] mmc_host mmc1: Bus speed (slot 0) = 300000Hz (slot req 300000Hz, actual 300000HZ div = 0)
[    2.093135] mmc_host mmc1: Bus speed (slot 0) = 200000Hz (slot req 200000Hz, actual 200000HZ div = 0)
...............................ˇ....f...L.....L.....H.D.@... ... ... ... ... ... ... ... ... ............
spikerguy commented 1 year ago

Looks like you're using wrong pmic nodes for regulators and wrong voltages are assigned. changing voltage for pll had caused board just dying in the middle of the boot for me.

regarding sdcard issue try to remove high speed as suggested here or its power regulators.

warpme commented 1 year ago

Closing as not bug