BUILD CUSTOM SDK
#21
So I built a soquartz buildroot image and unfortunately it doesn't boot.

It sends this on to the console:
Code:
DDR Version V1.13 20220218
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: -24ps, dqs2: -24ps, dqs3: -72ps,

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: 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:0x31, DQS1:0x30, DQS2:0x31, DQS3:0x2e,
min  :0x10 0x10  0x6  0x1  0x5  0x5  0xc  0xa , 0x7  0x3  0x3  0x5  0x9  0xe 0x1                                                                                                             1  0xc ,
       0xb  0xa  0xa  0xa  0x5  0x2  0x5  0x6 , 0x2  0x2  0x7  0x1  0x9  0x6  0x                                                                                                             3  0x4 ,
mid  :0x2a 0x2a 0x20 0x1c 0x1f 0x20 0x26 0x24 ,0x21 0x1c 0x1d 0x1e 0x22 0x28 0x2                                                                                                             a 0x25 ,
      0x26 0x26 0x25 0x24 0x20 0x1d 0x20 0x21 ,0x1e 0x1e 0x23 0x1d 0x25 0x22 0x1                                                                                                             f 0x1f ,
max  :0x45 0x45 0x3b 0x37 0x3a 0x3b 0x41 0x3f ,0x3b 0x36 0x37 0x37 0x3b 0x42 0x4                                                                                                             4 0x3f ,
      0x42 0x42 0x40 0x3e 0x3b 0x39 0x3b 0x3c ,0x3b 0x3b 0x3f 0x3a 0x42 0x3f 0x3                                                                                                             b 0x3b ,
range:0x35 0x35 0x35 0x36 0x35 0x36 0x35 0x35 ,0x34 0x33 0x34 0x32 0x32 0x34 0x3                                                                                                             3 0x33 ,
      0x37 0x38 0x36 0x34 0x36 0x37 0x36 0x36 ,0x39 0x39 0x38 0x39 0x39 0x39 0x3                                                                                                             8 0x37 ,
the write training result:
DQS0:0x1c, DQS1:0xa, DQS2:0xa, DQS3:0x0,
min  :0x6e 0x70 0x67 0x63 0x63 0x65 0x6c 0x6c 0x6c ,0x54 0x51 0x4e 0x4f 0x54 0x5                                                                                                             c 0x5c 0x5a 0x54 ,
      0x5a 0x59 0x5a 0x56 0x52 0x50 0x55 0x57 0x55 ,0x4a 0x4b 0x4f 0x4b 0x4e 0x4                                                                                                             e 0x4a 0x4e 0x4c ,
mid  :0x89 0x8c 0x80 0x7c 0x7d 0x7e 0x86 0x86 0x87 ,0x6f 0x6d 0x6a 0x6a 0x6f 0x7                                                                                                             7 0x77 0x75 0x70 ,
      0x76 0x74 0x74 0x72 0x6d 0x69 0x6f 0x71 0x70 ,0x65 0x67 0x6c 0x67 0x6a 0x6                                                                                                             a 0x65 0x69 0x68 ,
max  :0xa4 0xa9 0x9a 0x96 0x97 0x98 0xa1 0xa1 0xa2 ,0x8b 0x89 0x86 0x86 0x8b 0x9                                                                                                             2 0x92 0x91 0x8c ,
      0x92 0x90 0x8f 0x8e 0x89 0x83 0x89 0x8b 0x8c ,0x81 0x84 0x89 0x84 0x86 0x8                                                                                                             6 0x81 0x84 0x85 ,
range:0x36 0x39 0x33 0x33 0x34 0x33 0x35 0x35 0x36 ,0x37 0x38 0x38 0x37 0x37 0x3                                                                                                             6 0x36 0x37 0x38 ,
      0x38 0x37 0x35 0x38 0x37 0x33 0x34 0x34 0x37 ,0x37 0x39 0x3a 0x39 0x38 0x3                                                                                                             8 0x37 0x36 0x39 ,
