BUILD CUSTOM SDK
#11
(03-07-2022, 04:59 PM)dieselnutjob Wrote: Have I understood correctly that with your 4.19 the MIPI-DSI LCD panel will work, but with your 5.10 it won't ?
I understand why everyone says just to use mainline, but for an LCD panel it doesn't yet work (though I think that they are getting near).

it is just a rk 4.19 nothing realy special maybey a few versions higher as on your original tablet firmware
you know it all comes to the dts i disabled dsi-mipi in my dts because i dont use it .
for now you could be a little more lucky with a downstream kernel like this kernel for your tablet to get display output .

just look what changed in the dts files of your dtb with recent dts files also dts files change a litte with build verions 4.19.219 has little changes from example .193

thought mipi0 got video0 but you will find out

the 5.10 you just forget

do you have a dtb or dts of your tablet i can throw it in a android 12 build Smile
  Reply
#12
added fix from x893

for dieselnutjob added camera and dsi back

updated buildroot and mpp

.repo/repo/repo init -u https://github.com/Shaggy013/manifests -b master -m rk356x_linux_custom_v1.2.8_20220309.xml

if you updating it remove buidroot , external/mpp and kernel folder
and do that the same
in project-objects and projects folders in .repo
and sync with the new xml

for new build just follow guide it is updated
  Reply
#13
Thanks @Shaggy13
need little fix
after
.repo/repo/repo sync --no-clone-bundle
but before
./build.sh quartz64-rk3566-buildroot-k4.mk
need
mkdir rockdev
  Reply
