RK3568 学习笔记 : 单独编译 Linux version 4.19 内核

发布于:2024-04-28 ⋅ 阅读:(113) ⋅ 点赞:(0)

前言

  • 开发板型号: 【正点原子】 的 RK3568 开发板 AtomPi-CA1

  • 使用 VMware 虚拟机 ubuntu 20.04 编译 rockchip RK3568 Linux 内核

  • 【方法】不使用 庞大的 Rockchip Linux SDK,下载 rockchip Linux kernel 并单独编译

下载 rockchip Linux kernel

  • 这里下载 rockchip 的 Linux kernel,地址 https://github.com/rockchip-linux/kernel.git

  • 使用 git 拉取代码 git clone https://github.com/rockchip-linux/kernel.git

  • 切换 rockchip Linux kernel git 仓库的 分支 develop-4.19git checkout develop-4.19

设置 gcc 交叉编译工具链

  • 可以使用 gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu

  • 可以新建一个 env_aarch64.sh 的脚本,设置gcc交叉编译环境变量

#!/bin/bash

export PATH=$PATH:/home/zhangsz/tools/gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu/bin
  • 可以新建一个 编译脚本 mk.sh,用编译 busybox
#!/bin/bash

make ARCH=arm CROSS_COMPILE=aarch64-linux-gnu- $1 $2 $3 $4 $5 $6 $7 $8
  • 使能环境变量, chmod 777 env_aarch64.sh source env_aarch64.sh,如果 gcc 交叉编译工具链环境变量永久设置好了,可以不需要这个操作

  • 确认 gcc 交叉编译工具链有效 aarch64-linux-gnu-gcc -v,注意 rk3568 属于 ARM64 位架构,需要使用 aarch64 的 gcc 交叉编译工具链

在这里插入图片描述

编译 rockchip Linux kernel

  • 配置文件:使用默认的 arch/arm64/configs/rockchip_linux_defconfig

  • ./mk.sh rockchip_linux_defconfig

  • ./mk.sh -j16 进行编译

  • 默认情况下,会生成设备树 dtb 文件,建议重新复制并修改一份开发板专用的设备树

  • 编译后的产物: arch/arm64/boot/Image

烧写镜像

  • 当前使用 emmc,因此需要制作 ext4 的系统镜像

  • 创建 kernel 目录,然后把 arch/arm64/boot/Image 与 开发板设备树文件 rk3568-atk-atompi-ca1.dtb 放进 kernel 目录

  • 使用 make_ext4fs -l 100M -s kernel.img kernel/ 生成 kernel.img 镜像, 这里使用 make_ext4fs 工具,制作的镜像会比较小

  • 【备注】系统镜像的大小不能超过分区大小,需要跟分区大小一致,生成的镜像,原则上没有分区名字的概念,只要分区大小相同,就可以烧写到指定分区中

  • 使用 RK 的工具: RKDevTool 进行烧写,烧写到分区 kernel,如果没有 kernel 分区,比如是 boot 分区,可以修改分区名

在这里插入图片描述

  • mmc 分区可以在 u-boot 中使用 mmc part 进行查看

在这里插入图片描述

  • 使用 RKDevTool 工具烧写,其实 分区名字并不重要,重要的是 烧写地址,比如在 RKDevTool 工具中 把 boot 分区改为 kernel 分区,依旧不影响烧写。

  • 如果使用 fastboot USB 进行烧写,在烧写时,需要指定分区名,比如 emmc 中分区时 boot,fastboot 就指定为 boot,命令 fastboot.exe flash boot kernel.img

启动信息

  • 完整的启动信息如下,这里制作了简单的根文件系统 rootfs
DDR 2d653b3476 typ 24/01/20-15:04:19,fwver: v1.21
In
LP4/4x derate en, other dram:1x trefi
ddrconfig:0
LPDDR4X, 324MHz
BW=32 Col=10 Bk=8 CS0 Row=17 CS=1 Die BW=16 Size=4096MB
tdqss: cs0 dqs0: 24ps, dqs1: -96ps, dqs2: -96ps, dqs3: -192ps,

change to: 324MHz
PHY drv:clk:36,ca:36,DQ:29,odt:0
vrefinner:24%, vrefout:41%
dram drv:40,odt:0
clk skew:0x63
rx vref: 28.4%
tx vref: 38.0%

change to: 528MHz
PHY drv:clk:36,ca:36,DQ:29,odt:0
vrefinner:24%, vrefout:41%
dram drv:40,odt:0
clk skew:0x58
rx vref: 28.4%
tx vref: 36.0%

change to: 780MHz
PHY drv:clk:36,ca:36,DQ:29,odt:60
vrefinner:16%, vrefout:41%
dram drv:40,odt:0
clk skew:0x58
rx vref: 16.6%
tx vref: 32.0%

change to: 1560MHz(final freq)
PHY drv:clk:36,ca:36,DQ:29,odt:60
vrefinner:16%, vrefout:22%
dram drv:40,odt:80
vref_ca:00000071
clk skew:0x3a
rx vref: 15.6%
tx vref: 19.8%
cs 0:
the read training result:
DQS0:0x2e, DQS1:0x2f, DQS2:0x30, DQS3:0x2f,
min  : 0xd  0xe  0xf  0xc  0x0  0x6  0x9  0x4 , 0xa  0x8  0x1  0x4  0xc  0xa  0xb  0x8 ,
       0xd  0xc  0xa  0x7  0x4  0x2  0x2  0x8 , 0xa  0x8  0x5  0x2  0xf 0x12  0xe 0x14 ,
mid  :0x28 0x28 0x2a 0x26 0x1b 0x20 0x23 0x20 ,0x24 0x23 0x1a 0x1c 0x26 0x24 0x26 0x23 ,
      0x27 0x27 0x22 0x22 0x1e 0x1c 0x1c 0x22 ,0x24 0x22 0x1f 0x1b 0x29 0x2c 0x28 0x2e ,
max  :0x43 0x43 0x45 0x41 0x37 0x3b 0x3e 0x3c ,0x3e 0x3e 0x33 0x35 0x41 0x3e 0x41 0x3e ,
      0x41 0x43 0x3b 0x3d 0x39 0x36 0x37 0x3d ,0x3f 0x3d 0x3a 0x35 0x43 0x46 0x42 0x49 ,
range:0x36 0x35 0x36 0x35 0x37 0x35 0x35 0x38 ,0x34 0x36 0x32 0x31 0x35 0x34 0x36 0x36 ,
      0x34 0x37 0x31 0x36 0x35 0x34 0x35 0x35 ,0x35 0x35 0x35 0x33 0x34 0x34 0x34 0x35 ,
the write training result:
DQS0:0x3e, DQS1:0x27, DQS2:0x27, DQS3:0x14,
min  :0x7d 0x7d 0x7f 0x7c 0x6f 0x72 0x76 0x73 0x76 ,0x62 0x62 0x59 0x5a 0x66 0x64 0x65 0x62 0x5e ,
      0x64 0x64 0x5e 0x5e 0x5a 0x58 0x59 0x5e 0x5f ,0x4f 0x4e 0x4c 0x46 0x54 0x55 0x52 0x58 0x4c ,
mid  :0x98 0x98 0x9a 0x97 0x89 0x8d 0x90 0x8e 0x90 ,0x7c 0x7b 0x72 0x72 0x7e 0x7b 0x7c 0x7a 0x76 ,
      0x7e 0x7f 0x78 0x78 0x74 0x71 0x72 0x77 0x78 ,0x69 0x67 0x64 0x5e 0x6f 0x70 0x6d 0x73 0x66 ,
max  :0xb3 0xb3 0xb5 0xb3 0xa3 0xa8 0xab 0xa9 0xab ,0x96 0x95 0x8b 0x8a 0x97 0x93 0x94 0x93 0x8f ,
      0x99 0x9b 0x92 0x92 0x8e 0x8b 0x8c 0x91 0x91 ,0x83 0x81 0x7d 0x77 0x8b 0x8b 0x88 0x8e 0x80 ,
range:0x36 0x36 0x36 0x37 0x34 0x36 0x35 0x36 0x35 ,0x34 0x33 0x32 0x30 0x31 0x2f 0x2f 0x31 0x31 ,
      0x35 0x37 0x34 0x34 0x34 0x33 0x33 0x33 0x32 ,0x34 0x33 0x31 0x31 0x37 0x36 0x36 0x36 0x34 ,
