From open box to bash prompt
#1
This should get you from unboxing to a console.

At the time of writing, the graphics output is not functional in the Manjaro builds (but looks to be in the Android 11 Production Test Build for Quartz64 model A SBC)

There is a hint that the default baud rate of the serial port is 1.5mbaud in a warning on the Quartz64 Wiki (emphasis added)

Quote:Warning: Software for the Quartz64 is still early in development, and therefore currently lacks features such as the ability to produce video output. You are strongly encouraged to procure a 3.3V UART serial adapter capable of running at 1.5 mbaud[], such as the woodpecker if you want to use a Quartz64 at this stage.

Make sure your adapter chipset supports 1.5 mbaud or higher. I happened to have (counterfeit?) CP2102 USB to TTL UART adapters which only go up to 1 mbaud. If your adapter does not support the higher baud rate, `screen` does not show an error, it just uses the highest supported baud rate of the chip.

Burn the Manjaro builds to a 2GB or larger microSD card (or eMMC if you purchased). As root run with the path of the SD card:

`xz -d < Manjaro-ARM-minimal-quartz64-bsp-20211025.img.xz - | dd of=/dev/sdX`

The serial port to use is described as UART2_RX_M0_DEBUG and UART2_TX_M0_DEBUG in the pinout.

[Image: QmVHARmKUtS6JMwX6ej8mYY24kCLRHXtAHdk3RCv7GjSKz]

Assuming you know your TTL adapter tty path, you have permissions to it and you have `screen` installed:

`screen /dev/ttyUSB0 1500000`

When booting, you should see activity from two LEDs next to the power button. If you only see It will start with a solid white and switch to a blinking red. Here is a video.

Boot and you should be presented with a setup menu.

Ethernet is set to use DHCP by default.

I switch to using SSH at this point.

Other info:

If you are using microSD and eMMC, there is a report it will attempt to boot from microSD first.

There is mention of a Debian build, but it may not be as convenient as the Manjaro setup
  Reply
#2
Unfortunately it doesn't work on soquartz. On my soquartz board it hangs on kernel load

Code:
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:    pmu v1 is valid
INFO:    dfs DDR fsp_param[0].freq_mhz= 1056MHz
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-595-gf5add58be #hisping.lin (gcc version 10.2.1 20201103 (GNU Toolchain for the A-profile Architecture 10.2-2020.11 (arm-10.16))) #26 Tue Dec 21 15:50:44 CST 2021 aarch64
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 (Jan 08 2022 - 03:13:38 +0000)

Model: Pine64 RK3566 Quartz64 Board
PreSerial: 2, raw, 0xfe660000
DRAM:  2 GiB
Sysmem: init
Relocation Offset: 7d39f000, fdt: 7b9f9fb8
no mmc device at slot 1
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

** Unable to use mmc 1:3 for loading the env **
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
  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:   clk_get_by_name(master_bus) failed: -22eqos_probe_resources() failed: -22No 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
TEEC: Waring: Could not find security partition
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:2...
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
reading /extlinux/extlinux.conf
240 bytes read in 4 ms (58.6 KiB/s)
1:      Manjaro ARM
Retrieving file: /initramfs-linux.img
reading /initramfs-linux.img
8531283 bytes read in 711 ms (11.4 MiB/s)
Retrieving file: /Image
reading /Image
28051968 bytes read in 2327 ms (11.5 MiB/s)
append: initrd=/initramfs-linux.img console=ttyS2,1500000 root=PARTUUID=558cc14a-900c-4e28-93b4-43d2c863dda3 rw rootwait audit=0 splash plymouth.ignore-serial-consoles
Retrieving file: /dtbs/rockchip/rk3566-quartz64-a.dtb
reading /dtbs/rockchip/rk3566-quartz64-a.dtb
116511 bytes read in 17 ms (6.5 MiB/s)
Fdt Ramdisk skip relocation
## Flattened Device Tree blob at 0x0a100000
   Booting using the fdt blob at 0x0a100000
   Using Device Tree in place at 000000000a100000, end 000000000a11f71e
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 - 0x80000000 (size: 0x76c00000)
Total: 3453.380 ms

Starting kernel ...

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
DDR Version V1.11 20211103
ln
ddrconfig:0
LPDDR4X, 324MHz
BW=32 Col=10 Bk=8 CS0 Row=16 CS=1 Die BW=16 Size=2048MB
tdqss: cs0 dqs0: 72ps, dqs1: -48ps, dqs2: -24ps, dqs3: -48ps,

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

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

