Armbian with Linux 5.18.19 Kernel

Florian

New member
Today i tried booting armbian station-p2 latest image with linux-5-18.19-station-p2.
I changed the dtb file to the original dtb.

Kernel gets loaded but now has problems with the usb host:

Code:
DDR Version V1.09 20210630
ln
ddrconfig:7
LPDDR4X, 324MHz
BW=32 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=8 Size=8192MB
tdqss: cs0 dqs0: 48ps, dqs1: -72ps, dqs2: -48ps, dqs3: -144ps,
tdqss: cs1 dqs0: 48ps, dqs1: -72ps, dqs2: -72ps, dqs3: -120ps,

change to: 324MHz
PHY drv:clk:36,ca:36,DQ:29,odt:60
vrefinner:16%, vrefout:41%
dram drv:40,odt:0
clk skew:0x61

change to: 528MHz
PHY drv:clk:36,ca:36,DQ:29,odt:60
vrefinner:16%, vrefout:41%
dram drv:40,odt:0
clk skew:0x58

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

change to: 920MHz(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:0x38
cs 0:
the read training result:
DQS0:0x46, DQS1:0x47, DQS2:0x4b, DQS3:0x43,
min  : 0xa  0xa  0xd  0xb  0x1  0x2  0x6  0x2 , 0x6  0x6  0x2  0x1  0xa  0xa  0xc  0x7 ,
       0xf 0x10  0xe  0x9  0x6  0x1  0x6  0x5 , 0xa  0x6  0x6  0x1  0xd  0xc  0x9  0xd ,
mid  :0x2d 0x2e 0x30 0x2f 0x25 0x26 0x2a 0x26 ,0x29 0x28 0x25 0x22 0x2d 0x2b 0x2f 0x29 ,
      0x33 0x33 0x30 0x2c 0x29 0x24 0x27 0x28 ,0x2c 0x29 0x29 0x24 0x30 0x2e 0x2b 0x2f ,
max  :0x51 0x52 0x54 0x53 0x49 0x4b 0x4e 0x4a ,0x4c 0x4a 0x49 0x44 0x50 0x4c 0x52 0x4b ,
      0x58 0x56 0x52 0x50 0x4c 0x48 0x48 0x4c ,0x4f 0x4d 0x4c 0x47 0x53 0x51 0x4e 0x52 ,
range:0x47 0x48 0x47 0x48 0x48 0x49 0x48 0x48 ,0x46 0x44 0x47 0x43 0x46 0x42 0x46 0x44 ,
      0x49 0x46 0x44 0x47 0x46 0x47 0x42 0x47 ,0x45 0x47 0x46 0x46 0x46 0x45 0x45 0x45 ,
the write training result:
DQS0:0x3d, DQS1:0x30, DQS2:0x33, DQS3:0x28,
min  :0x5b 0x5d 0x5e 0x5c 0x53 0x55 0x58 0x59 0x59 ,0x4a 0x4a 0x47 0x46 0x4d 0x4d 0x51 0x4e 0x4a ,
      0x51 0x50 0x4e 0x4e 0x48 0x48 0x4a 0x4f 0x4d ,0x46 0x45 0x43 0x3e 0x4a 0x4a 0x4a 0x4c 0x46 ,
mid  :0x78 0x7a 0x7b 0x7a 0x70 0x72 0x75 0x75 0x75 ,0x67 0x66 0x62 0x62 0x6a 0x68 0x6b 0x69 0x66 ,
      0x6e 0x6e 0x69 0x69 0x65 0x5d 0x5f 0x65 0x66 ,0x64 0x60 0x5e 0x5b 0x67 0x67 0x60 0x68 0x5d ,
max  :0x96 0x97 0x99 0x98 0x8e 0x90 0x93 0x91 0x91 ,0x84 0x82 0x7e 0x7e 0x87 0x84 0x85 0x85 0x82 ,
      0x8c 0x8c 0x85 0x85 0x82 0x73 0x74 0x7b 0x80 ,0x82 0x7c 0x7a 0x78 0x84 0x85 0x76 0x85 0x75 ,
range:0x3b 0x3a 0x3b 0x3c 0x3b 0x3b 0x3b 0x38 0x38 ,0x3a 0x38 0x37 0x38 0x3a 0x37 0x34 0x37 0x38 ,
      0x3b 0x3c 0x37 0x37 0x3a 0x2b 0x2a 0x2c 0x33 ,0x3c 0x37 0x37 0x3a 0x3a 0x3b 0x2c 0x39 0x2f ,
cs 1:
the read training result:
DQS0:0x44, DQS1:0x47, DQS2:0x4b, DQS3:0x43,
min  : 0x9  0xa  0xc  0x9  0x1  0x2  0x5  0x1 , 0x6  0x6  0x4  0x2  0xa  0x9  0xd  0x6 ,
      0x10  0xf  0xd  0x9  0x6  0x1  0x6  0x5 , 0xa  0x7  0x6  0x2  0xe  0xd  0xa  0xe ,
mid  :0x2c 0x2c 0x2f 0x2d 0x23 0x25 0x27 0x24 ,0x29 0x28 0x27 0x23 0x2d 0x2a 0x30 0x29 ,
      0x33 0x33 0x2f 0x2c 0x29 0x24 0x27 0x28 ,0x2c 0x2a 0x28 0x24 0x30 0x2f 0x2c 0x2f ,
max  :0x4f 0x4f 0x53 0x51 0x46 0x48 0x4a 0x47 ,0x4c 0x4a 0x4a 0x44 0x50 0x4c 0x53 0x4c ,
      0x57 0x57 0x51 0x50 0x4d 0x48 0x48 0x4c ,0x4f 0x4d 0x4b 0x47 0x53 0x52 0x4f 0x51 ,
range:0x46 0x45 0x47 0x48 0x45 0x46 0x45 0x46 ,0x46 0x44 0x46 0x42 0x46 0x43 0x46 0x46 ,
      0x47 0x48 0x44 0x47 0x47 0x47 0x42 0x47 ,0x45 0x46 0x45 0x45 0x45 0x45 0x45 0x43 ,
the write training result:
DQS0:0x3d, DQS1:0x30, DQS2:0x33, DQS3:0x28,
min  :0x5b 0x5d 0x5e 0x5c 0x54 0x55 0x58 0x5a 0x59 ,0x4a 0x4a 0x47 0x45 0x4d 0x4d 0x50 0x4f 0x4a ,
      0x4f 0x4f 0x4c 0x4b 0x45 0x45 0x48 0x4d 0x4d ,0x48 0x46 0x46 0x43 0x4b 0x4b 0x4c 0x4e 0x48 ,
mid  :0x79 0x7a 0x7c 0x7a 0x71 0x72 0x75 0x75 0x75 ,0x67 0x66 0x62 0x61 0x6a 0x68 0x6a 0x6a 0x66 ,
      0x6c 0x6c 0x67 0x67 0x61 0x5b 0x5d 0x62 0x64 ,0x66 0x63 0x61 0x5e 0x68 0x69 0x62 0x6a 0x5f ,
max  :0x97 0x98 0x9a 0x98 0x8e 0x90 0x93 0x91 0x91 ,0x84 0x83 0x7e 0x7d 0x88 0x84 0x84 0x85 0x82 ,
      0x89 0x89 0x82 0x84 0x7d 0x71 0x72 0x78 0x7c ,0x84 0x80 0x7c 0x7a 0x86 0x87 0x78 0x87 0x76 ,
range:0x3c 0x3b 0x3c 0x3c 0x3a 0x3b 0x3b 0x37 0x38 ,0x3a 0x39 0x37 0x38 0x3b 0x37 0x34 0x36 0x38 ,
      0x3a 0x3a 0x36 0x39 0x38 0x2c 0x2a 0x2b 0x2f ,0x3c 0x3a 0x36 0x37 0x3b 0x3c 0x2c 0x39 0x2e ,
CA Training result:
cs:0 min  :0x47 0x4a 0x40 0x40 0x41 0x40 0x45 ,0x44 0x44 0x3e 0x3e 0x3f 0x3e 0x45 ,
cs:0 mid  :0x86 0x88 0x80 0x7f 0x80 0x7e 0x76 ,0x83 0x82 0x7d 0x7d 0x7e 0x7c 0x76 ,
cs:0 max  :0xc5 0xc6 0xc0 0xbe 0xbf 0xbc 0xa7 ,0xc3 0xc1 0xbd 0xbc 0xbe 0xbb 0xa7 ,
cs:0 range:0x7e 0x7c 0x80 0x7e 0x7e 0x7c 0x62 ,0x7f 0x7d 0x7f 0x7e 0x7f 0x7d 0x62 ,
cs:1 min  :0x47 0x4e 0x40 0x41 0x3f 0x43 0x45 ,0x44 0x47 0x3d 0x41 0x3e 0x41 0x43 ,
cs:1 mid  :0x88 0x89 0x81 0x7f 0x80 0x7f 0x78 ,0x85 0x84 0x7e 0x7d 0x80 0x7d 0x76 ,
cs:1 max  :0xc9 0xc4 0xc3 0xbd 0xc2 0xbb 0xac ,0xc7 0xc1 0xc0 0xba 0xc2 0xba 0xa9 ,
cs:1 range:0x82 0x76 0x83 0x7c 0x83 0x78 0x67 ,0x83 0x7a 0x83 0x79 0x84 0x79 0x66 ,
out
U-Boot SPL board init
U-Boot SPL 2017.09-ga1f6fc00a0-210413 #ldq (Apr 13 2021 - 11:35:00)
unknown raw ID phN
unrecognized JEDEC id bytes: 00, 00, 00
Trying to boot from MMC2
No misc partition
spl: partition error
Trying to boot from MMC1
No misc partition
## Verified-boot: 0
## Checking atf-1 0x00040000 ... sha256+ OK
## Checking uboot 0x00a00000 ... sha256+ OK
## Checking fdt 0x00b21880 ... sha256+ OK
## Checking atf-2 0xfdcc9000 ... sha256+ OK
## Checking atf-3 0xfdcd0000 ... sha256+ OK
## Checking optee 0x08400000 ... sha256+ OK
Jumping to U-Boot(0x00a00000) via ARM Trusted Firmware(0x00040000)
Total: 402.326 ms

INFO:    Preloader serial: 2
NOTICE:  BL31: v2.3():v2.3-152-g4e725b15f:cl
NOTICE:  BL31: Built : 10:51:13, Jul 15 2021
INFO:    GICv3 without legacy support detected.
INFO:    ARM GICv3 driver initialized in EL3
INFO:    pmu v1 is valid
INFO:    dfs DDR fsp_param[0].freq_mhz= 920MHz
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: Start rockchip platform init
I/TC: Rockchip release version: 1.0
I/TC: OP-TEE version: 3.6.0-307-g0b06ae94 #1 Fri May  7 01:52:27 UTC 2021 aarch64
I/TC: Initialized
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0xa00000
INFO:    SPSR = 0x3c9


U-Boot 2017.10 (Jun 27 2022 - 10:22:09 +0800)

Model: Rockchip RK3568 Evaluation Board
PreSerial: 2, raw, 0xfe660000
DRAM:  7.7 GiB
Sysmem: init
Relocation Offset: ed357000, fdt: eb9f8578
Using default environment

dwmmc@fe2b0000: 1, dwmmc@fe2c0000: 2, sdhci@fe310000: 0
Bootdev(atags): mmc 0
MMC0: HS200, 200Mhz
PartType: EFI
No misc partition
boot mode: None
FIT: No boot partition
No resource partition
Failed to load DTB
Failed to get kernel dtb, ret=-19
io-domain: OK
Failed to get scmi clk dev
Model: Rockchip RK3568 Evaluation Board
CLK: (sync kernel. arm: enter 816000 KHz, init 816000 KHz, kernel 0N/A)
  apll 816000 KHz
  dpll 460000 KHz
  gpll 1188000 KHz
  cpll 1000000 KHz
  npll 24000 KHz
  vpll 24000 KHz
  hpll 24000 KHz
  ppll 100000 KHz
  armclk 816000 KHz
  aclk_bus 150000 KHz
  pclk_bus 50000 KHz
  aclk_top_high 300000 KHz
  aclk_top_low 200000 KHz
  hclk_top 150000 KHz
  pclk_top 50000 KHz
  aclk_perimid 300000 KHz
  hclk_perimid 150000 KHz
  pclk_pmu 50000 KHz
Net:   No ethernet found.
Hit key to stop autoboot('CTRL+C'):  0
## Booting FIT Image FIT: No boot partition
FIT: No FIT image
Could not find misc partition
ANDROID: reboot reason: "(none)"
optee api revision: 2.0
Not AVB images, AVB skip
android_image_load_by_partname: Can't find part: boot
Android image load failed
Android boot failed, error -1.
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1...
Found /boot/extlinux/extlinux.conf
Retrieving file: /boot/extlinux/extlinux.conf
312 bytes read in 17 ms (17.6 KiB/s)
1:      Armbian
Retrieving file: /boot/uInitrd
28855343 bytes read in 2439 ms (11.3 MiB/s)
Retrieving file: /boot/Image
31662592 bytes read in 2668 ms (11.3 MiB/s)
append: root=UUID=ee8e6788-12ca-40d5-b32c-01fe4cbf474b console=ttyS02,1500000 console=tty0 rw no_console_suspend consoleblank=0 fsck.fix=yes fsck.repair=yes net.ifnames=0 bootsplash.bootfile=bootsplash.armbian
Retrieving file: /boot/dtb/rockchip/rk3566-backup.dtb
112393 bytes read in 96 ms (1.1 MiB/s)
Fdt Ramdisk skip relocation
## Loading init Ramdisk from Legacy Image at 0a200000 ...
   Image Name:   uInitrd
   Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
   Data Size:    28855279 Bytes = 27.5 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 0x0a100000
   Booting using the fdt blob at 0x0a100000
   Using Device Tree in place at 000000000a100000, end 000000000a11e708
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 - 0x08400000 (size: 0x08200000)
Adding bank: 0x09400000 - 0xf0000000 (size: 0xe6c00000)
Adding bank: 0x100000000 - 0x200000000 (size: 0x100000000)
Total: 6291.51 ms
 

Florian

New member
Code:
Starting kernel ...

...............................
removed...
..........


[    4.154587] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver

[    4.155235] ehci-pci: EHCI PCI platform driver

[    4.155715] ehci-platform: EHCI generic platform driver

[    4.158775] ehci-platform fd800000.usb: EHCI Host Controller

[    4.159329] ehci-platform fd800000.usb: new USB bus registered, assigned bus number 1

[    4.160260] ehci-platform fd800000.usb: irq 20, io mem 0xfd800000

[    4.174519] ehci-platform fd800000.usb: USB 2.0 started, EHCI 1.00

[    4.175524] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.18

[    4.176283] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1

[    4.176940] usb usb1: Product: EHCI Host Controller

[    4.177385] usb usb1: Manufacturer: Linux 5.18.19-station-p2 ehci_hcd

[    4.177968] usb usb1: SerialNumber: fd800000.usb

[    4.179242] hub 1-0:1.0: USB hub found

[    4.179650] hub 1-0:1.0: 1 port detected

[    4.183148] ehci-platform fd880000.usb: EHCI Host Controller

[    4.183694] ehci-platform fd880000.usb: new USB bus registered, assigned bus number 2

[    4.184614] ehci-platform fd880000.usb: irq 22, io mem 0xfd880000

[    4.198515] ehci-platform fd880000.usb: USB 2.0 started, EHCI 1.00

[    4.199434] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.18

[    4.200191] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1

[    4.200847] usb usb2: Product: EHCI Host Controller

[    4.201292] usb usb2: Manufacturer: Linux 5.18.19-station-p2 ehci_hcd

[    4.201874] usb usb2: SerialNumber: fd880000.usb

[    4.203238] hub 2-0:1.0: USB hub found

[    4.203647] hub 2-0:1.0: 1 port detected

[    4.205048] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver

[    4.205640] ohci-pci: OHCI PCI platform driver

[    4.206169] ohci-platform: OHCI generic platform driver

[    4.207282] ohci-platform fd840000.usb: Generic Platform OHCI controller

[    4.207917] ohci-platform fd840000.usb: new USB bus registered, assigned bus number 3

[   25.214454] rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:

[   25.215019] rcu:     2-...0: (0 ticks this GP) idle=9d7/1/0x4000000000000000 softirq=229/229 fqs=2625

[   25.215845]  (detected by 3, t=5252 jiffies, g=-395, q=1)

[   25.216339] Task dump for CPU 2:

[   25.216638] task:swapper/0       state:R  running task     stack:    0 pid:    1 ppid:     0 flags:0x0000000a

[   25.217537] Call trace:

[   25.217766]  __switch_to+0x104/0x1c0

[   25.218110]  0x0
 

tmm1

Member
With 5.19.17 (Armbian_22.11.1_Station-m2_bullseye_current_5.19.17.img) I get stuck here:

Code:
[    0.000000] Linux vern 5.19.17-station-p2 (root@c0ef8c0946a8) (aarch64-linux-gnu-gcc lchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36)) 8.3.0, GNU ld (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36)) 2.32.0.20190321) #22.11.1 SMP PREEMPT Wed Nov 30 11:18:30 UTC 2022
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000001] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
...
[    0.001447] Failed to get pclk for 'rk_timer'
[    0.002846] Console: colour dummy device 80x25
[    0.003301] printk: console [tty0] enabled
[    0.003719] printk: bootconsole [uart8250] disabled
 

