MichaIng / DietPi

Lightweight justice for your single-board computer!
https://dietpi.com/
GNU General Public License v2.0
4.88k stars 497 forks source link

dietpi 8.6 not booting on quartz64 model A : Failed to get kernel dtb, ret=-19 #5621

Closed rmadrona closed 2 years ago

rmadrona commented 2 years ago

Creating a bug report/issue

Required Information

Additional Information (if applicable)

Logfile attached. Click to expand! ``` BOOT LOG DDR Version V1.13 20220218 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: 72ps, dqs1: -48ps, dqs2: -24ps, dqs3: -96ps, tdqss: cs1 dqs0: 72ps, dqs1: -72ps, dqs2: -24ps, dqs3: -96ps, change to: 324MHz PHY drv:clk:36,ca:36,DQ:29,odt:0 vrefinner:24%, vrefout:41% dram drv:40,odt:0 clk skew:0x60 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 change to: 780MHz PHY drv:clk:36,ca:36,DQ:29,odt:0 vrefinner:24%, vrefout:41% dram drv:40,odt:0 clk skew:0x58 change to: 1056MHz(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:0x2f cs 0: the read training result: DQS0:0x3b, DQS1:0x39, DQS2:0x41, DQS3:0x3b, min : 0xc 0xb 0xd 0xb 0x1 0x5 0x7 0x3 , 0x8 0x8 0x3 0x1 0xb 0x9 0xc 0x8 , 0xf 0x10 0xe 0xc 0x5 0x2 0x2 0x5 , 0xd 0x9 0x9 0x2 0xd 0xd 0xa 0xe , mid :0x29 0x2a 0x2b 0x29 0x1f 0x22 0x23 0x20 ,0x23 0x24 0x1f 0x1e 0x27 0x26 0x29 0x25 , 0x2e 0x2e 0x2b 0x29 0x24 0x20 0x21 0x22 ,0x2b 0x27 0x25 0x20 0x2b 0x2a 0x29 0x2c , max :0x46 0x49 0x4a 0x48 0x3d 0x40 0x40 0x3e ,0x3f 0x40 0x3c 0x3b 0x44 0x44 0x46 0x43 , 0x4e 0x4c 0x49 0x47 0x43 0x3e 0x40 0x40 ,0x49 0x45 0x42 0x3f 0x4a 0x48 0x49 0x4b , range:0x3a 0x3e 0x3d 0x3d 0x3c 0x3b 0x39 0x3b ,0x37 0x38 0x39 0x3a 0x39 0x3b 0x3a 0x3b , 0x3f 0x3c 0x3b 0x3b 0x3e 0x3c 0x3e 0x3b ,0x3c 0x3c 0x39 0x3d 0x3d 0x3b 0x3f 0x3d , the write training result: DQS0:0x38, DQS1:0x29, DQS2:0x2c, DQS3:0x23, min :0x5e 0x5f 0x62 0x5f 0x54 0x59 0x5a 0x5b 0x5a ,0x4d 0x4f 0x49 0x49 0x53 0x52 0x54 0x52 0x4e , 0x52 0x51 0x4d 0x4d 0x49 0x45 0x47 0x4c 0x4d ,0x4c 0x4b 0x49 0x45 0x4f 0x4e 0x4c 0x50 0x4a , mid :0x79 0x7b 0x7d 0x7a 0x6e 0x71 0x75 0x75 0x73 ,0x69 0x69 0x63 0x63 0x6c 0x6b 0x6d 0x6c 0x67 , 0x6e 0x6d 0x68 0x69 0x61 0x5c 0x5e 0x64 0x67 ,0x68 0x63 0x61 0x5e 0x69 0x6a 0x64 0x6c 0x62 , max :0x95 0x98 0x99 0x95 0x89 0x8a 0x91 0x8f 0x8c ,0x86 0x83 0x7d 0x7d 0x86 0x84 0x86 0x86 0x80 , 0x8a 0x89 0x83 0x85 0x7a 0x74 0x75 0x7c 0x81 ,0x85 0x7b 0x7a 0x78 0x83 0x86 0x7d 0x89 0x7a , range:0x37 0x39 0x37 0x36 0x35 0x31 0x37 0x34 0x32 ,0x39 0x34 0x34 0x34 0x33 0x32 0x32 0x34 0x32 , 0x38 0x38 0x36 0x38 0x31 0x2f 0x2e 0x30 0x34 ,0x39 0x30 0x31 0x33 0x34 0x38 0x31 0x39 0x30 , cs 1: the read training result: DQS0:0x3b, DQS1:0x3b, DQS2:0x40, DQS3:0x3b, min : 0xc 0xb 0xc 0xa 0x2 0x4 0x7 0x2 , 0x8 0x9 0x4 0x1 0xc 0xb 0xe 0x9 , 0xe 0xe 0xd 0xb 0x5 0x2 0x2 0x6 , 0xb 0x8 0x8 0x2 0xd 0xd 0xa 0xd , mid :0x29 0x29 0x2a 0x29 0x20 0x21 0x23 0x20 ,0x24 0x24 0x21 0x1e 0x29 0x28 0x2a 0x27 , 0x2d 0x2c 0x29 0x27 0x23 0x1f 0x20 0x22 ,0x29 0x26 0x25 0x21 0x2c 0x2a 0x29 0x2c , max :0x46 0x48 0x49 0x48 0x3e 0x3f 0x40 0x3e ,0x41 0x40 0x3e 0x3b 0x46 0x46 0x46 0x45 , 0x4c 0x4a 0x46 0x44 0x42 0x3c 0x3f 0x3f ,0x48 0x44 0x42 0x40 0x4c 0x48 0x49 0x4b , range:0x3a 0x3d 0x3d 0x3e 0x3c 0x3b 0x39 0x3c ,0x39 0x37 0x3a 0x3a 0x3a 0x3b 0x38 0x3c , 0x3e 0x3c 0x39 0x39 0x3d 0x3a 0x3d 0x39 ,0x3d 0x3c 0x3a 0x3e 0x3f 0x3b 0x3f 0x3e , the write training result: DQS0:0x38, DQS1:0x29, DQS2:0x2c, DQS3:0x23, min :0x5a 0x5c 0x5d 0x5d 0x51 0x54 0x58 0x59 0x57 ,0x49 0x4b 0x44 0x46 0x4e 0x4e 0x50 0x4f 0x4c , 0x4f 0x4f 0x4b 0x4b 0x47 0x43 0x44 0x49 0x4c ,0x4d 0x4b 0x49 0x45 0x4f 0x4e 0x4d 0x51 0x49 , mid :0x77 0x78 0x79 0x78 0x6c 0x6f 0x73 0x72 0x71 ,0x66 0x65 0x5f 0x5f 0x69 0x65 0x69 0x68 0x64 , 0x6b 0x6b 0x66 0x67 0x5f 0x57 0x5a 0x61 0x65 ,0x69 0x64 0x60 0x5e 0x6a 0x6a 0x64 0x6c 0x62 , max :0x94 0x95 0x96 0x93 0x87 0x8a 0x8e 0x8b 0x8b ,0x83 0x80 0x7b 0x79 0x84 0x7d 0x83 0x81 0x7d , 0x88 0x87 0x81 0x84 0x78 0x6c 0x71 0x7a 0x7e ,0x85 0x7d 0x77 0x78 0x85 0x86 0x7c 0x88 0x7b , range:0x3a 0x39 0x39 0x36 0x36 0x36 0x36 0x32 0x34 ,0x3a 0x35 0x37 0x33 0x36 0x2f 0x33 0x32 0x31 , 0x39 0x38 0x36 0x39 0x31 0x29 0x2d 0x31 0x32 ,0x38 0x32 0x2e 0x33 0x36 0x38 0x2f 0x37 0x32 , CA Training result: cs:0 min :0x4e 0x50 0x45 0x44 0x46 0x44 0x4a ,0x4c 0x4b 0x43 0x43 0x44 0x40 0x49 , cs:0 mid :0x8d 0x8f 0x83 0x82 0x84 0x82 0x7a ,0x8a 0x88 0x81 0x81 0x82 0x7f 0x78 , cs:0 max :0xcd 0xce 0xc1 0xc0 0xc2 0xc1 0xab ,0xc8 0xc6 0xc0 0xbf 0xc1 0xbe 0xa8 , cs:0 range:0x7f 0x7e 0x7c 0x7c 0x7c 0x7d 0x61 ,0x7c 0x7b 0x7d 0x7c 0x7d 0x7e 0x5f , cs:1 min :0x4b 0x53 0x40 0x47 0x43 0x45 0x48 ,0x48 0x4b 0x40 0x47 0x40 0x41 0x46 , cs:1 mid :0x8d 0x8f 0x83 0x82 0x84 0x81 0x7b ,0x89 0x86 0x83 0x81 0x82 0x7e 0x77 , cs:1 max :0xd0 0xcb 0xc6 0xbd 0xc6 0xbe 0xae ,0xcb 0xc2 0xc6 0xbc 0xc4 0xbc 0xa9 , cs:1 range:0x85 0x78 0x86 0x76 0x83 0x79 0x66 ,0x83 0x77 0x86 0x75 0x84 0x7b 0x63 , out U-Boot SPL board init U-Boot SPL 2017.09-gaaca6ffec1-211203 #zzz (Dec 03 2021 - 18:42:16) unknown raw ID phN unrecognized JEDEC id bytes: 00, 00, 00 Trying to boot from MMC2 part_get_info_efi: *** ERROR: Invalid GPT *** part_get_info_efi: *** Using Backup GPT *** No misc partition spl: partition error Trying fit image at 0x4000 sector ## Verified-boot: 0 ## Checking atf-1 0x00040000 ... sha256(fe4f274c06...) + OK ## Checking uboot 0x00a00000 ... sha256(8ee20dcc3c...) + OK ## Checking fdt 0x00b21290 ... sha256(b3b93d73ae...) + OK ## Checking atf-2 0x00068000 ... sha256(8d44036095...) + OK ## Checking atf-3 0xfdcd0000 ... sha256(e410275b51...) + OK ## Checking atf-4 0xfdcc9000 ... sha256(990c53fc01...) + OK ## Checking atf-5 0x00066000 ... sha256(315a4195a9...) + OK ## Checking optee 0x08400000 ... sha256(66bbd17352...) + OK Jumping to U-Boot(0x00a00000) via ARM Trusted Firmware(0x00040000) Total: 359.132 ms INFO: Preloader serial: 2 NOTICE: BL31: v2.3():v2.3-181-gc9a647cae:cl NOTICE: BL31: Built : 10:55:41, Oct 18 2021 INFO: GICv3 without legacy support detected. INFO: ARM GICv3 driver initialized in EL3 INFO:as DDR fsp_param[0].freq_mhz= 105[3].freq_mhz= 780MHz INFO: Using opteed sec cpu_context! INsing opteed sec cpu_context! INsing 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-641-g4167319d3 #hisping.lin (gcc version 10.2.1 20201103 (GNU Toolchain for the A-p4 I/TC: Primary CPU initializing 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 (Apr 07 2022 - 13:38:04 +0000) Model: Pine64 RK3566 Quartz64 Board PreSerial: 2, raw, 0xfe660000 DRAM: 7.7 GiB Sysmem: init Relocation Offset: ed39f000, fdt: eb9f9f78 Hotkey: ctrl+` no mmc device at slot 1 Repair the Primary gpt table OK! dwmmc@fe2b0000: 1 (SD), dwmmc@fe2c0000: 2, sdhci@fe310000: 0 Bootdev(atags): mmc 1 MMC1: Legacy, 50Mhz 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 ** Invalid partition 3 ** Using default environment Model: Pine64 RK3566 Quartz64 Board rockchip_set_serialno: could not find efuse/otp device CLK: (sync kernel. arm: enter 816000 KHz, init 816000 KHz, kernel 0N/A) apll 816000 KHz dpll 528000 KHz gpll 1188000 KHz cplHz pclk_bus 50000 KHz aclkHz pclk_bus 50000 KHz aclk0(master_bus) failed: -22eqos_probe_resources() failed: -22No ethernet found. Hit key to stop auernet found. Hit key to stop aug FIT Image FIT: No boot partition FIT: No FIT image Could not find misc partition ANDROID: reboot reason: "(none)" optee api revision: 2.0 TEEC: Waring: C Not AVB images, AVB skip andrns #0, OK mmc1 is current devicns #0, OK mmc1 is current devicns #0, OK mmc1 is current devicns #0, OK mmc1 is current devicns #0, OK mmc1 is current devicns #0, OK mmc1 is current device e e e Failed to mount ext2 filesystem... ** Unrecognized filesystem type ** MMC error: The cmd index is 0, ret is -110 mmc_init: -110, time 4 starting USB... Bus dwc3@fcc00000: usb maximum-speed not found Register 2000140 NbrPorts 2 Starting the controller USB XHCI 1.10 Bus dwc3@fd000000: usb maximum-speed not found Register 2000140 NbrPorts 2 Starting the controller USB XHCI 1.10 scanning bus dwc3@fcc00000 for devices... 1 USB Device(s) found scanning bus dwc3@fd000000 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Device 0: unknown device clk_get2eqos_probe_resources() failed: -ources() failed: -22clk_get_by_nources() failed: -22clk_get_by_nfprobe_r e Retrieving filailed: -22eqos_probe_resources()ailed: -22eqos_probe_resources()rer_bus) failed: -22eqos_probe_reee Retrieving file: pxelinux.cfgrobe_resources() failed: -22clk_robe_resources() failed: -22clk_-22eqos_probe_resoue Retrieving file: pxelinux.cfg/000000 clk_getfailed: -22clk_get_by_name(mastefailed: -22clk_get_by_name(master_bus) failed: -22eqos_probe_resources() n Retrieving file: pxelinux.cfg/e_resources() failed: -22clk_gete_rename(master_bus) failed: -22eqos_probe_resource Retrieving file: pxelinux.cfg/0000 clk_get_by_nd: -22clk_get_by_name(master_busd: -22clk_get_by_name(master_buss() failed: -22clk_get_by_name(msoure Retrieving file: pxelinux.cfg/000 clk_get_by_name(master_bus) faile(master_bus) failed: -22eqos_pre(master_bus) failed: -22eqos_probe_resources() e Retrieving file: pxelinux.cfg/00 clk_get_by_name(master_bus) failed: -22eqos_probe_res -22eqos_probe_resources() faile -22eqos_probe_resources() e Retrieving fvariable: bootfile Retrieving fname(master_bus) failed: -22eqoss) failed: -22eqos_probe_resourcs) failed: -22eqos_probe_resourc mase Retrieving file: pxelinux.cfg/defaee(master_bus) failed: -22eqos_prfailed: -22eqos_probe_resources(failed: -22eqe Retrieving file: pxelinux.cfg/default-arm clk_get_by_name(master_bus) failed: -22eqos_probe_resourceqos_probe_resources() failed: -2qos_probe_resources() e Retrieving file: blelinux.cfg/default clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22cces() failed: -22clk_get_by_nameces() . clk_get_by_name(master_busbs() failed: -22clk_get_by_name(m2clk_get_by_name(master_bus) failed: -22eqos_probe_re. clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22=> ```