CA Training result:
cs:0 min  :0x4c 0x4a 0x42 0x44 0x44 0x3a 0x4a ,0x49 0x42 0x47 0x43 0x46 0x3c 0x4                                                                                                             e ,
cs:0 mid  :0x88 0x89 0x7c 0x83 0x7f 0x7a 0x77 ,0x85 0x82 0x82 0x82 0x81 0x7c 0x7                                                                                                             b ,
cs:0 max  :0xc4 0xc9 0xb6 0xc2 0xbb 0xba 0xa5 ,0xc2 0xc3 0xbe 0xc1 0xbc 0xbd 0xa                                                                                                             8 ,
cs:0 range:0x78 0x7f 0x74 0x7e 0x77 0x80 0x5b ,0x79 0x81 0x77 0x7e 0x76 0x81 0x5                                                                                                             a ,
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
SPL: A/B-slot: _a, successful: 0, tries-remain: 7
Trying fit image at 0x4000 sector
## Verified-boot: 0
## Checking atf-1 0x00040000 ... sha256(6204b6f381...) + OK
## Checking uboot 0x00a00000 ... sha256(62a83e4dcc...) + OK
## Checking fdt 0x00b27f58 ... sha256(30938731de...) + OK
## Checking atf-2 0xfdcc1000 ... sha256(5563d929da...) + OK
## Checking atf-3 0x0006a000 ... sha256(b04372ab0f...) + OK
## Checking atf-4 0xfdcd0000 ... sha256(b46eaa95b8...) + OK
## Checking atf-5 0xfdcce000 ... sha256(2f8839c803...) + OK
## Checking atf-6 0x00068000 ... sha256(6e9d32ba23...) + OK
## Checking optee 0x08400000 ... sha256(66bbd17352...) + OK
Jumping to U-Boot(0x00a00000) via ARM Trusted Firmware(0x00040000)
Total: 293.562 ms

INFO:    Preloader serial: 2
NOTICE:  BL31: v2.3():v2.3-365-gae7c295ca:derrick.huang
NOTICE:  BL31: Built : 15:37:13, May 17 2022
INFO:    GICv3 without legacy support detected.
INFO:    ARM GICv3 driver initialized in EL3
INFO:    pmu v1 is valid 220114
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
INFO:    BL31: Initializing BL32
I/TC:
I/TC: OP-TEE version: 3.13.0-641-g4167319d3 #hisping.lin (gcc version 10.2.1 202                                                                                                             01103 (GNU Toolchain for the A-profile Architecture 10.2-2020.11 (arm-10.16))) #                                                                                                             8 Wed Mar 16 15:14:56 CST 2022 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-g14d99fe8fb #luk (Jul 16 2022 - 14:18:06 +0200)

Model: Firefly RK3568 Board
PreSerial: 2, raw, 0xfe660000
DRAM:  2 GiB
Sysmem: init
Relocation Offset: 7d350000
Relocation fdt: 7b9f8c28 - 7b9fecd0
CR: M/C/I
Using default environment

no mmc device at slot 1
dwmmc@fe2b0000: 1 (SD), dwmmc@fe2c0000: 2, sdhci@fe310000: 0
Bootdev(atags): mmc 1
MMC1: Legacy, 52Mhz
PartType: EFI
DM: v1
boot mode: recovery (misc)
FIT: no signed, no conf required
DTB: rk-kernel.dtb
HASH(c): OK
I2c0 speed: 100000Hz
PMIC:  RK8090 (on=0x40, off=0x00)
vdd_logic init 900000 uV
vdd_gpu init 900000 uV
io-domain: OK
Could not find baseparameter partition
Model: Pine64 RK3566 Quartz64-A Board
Enable charge animation display
charge_extrem_low_power: Not charging, online=0. Shutdown...
Cpu should never reach h▒

I have mounted the sd card under linux and it seems to contain 6 partitions the biggest one with what looks like normal root FS. Could someone suggest some troubleshooting steps?
  Reply
#22
(07-17-2022, 10:49 AM)Randomuser Wrote: So I built a soquartz buildroot image and unfortunately it doesn't boot.

It sends this on to the console:
*** ADDED ***
Added buildconfigs for other pine boards with a rk356x  PineNote ,Quartz64-b and Soquartz
!!! DTS files not included only added a pinenote dts the soquartz and quartz64-b are just quartz64-a dts !!
so if you got a dts for dowmstream kernel bards you can add them
  Reply
#23
(07-17-2022, 11:00 AM)shaggy013 Wrote:
(07-17-2022, 10:49 AM)Randomuser Wrote: So I built a soquartz buildroot image and unfortunately it doesn't boot.

It sends this on to the console:
*** ADDED ***
Added buildconfigs for other pine boards with a rk356x  PineNote ,Quartz64-b and Soquartz
!!! DTS files not included only added a pinenote dts the soquartz and quartz64-b are just quartz64-a dts !!
so if you got a dts for dowmstream kernel bards you can add them

Well, I didn't understand what it means the first time I read it. I assumed it would at least boot with a generic quartz64-a dts. Maybe with some devices not working. It appears it doesn't.

I've managed to plug in a soquartz dts from the latest linux-5.19rc7, and this boots, but ethernet doesn't work. It detects the link state correctly. It seems to think it sends, but it doesn't receive anything. I'll have to troubleshoot it. Any ideas are very welcome.