change to: 780MHz
PHY drv:clk:36,ca:36,DQ:29,odt:0
vrefinner:41%, 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:0x9
cs 0:
the read training result:
DQS0:0x31, DQS1:0x30, DQS2:0x30, DQS3:0x2e,
min  :0x10  0xf  0x5  0x0  0x5  0x6  0xb  0xa , 0x7  0x2  0x3  0x5  0x9  0xe 0x11  0xc ,
       0xa  0xa  0x9  0x9  0x4  0x1  0x5  0x6 , 0x3  0x2  0x8  0x2  0xa  0x7  0x4  0x5 ,
mid  :0x2b 0x2a 0x20 0x1b 0x1f 0x21 0x26 0x24 ,0x21 0x1c 0x1d 0x1e 0x22 0x28 0x2a 0x25 ,
      0x25 0x25 0x24 0x23 0x1f 0x1c 0x20 0x20 ,0x1f 0x1e 0x23 0x1e 0x26 0x23 0x1f 0x1f ,
max  :0x46 0x45 0x3b 0x37 0x3a 0x3c 0x42 0x3f ,0x3b 0x36 0x37 0x37 0x3b 0x42 0x44 0x3f ,
      0x41 0x40 0x3f 0x3d 0x3a 0x37 0x3b 0x3b ,0x3b 0x3a 0x3f 0x3a 0x42 0x3f 0x3b 0x3a ,
range:0x36 0x36 0x36 0x37 0x35 0x36 0x37 0x35 ,0x34 0x34 0x34 0x32 0x32 0x34 0x33 0x33 ,
      0x37 0x36 0x36 0x34 0x36 0x36 0x36 0x35 ,0x38 0x38 0x37 0x38 0x38 0x38 0x37 0x35 ,
the write training result:
DQS0:0x17, DQS1:0x0, DQS2:0x5, DQS3:0x0,
min  :0x6a 0x6c 0x63 0x5e 0x5c 0x5f 0x66 0x67 0x67 ,0x4b 0x49 0x45 0x47 0x4a 0x52 0x53 0x4f 0x4b ,
      0x54 0x53 0x54 0x50 0x4d 0x4b 0x50 0x52 0x50 ,0x4a 0x4b 0x4f 0x4b 0x4e 0x4d 0x4a 0x4e 0x4c ,
mid  :0x85 0x88 0x7c 0x78 0x78 0x79 0x80 0x81 0x82 ,0x66 0x63 0x60 0x61 0x65 0x6d 0x6d 0x6b 0x66 ,
      0x70 0x6f 0x6f 0x6d 0x68 0x64 0x6a 0x6c 0x6b ,0x65 0x68 0x6c 0x67 0x6a 0x69 0x65 0x69 0x68 ,
max  :0xa0 0xa4 0x96 0x92 0x94 0x94 0x9a 0x9b 0x9d ,0x82 0x7d 0x7b 0x7c 0x81 0x89 0x88 0x87 0x82 ,
      0x8d 0x8c 0x8b 0x8a 0x84 0x7d 0x85 0x86 0x87 ,0x81 0x85 0x89 0x84 0x86 0x86 0x81 0x84 0x85 ,
range:0x36 0x38 0x33 0x34 0x38 0x35 0x34 0x34 0x36 ,0x37 0x34 0x36 0x35 0x37 0x37 0x35 0x38 0x37 ,
      0x39 0x39 0x37 0x3a 0x37 0x32 0x35 0x34 0x37 ,0x37 0x3a 0x3a 0x39 0x38 0x39 0x37 0x36 0x39 ,
CA Training result:
cs:0 min  :0x4c 0x4a 0x41 0x42 0x43 0x3a 0x4c ,0x49 0x44 0x47 0x42 0x46 0x3c 0x50 ,
cs:0 mid  :0x87 0x89 0x7b 0x82 0x7f 0x7a 0x79 ,0x86 0x84 0x82 0x81 0x81 0x7d 0x7c ,
cs:0 max  :0xc3 0xc9 0xb6 0xc2 0xbb 0xba 0xa6 ,0xc3 0xc4 0xbe 0xc1 0xbd 0xbe 0xa9 ,
cs:0 range:0x77 0x7f 0x75 0x80 0x78 0x80 0x5a ,0x7a 0x80 0x77 0x7f 0x77 0x82 0x59 ,
out
rockchip_sdram_size fdc20208 100002c1
rank 1 cs0_col 10 bk 3 cs0_row 16 bw 2 row_3_4 0
SDRAM base=0, size=80000000

