Armbian and LibreELEC and AltLinux for Quartz64
#61
Libreelec kernel 6.0-rc4 (work install to eMMC)
Armbian kernel 5.19.7 and 6.0-rc4
Altlinux kernel 5.19.5
  Reply
#62
@balbes150  Excellent work as ever, thank you.

I have just tried to get the jammy current running on an soquartz but it failed unfortunately, I was however eventually able to get it running, here is an output from uboot on the serial console:

Code:
DDR Version V1.10 20210810
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: -48ps, dqs2: -24ps, dqs3: -48ps,
tdqss: cs1 dqs0: 24ps, dqs1: -72ps, dqs2: -24ps, dqs3: -48ps,

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

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: 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:0xe
cs 0:
the read training result:
DQS0:0x32, DQS1:0x35, DQS2:0x35, DQS3:0x30,
min  :0x10  0xd  0x5  0x2  0x1  0x2  0xb  0x9 , 0xb  0x3  0x2  0x2  0xc 0x10 0x10  0xe ,
      0xb  0xc  0xc  0xa  0x7  0x1  0x8  0x9 , 0x1  0x3  0x9  0x5  0xa  0x8  0x3  0x5 ,
mid  :0x29 0x29 0x20 0x1e 0x1e 0x1f 0x26 0x25 ,0x20 0x1d 0x1d 0x1e 0x25 0x2c 0x2c 0x29 ,
      0x27 0x27 0x25 0x25 0x22 0x1e 0x23 0x23 ,0x1b 0x1e 0x23 0x20 0x25 0x23 0x1e 0x1f ,
max  :0x42 0x46 0x3b 0x3b 0x3b 0x3d 0x41 0x42 ,0x36 0x38 0x39 0x3b 0x3f 0x48 0x48 0x45 ,
      0x43 0x43 0x3f 0x40 0x3e 0x3b 0x3f 0x3e ,0x36 0x3a 0x3d 0x3b 0x40 0x3f 0x3a 0x39 ,
range:0x32 0x39 0x36 0x39 0x3a 0x3b 0x36 0x39 ,0x2b 0x35 0x37 0x39 0x33 0x38 0x38 0x37 ,
      0x38 0x37 0x33 0x36 0x37 0x3a 0x37 0x35 ,0x35 0x37 0x34 0x36 0x36 0x37 0x37 0x34 ,
the write training result:
DQS0:0x17, DQS1:0x5, DQS2:0xa, DQS3:0x5,
min  :0x66 0x6c 0x60 0x5c 0x5b 0x5c 0x66 0x6a 0x6a ,0x48 0x45 0x47 0x47 0x4c 0x53 0x53 0x51 0x4a ,
      0x54 0x55 0x55 0x51 0x4e 0x4b 0x53 0x53 0x54 ,0x4c 0x4e 0x52 0x4e 0x52 0x51 0x50 0x50 0x4e ,
mid  :0x81 0x85 0x79 0x76 0x74 0x75 0x7e 0x81 0x81 ,0x62 0x5f 0x5e 0x60 0x66 0x6c 0x6d 0x6c 0x63 ,
      0x70 0x6f 0x6f 0x6d 0x6a 0x66 0x6c 0x6d 0x6d ,0x66 0x68 0x6a 0x67 0x6a 0x69 0x69 0x6a 0x65 ,
max  :0x9d 0x9f 0x92 0x90 0x8e 0x8f 0x97 0x99 0x99 ,0x7c 0x7a 0x76 0x7a 0x80 0x86 0x87 0x87 0x7d ,
      0x8d 0x8a 0x89 0x89 0x86 0x82 0x86 0x88 0x87 ,0x81 0x82 0x83 0x81 0x82 0x82 0x82 0x85 0x7d ,
range:0x37 0x33 0x32 0x34 0x33 0x33 0x31 0x2f 0x2f ,0x34 0x35 0x2f 0x33 0x34 0x33 0x34 0x36 0x33 ,
      0x39 0x35 0x34 0x38 0x38 0x37 0x33 0x35 0x33 ,0x35 0x34 0x31 0x33 0x30 0x31 0x32 0x35 0x2f ,
cs 1:
the read training result:
DQS0:0x31, DQS1:0x35, DQS2:0x35, DQS3:0x2f,
min  : 0xe  0xc  0x3  0x1  0x1  0x1  0xa  0x8 , 0xa  0x2  0x1  0x2  0xc 0x10 0x10  0xe ,
      0xc  0xb  0xc  0xa  0x7  0x2  0x8  0xa , 0x1  0x2  0x8  0x3  0x8  0x8  0x3  0x5 ,
mid  :0x28 0x29 0x1f 0x1e 0x1e 0x1e 0x26 0x25 ,0x21 0x1d 0x1d 0x1f 0x25 0x2c 0x2c 0x2a ,
      0x28 0x26 0x25 0x24 0x22 0x1e 0x23 0x23 ,0x1b 0x1d 0x23 0x1f 0x24 0x23 0x1f 0x1f ,