CA Training result:
cs:0 min  :0x43 0x41 0x3a 0x35 0x39 0x30 0x40 ,0x44 0x3c 0x37 0x2f 0x35 0x30 0x42 ,
cs:0 mid  :0x80 0x83 0x76 0x74 0x76 0x70 0x6c ,0x81 0x7d 0x73 0x6f 0x70 0x70 0x6e ,
cs:0 max  :0xbe 0xc6 0xb3 0xb4 0xb3 0xb1 0x99 ,0xbe 0xbf 0xaf 0xb0 0xac 0xb1 0x9b ,
cs:0 range:0x7b 0x85 0x79 0x7f 0x7a 0x81 0x59 ,0x7a 0x83 0x78 0x81 0x77 0x81 0x59 ,
out
U-Boot SPL board init
U-Boot SPL 2017.09-gef3ae7f-dirty #zhangsz (Apr 18 2024 - 22:25:50)
unknown raw ID phN
unrecognized JEDEC id bytes: 00, 00, 00
Trying to boot from MMC1
No misc partition
Trying fit image at 0x4000 sector
## Verified-boot: 0
## Checking atf-1 0x00040000 ... sha256(b5946ac63d...) + OK
## Checking uboot 0x00a00000 ... sha256(8b4c9fe00b...) + OK
## Checking fdt 0x00af4e20 ... sha256(3502f514cb...) + OK
## Checking atf-2 0xfdcc1000 ... sha256(b8dca786b4...) + OK
## Checking atf-3 0x0006b000 ... sha256(2f91089eb7...) + OK
## Checking atf-4 0xfdcce000 ... sha256(86ef885748...) + OK
## Checking atf-5 0xfdcd0000 ... sha256(0b2b146c60...) + OK
## Checking atf-6 0x00069000 ... sha256(a9a1e63bef...) + OK
## Checking optee 0x08400000 ... sha256(6c92ef6a0e...) + OK
Jumping to U-Boot(0x00a00000) via ARM Trusted Firmware(0x00040000)
Total: 175.606 ms

INFO:    Preloader serial: 2
NOTICE:  BL31: v2.3():v2.3-645-g8cea6ab0b:cl, fwver: v1.44
NOTICE:  BL31: Built : 16:36:43, Sep 19 2023
INFO:    GICv3 without legacy support detected.
INFO:    ARM GICv3 driver initialized in EL3
INFO:    pmu v1 is valid 220114
INFO:    l3 cache partition cfg-0
INFO:    dfs DDR fsp_param[0].freq_mhz= 1560MHz
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:    Using opteed sec cpu_context!
INFO:    boot cpu mask: 0
INFO:    BL31: Initializing runtime services
INFO:    BL31: Initializing BL32
I/TC:
I/TC: OP-TEE version: 3.13.0-743-gb5340fd65 #hisping.lin (gcc version 10.2.1 20201103 (GNU Toolchain for the A-profile Architecture 10.2-2020.11 (arm-10.16))) #5 Mon Aug 28 15:15:17 CST 2023 aarch64
I/TC: Primary CPU initializing
E/TC:0 0 hal_algo_version_init:296 CRYPTO_CRYPTO_VERSION_NEW no support. Skip all algo mode check.
I/TC: Primary CPU switching to normal world boot
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0xa00000
INFO:    SPSR = 0x3c9


U-Boot 2017.09-g7efab65-dirty #zhangsz (Apr 27 2024 - 10:04:05 +0800)

Model: Rockchip RK3568 ATK AtomPi-CA1
MPIDR: 0x81000000
PreSerial: 2, raw, 0xfe660000
DRAM:  4 GiB
Sysmem: init
Relocation Offset: ef3bd000
Relocation fdt: ed9deb10 - ed9fecf0
CR: M/C/I
I2c0 speed: 100000Hz
vsel-gpios- not found! Error: -2
vdd_cpu init 900000 uV
PMIC:  RK8090 (on=0x10, off=0x00)
vdd_logic init 900000 uV
vdd_gpu init 900000 uV
vdd_npu init 900000 uV
io-domain: OK
INFO:    ddr dmc_fsp already initialized in loader.
NAND:  0 MiB
MMC:   dwmmc@fe2b0000: 1, sdhci@fe310000: 0
Model: Rockchip RK3568 ATK AtomPi-CA1
MPIDR: 0x81000000
## Error: Can't overwrite "ethaddr"
## Error inserting "ethaddr" variable, errno=1
## Error: Can't overwrite "eth1addr"
## Error inserting "eth1addr" variable, errno=1
## Error: "rkimg_bootdev" not defined
Bootdev(scan): mmc 0
CLK: (sync kernel. arm: enter 816000 KHz, init 816000 KHz, kernel 0N/A)
  apll 1416000 KHz
  dpll 780000 KHz
  gpll 1188000 KHz
  cpll 1000000 KHz
  npll 1200000 KHz
  vpll 24000 KHz
  hpll 24000 KHz
  ppll 200000 KHz
  armclk 1416000 KHz
  aclk_bus 150000 KHz
  pclk_bus 100000 KHz
  aclk_top_high 500000 KHz
  aclk_top_low 400000 KHz
  hclk_top 150000 KHz
  pclk_top 100000 KHz
  aclk_perimid 300000 KHz
  hclk_perimid 150000 KHz
  pclk_pmu 100000 KHz
MMC0: High Speed, 52Mhz
PartType: EFI
No misc partition
boot mode: None
Net:   eth1: ethernet@fe010000, eth0: ethernet@fe2a0000
Hit key to stop autoboot('CTRL+C'):  0
22255624 bytes read in 480 ms (44.2 MiB/s)
128322 bytes read in 4 ms (30.6 MiB/s)
No misc partition
## Flattened Device Tree blob at 0x08300000
   Booting using the fdt blob at 0x08300000
   Using Device Tree in place at 0000000008300000, end 0000000008322541
## reserved-memory:
  ramoops@110000: addr=110000 size=f0000
