Googulator / linux-rk3588-midstream

(on hiatus, panfrost/linux recommended instead) "Midstream" kernel for RK3588, with focus on the Rock 5B
https://gitlab.freedesktop.org/panfrost/linux/-/commits/panthor+rk3588-evb1/
Other
17 stars 6 forks source link

Can't boot kernel #1

Open xlazom00 opened 1 year ago

xlazom00 commented 1 year ago

I can't boot your kernel I use u-boot from radaxa

[ 0.792725] rockchip-hdptx-phy-hdmi fed60000.hdmiphy: hdptx phy init success [ 0.792933] rockchip-hdptx-phy-hdmi fed70000.hdmiphy: hdptx phy init success [ 0.795480] rockchip-dw-pcie a40800000.pcie: host bridge /pcie@fe170000 ranges: [ 0.795499] rockchip-dw-pcie a40800000.pcie: IO 0x00f2100000..0x00f21fffff -> 0x00f2100000 [ 0.795512] rockchip-dw-pcie a40800000.pcie: MEM 0x00f2200000..0x00f2ffffff -> 0x00f2200000 [ 0.795525] rockchip-dw-pcie a40800000.pcie: MEM 0x0980000000..0x09bfffffff -> 0x0980000000 [ 0.795598] rockchip-dw-pcie a40800000.pcie: iATU: unroll T, 8 ob, 8 ib, align 64K, limit 8G [ 1.431038] Freeing initrd memory: 26668K [ 1.900070] rockchip-dw-pcie a40800000.pcie: Phy link never came up [ 1.900320] rockchip-dw-pcie a40800000.pcie: PCI host bridge to bus 0002:20 [ 1.900329] pci_bus 0002:20: root bus resource [bus 20-2f] [ 1.900336] pci_bus 0002:20: root bus resource [io 0x0000-0xfffff] (bus address [0xf2100000-0xf21fffff]) [ 1.90038 [ 1.902968] sp : ffff80000a0fb6b0 [ 1.902972] x29: ffff80000a0fb6b0 x28: 0000000000000000 x27: ffff000006847580 [ 1.902980] x26: 0000000000000000 x25: 0000000000000020 x24: 0000000000000001 [ 1.902988] x23: ffff0000029fd0d0 x22: 0000000000000000 x21: 0000000000000001 [ 1.902996] x20: 0000000000000000 x19: ffff0000029fd000 x18: 0000000000000001 [ 1.903003] x17: 0000000095dc964b x16: 00000000bf48cde7 x15: ffffffffffffffff [ 1.903010] x14: 0000000000000001 x13: ffff000006847a83 x12: ffff000006847a80 [ 1.903018] x11: 0000000000000040 x10: 0000000000000001 x9 : ffffffffffffffff [ 1.903025] x8 : ffff80000a0fb640 x7 : ffff80000a0fb640 x6 : ffff000002a33c00 [ 1.903033] x5 : 0000000000000005 x4 : 00000000ffffffff x3 : 000000000000005a [ 1.903040] x2 : 0000000000000000 x1 : 0000000000000020 x0 : ffff0000029fd000 [ 1.903047] Call trace: [ 1.903050] pci_msi_setup_msi_irqs+0x38/0x48 [ 1.903055] pci_enable_msi_range+0x1b4/0x3b8 [ 1.903060] pci_alloc_irq_vectors_affinity+0xdc/0x138 [ 1.903068] pci_alloc_irq_vectors+0x14/0x20 [ 1.903075] pcie_portdrv_probe+0x218/0x5d0 [ 1.903080] local_pci_probe+0x40/0xb0 [ 1.903086] pci_device_probe+0xb4/0x208 [ 1.903091] really_probe+0xc0/0x3a0 [ 1.903099] driver_probe_device+0x7c/0x188 [ 1.903105] driver_probe_device+0x3c/0x108 [ 1.903110] device_attach_driver+0xbc/0x158 [ 1.903116] bus_for_each_drv+0x7c/0xd0 [ 1.903121] device_attach+0xec/0x1a8 [ 1.903127] device_attach+0x14/0x20 [ 1.903132] pci_bus_add_device+0x50/0xc8 [ 1.903140] pci_bus_add_devices+0x38/0x88 [ 1.903147] pci_host_probe+0x40/0xb0 [ 1.903152] dw_pcie_host_init+0x234/0x5a8 [ 1.903158] rockchip_pcie_probe+0x230/0x290 [ 1.903164] platform_probe+0x68/0xd8 [ 1.903171] really_probe+0xc0/0x3a0 [ 1.903176] driver_probe_device+0x7c/0x188 [ 1.903182] driver_probe_device+0x3c/0x108 [ 1.903188] driver_attach+0xe0/0x1b8 [ 1.903194] bus_for_each_dev+0x74/0xc8 [ 1.903199] driver_attach+0x24/0x30 [ 1.903204] bus_add_driver+0x1dc/0x250 [ 1.903210] driver_register+0x64/0x120 [ 1.903215] platform_driver_register+0x28/0x38 [ 1.903222] rockchip_pcie_driver_init+0x1c/0x28 [ 1.903231] do_one_initcall+0x4c/0x298 [ 1.903237] kernel_init_freeable+0x240/0x2b0 [ 1.903244] kernel_init+0x24/0x130 [ 1.903251] ret_from_fork+0x10/0x20 [ 1.903256] ---[ end trace 0000000000000000 ]--- [ 1.903271] ------------[ cut here ]------------ [ 1.903274] WARNING: CPU: 5 PID: 1 at drivers/pci/msi/msi.h:127 pci_msi_teardown_msi_irqs+0x20/0x60 [ 1.903282] Modules linked in: [ 1.903286] CPU: 5 PID: 1 Comm: swapper/0 Tainted: G W 6.2.0-rc1-rockchip-rk3588 #trunk [ 1.903292] Hardware name: Radxa ROCK 5 Model B (DT) [ 1.903296] pstate: 60400009 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) [ 1.903302] pc : pci_msi_teardown_msi_irqs+0x20/0x60 [ 1.903306] lr : pci_free_msi_irqs+0x18/0x38 [ 1.903311] sp : ffff80000a0fb690 [ 1.903314] x29: ffff80000a0fb690 x28: 0000000000000000 x27: ffff000006847580 [ 1.903322] x26: 0000000000000000 x25: 0000000000000020 x24: 0000000000000001 [ 1.903329] x23: ffff0000029fd0d0 x22: 0000000000000000 x21: 0000000000000001 [ 1.903336] x20: 00000000ffffffed x19: ffff0000029fd000 x18: 0000000000000001 [ 1.903344] x17: 0000000095dc964b x16: 00000000bf48cde7 x15: ffffffffffffffff [ 1.903351] x14: 0000000000000001 x13: ffff000006847a83 x12: ffff000006847a80 [ 1.903359] x11: 0000000000000040 x10: 0000000000000001 x9 : ffffffffffffffff [ 1.903366] x8 : ffff80000a0fb640 x7 : ffff80000a0fb640 x6 : ffff000002a33c00 [ 1.903373] x5 : 0000000000000005 x4 : 00000000ffffffff x3 : 000000000000005a [ 1.903380] x2 : ffff0000029fd0d0 x1 : 0000000000000000 x0 : ffff0000029fd000 [ 1.903388] Call trace: [ 1.903390] pci_mrobe+0x230/0x290 [ 1.903505] platform_probe+0x68/0xd8 [ 1.903511] really_probe+0xc0/0x3a0 [ 1.903517] driver_probe_device+0x7c/0x188 [ 1.903523] driver_probe_device+0x3c/0x108 [ 1.903528] driver_attach+0xe0/0x1b8 [ 1.903534] bus_for_each_dev+0x74/0xc8 [ 1.903539] driver_attach+0x24/0x30 [ 1.903544] bus_add_driver+0x1dc/0x250 [ 1.903549] driver_register+0x64/0x120 [ 1.903555] platform_driver_register+0x28/0x38 [ 1.903562] rockchip_pcie_driver_init+0x1c/0x28 [ 1.903569] do_one_initcall+0x4c/0x298 [ 1.903574] kernel_init_freeable+0x240/0x2b0 [ 1.903581] kernel_init+0x24/0x130 [ 1.903586] ret_from_fork+0x10/0x20 [ 1.903591] ---[ end trace 0000000000000000 ]--- [ 1.903641] pcieport 0002:20:00.0: PME: Signaling with IRQ 37 [ 1.903880] pcieport 0002:20:00.0: AER: enabled with IRQ 37 [ 1.904469] EINJ: ACPI disabled.

and more

[ 2.288728] dw-pcie a41000000.pcie: host bridge /pcie@fe190000 ranges: [ 2.289369] dw-pcie a41000000.pcie: IO 0x00f4100000..0x00f41fffff -> 0x00f4100000 [ 2.290098] dw-pcie a41000000.pcie: MEM 0x00f4200000..0x00f4ffffff -> 0x00f4200000 [ 2.290817] dw-pcie a41000000.pcie: MEM 0x0a00000000..0x0a3fffffff -> 0x0a00000000 [ 2.316980] mmc_host mmc1: Bus speed (slot 0) = 198000000Hz (slot req 200000000Hz, actual 198000000HZ div = 0) [ 2.448085] usb 5-1: new high-speed USB device number 2 using ehci-platform [ 2.608648] usb 5-1: New USB device found, idVendor=1a40, idProduct=0101, bcdDevice= 1.11 [ 2.609366] usb 5-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0 [ 2.609989] usb 5-1: Product: USB 2.0 Hub [ 2.610809] hub 5-1:1.0: USB hub found [ 2.611273] hub 5-1:1.0: 4 ports detected [ 23.296003] rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: [ 23.296539] rcu: 2-...0: (1 GPs behind) idle=1ee4/1/0x4000000000000000 softirq=43/44 fqs=2625 [ 23.297294] (detected by 4, t=5252 jiffies, g=-807, q=8 ncpus=8) [ 23.297827] Task dump for CPU 2: [ 23.298110] task:kworker/u16:3 state:R running task stack:0 pid:106 ppid:2 flags:0x0000000a [ 23.298978] Workqueue: events_unbound deferred_probe_work_func [ 23.299494] Call trace: [ 23.299710] __switch_to+0xf0/0x1d8 [ 23.300020] blake2s_final+0x54/0x98 [ 23.300335] 0xffff80000abdb5a8

Googulator commented 1 year ago

Can you post your extlinux.conf entry for this kernel?

xlazom00 commented 1 year ago

@Googulator Where can I found extlinux.conf ? Is it in kernel build directory?

Googulator commented 1 year ago

It's in /boot/extlinux.

Also, what are you booting from?

xlazom00 commented 1 year ago

I am using armbian to build image. I am booting from sd card.

xlazom00 commented 1 year ago

@Googulator This is all I have in /boot armbianEnv.txt armbian_first_run.txt.template boot.bmp boot.cmd boot.scr config-6.2.0-rc1-rockchip-rk3588 dtb -> dtb-6.2.0-rc1-rockchip-rk3588 dtb-6.2.0-rc1-rockchip-rk3588 Image -> vmlinuz-6.2.0-rc1-rockchip-rk3588 initrd.img-6.2.0-rc1-rockchip-rk3588 System.map-6.2.0-rc1-rockchip-rk3588 uInitrd -> uInitrd-6.2.0-rc1-rockchip-rk3588 uInitrd-6.2.0-rc1-rockchip-rk3588 vmlinuz-6.2.0-rc1-rockchip-rk3588

Googulator commented 1 year ago

Oh, so Armbian doesn't use the extlinux boot process.

It would be great to know what command line is being passed to the kernel - unfortunately it's probably in boot.scr, encoded as binary data for u-boot.

Googulator commented 1 year ago

Can you upload boot.scr here? I'd like to take a look.

xlazom00 commented 1 year ago

@Googulator this will be better uboot and kernel log https://pastebin.com/20GdXVj4 And I am using this kernel config https://github.com/armbian/build/blob/master/config/kernel/linux-rockchip-rk3588-edge.config

You can try to build your own image just change source to your kernel and change patch dir to something empty https://github.com/armbian/build/blob/master/config/sources/families/rockchip-rk3588.conf#L23 and to change kernel verbosity https://github.com/armbian/build/blob/master/config/bootenv/rockchip64.txt change verbosity to 9

Googulator commented 1 year ago

Please try with the included config (in arch/arm64/configs). The Armbian config is missing important drivers.