max  :0x42 0x46 0x3b 0x3b 0x3b 0x3b 0x42 0x42 ,0x38 0x39 0x39 0x3c 0x3f 0x49 0x49 0x47 ,
      0x44 0x42 0x3e 0x3e 0x3d 0x3a 0x3f 0x3d ,0x36 0x39 0x3e 0x3b 0x41 0x3f 0x3b 0x39 ,
range:0x34 0x3a 0x38 0x3a 0x3a 0x3a 0x38 0x3a ,0x2e 0x37 0x38 0x3a 0x33 0x39 0x39 0x39 ,
      0x38 0x37 0x32 0x34 0x36 0x38 0x37 0x33 ,0x35 0x37 0x36 0x38 0x39 0x37 0x38 0x34 ,
the write training result:
DQS0:0x17, DQS1:0x5, DQS2:0xa, DQS3:0x5,
min  :0x5e 0x65 0x58 0x55 0x53 0x55 0x5e 0x61 0x60 ,0x3f 0x3c 0x3e 0x3e 0x45 0x4c 0x4c 0x4a 0x43 ,
      0x53 0x54 0x53 0x50 0x4e 0x4a 0x50 0x53 0x53 ,0x48 0x4b 0x4e 0x4b 0x50 0x4f 0x4d 0x4e 0x4e ,
mid  :0x79 0x7e 0x71 0x6f 0x6d 0x70 0x75 0x79 0x79 ,0x5a 0x57 0x57 0x59 0x5f 0x65 0x66 0x64 0x5d ,
      0x70 0x6e 0x6e 0x6c 0x69 0x65 0x6a 0x6d 0x6b ,0x64 0x64 0x67 0x67 0x69 0x69 0x67 0x68 0x68 ,
max  :0x95 0x97 0x8a 0x8a 0x88 0x8b 0x8d 0x92 0x93 ,0x76 0x73 0x71 0x74 0x79 0x7f 0x81 0x7f 0x77 ,
      0x8d 0x89 0x89 0x89 0x84 0x80 0x84 0x87 0x84 ,0x81 0x7d 0x81 0x83 0x83 0x83 0x82 0x83 0x82 ,
range:0x37 0x32 0x32 0x35 0x35 0x36 0x2f 0x31 0x33 ,0x37 0x37 0x33 0x36 0x34 0x33 0x35 0x35 0x34 ,
      0x3a 0x35 0x36 0x39 0x36 0x36 0x34 0x34 0x31 ,0x39 0x32 0x33 0x38 0x33 0x34 0x35 0x35 0x34 ,
CA Training result:
cs:0 min  :0x4e 0x55 0x43 0x4f 0x49 0x46 0x4d ,0x4c 0x4c 0x4a 0x4a 0x47 0x47 0x50 ,
cs:0 mid  :0x8e 0x91 0x82 0x8a 0x87 0x82 0x7f ,0x8b 0x88 0x89 0x87 0x88 0x83 0x81 ,
cs:0 max  :0xcf 0xcd 0xc2 0xc6 0xc6 0xbf 0xb1 ,0xca 0xc4 0xc8 0xc4 0xc9 0xbf 0xb2 ,
cs:0 range:0x81 0x78 0x7f 0x77 0x7d 0x79 0x64 ,0x7e 0x78 0x7e 0x7a 0x82 0x78 0x62 ,
cs:1 min  :0x4b 0x58 0x43 0x54 0x45 0x4a 0x54 ,0x48 0x4f 0x45 0x4d 0x44 0x49 0x43 ,
cs:1 mid  :0x8e 0x91 0x84 0x8b 0x87 0x83 0x85 ,0x8b 0x88 0x88 0x86 0x86 0x83 0x78 ,
cs:1 max  :0xd2 0xca 0xc5 0xc2 0xca 0xbd 0xb7 ,0xce 0xc2 0xcc 0xbf 0xc9 0xbd 0xae ,
cs:1 range:0x87 0x72 0x82 0x6e 0x85 0x73 0x63 ,0x86 0x73 0x87 0x72 0x85 0x74 0x6b ,
out
rockchip_sdram_size fdc20208 10000a02
rank=2 cs0_col=10 cs1_col=10 bk=3 cs0_row=17 cs1_row=17 bg=0 bw=2 row_3_4=0
SDRAM base=0, size=200000000

U-Boot SPL 2022.04-armbian (Sep 06 2022 - 09:56:46 +0000)
saradc@fe720000: Can't update Vdd. Error: -38saradc@fe720000: Can't update Vss. Error: -38Trying to boot from MMC1
mmc_load_image_raw_sector: mmc block read error
Trying to boot from MMC2
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= 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
WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will return SMC_UNK
ERROR:  Error initializing runtime service opteed_fast
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0xa00000
INFO:    SPSR = 0x3c9


U-Boot 2022.04-armbian (Sep 06 2022 - 09:56:46 +0000)