tmm1

Member
Sure.

1. convert dtb to dts
dtc -I dtb -O dts t95plus.dtb > t95plus.dts

2. edit dts file
- set fiq-debugger status to disable
- set serial@fe660000 status to okay
- remove console= from chosen bootargs
- remove assigned-clocks from clock-controller@fdd00000 (pmucru)

3. convert to dtb
dtc -I dts -O dtb t95plus.dts > t95plus.dtb
 

Attachments

  • t95plus-mainline-dtb.zip
    46.7 KB · Views: 16

tmm1

Member
I'm not getting HDMI display on either 5.10 BSP or 5.19 mainline



With 5.10, the screen will turn black, so HDMI is being activated. But it seems the gpu fails to initialize:

Code:
[   15.337244] rockchip-csi2-dphy csi2-dphy0: failed attach dphy0 hw
[   15.343304] rockchip-csi2-dphy csi2-dphy0: csi2 dphy hw can't be attached, register dphy0 failed!
[   15.363691] rockchip-pm-domain fdd90000.power-management:power-controller: Looking up gpu-supply from device tree
[   15.370291] rockchip-pm-domain fdd90000.power-management:power-controller: Looking up gpu-supply property in node /power-management@fdd90000/power-controller failed
[   15.378105] panfrost fde60000.gpu: clock rate = 594000000
[   15.385177] panfrost fde60000.gpu: Looking up mali-supply from device tree
[   15.392933] core: _opp_supported_by_regulators: OPP minuV: 825000 maxuV: 825000, not supported by regulator
[   15.399837] panfrost fde60000.gpu: _opp_add: OPP not supported by regulators (200000000)
[   15.406906] core: _opp_supported_by_regulators: OPP minuV: 825000 maxuV: 825000, not supported by regulator
[   15.414163] panfrost fde60000.gpu: _opp_add: OPP not supported by regulators (300000000)
[   15.421375] mmc1:0001:1: need info on UART class basic setup
[   15.421599] core: _opp_supported_by_regulators: OPP minuV: 825000 maxuV: 825000, not supported by regulator
[   15.430418] sdio_uart: probe of mmc1:0001:1 failed with error -38
[   15.435552] panfrost fde60000.gpu: _opp_add: OPP not supported by regulators (400000000)
[   15.435954] core: _opp_supported_by_regulators: OPP minuV: 825000 maxuV: 825000, not supported by regulator
[   15.457163] panfrost fde60000.gpu: _opp_add: OPP not supported by regulators (600000000)
[   15.457937] mmc1:0001:2: need info on UART class basic setup
[   15.464588] core: _opp_supported_by_regulators: OPP minuV: 900000 maxuV: 900000, not supported by regulator
[   15.471142] sdio_uart: probe of mmc1:0001:2 failed with error -38
[   15.479464] rockchip-csi2-dphy-hw fe870000.csi2-dphy-hw: csi2 dphy hw probe successfully!
[   15.485341] panfrost fde60000.gpu: _opp_add: OPP not supported by regulators (700000000)
[   15.500851] panfrost fde60000.gpu: devfreq init failed -34
[   15.508068] panfrost fde60000.gpu: Fatal error during GPU init
[   15.515546] cfg80211: failed to load regulatory.db
[   15.529187] panfrost: probe of fde60000.gpu failed with error -34