Adding bank: 0x00200000 - 0x08400000 (size: 0x08200000)
Adding bank: 0x09400000 - 0xf0000000 (size: 0xe6c00000)
Adding bank: 0x1f0000000 - 0x200000000 (size: 0x10000000)
Total: 2905.472/2952.562 ms

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x412fd050]
[    0.000000] Linux version 4.19.232 (zhangsz@zhangsz) (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36)), GNU ld (GNU Binutils for Ubuntu) 2.34) #1 SMP Sat Apr 27 13:34:04 CST 2024
[    0.000000] Machine model: Rockchip RK3568 ATK AtomPi-CA1
[    0.000000] earlycon: uart8250 at MMIO32 0x00000000fe660000 (options '')
[    0.000000] bootconsole [uart8250] enabled
[    0.000000] OF: fdt: Reserved memory: failed to reserve memory for node 'drm-logo@00000000': base 0x0000000000000000, size 0 MiB
[    0.000000] OF: fdt: Reserved memory: failed to reserve memory for node 'drm-cubic-lut@00000000': base 0x0000000000000000, size 0 MiB
[    0.000000] cma: Reserved 16 MiB at 0x00000000ef000000
[    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: Trusted OS migration not required
[    0.000000] psci: SMC Calling Convention v1.2
[    0.000000] percpu: Embedded 23 pages/cpu s54184 r8192 d31832 u94208
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: Virtualization Host Extensions
[    0.000000] CPU features: detected: Speculative Store Bypassing Safe (SSBS)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1027656
[    0.000000] Kernel command line: console=ttyFIQ0 earlycon=uart8250,mmio32,0xfe660000 root=PARTUUID=614e0000-0000 rootfstype=ext4 rw rootwait
[    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
[    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: mapped [mem 0xeafff000-0xeefff000] (64MB)
[    0.000000] Memory: 3981352K/4175872K available (13374K kernel code, 1958K rwdata, 4808K rodata, 1536K init, 510K bss, 178136K reserved, 16384K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 49698 entries in 195 pages
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[    0.000000] GICv3: Distributor has no Range Selector support
[    0.000000] GICv3: no VLPI support, no direct LPI support
[    0.000000] ITS [mem 0xfd440000-0xfd45ffff]
[    0.000000] ITS@0x00000000fd440000: allocated 8192 Devices @210000 (indirect, esz 8, psz 64K, shr 0)
[    0.000000] ITS@0x00000000fd440000: allocated 32768 Interrupt Collections @220000 (flat, esz 2, psz 64K, shr 0)
[    0.000000] ITS: using cache flushing for cmd queue
[    0.000000] GIC: using LPI property table @0x0000000000230000
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x00000000fd460000
[    0.000000] CPU0: using LPI pending table @0x0000000000240000
[    0.000000] GIC: using cache flushing for LPI property table
[    0.000000] random: random: get_random_bytes called from start_kernel+0x35c/0x4dc with crng_init=0
[    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.000004] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.001711] Console: colour dummy device 80x25
[    0.002162] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=80000)
[    0.003132] pid_max: default: 32768 minimum: 301
[    0.003679] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes)
[    0.004322] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes)
[    0.006195] ASID allocator initialised with 32768 entries
[    0.006813] rcu: Hierarchical SRCU implementation.
[    0.009213] Platform MSI: interrupt-controller@fd440000 domain created
[    0.010184] PCI/MSI: /interrupt-controller@fd400000/interrupt-controller@fd440000 domain created
[    0.011556] smp: Bringing up secondary CPUs ...
I/TC: Secondary CPU 1 initializing
I/TC: Secondary CPU 1 switching to normal world boot
I/TC: Secondary CPU 2 initializing
I/TC: Secondary CPU 2 switching to normal world boot
I/TC: Secondary CPU 3 initializing
I/TC: Secondary CPU 3 switching to normal world boot
[    0.013248] Detected VIPT I-cache on CPU1
[    0.013276] GICv3: CPU1: found redistributor 100 region 0:0x00000000fd480000
[    0.013314] CPU1: using LPI pending table @0x0000000000250000
[    0.013360] CPU1: Booted secondary processor 0x0000000100 [0x412fd050]
[    0.014623] Detected VIPT I-cache on CPU2
[    0.014644] GICv3: CPU2: found redistributor 200 region 0:0x00000000fd4a0000
[    0.014678] CPU2: using LPI pending table @0x0000000000260000
[    0.014713] CPU2: Booted secondary processor 0x0000000200 [0x412fd050]
[    0.015948] Detected VIPT I-cache on CPU3
[    0.015969] GICv3: CPU3: found redistributor 300 region 0:0x00000000fd4c0000
[    0.016014] CPU3: using LPI pending table @0x0000000000270000
[    0.016049] CPU3: Booted secondary processor 0x0000000300 [0x412fd050]
[    0.016134] smp: Brought up 1 node, 4 CPUs
[    0.023126] SMP: Total of 4 processors activated.
[    0.023573] CPU features: detected: GIC system register CPU interface
[    0.024179] CPU features: detected: Privileged Access Never
[    0.024705] CPU features: detected: LSE atomic instructions
[    0.025230] CPU features: detected: User Access Override
[    0.025732] CPU features: detected: 32-bit EL0 Support
[    0.026231] CPU features: detected: RAS Extension Support
[    0.026861] CPU: All CPU(s) started at EL2
[    0.027266] alternatives: patching kernel code
[    0.032250] devtmpfs: initialized
[    0.050178] Registered cp15_barrier emulation handler
[    0.050670] Registered setend emulation handler
[    0.051330] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370867519511994 ns
[    0.052299] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.053390] pinctrl core: initialized pinctrl subsystem
[    0.054654] NET: Registered protocol family 16
[    0.058007] cpuidle: using governor menu
[    0.058424] Registered FIQ tty driver
[    0.059066] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.060525] DMA: preallocated 256 KiB pool for atomic allocations
[    0.063844] console [pstore-1] enabled
[    0.064203] pstore: Registered ramoops as persistent store backend
[    0.064790] ramoops: attached 0xf0000@0x110000, ecc: 0/0
[    0.089254] rockchip-gpio fdd60000.gpio: probed gpio0 (fdd60000.gpio)
[    0.090328] rockchip-gpio fe740000.gpio: probed gpio1 (fe740000.gpio)
[    0.091377] rockchip-gpio fe750000.gpio: probed gpio2 (fe750000.gpio)
[    0.092441] rockchip-gpio fe760000.gpio: probed gpio3 (fe760000.gpio)
[    0.093483] rockchip-gpio fe770000.gpio: probed gpio4 (fe770000.gpio)
[    0.094166] rockchip-pinctrl pinctrl: probed pinctrl
[    0.104594] cryptd: max_cpu_qlen set to 1000
[[    0.106365] console [ttyFIQ0] enabled
    0.106365] console [ttyFIQ0] enabled