U-Boot SPL 2022.01-1 (Jan 09 2022 - 13:38:30 +0000)
rockchip_sdhci_probe clk set rate fail!
Trying to boot from MMC1
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.01-1 (Jan 09 2022 - 13:38:30 +0000) Manjaro Linux ARM

Model: Pine64 RK3566 Quartz64-A Board
DRAM:  rockchip_sdram_size fdc20208 100002c1
rank 1 cs0_col 10 bk 3 cs0_row 16 bw 2 row_3_4 0
SDRAM base=0, size=80000000
2 GiB
MMC:   rockchip_sdhci_probe clk set rate fail!
mmc@fe2b0000: 1, mmc@fe2c0000: 2, 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
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1...
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
1:      Manjaro ARM
Retrieving file: /initramfs-linux.img
Retrieving file: /Image
append: initrd=/initramfs-linux.img console=ttyS2,1500000 root=PARTUUID=24e18bfd-5359-4e0e-912a-7c2f79005e6e rw rootwait audit=0 splash plymouth.ignore-serial-consoles
Retrieving file: /dtbs/rockchip/rk3566-quartz64-a.dtb
Moving Image from 0x2080000 to 0x2200000, end=3a40000
## Flattened Device Tree blob at 0a100000
   Booting using the fdt blob at 0xa100000
   Loading Ramdisk to 7d6d8000, end 7df04532 ... OK
   Loading Device Tree to 000000007d6b9000, end 000000007d6d7bed ... OK

Starting kernel ...
Then it freezes. Do I need a different dtbs file for a soquartz?
  Reply
#3
(07-17-2022, 11:22 AM)Randomuser Wrote: Then it freezes. Do I need a different dtbs file for a soquartz?

Yes. There's one in linux-next, and it should be in linux 5.20 once rc1 drops in two weeks' time.

However, no need to worry about this, Manjaro builds images for SOQuartz: https://github.com/manjaro-arm/soquartz-...s/releases

Please use those, NOT the old Model A images.

Occasional Linux Kernel Contributor, Avid Wiki Updater, Ask Me About Quartz64
Open Hardware Quartz64 Model A TOSLink Adapter
Pi-bus GPIO Extender For ROCKPro64 And Quartz64 Model A
Plebian GNU/Linux
  Reply
#4
(07-17-2022, 01:33 PM)CounterPillow Wrote:
(07-17-2022, 11:22 AM)Randomuser Wrote: Then it freezes. Do I need a different dtbs file for a soquartz?

Yes. There's one in linux-next, and it should be in linux 5.20 once rc1 drops in two weeks' time.

However, no need to worry about this, Manjaro builds images for SOQuartz: https://github.com/manjaro-arm/soquartz-...s/releases

Please use those, NOT the old Model A images.

Are they actually working though now? I tried one a week ago (from the 18.07) and it didn't boot. It seems they've configured a soquartz image to use Quartz64-B dts on boot. While Quartz64-B (and A) for the matter are different hardware it is possible to boot soquartz using Quatrz64-A dts (not ideal) while Quartz64-B just freezes with kernel panic.
  Reply
#5
(07-26-2022, 02:51 AM)Randomuser Wrote: Are they actually working though now? I tried one a week ago (from the 18.07) and it didn't boot. It seems they've configured a soquartz image to use Quartz64-B dts on boot. While Quartz64-B (and A) for the matter are different hardware it is possible to boot soquartz using Quatrz64-A dts (not ideal) while Quartz64-B just freezes with kernel panic.

I can't test this myself as I do not have a SOQuartz, but if the images are not working you should report this to Manjaro, it would be great if we could get that fixed.

I'll look into SOQuartz stuff myself once PINE64 releases carrier boards for them.

Occasional Linux Kernel Contributor, Avid Wiki Updater, Ask Me About Quartz64
Open Hardware Quartz64 Model A TOSLink Adapter
Pi-bus GPIO Extender For ROCKPro64 And Quartz64 Model A
Plebian GNU/Linux
  Reply
#6
I have reported it to manjaro on their support forum.

Hopefully they'll get to it at some point. Carrier board wise it would be great if pine64 was to produce one, but personally I think it is a great advantage cm4 is a standard we can use any carrier board with.

I use the waveshare cm4 - nano-b.
  Reply
#7
Any update on this? Purchased the Soquartz and "Model A" base board and don't know which image to use.

Why is it called a "Model A" base board if it has a 40 pin header? Is this board expected to run Quartz64 Model B images?
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)