With 5.19 there is no HDMI signal at all.

Code:
[    3.298610] panfrost fde60000.gpu: clock rate = 594000000
[    3.314393] rockchip-vop2 fe040000.vop: deferred probe timeout, ignoring dependency
[    3.320460] mmc1:0001:1: need info on UART class basic setup
[    3.321541] sdio_uart: probe of mmc1:0001:1 failed with error -38
[    3.327077] mmc1:0001:2: need info on UART class basic setup
[    3.327621] sdio_uart: probe of mmc1:0001:2 failed with error -38
[    3.328863] core: _opp_supported_by_regulators: OPP minuV: 825000 maxuV: 825000, not supported by regulator
[    3.329878] panfrost fde60000.gpu: _opp_add: OPP not supported by regulators (200000000)
[    3.330114] core: _opp_supported_by_regulators: OPP minuV: 825000 maxuV: 825000, not supported by regulator
[    3.331255] panfrost fde60000.gpu: _opp_add: OPP not supported by regulators (300000000)
[    3.332197] core: _opp_supported_by_regulators: OPP minuV: 825000 maxuV: 825000, not supported by regulator
[    3.333364] panfrost fde60000.gpu: _opp_add: OPP not supported by regulators (400000000)
[    3.341853] rockchip-drm display-subsystem: [drm] *ERROR* failed to get vop2 register byname
[    3.343675] rockchip-drm display-subsystem: failed to bind fe040000.vop (ops vop2_component_ops [rockchipdrm]): -22
[    3.344147] rockchip-drm display-subsystem: adev bind failed: -22
[    3.345010] rockchip-drm: probe of display-subsystem failed with error -22
[    3.350989] core: _opp_supported_by_regulators: OPP minuV: 825000 maxuV: 825000, not supported by regulator
[    3.352387] panfrost fde60000.gpu: _opp_add: OPP not supported by regulators (600000000)
[    3.352554] core: _opp_supported_by_regulators: OPP minuV: 900000 maxuV: 900000, not supported by regulator
[    3.353023] panfrost fde60000.gpu: _opp_add: OPP not supported by regulators (700000000)
[    3.353785] panfrost fde60000.gpu: devfreq init failed -34
[    3.355228] panfrost fde60000.gpu: Fatal error during GPU init
[    3.355967] panfrost: probe of fde60000.gpu failed with error -34a
 