Steps to reproduce

  1. flash DietPi_Quartz64A-ARMv8-Bullseye.img
  2. Use pine64 recommanded serial adapter as described https://forum.pine64.org/showthread.php?tid=5029

Expected behaviour

Actual behaviour

Extra details

MichaIng commented 2 years ago

Many thanks for your report.

I'll try to replicate. Last successfully tested on eMMC.

rmadrona commented 2 years ago

I just tried with an eMMC 64GB, and I got the same KO result.

MichaIng commented 2 years ago

A new image is up with Linux v5.19-rc1: https://dietpi.com/downloads/images/DietPi_Quartz64A-ARMv8-Bullseye.7z

Probably it works better. I remember when I tested SD cards, it failed with a Samsung EVO 128 MB while it worked (and does work now) with a Samsung PRO Endurance 128 MB, as if it was a bit picky. I'll test again with the EVO when I find time which currently boots a NanoPi R5S very well.

rmadrona commented 2 years ago

boot ok for quertz64a on emmc with dietpi version 8.7.1 and Linux v5.19-rc1 https://dietpi.com/downloads/images/DietPi_Quartz64A-ARMv8-Bullseye.7z I will continue validation with various devices. My final goal is to run pimox on this SBC.

root@DietPi:~# uname -ar
Linux DietPi 5.19.0-rc1 #1 SMP PREEMPT Fri Jul 15 09:39:18 UTC 2022 aarch64 GNU/Linux

thx @MichaIng for your support

MichaIng commented 2 years ago

That is great. I'll test again on the Samsung EVO SD card.

MichaIng commented 2 years ago

Works fine here, I'll merk this as closed now.