#14
(03-07-2022, 12:34 PM)x893 Wrote: Hi,
today i build images (i have SD only) for SOQuartz and Quartz64-A but not check in depth.
I add issue for io-domain.sh to your github repository.
May be helpful to everyone.
Later check images with hardware.
Yes, some mistakes presents in schematics - VCCIO5 for SOQuartz abd Quartz64.
May be you know about ability to use X88 Pro 20 (8Gb/64Gb) as hardware for Ubuntu (can't found schematics for X88 Pro :-( )?

Do you have a soquartz ? , cool would be nice if you can test that it is a rk356x Smile check for sure to check the dts file

a pinenote would be little trickier with the waveform img of diffrent panels .!!

for the x88 you have to extract the dtb of the device or firmware and convert it to a dts it is little time consuming but possible
proberly it is based on the rk3566_box_v10 dts
shematics would be handy but with opening the box and take good pictures of the pcb will get a good impression of the hardware used
wifi is same ap6255
cant see the pmic if there is one ?
for example the pmic a rk817 or a rk809
and a uart console to see what uboot and kernel does

you could try to use the dtb of your device with a image with a 4.19 kernel like the one from mara
https://dl.slarm64.org/slackware/images/quartz64/
or without a dtb and mainline
https://github.com/warpme/minimyth2/blob...6-x6.patch

here look how someone did it with a pinenote
https://github.com/DorianRudolph/pinenotes
or to convert it to a dts
https://github.com/Ralim/hacking-pinenot...deviceTree
  Reply
#15
The quartz64-a has DSI port and it works with Android.
The pine64 Android image appears to use rk3566-rk817-tablet.dtb and in the boot logs is listed as "Machine model: Rockchip RK3566 RK817 TABLET LP4X Board"
I guess that the Quartz64-a must be quite close to that Rockchip eval tablet board.
The kernel in the Android image is 4.19.172
  Reply
#16
(03-10-2022, 09:41 AM)dieselnutjob Wrote: The quartz64-a has DSI port and it works with Android.
The pine64 Android image appears to use rk3566-rk817-tablet.dtb and in the boot logs is listed as "Machine model: Rockchip RK3566 RK817 TABLET LP4X Board"
I guess that the Quartz64-a must be quite close to that Rockchip eval tablet board.
The kernel in the Android image is 4.19.172

it is just how you configure it dsi , edp ,lvds ,hdmi

the dtb is just changed a little to work on a quartz64 in the ebook andoid kernel folder you can find that patch

rk has .154
ebook has .172
most common is the .193 and some .206

i added dsi in the quartz64.dts you would only have to enable it
for edp or lvds would need other configuration
  Reply
#17
Hello,
i try enable spi1 in rk3568.dtsi (Quartz64 board) change only

status = "okay";

and receive next error

[root@RK356X:/]# dmesg|grep spi
[ 1.067593] rockchip-pinctrl pinctrl: pin gpio2-14 already requested by fe650000.serial; cannot claim for fe620000.spi
[ 1.067639] rockchip-pinctrl pinctrl: pin-78 (fe620000.spi) status -22
[ 1.067659] rockchip-pinctrl pinctrl: could not request pin 78 (gpio2-14) from group spi1m0-pins on device rockchip-pinctrl
[ 1.067675] rockchip-spi fe620000.spi: Error applying setting, reverse things back
[ 1.067721] rockchip-spi: probe of fe620000.spi failed with error -22

Can anybody help me to resolve ?
Thanks in advance
  Reply
#18
(03-10-2022, 04:01 PM)x893 Wrote: Hello,
i try enable spi1 in rk3568.dtsi (Quartz64 board) change only

status = "okay";

and receive next error

[root@RK356X:/]# dmesg|grep spi
[    1.067593] rockchip-pinctrl pinctrl: pin gpio2-14 already requested by fe650000.serial; cannot claim for fe620000.spi
[    1.067639] rockchip-pinctrl pinctrl: pin-78 (fe620000.spi) status -22
[    1.067659] rockchip-pinctrl pinctrl: could not request pin 78 (gpio2-14) from group spi1m0-pins  on device rockchip-pinctrl
[    1.067675] rockchip-spi fe620000.spi: Error applying setting, reverse things back
[    1.067721] rockchip-spi: probe of fe620000.spi failed with error -22

Can anybody help me to resolve ?
Thanks in advance
yeah why would you enable spi in 3568.dtsi ???

did you check the quartz dts file for sfc !?
  Reply
#19
(03-10-2022, 03:44 AM)x893 Wrote: Thanks @Shaggy13
need little fix
after
.repo/repo/repo sync --no-clone-bundle
but before
./build.sh quartz64-rk3566-buildroot-k4.mk
need
mkdir rockdev

?

why rockdev is just a output dir wich get generated
  Reply
#20
Thank you for this. It makes things much more straightforward.

Is there a chance you could write a similar guide how to build a custom Android image?


Also, if we are cloning the entire sdk with repo tool does this mean the 35GB Linux BSP/SDK file is essentially useless/outdated?


Also, it failed on my Ubuntu 20.04 with:

Code:
Running build_uboot succeeded.
Skipping build_loader for missing configs:  RK_LOADER_BUILD_TARGET.
============Start building kernel============
TARGET_ARCH          =arm64
TARGET_KERNEL_CONFIG =Quartz64_defconfig
TARGET_KERNEL_DTS    =rk3566-quartz64-a
TARGET_KERNEL_CONFIG_FRAGMENT =
==========================================
/home/luk/dev/Quartz64
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  YACC    scripts/kconfig/zconf.tab.c
  LEX     scripts/kconfig/zconf.lex.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
***
*** Can't find default configuration "arch/arm64/configs/Quartz64_defconfig"!
***
make[1]: *** [scripts/kconfig/Makefile:104: Quartz64_defconfig] Error 1
make: *** [Makefile:578: Quartz64_defconfig] Error 2
ERROR: Running build_kernel failed!
ERROR: exit code 2 from line 724:
    make ARCH=$RK_ARCH $RK_KERNEL_DEFCONFIG $RK_KERNEL_DEFCONFIG_FRAGMENT
Does anyone know how to proceed? I searched for Quartz_defconfig, but it is not in any subdirs.

Edit: I can answer my own question for anyone having the same issue.

It seems the file: 
Code:
device/rockchip/rk356x/pine64-rk3566-ubuntu.mk
Has this line:
Code:
export RK_KERNEL_DEFCONFIG=Quartz64_defconfig
it needs to be changed to this:
Code:
export RK_KERNEL_DEFCONFIG=Quartz64_linux_defconfig

Then it proceeds with kernel build.
  Reply


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

Forum Jump:


Users browsing this thread: 1 Guest(s)