tmm1

Member
- set fiq-debugger status to disable
- set serial@fe660000 status to okay
- remove console= from chosen bootargs

I discovered this part is still not working correctly.

To get the boot messages you still need to add keep_bootcon to kernel command line (in extlinux/extlinux.conf) along with using the new DTB
 

tmm1

Member
Today I tried to build a fresh yocto image using JeffyCN/meta-rockchip and 5.10.110-rockchip. Strangely I see the same as the original problem now, with lockup after USB OHCI init.

Code:
[    3.157120] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.157142] ohci-platform: OHCI generic platform driver
[    3.157409] phy phy-fe8b0000.usb2-phy.5: illegal mode
[    3.157425] ohci-platform fd840000.usb: Generic Platform OHCI controller
[    3.157561] ohci-platform fd840000.usb: new USB bus registered, assigned bus number 3
[    3.288931] ata1: SATA link down (SStatus 0 SControl 300)
[   63.175951] rcu: INFO: rcu_sched detected stalls on CPUs/tasks:
[   63.175973] rcu:     0-...0:nd) idle=e2a/1/0x4000000000000000 softirq=42/42 fqs=6000
[   63.175982]     (detected by 1, t=18002 jiffies, g=-1127, q=1)
[   6 0:
[   63.175995] task:swapper/0       state:R  running task     stack:    0 pid:    1 ppid:  lags:0x0000000a
[   63.176007] all trace:
[   63.176021]  __switch_to+0x114/0x19c
[   63.176031]  __kfifo_in+0x38/0x60
[   6039] CPU0 online:1
[   63.176053]     EL2(NS) PC: <0xffffffc010b356dc> ohci_init+0x5c/0x3d0
 

hacker_lc

New member
Tested. It can boot successfully.
1) "usb2phy1" in the dts must be disabled. (Kernel boot will be stalled if it is enabled)
2) For USB3 port, I can access my usb flash drive. However, it seems that the power output have issue and causing my USB flash drive overheat.
 