So I attempted to find ANY image with working Ethernet on a soquartz board, but there is none. The 36GB "BSP Linux SDK" the soquartz wiki links to is not an SDK for the soquartz, but for the MCU with no real support for the soquartz board peripherals at all.

Then there is Manjaro linux, which doesn't boot at all on soquartz because they configured it to use Quartz-B hardware. Are there soquartz boards with Quartz-B? I thought not, but perhaps I'm not aware of it. Regardless, it too isn't booting on my board.

The wiki page and some forum posts seem to suggest that at the very least the OpenCL project by pgwipeout should boot. Nope, it too doesn't work (at least the latest image and the one before that, I gave up on it thereafter). This is not a critique of the author as he does a lot of good work submitting code to the mainline Kernel. 

It seems that the process created by shaggy013 described in this thread is currently the only way to produce an image that boots for the soquartz board. For this I wanted to say thank you to shaggy013. 

At the same time I think the Pine64 wiki should make it absolutely clear this "product" is probably a year away from being actually usable on Linux (on ANY linux, not specifically mainline). If anyone is aware of an image that has working ethernet, USB2, CSI camera and hardware h264 encoder please do let me know, but I'm not expecting much.

I've been downloading that huge 78GB Android SDK for last 5 days. If it turns out it is equally useless as the "BSP linux SDK" it will be quite sad.
  Reply
#24
well it very usable mainline only npu and 4k hdr i am missing

both the linux and android bsp works only how to download is another thing

and mainly it is just some config and a dts

a more recent bsp is to find at fruitpi

and jus look at the dts mainline and downstream for quartz64 they dont differ that much sure you can make a soquartz of them dowmstream
  Reply
#25
I found vccio6 on soquartz should be 3.3V not 1.8V. The summary page on page 3 of the schematic is wrong. On page 25 it can be seen clearly the chip's pin 27 is connected to vdd_h which sets 2.5V signalling (3.3V tolerant).

So I've changed vccio6 to 3.3V, but still Ethernet isn't working (only link state changes work).

Perhaps there are other differences.

Edit:

I've managed to get Ethernet working by copy/pasting the gmic1 sections from mainline dts files to the older kernel.
  Reply
#26
(07-18-2022, 10:11 PM)Randomuser Wrote: I found vccio6 on soquartz should be 3.3V not 1.8V. The summary page on page 3 of the schematic is wrong. On page 25 it can be seen clearly the chip's pin 27 is connected to vdd_h which sets 2.5V signalling (3.3V tolerant).

So I've changed vccio6 to 3.3V, but still Ethernet isn't working (only link state changes work).

Perhaps there are other differences.

Edit:

I've managed to get Ethernet working by copy/pasting the gmic1 sections from mainline dts files to the older kerneio-dm
 
Good Smile nice to see you solve it with a hint Wink


io-domains is almost the most important Wink

and watch the pmic in quartz64-a it is rk817 on a quartz-b it is a rk809
  Reply
#27
A update for a more recent sdk for rk356x and rk3588

manifest

https://github.com/Shaggy013/manifests/tree/rkr-3.5

for rk3588

repo init -u https://gitlab.com/rk3588_linux/rockchip...ifests.git -b linux -m rk3588_linux_release.xml

for rk356x

repo init -u https://gitlab.com/rk3588_linux/rockchip...ifests.git -b linux -m rk356x_linux_release.xml
  Reply
#28
For building Yocto

yocto/build/conf/local.conf remove the symlink

yocto doesnt like that to be a symlink somehow

and in device/rockchip/common/build.sh line 948

modify it that it cp to the right folder

ln -rsf $RK_YOCTO_MACHINE.conf build/conf/local.conf

too
cp "FOLDER"/$RK_YOCTO_MACHINE.conf build/conf/local.conf

and libmali will give a error

look at the message and you see foldername/../../    error got that file and place the space before the ../

and a quartz64-a dts for 5.10


Attached Files
.txt   rk3566-quartz64-a.txt (Size: 27.43 KB / Downloads: 166)
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  SOQuartz Getting a working build dl-m10 7 3,493 01-23-2023, 06:38 PM
Last Post: diederik
  PCIe not working on custom board (soquartz) dferrg 1 1,923 02-23-2022, 04:31 AM
Last Post: dferrg
  Debian Userland on top of existing Linux build? dieselnutjob 3 3,232 01-25-2022, 01:12 PM
Last Post: dieselnutjob

Forum Jump:


Users browsing this thread: 1 Guest(s)