[    0.107045] bootconsole [uart8250] disabled
[    0.107045] bootconsole [uart8250] disabled
[    0.107620] Registered fiq debugger ttyFIQ0
[    0.108312] vcc5v0_sys: supplied by dc_12v
[    0.108652] vcc3v3_sys: supplied by vcc5v0_sys
[    0.109062] vcc5v0_host: supplied by vcc5v0_sys
[    0.109566] vcc5v0_otg: supplied by vcc5v0_sys
[    0.109810] vcc3v3_pcie: supplied by dc_12v
[    0.110193] vcc3v3_pcie30_clk: supplied by vcc3v3_pcie
[    0.110595] vcc3v3_pcie20_wifi: supplied by vcc3v3_pcie
[    0.111569] rk_iommu fde4b000.iommu: version = 2
[    0.112130] rk_iommu fdea0800.iommu: version = 2
[    0.112482] rk_iommu fded0480.iommu: version = 2
[    0.112847] rk_iommu fdee0800.iommu: version = 2
[    0.113164] rk_iommu fdef0800.iommu: version = 2
[    0.113453] rk_iommu fdf40f00.iommu: version = 2
[    0.113810] rk_iommu fdf80800.iommu: version = 2
[    0.114131] rk_iommu fdff1a00.iommu: version = 2
[    0.114358] rk_iommu fe043e00.iommu: version = 2
[    0.115117] SCSI subsystem initialized
[    0.115354] usbcore: registered new interface driver usbfs
[    0.115413] usbcore: registered new interface driver hub
[    0.115462] usbcore: registered new device driver usb
[    0.115555] media: Linux media interface: v0.10
[    0.115598] videodev: Linux video capture interface: v2.00
[    0.115673] pps_core: LinuxPPS API ver. 1 registered
[    0.115689] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.115719] PTP clock support registered
[    0.116001] arm-scmi firmware:scmi: SCMI Protocol v2.0 'rockchip:' Firmware version 0x0
[    0.117984] Advanced Linux Sound Architecture Driver Initialized.
[    0.118416] Bluetooth: Core ver 2.22
[    0.118460] NET: Registered protocol family 31
[    0.118476] Bluetooth: HCI device and connection manager initialized
[    0.118496] Bluetooth: HCI socket layer initialized
[    0.118513] Bluetooth: L2CAP socket layer initialized
[    0.118552] Bluetooth: SCO socket layer initialized
[    0.120128] rockchip-cpuinfo cpuinfo: SoC            : 35682000
[    0.120158] rockchip-cpuinfo cpuinfo: Serial         : d242065bdbbebbb2
[    0.120926] clocksource: Switched to clocksource arch_sys_counter
[    0.186745] thermal thermal_zone1: power_allocator: sustainable_power will be estimated
[    0.187080] NET: Registered protocol family 2
[    0.187287] IP idents hash table entries: 65536 (order: 7, 524288 bytes)
[    0.188859] tcp_listen_portaddr_hash hash table entries: 2048 (order: 4, 81920 bytes)
[    0.188947] TCP established hash table entries: 32768 (order: 6, 262144 bytes)
[    0.189127] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes)
[    0.189887] TCP: Hash tables configured (established 32768 bind 32768)
[    0.190012] UDP hash table entries: 2048 (order: 5, 196608 bytes)
[    0.190190] UDP-Lite hash table entries: 2048 (order: 5, 196608 bytes)
[    0.190466] NET: Registered protocol family 1
[    0.190960] RPC: Registered named UNIX socket transport module.
[    0.190978] RPC: Registered udp transport module.
[    0.190993] RPC: Registered tcp transport module.
[    0.191006] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.192921] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available
[    0.194670] Initialise system trusted keyrings
[    0.194862] workingset: timestamp_bits=61 max_order=20 bucket_order=0
[    0.200621] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.201370] NFS: Registering the id_resolver key type
[    0.201402] Key type id_resolver registered
[    0.201410] Key type id_legacy registered
[    0.201442] ntfs: driver 2.1.32 [Flags: R/O].
[    0.201628] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.201819] fuse init (API version 7.27)
[    0.202230] SGI XFS with security attributes, no debug enabled
[    0.204495] NET: Registered protocol family 38
[    0.204532] Key type asymmetric registered
[    0.204542] Asymmetric key parser 'x509' registered
[    0.204581] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243)
[    0.204599] io scheduler noop registered
[    0.204613] io scheduler deadline registered
[    0.204725] io scheduler cfq registered (default)
[    0.204743] io scheduler mq-deadline registered
[    0.204757] io scheduler kyber registered
[    0.205687] rockchip-csi2-dphy csi2-dphy0: csi2 dphy0 probe successfully!
[    0.205822] rockchip-csi2-dphy-hw fe870000.csi2-dphy-hw: csi2 dphy hw probe successfully!
[    0.207565] phy phy-fe8a0000.usb2-phy.0: Linked as a consumer to regulator.4
[    0.207857] phy phy-fe8a0000.usb2-phy.1: Linked as a consumer to regulator.5
[    0.209082] extcon extcon1: failed to create extcon usb2-phy link
[    0.209206] phy phy-fe8b0000.usb2-phy.2: Linked as a consumer to regulator.4
[    0.209348] phy phy-fe8b0000.usb2-phy.3: Linked as a consumer to regulator.4
[    0.209464] phy phy-fe8b0000.usb2-phy.3: No vbus specified for otg port
[    0.216387] rk-pcie 3c0000000.pcie: Linked as a consumer to regulator.8
[    0.216668] rk-pcie 3c0000000.pcie: missing legacy IRQ resource
[    0.216687] rk-pcie 3c0800000.pcie: Linked as a consumer to regulator.7
[    0.216707] rk-pcie 3c0000000.pcie: Missing *config* reg space
[    0.216720] rk-pcie 3c0000000.pcie: host bridge /pcie@fe260000 ranges:
[    0.216750] rk-pcie 3c0000000.pcie:   err 0xf4000000..0xf40fffff -> 0xf4000000
[    0.216772] rk-pcie 3c0000000.pcie:    IO 0xf4100000..0xf41fffff -> 0xf4100000
[    0.216796] rk-pcie 3c0000000.pcie:   MEM 0xf4200000..0xf5ffffff -> 0xf4200000
[    0.216815] rk-pcie 3c0000000.pcie:   MEM 0x300000000..0x33fffffff -> 0x300000000
[    0.217156] mpp_service mpp-srv: c606a8475195 author: Liang Chen 2022-07-08 video: rockchip: mpp: Add devfreq support for rkvdec2
[    0.217178] mpp_service mpp-srv: probe start
[    0.218009] iommu: Adding device fdf40000.rkvenc to group 5
[    0.218045] mpp_rkvenc fdf40000.rkvenc: Linked as a consumer to fdf40f00.iommu
[    0.218238] mpp_rkvenc fdf40000.rkvenc: probing start
[    0.218689] mpp_rkvenc fdf40000.rkvenc: venc regulator not ready, retry
[    0.218707] rkvenc_init:1199: failed to add venc devfreq
[    0.219891] iommu: Adding device fdea0400.vdpu to group 1
[    0.219926] mpp_vdpu2 fdea0400.vdpu: Linked as a consumer to fdea0800.iommu
[    0.220082] mpp_vdpu2 fdea0400.vdpu: probe device
[    0.220595] mpp_vdpu2 fdea0400.vdpu: probing finish
[    0.221111] iommu: Adding device fdee0000.vepu to group 3
[    0.221150] mpp_vepu2 fdee0000.vepu: Linked as a consumer to fdee0800.iommu
[    0.221328] mpp_vepu2 fdee0000.vepu: probe device
[    0.221831] mpp_vepu2 fdee0000.vepu: probing finish
[    0.222310] iommu: Adding device fdef0000.iep to group 4
[    0.222345] mpp-iep2 fdef0000.iep: Linked as a consumer to fdef0800.iommu
[    0.222483] mpp-iep2 fdef0000.iep: probe device
[    0.222913] mpp-iep2 fdef0000.iep: allocate roi buffer failed
[    0.223061] mpp-iep2 fdef0000.iep: probing finish
[    0.223518] iommu: Adding device fded0000.jpegd to group 2
[    0.223552] mpp_jpgdec fded0000.jpegd: Linked as a consumer to fded0480.iommu
[    0.223689] mpp_jpgdec fded0000.jpegd: probe device
[    0.224177] mpp_jpgdec fded0000.jpegd: probing finish
[    0.224700] iommu: Adding device fdf80200.rkvdec to group 6
[    0.224736] mpp_rkvdec2 fdf80200.rkvdec: Linked as a consumer to fdf80800.iommu
[    0.224963] mpp_rkvdec2 fdf80200.rkvdec: probing start
[    0.225102] mpp_rkvdec2 fdf80200.rkvdec: 16 task capacity link mode detected
[    0.225405] snps pcie3phy FW update! size 8192
[    0.225431] mpp_rkvdec2 fdf80200.rkvdec: shared_niu_a is not found!
[    0.225450] rkvdec2_init:904: No niu aclk reset resource define
[    0.225468] mpp_rkvdec2 fdf80200.rkvdec: shared_niu_h is not found!
[    0.225476] rkvdec2_init:907: No niu hclk reset resource define
[    0.225541] mpp_rkvdec2 fdf80200.rkvdec: no regulator, devfreq is disabled
[    0.225693] mpp_rkvdec2 fdf80200.rkvdec: sram_start 0x00000000fdcc0000
[    0.225708] mpp_rkvdec2 fdf80200.rkvdec: rcb_iova 0x0000000010000000
[    0.225717] mpp_rkvdec2 fdf80200.rkvdec: sram_size 45056
[    0.225725] mpp_rkvdec2 fdf80200.rkvdec: rcb_size 65536
[    0.225736] mpp_rkvdec2 fdf80200.rkvdec: min_width 512
[    0.225798] mpp_rkvdec2 fdf80200.rkvdec: link mode probe finish
[    0.225859] mpp_rkvdec2 fdf80200.rkvdec: probing finish
[    0.226148] mpp_service mpp-srv: probe success
[    0.229973] dma-pl330 fe530000.dmac: Loaded driver for PL330 DMAC-241330
[    0.230003] dma-pl330 fe530000.dmac:         DBUFF-128x8bytes Num_Chans-8 Num_Peri-32 Num_Events-16
[    0.232075] dma-pl330 fe550000.dmac: Loaded driver for PL330 DMAC-241330
[    0.232101] dma-pl330 fe550000.dmac:         DBUFF-128x8bytes Num_Chans-8 Num_Peri-32 Num_Events-16
[    0.233233] rockchip-system-monitor rockchip-system-monitor: system monitor probe
[    0.234079] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
[    0.236583] random: fast init done
[    0.236848] iommu: Adding device fe040000.vop to group 8
[    0.236880] random: crng init done
[    0.236888] rockchip-vop2 fe040000.vop: Linked as a consumer to fe043e00.iommu
[    0.240614] rockchip-drm display-subsystem: Linked as a consumer to fe040000.vop
[    0.241593] rockchip-drm display-subsystem: Linked as a consumer to fe0a0000.hdmi
[    0.243078] rockchip-drm display-subsystem: defer getting devfreq
[    0.243337] rockchip-vop2 fe040000.vop: [drm:vop2_bind] vp0 assign plane mask: 0x0, primary plane phy id: -1
[    0.243363] rockchip-vop2 fe040000.vop: [drm:vop2_bind] vp1 assign plane mask: 0x0, primary plane phy id: -1
[    0.243384] rockchip-vop2 fe040000.vop: [drm:vop2_bind] vp2 assign plane mask: 0x0, primary plane phy id: -1
[    0.243483] [drm] unsupported AFBC format[3432564e]
[    0.243541] rockchip-vop2 fe040000.vop: [drm:vop2_bind] Cluster0-win0 as cursor plane for vp0
[    0.243658] rockchip-vop2 fe040000.vop: [drm:vop2_bind] Cluster1-win0 as cursor plane for vp1
[    0.243763] [drm] failed to init overlay plane Cluster0-win1
[    0.243779] [drm] failed to init overlay plane Cluster1-win1
[    0.243975] rockchip-drm display-subsystem: bound fe040000.vop (ops 0xffffff8008e6d370)
[    0.244177] dwhdmi-rockchip fe0a0000.hdmi: Detected HDMI TX controller v2.11a with HDCP (DWC HDMI 2.0 TX PHY)
[    0.244735] dwhdmi-rockchip fe0a0000.hdmi: registered DesignWare HDMI I2C bus driver
[    0.245321] rockchip-drm display-subsystem: s
[    0.264058] rk_gmac-dwmac fe010000.ethernet: no regulator found
[    0.264090] rk_gmac-dwmac fe010000.ethernet: clock0.264107] rk_gmac-dwmac fe010000.ethernet: TX delay(0x4f).
ntegrated PHY? (no).ac-dwmac fe010000.ethernet: RX delay(0x26).
[    0.269203] rk_gmac-dwmac fe010000.ethernet: init for RGMII
[    0.269430] rk_gmac-dwmac fe010000.ethernet: User ID: 0x30, Synopsys ID: 0x51
[    0.269449] rk_gmac-dwmac fe010000.ethernet:         DWMAC4/5
[    0.269466] rk_gmac-dwmac fe010000.ethernet: DMA HW capability register supported
[    0.269480] rk_gmac-dwmac fe010000.ethernet: RX Checksum Offload Engine supported
[    0.269493] rk_gmac-dwmac fe010000.ethernet: TX Checksum insertion supported
[    0.269505] rk_gmac-dwmac fe010000.ethernet: Wake-Up On Lan supported
[    0.269550] rk_gmac-dwmac fe010000.ethernet: TSO supported
[    0.269566] rk_gmac-dwmac fe010000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    0.269582] rk_gmac-dwmac fe010000.ethernet: TSO feature enabled
[    0.395946] rk-pcie 3c0800000.pcie: missing legacy IRQ resource
[    0.395974] rk-pcie 3c0800000.pcie: Missing *config* reg space
[    0.395988] rk-pcie 3c0800000.pcie: host bridge /pcie@fe280000 ranges:
[    0.396010] rk-pcie 3c0800000.pcie:   err 0xf0000000..0xf00fffff -> 0xf0000000
[    0.396032] rk-pcie 3c0800000.pcie:    IO 0xf0100000..0xf01fffff -> 0xf0100000
[    0.396055] rk-pcie 3c0800000.pcie:   MEM 0xf0200000..0xf1ffffff -> 0xf0200000
[    0.396075] rk-pcie 3c0800000.pcie:   MEM 0x380000000..0x3bfffffff -> 0x380000000
[    0.506312] rk_gmac-dwmac fe2a0000.ethernet: no regulator found
[    0.506349] rk_gmac-dwmac fe2a0000.ethernet: clock input or output? (output).
[    0.506361] rk_gmac-dwmac fe2a0000.ethernet: TX delay(0x3c).
[    0.506370] rk_gmac-dwmac fe2a0000.ethernet: RX delay(0x2f).
[    0.506383] rk_gmac-dwmac fe2a0000.ethernet: integrated PHY? (no).
[    0.511433] rk_gmac-dwmac fe2a0000.ethernet: init for RGMII
[    0.511668] rk_gmac-dwmac fe2a0000.ethernet: User ID: 0x30, Synopsys ID: 0x51
[    0.511688] rk_gmac-dwmac fe2a0000.ethernet:         DWMAC4/5
[    0.511705] rk_gmac-dwmac fe2a0000.ethernet: DMA HW capability register supported
[    0.511719] rk_gmac-dwmac fe2a0000.ethernet: RX Checksum Offload Engine supported
[    0.511732] rk_gmac-dwmac fe2a0000.ethernet: TX Checksum insertion supported
[    0.511745] rk_gmac-dwmac fe2a0000.ethernet: Wake-Up On Lan supported
[    0.511784] rk_gmac-dwmac fe2a0000.ethernet: TSO supported
[    0.511799] rk_gmac-dwmac fe2a0000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    0.511815] rk_gmac-dwmac fe2a0000.ethernet: TSO feature enabled
[    0.646232] usbcore: registered new interface driver rndis_wlan
[    0.646298] usbcore: registered new interface driver rtl8150
[    0.646353] usbcore: registered new interface driver r8152
[    0.646409] usbcore: registered new interface driver asix
[    0.646458] usbcore: registered new interface driver ax88179_178a
[    0.646505] usbcore: registered new interface driver cdc_ether
[    0.646552] usbcore: registered new interface driver rndis_host
[    0.646617] usbcore: registered new interface driver cdc_ncm
[    0.646666] usbcore: registered new interface driver cdc_mbim
[    0.647823] dwc3 fcc00000.dwc3: Failed to get clk 'ref': -2
[    0.652483] dwc3 fd000000.dwc3: Failed to get clk 'ref': -2
[    0.657927] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.657960] ehci-pci: EHCI PCI platform driver
[    0.658033] ehci-platform: EHCI generic platform driver
[    0.660297] ehci-platform fd800000.usb: EHCI Host Controller
[    0.660484] ehci-platform fd800000.usb: new USB bus registered, assigned bus number 1
[    0.660718] ehci-platform fd800000.usb: irq 11, io mem 0xfd800000
[    0.670942] ehci-platform fd800000.usb: USB 2.0 started, EHCI 1.00
[    0.671158] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[    0.671178] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.671202] usb usb1: Product: EHCI Host Controller
[    0.671217] usb usb1: Manufacturer: Linux 4.19.232 ehci_hcd
[    0.671226] usb usb1: SerialNumber: fd800000.usb
[    0.671684] hub 1-0:1.0: USB hub found
[    0.671731] hub 1-0:1.0: 1 port detected
[    0.674291] ehci-platform fd880000.usb: EHCI Host Controller
[    0.674471] ehci-platform fd880000.usb: new USB bus registered, assigned bus number 2
[    0.674703] ehci-platform fd880000.usb: irq 13, io mem 0xfd880000
[    0.687617] ehci-platform fd880000.usb: USB 2.0 started, EHCI 1.00
[    0.687815] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[    0.687834] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.687851] usb usb2: Product: EHCI Host Controller
[    0.687865] usb usb2: Manufacturer: Linux 4.19.232 ehci_hcd
[    0.687879] usb usb2: SerialNumber: fd880000.usb
[    0.688280] hub 2-0:1.0: USB hub found
[    0.688325] hub 2-0:1.0: 1 port detected
[    0.689040] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.689072] ohci-platform: OHCI generic platform driver
[    0.689314] ohci-platform fd840000.usb: Generic Platform OHCI controller
[    0.689490] ohci-platform fd840000.usb: new USB bus registered, assigned bus number 3
[    0.689669] ohci-platform fd840000.usb: irq 12, io mem 0xfd840000
[    0.748439] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 4.19
[    0.748459] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.748469] usb usb3: Product: Generic Platform OHCI controller
[    0.748477] usb usb3: Manufacturer: Linux 4.19.232 ohci_hcd
[    0.748485] usb usb3: SerialNumber: fd840000.usb
[    0.748900] hub 3-0:1.0: USB hub found
[    0.748947] hub 3-0:1.0: 1 port detected
[    0.749440] ohci-platform fd8c0000.usb: Generic Platform OHCI controller
[    0.749622] ohci-platform fd8c0000.usb: new USB bus registered, assigned bus number 4
[    0.749799] ohci-platform fd8c0000.usb: irq 14, io mem 0xfd8c0000
[    0.808440] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 4.19
[    0.808460] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.808470] usb usb4: Product: Generic Platform OHCI controller
[    0.808478] usb usb4: Manufacturer: Linux 4.19.232 ohci_hcd
[    0.808486] usb usb4: SerialNumber: fd8c0000.usb
[    0.808891] hub 4-0:1.0: USB hub found
[    0.808942] hub 4-0:1.0: 1 port detected
[    0.810406] xhci-hcd xhci-hcd.4.auto: xHCI Host Controller
[    0.810599] xhci-hcd xhci-hcd.4.auto: new USB bus registered, assigned bus number 5
[    0.810984] xhci-hcd xhci-hcd.4.auto: hcc params 0x0220fe64 hci version 0x110 quirks 0x0000011002010010
[    0.811049] xhci-hcd xhci-hcd.4.auto: irq 80, io mem 0xfd000000
[    0.811353] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[    0.811372] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.811381] usb usb5: Product: xHCI Host Controller
[    0.811390] usb usb5: Manufacturer: Linux 4.19.232 xhci-hcd
[    0.811404] usb usb5: SerialNumber: xhci-hcd.4.auto
[    0.811858] hub 5-0:1.0: USB hub found
[    0.811900] hub 5-0:1.0: 1 port detected
[    0.812232] xhci-hcd xhci-hcd.4.auto: xHCI Host Controller
[    0.812394] xhci-hcd xhci-hcd.4.auto: new USB bus registered, assigned bus number 6
[    0.812422] xhci-hcd xhci-hcd.4.auto: Host supports USB 3.0 SuperSpeed
[    0.812501] usb usb6: We don't know the algorithms for LPM for this host, disabling LPM.
[    0.812627] usb usb6: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.19
[    0.812646] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.812663] usb usb6: Product: xHCI Host Controller
[    0.812679] usb usb6: Manufacturer: Linux 4.19.232 xhci-hcd
[    0.812692] usb usb6: SerialNumber: xhci-hcd.4.auto
[    0.813096] hub 6-0:1.0: USB hub found
[    0.813142] hub 6-0:1.0: 1 port detected
[    0.813615] usbcore: registered new interface driver cdc_acm
[    0.813632] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    0.813689] usbcore: registered new interface driver cdc_wdm
[    0.813918] usbcore: registered new interface driver uas
[    0.814053] usbcore: registered new interface driver usb-storage
[    0.814151] usbcore: registered new interface driver usbserial_generic
[    0.814188] usbserial: USB Serial support registered for generic
[    0.814273] usbcore: registered new interface driver cp210x
[    0.814309] usbserial: USB Serial support registered for cp210x
[    0.814404] usbcore: registered new interface driver ftdi_sio
[    0.814439] usbserial: USB Serial support registered for FTDI USB Serial Device
[    0.814653] usbcore: registered new interface driver keyspan
[    0.814697] usbserial: USB Serial support registered for Keyspan - (without firmware)
[    0.814733] usbserial: USB Serial support registered for Keyspan 1 port adapter
[    0.814765] usbserial: USB Serial support registered for Keyspan 2 port adapter
[    0.814792] usbserial: USB Serial support registered for Keyspan 4 port adapter
[    0.814844] usbcore: registered new interface driver option
[    0.814878] usbserial: USB Serial support registered for GSM modem (1-port)
[    0.815178] usbcore: registered new interface driver oti6858
[    0.815213] usbserial: USB Serial support registered for oti6858
[    0.815269] usbcore: registered new interface driver pl2303
[    0.815301] usbserial: USB Serial support registered for pl2303
[    0.815370] usbcore: registered new interface driver qcserial
[    0.815406] usbserial: USB Serial support registered for Qualcomm USB modem
[    0.815488] usbcore: registered new interface driver sierra
[    0.815523] usbserial: USB Serial support registered for Sierra USB modem
[    0.816913] usbcore: registered new interface driver usbtouchscreen
[    0.816981] cyttsp5_loader_init: Parade TTSP FW Loader Driver (Built TTDA.03.08.874312) rc=0
[    0.817000] cyttsp5_device_access_init: Parade TTSP Device Access Driver (Built TTDA.03.08.874312) rc=0
[    0.817217] .. rk pwm remotectl v2.0 init
[    0.817487] input: fdd70030.pwm as /devices/platform/fdd70030.pwm/input/input0
[    0.817862] remotectl-pwm fdd70030.pwm: pwm version is 0x2130000
[    0.817950] remotectl-pwm fdd70030.pwm: Controller support pwrkey capture
[    0.818690] i2c /dev entries driver
[    0.820661] fan53555-regulator 0-001c: FAN53555 Option[12] Rev[15] Detected!
[    0.822101] vdd_cpu: supplied by vcc5v0_sys
[    0.826839] rk808 0-0020: chip id: 0x8090
[    0.826889] rk808 0-0020: No cache defaults, reading back from HW
[    0.850589] rk808 0-0020: source: on=0x10, off=0x00
[    0.850614] rk808 0-0020: support dcdc3 fb mode:-22, 63
[    0.850628] rk808 0-0020: support pmic reset mode:0,0
[    0.856180] rk808-regulator rk808-regulator: there is no dvs0 gpio
[    0.856228] rk808-regulator rk808-regulator: there is no dvs1 gpio
[    0.856663] vdd_logic: supplied by vcc3v3_sys
[    0.857374] vdd_gpu: supplied by vcc3v3_sys
[    0.857718] vcc_ddr: supplied by vcc3v3_sys
[    0.858021] vdd_npu: supplied by vcc3v3_sys
[    0.858669] vcc_1v8: supplied by vcc3v3_sys
[    0.858945] vdda0v9_image: supplied by vcc3v3_sys
[    0.859575] vdda_0v9: supplied by vcc3v3_sys
[    0.859864] vdda0v9_pmu: supplied by vcc3v3_sys
[    0.860153] vccio_acodec: supplied by vcc3v3_sys
[    0.860785] vccio_sd: supplied by vcc3v3_sys
[    0.861123] vcc3v3_pmu: supplied by vcc3v3_sys
[    0.861760] vcca_1v8: supplied by vcc3v3_sys
[    0.862041] vcca1v8_pmu: supplied by vcc3v3_sys
[    0.862336] vcca1v8_image: supplied by vcc3v3_sys
[    0.862964] vcc_3v3: supplied by vcc3v3_sys
[    0.863583] vcc3v3_sd: supplied by vcc3v3_sys
[    0.863993] rk817-battery rk817-battery: Failed to find matching dt id
[    0.864228] rk817-charger rk817-charger: Failed to find matching dt id
[    0.867684] input: rk805 pwrkey as /devices/platform/fdd40000.i2c/i2c-0/0-0020/rk805-pwrkey/input/input1
[    0.873802] rk808-rtc rk808-rtc: registered as rtc0
[    0.875526] rk808-rtc rk808-rtc: setting system clock to 2017-08-04 09:03:50 UTC (1501837430)
[    0.877134] i2c i2c-4: 1 i2c clients have been registered at 0x1a
[    0.879568] iommu: Adding device fdff0000.rkisp to group 7
[    0.879616] rkisp_hw fdff0000.rkisp: Linked as a consumer to fdff1a00.iommu
[    0.879799] rkisp_hw fdff0000.rkisp: is_thunderboot: 0
[    0.879821] rkisp_hw fdff0000.rkisp: max input:0x0@0fps
[    0.879854] rkisp_hw fdff0000.rkisp: can't request region for resource [mem 0xfdff0000-0xfdffffff]
[    0.880618] rkisp rkisp-vir0: rkisp driver version: v01.08.00
[    0.880903] rkisp rkisp-vir0: Entity type for entity rkisp-isp-subdev was not initialized!
[    0.880965] rkisp rkisp-vir0: Entity type for entity rkisp-csi-subdev was not initialized!
[    0.882733] usbcore: registered new interface driver uvcvideo
[    0.882754] USB Video Class driver (1.1.1)
[    0.883061] rockchip-iodomain fdc20000.syscon:io-domains: Linked as a consumer to regulator.20
[    0.883104] rockchip-iodomain fdc20000.syscon:io-domains: pmuio2(3300000 uV) supplied by vcc3v3_pmu
[    0.883195] rockchip-iodomain fdc20000.syscon:io-domains: Linked as a consumer to regulator.18
[    0.883230] rockchip-iodomain fdc20000.syscon:io-domains: vccio1(3300000 uV) supplied by vccio_acodec
[    0.883355] rockchip-iodomain fdc20000.syscon:io-domains: Linked as a consumer to regulator.19
[    0.883390] rockchip-iodomain fdc20000.syscon:io-domains: vccio3(3300000 uV) supplied by vccio_sd
[    0.883473] rockchip-iodomain fdc20000.syscon:io-domains: Linked as a consumer to regulator.14
[    0.883508] rockchip-iodomain fdc20000.syscon:io-domains: vccio4(1800000 uV) supplied by vcc_1v8
[    0.883593] rockchip-iodomain fdc20000.syscon:io-domains: Linked as a consumer to regulator.24
[    0.883629] rockchip-iodomain fdc20000.syscon:io-domains: vccio5(3300000 uV) supplied by vcc_3v3
[    0.883732] rockchip-iodomain fdc20000.syscon:io-domains: vccio6(1800000 uV) supplied by vcc_1v8
[    0.883831] rockchip-iodomain fdc20000.syscon:io-domains: vccio7(3300000 uV) supplied by vcc_3v3
[    0.886814] rockchip-thermal fe710000.tsadc: tsadc is probed successfully!
[    0.887866] Bluetooth: HCI UART driver ver 2.3
[    0.887889] Bluetooth: HCI UART protocol H4 registered
[    0.887897] Bluetooth: HCI UART protocol ATH3K registered
[    0.887973] usbcore: registered new interface driver bfusb
[    0.888042] usbcore: registered new interface driver btusb
[    0.888326] cpu cpu0: leakage=21
[    0.888379] cpu cpu0: pvtm = 88660, from nvmem
[    0.888396] cpu cpu0: pvtm-volt-sel=1
[    0.889213] cpu cpu0: Linked as a consumer to regulator.9
[    0.889275] cpu cpu0: Dropping the link to regulator.9
[    0.889895] cpu cpu0: Linked as a consumer to regulator.9
[    0.890635] cpu cpu0: avs=0
[    0.890892] cpu cpu0: l=0 h=2147483647 hyst=5000 l_limit=0 h_limit=0 h_table=0
[    0.894399] cpu cpu0: failed to find power_model node
[    0.895454] sdhci: Secure Digital Host Controller Interface driver
[    0.895473] sdhci: Copyright(c) Pierre Ossman
[    0.895486] Synopsys Designware Multimedia Card Interface Driver
[    0.896422] dwmmc_rockchip fe2b0000.dwmmc: IDMAC supports 32-bit address mode.
[    0.896607] dwmmc_rockchip fe2b0000.dwmmc: Using internal DMA controller.
[    0.896623] dwmmc_rockchip fe2b0000.dwmmc: Version ID is 270a
[    0.896683] dwmmc_rockchip fe2b0000.dwmmc: DW MMC controller at irq 56,32 bit host data width,256 deep fifo
[    0.896821] dwmmc_rockchip fe2b0000.dwmmc: Linked as a consumer to regulator.25
[    0.896898] dwmmc_rockchip fe2b0000.dwmmc: Linked as a consumer to regulator.19
[    0.908010] mmc_host mmc1: Bus speed (slot 0) = 375000Hz (slot req 400000Hz, actual 375000HZ div = 0)
[    0.920959] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    0.921031] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.922378] mmc0: Unknown controller version (5). You may experience problems.
[    0.951897] mmc0: SDHCI controller on fe310000.sdhci [fe310000.sdhci] using ADMA
[    0.953772] cryptodev: driver 1.12 loaded.
[    0.953844] hidraw: raw HID events driver (C) Jiri Kosina
[    0.954165] usbcore: registered new interface driver usbhid
[    0.954182] usbhid: USB HID core driver
[    0.954613] rockchip,bus bus-npu: Linked as a consumer to regulator.10
[    0.954643] rockchip,bus bus-npu: Failed to get leakage
[    0.954707] rockchip,bus bus-npu: pvtm = 88660, from nvmem
[    0.954731] rockchip,bus bus-npu: pvtm-volt-sel=1
[    0.955044] rockchip,bus bus-npu: avs=0
[    0.958556] rockchip-saradc fe720000.saradc: Linked as a consumer to regulator.21
[    0.959550] optee: probing for conduit method from DT.
[    0.959601] optee: revision 3.13 (b5340fd6)
[    0.959969] optee: initialized driver
[    0.959991] rksfc_base v1.1 2016-01-08
[    0.960684] rksfc fe300000.sfc: rksfc_probe clk rate = 99000000
[    0.960773] rkflash_dev_init enter
[    0.960798] sfc nor id: ff ff ff
[    0.960811] rkflash[1] is invalid
[    0.960813] rkflash_dev_init enter
[    0.960839] sfc_nand id: ff ff ff
[    0.960850] rkflash[2] is invalid
[    0.961655] usbcore: registered new interface driver snd-usb-audio
[    0.963568] rk817-codec rk817-codec: DMA mask not set
[    0.969365] rk-hdmi-sound hdmi-sound: i2s-hifi <-> fe400000.i2s mapping ok
[    0.971563] Initializing XFRM netlink socket
[    0.972019] NET: Registered protocol family 10
[    0.972939] Segment Routing with IPv6
[    0.973004] NET: Registered protocol family 17
[    0.973032] NET: Registered protocol family 15
[    0.973191] Bluetooth: RFCOMM socket layer initialized
[    0.973235] Bluetooth: RFCOMM ver 1.11
[    0.973260] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    0.973278] Bluetooth: HIDP socket layer initialized
[    0.973324] [BT_RFKILL]: Enter rfkill_rk_init
[    0.973338] [WLAN_RFKILL]: Enter rfkill_wlan_init
[    0.974027] Key type dns_resolver registered
[    0.974330] flash vendor_init_thread!
[    0.974347] flash vendor storage:20170308 ret = -1
[    0.975174] ov13850 4-0010: driver version: 00.01.05
[    0.975229] ov13850 4-0010: Failed to get power-gpios, maybe no use
[    0.975343] ov13850 4-0010: 4-0010 supply avdd not found, using dummy regulator
[    0.975424] ov13850 4-0010: Linked as a consumer to regulator.0
[    0.975472] ov13850 4-0010: 4-0010 supply dovdd not found, using dummy regulator
[    0.975564] ov13850 4-0010: 4-0010 supply dvdd not found, using dummy regulator
[    0.975677] ov13850 4-0010: could not get sleep pinstate
[    0.979793] ov13850 4-0010: Unexpected sensor id(000000), ret(-5)
[    0.981149] Loading compiled-in X.509 certificates
[    0.981802] pstore: Using compression: deflate
[    0.982706] rga2: Driver loaded successfully ver:3.2.63318
[    0.983097] rga2: Module initialized.
[    0.984661] mmc0: new HS200 MMC card at address 0001
[    0.985818] mmcblk0: mmc0:0001 A3A561 57.6 GiB
[    0.986765] mmcblk0boot0: mmc0:0001 A3A561 partition 1 4.00 MiB
[    0.988037] mmcblk0boot1: mmc0:0001 A3A561 partition 2 4.00 MiB
[    0.988326] mmcblk0rpmb: mmc0:0001 A3A561 partition 3 16.0 MiB, chardev (238:0)
[    0.991413]  mmcblk0: p1 p2 p3
[    1.012755] mpp_rkvenc fdf40000.rkvenc: probing start
[    1.013405] mpp_rkvenc fdf40000.rkvenc: Linked as a consumer to regulator.10
[    1.013441] mpp_rkvenc fdf40000.rkvenc: Failed to get leakage
[    1.013498] mpp_rkvenc fdf40000.rkvenc: pvtm = 88660, from nvmem
[    1.013521] mpp_rkvenc fdf40000.rkvenc: pvtm-volt-sel=1
[    1.013743] mpp_rkvenc fdf40000.rkvenc: avs=0
[    1.013896] mpp_rkvenc fdf40000.rkvenc: failed to find power_model node
[    1.013914] mpp_rkvenc fdf40000.rkvenc: failed to initialize power model
[    1.013935] mpp_rkvenc fdf40000.rkvenc: failed to get dynamic-coefficient
[    1.014306] mpp_rkvenc fdf40000.rkvenc: probing finish
[    1.015072] mali fde60000.gpu: Kernel DDK version g7p1-01bet0
[    1.015152] input: adc-keys as /devices/platform/adc-keys/input/input2
[    1.015263] mali fde60000.gpu: Linked as a consumer to regulator.11
[    1.015416] mali fde60000.gpu: dev_pm_opp_set_regulators: no regulator (shadercores) found: -19
[    1.015516] mali fde60000.gpu: leakage=7
[    1.015566] mali fde60000.gpu: pvtm = 88660, from nvmem
[    1.015592] mali fde60000.gpu: pvtm-volt-sel=1
[    1.015800] rockchip-dmc dmc: Linked as a consumer to regulator.10
[    1.015876] rockchip-dmc dmc: leakage=47
[    1.015895] rockchip-dmc dmc: leakage-volt-sel=0
[    1.015934] rockchip-dmc dmc: pvtm = 88660, from nvmem
[    1.015951] rockchip-dmc dmc: pvtm-volt-sel=1
[    1.016022] mali fde60000.gpu: avs=0
[    1.016042] W : [File] : drivers/gpu/arm/bifrost/platform/rk/mali_kbase_config_rk.c; [Line] : 112; [Func] : kbase_platform_rk_init(); power-off-delay-ms not available.
[    1.016088] rockchip-dmc dmc: avs=0
[    1.016109] rockchip-dmc dmc: current ATF version 0x102
[    1.016360] mali fde60000.gpu: GPU identified as 0x2 arch 7.4.0 r1p0 status 0
[    1.016437] mali fde60000.gpu: No priority control manager is configured
[    1.016454] mali fde60000.gpu: No memory group manager is configured
[    1.016740] rockchip-dmc dmc: normal_rate = 1560000000
[    1.016782] rockchip-dmc dmc: reboot_rate = 1560000000
[    1.016795] rockchip-dmc dmc: suspend_rate = 324000000
[    1.016804] rockchip-dmc dmc: video_4k_rate = 1560000000
[    1.016812] rockchip-dmc dmc: video_4k_10b_rate = 1560000000
[    1.016825] rockchip-dmc dmc: boost_rate = 1560000000
[    1.016838] rockchip-dmc dmc: fixed_rate(isp|cif0|cif1|dualview) = 1560000000
[    1.016849] rockchip-dmc dmc: performance_rate = 1560000000
[    1.016877] rockchip-dmc dmc: failed to get vop pn to msch rl
[    1.017009] mali fde60000.gpu: l=-2147483648 h=2147483647 hyst=0 l_limit=0 h_limit=0 h_table=0
[    1.017016] rockchip-dmc dmc: l=0 h=2147483647 hyst=5000 l_limit=0 h_limit=0 h_table=0
[    1.017071] rockchip-dmc dmc: could not find power_model node
[    1.017662] mali fde60000.gpu: Probed as mali0
[    1.017759] asoc-simple-card rk809-sound: ASoC: DAPM unknown pin Headphones
[    1.018896] rk817-codec rk817-codec: rk817_probe: chip_name:0x80, chip_ver:0x95
[    1.023173] asoc-simple-card rk809-sound: rk817-hifi <-> fe410000.i2s mapping ok
[    1.023678] input: rockchip,rk809-codec Headphones as /devices/platform/rk809-sound/sound/card1/input3
[    1.026330] iommu: Adding device fde40000.npu to group 0
[    1.026372] RKNPU fde40000.npu: Linked as a consumer to fde4b000.iommu
[    1.026842] RKNPU fde40000.npu: RKNPU: rknpu iommu is enabled, using iommu mode
[    1.026982] RKNPU fde40000.npu: Linked as a consumer to regulator.13
[    1.027041] RKNPU fde40000.npu: can't request region for resource [mem 0xfde40000-0xfde4ffff]
[    1.027634] [drm] Initialized rknpu 0.8.0 20220803 for fde40000.npu on minor 1
[    1.027732] RKNPU fde40000.npu: leakage=3
[    1.027773] RKNPU fde40000.npu: pvtm = 88660, from nvmem
[    1.027792] RKNPU fde40000.npu: pvtm-volt-sel=1
[    1.028241] RKNPU fde40000.npu: avs=0
[    1.028444] RKNPU fde40000.npu: l=0 h=2147483647 hyst=5000 l_limit=0 h_limit=0 h_table=0
[    1.028481] RKNPU fde40000.npu: failed to find power_model node
[    1.028493] RKNPU fde40000.npu: RKNPU: failed to initialize power model
[    1.028504] RKNPU fde40000.npu: RKNPU: failed to get dynamic-coefficient
[    1.029496] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.030582] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9
                                                                    [    1.068447] usb 1-1: New USB device found, idVendor=1a40, idProduct=0101, bcdDevice= 1.00