Attachments

  • rk3566-t95plus_dtb_dts.zip
    12.5 KB · Views: 24

mmie4jbcu

New member
Tested. It can boot successfully.
1) "usb2phy1" in the dts must be disabled. (Kernel boot will be stalled if it is enabled)
2) For USB3 port, I can access my usb flash drive. However, it seems that the power output have issue and causing my USB flash drive overheat.

Which armbian build did you use to test? Did HDMI display work? ethernet?
 
Last edited:

hacker_lc

New member
Which armbian build did you use to test? Did HDMI display work? ethernet?

Armbian_22.11.1_Station-m2_bullseye_current_5.19.17.img

HDMI output/Ethernet/USB2&3 are working.

Actually don't try to patch the DTB of original firmware for kernel 4.19. It required major changes in the device tree and it won't work properly as the devices flag "compatible" in original firmware (used for loading the device driver's module) are changed from 4.x to 5.x.
 

tmm1

Member
Hmm, from what I saw the upstream kernel says pmu_io_domains is disabled. It's only enabled in specific boards dts definitions.

When I looked at the stock DTS for T95Plus vs X88Pro20 they have different definitions.

This is what I've been using for T95Plus, which matches what is shown on https://blog.csdn.net/zuiaikg703/article/details/123892743
Code:
&pmu_io_domains {
    status = "okay";
    pmuio2-supply = <&vcc_3v3>;
    vccio1-supply = <&vcc_3v3>;
    vccio3-supply = <&vcc_3v3>;
    vccio4-supply = <&vcc_1v8>;
    vccio5-supply = <&vcc_3v3>;
    vccio6-supply = <&vcc_1v8>;
    vccio7-supply = <&vcc_3v3>;
};

The T95Plus decompiled DTS version is:

Code:
        io-domains {
            compatible = "rockchip,rk3568-pmu-io-voltage-domain";
            status = "okay";
            pmuio2-supply = <0x29>;
            vccio1-supply = <0x29>;
            vccio3-supply = <0x29>;
            vccio4-supply = <0x2a>;
            vccio5-supply = <0x29>;
            vccio6-supply = <0x2a>;
            vccio7-supply = <0x29>;
            phandle = <0x132>;
        };

On the X88Pro20 decompiled DTS, there is a pmuio1-supply and vccio1 seems to match 4/6

Code:
                io-domains {
                        compatible = "rockchip,rk3568-pmu-io-voltage-domain";
                        status = "okay";
                        pmuio1-supply = <0x29>;
                        pmuio2-supply = <0x29>;
                        vccio1-supply = <0x2a>;
                        vccio3-supply = <0x29>;
                        vccio4-supply = <0x2a>;
                        vccio5-supply = <0x29>;
                        vccio6-supply = <0x2a>;
                        vccio7-supply = <0x29>;
                        phandle = <0x133>;
                };

Also in the BSP tree it says:

Code:
arch/arm64/boot/dts/rockchip/rk3566-box-demo-v10.dtsi-/* Need to be modified according to the actual hardware */
arch/arm64/boot/dts/rockchip/rk3566-box-demo-v10.dtsi:&pmu_io_domains {
 
Last edited:
Top