Model: Pine64 RK3566 Quartz64-A Board
DRAM:  rockchip_sdram_size fdc20208 10000a02
rank=2 cs0_col=10 cs1_col=10 bk=3 cs0_row=17 cs1_row=17 bg=0 bw=2 row_3_4=0
SDRAM base=0, size=200000000
8 GiB
PMIC:  RK8090 (on=0x40, off=0x00)
Core:  258 devices, 19 uclasses, devicetree: separate
MMC:  mmc@fe2b0000: 1, mmc@fe310000: 0
Loading Environment from nowhere... OK
In:    serial@fe660000
Out:  serial@fe660000
Err:  serial@fe660000
Model: Pine64 RK3566 Quartz64-A Board
Net:  No ethernet found.
Hit any key to stop autoboot:  0
starting USB...
Bus usb@fd800000: USB EHCI 1.00
Bus usb@fd840000:

It just hangs there then retries a few times.

I replaced the u-boot with a working one I had and that got the device booting, that hung up but after replacing the dtb with the attached one, it successfully booted so I do have a working image now:

Code:
root@quartz64a:~# uname -a
Linux quartz64a 5.19.7-station-p2 #trunk SMP PREEMPT Mon Sep 5 13:11:27 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux
root@quartz64a:~# cat /etc/issue
Armbian 22.11.0-trunk Jammy \l

I cannot upload a dtb so here it is: https://www.t95plus.com/forums/downloads...tz-cm4.dtb
  Reply
#63
Armbian test version 20220913 kernel 6.0-rc5 and u-boot-2022.10-rc4. It is important that u-boot has changed. various bugs are possible in the new version.
  Reply
#64
Libreelec kernel 6.0-rc6
Armbian kernel 5.19.10 and 6.0-rc6
Altlinux kernel 5.19.10
  Reply
#65
Armbian test version 20220913 kernel 6.0-rc6 and u-boot-2022.10-rc4.

https://disk.yandex.ru/d/a_qDBPL0nVnidw
  Reply
#66
hdmi works

no osd
no hvec
  Reply
#67
(09-25-2022, 12:50 PM)shaggy013 Wrote: hdmi works

no osd
no hvec

very "meaningful " information, it is not specified what and how it was checked.
  Reply
#68
20221019-aarch64 is the latest i see ?

https://disk.yandex.ru/d/8vNYuuxynz1L0w/...19-aarch64

but i dont see

Ver 20221020 kernel 6.0.2 ?
  Reply
#69
(10-31-2022, 10:50 AM)shaggy013 Wrote: 20221019-aarch64 is the latest i see ?

https://disk.yandex.ru/d/8vNYuuxynz1L0w/...19-aarch64

but i dont see

Ver 20221020 kernel 6.0.2  ?

Ver 20221101 kernel 6.0.6
  Reply
#70
(09-07-2022, 02:33 AM)digitaldaz Wrote: @balbes150  Excellent work as ever, thank you.

Code:
root@quartz64a:~# uname -a
Linux quartz64a 5.19.7-station-p2 #trunk SMP PREEMPT Mon Sep 5 13:11:27 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux
root@quartz64a:~# cat /etc/issue
Armbian 22.11.0-trunk Jammy \l

I cannot upload a dtb so here it is: https://www.t95plus.com/forums/downloads...tz-cm4.dtb

This is the only image I've found that can boot from sd. Can you share your sources so I can modify/compile it?  Going on a month of just trying to boot a soquartz from sd here.

Your image linked on the soquartz wiki references quartz-64-a.dtb though it boot nicely via sd on a model a base board and a pi cm4 io board fwiw! Good work to the both of you ( and @balbes150 of course ) and thank you.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  irradium (based on crux linux) Quartz64 riscv64, aarch64 mara 4 1,101 11-20-2024, 10:45 AM
Last Post: mara
  USB on Quartz64 Zero litbulb 0 94 11-13-2024, 08:16 AM
Last Post: litbulb
  DietPi OS for Quartz64 MichaIng 47 20,215 08-08-2024, 07:42 AM
Last Post: ifreislich
  slarm64 (unofficial slackware) Quartz64 RK3566 (aarch64) mara 56 49,961 10-17-2023, 10:55 AM
Last Post: mara
  quartz64-a - on-board SATA port problems manning 2 1,787 09-14-2023, 04:22 PM
Last Post: manning
  How the reset Quartz64-b onboard memory (emmc) beepy 2 1,386 07-20-2023, 10:44 PM
Last Post: beepy
  Armbian RAM issue JambonLeVrai 2 1,969 02-12-2023, 06:48 AM
Last Post: diederik
  crux-arm Quartz64 RK3566 (aarch64) mara 5 5,914 10-29-2022, 06:55 AM
Last Post: mara
  Ov5647 camera attached via csi to Quartz64 /Soquartz Randomuser 0 1,517 07-21-2022, 01:08 PM
Last Post: Randomuser
  Armbian on Quartz64 dieselnutjob 34 32,173 03-17-2022, 06:29 AM
Last Post: balbes150

Forum Jump:


Users browsing this thread: 6 Guest(s)