[    1.068466] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    1.068473] usb 1-1: Product: USB2.0 HUB
[    1.069008] hub 1-1:1.0: USB hub found
[    1.069134] hub 1-1:1.0: 4 ports detected
[    1.070258] ALSA device list:
[    1.070272]   #0: rockchip,hdmi
[    1.070281]   #1: rockchip,rk809-codec
[    1.105944] vendor storage:20190527 ret = 0
[    1.109490] EXT4-fs (mmcblk0p3): recovery complete
[    1.109858] EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: (null)
[    1.109928] VFS: Mounted root (ext4 filesystem) on device 179:3.
[    1.110597] devtmpfs: mounted
[    1.113273] Freeing unused kernel memory: 1536K
[    1.118129] devfreq fde60000.gpu: Couldn't update frequency transition information.
[    1.121074] Run /sbin/init as init process
[    1.174350] asoc-simple-card rk809-sound: ASoC: DAPM unknown pin Headphones
[    1.227701] rk-pcie 3c0000000.pcie: PCIe Linking... LTSSM is 0x3

Please press Enter to activate this console. [    1.414638] rk-pcie 3c0800000.pcie: PCIe Linking... LTSSM is 0x0
[    1.890210] phy phy-fe8a0000.usb2-phy.1: charger = USB_SDP_CHARGER
[    2.241183] rk-pcie 3c0000000.pcie: PCIe Linking... LTSSM is 0x3
[    2.427948] rk-pcie 3c0800000.pcie: PCIe Linking... LTSSM is 0x0
[    3.254512] rk-pcie 3c0000000.pcie: PCIe Linking... LTSSM is 0x3
[    3.441273] rk-pcie 3c0800000.pcie: PCIe Linking... LTSSM is 0x0
[    4.267844] rk-pcie 3c0000000.pcie: PCIe Linking... LTSSM is 0x3
[    4.454600] rk-pcie 3c0800000.pcie: PCIe Linking... LTSSM is 0x0
[    5.281174] rk-pcie 3c0000000.pcie: PCIe Linking... LTSSM is 0x3
[    5.467927] rk-pcie 3c0800000.pcie: PCIe Linking... LTSSM is 0x0
[    6.294469] rk-pcie 3c0000000.pcie: PCIe Linking... LTSSM is 0x3
[    6.481008] rk-pcie 3c0800000.pcie: PCIe Linking... LTSSM is 0x0
[    7.307823] rk-pcie 3c0000000.pcie: PCIe Linking... LTSSM is 0x3
[    7.494641] rk-pcie 3c0800000.pcie: PCIe Linking... LTSSM is 0x1
[    8.321153] rk-pcie 3c0000000.pcie: PCIe Linking... LTSSM is 0x3
[    8.507821] rk-pcie 3c0800000.pcie: PCIe Linking... LTSSM is 0x0
[    9.334480] rk-pcie 3c0000000.pcie: PCIe Linking... LTSSM is 0x3
[    9.521148] rk-pcie 3c0800000.pcie: PCIe Linking... LTSSM is 0x0
[   10.347814] rk-pcie 3c0000000.pcie: PCIe Linking... LTSSM is 0x3
[   10.534483] rk-pcie 3c0800000.pcie: PCIe Linking... LTSSM is 0x0
[   11.361218] rk-pcie 3c0000000.pcie: PCIe Link Fail
[   11.361293] rk-pcie 3c0000000.pcie: failed to initialize host
[   11.547813] rk-pcie 3c0800000.pcie: PCIe Link Fail
[   11.547883] rk-pcie 3c0800000.pcie: failed to initialize host

~ # ls
bin         etc         lib64       mnt         sbin        usr
boot        home        linuxrc     proc        sys         var
dev         lib         lost+found  root        tmp
~ # cat proc/version
Linux version 4.19.232 (zhangsz@zhangsz) (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36)), GNU ld (GNU Binutils for Ubuntu) 2.34) #1 SMP Sat Apr 27 13:34:04 CST 2024
~ #
  • RK3568 Linux 内核启动正常

小结

  • 搭建环境、u-boot 编译、Linux kernel 编译、busybox 制作根文件系统,这只是 嵌入式 Linux 开发的前奏,后面驱动开发、应用开发才是重点

  • 通过尝试单独编译 u-boot、Linux kernel 与自己制作 rootfs根文件系统,对 rk3568 平台的 Linux 开发流程更清晰了,因为使用 Linux SDK,会掩盖很多技术细节。


网站公告

今日签到

点亮在社区的每一天
去签到