Soquartz-cm4io emmc with usb host
#4
A good resource is https://elinux.org/Device_Tree_Usage

The device trees live in the Linux kernel tree in arch/arm64/boot/dts. The SOQuartz specific stuff is in arch/arm64/boot/dts/rockchip/rk3566-soquartz.dtsi. This file is included by arch/arm64/boot/dts/rockchip/rk3566-soquartz-cm4.dts which is the CM4 I/O board device tree for the SOQuartz.

You can build the device trees inside the Linux kernel tree with make dtbs (if you have a suitable .config, on Plebian you can grab a suitable config from /boot/config-*). This will produce a arch/arm64/boot/dts/rockchip/rk3566-soquartz-cm4.dtb (device tree blob). You'll need device-tree-compiler installed for this.

To then use it, at least on Plebian, you can drop a file in /etc/u-boot-menu/conf.d/ titled something like 99-customdtb.conf with the contents
Code:
U_BOOT_FDT="/path/to/your/dtb/file/here.dtb"
replacing the path with yours of course. Then run u-boot-update as root to regenerate the /boot/extlinux/extlinux.conf file.

On other distributions, you can likely edit the /boot/extlinux/extlinux.conf file directly (the FDT line specifically) to set a device tree, just make sure it's in a location that's accessible to u-boot (somewhere in /boot is usually a good idea if it's a separate partition)

Upstream kernel development for rockchip devices is done through the linux-rockchip mailing list. Commits need to be signed off (git commit -s), should be formatted with git format-patch and should be submitted with git send-email. A good way to know the prefix to use in a commit message is to run git log -- file you're changing here. There's plenty of documentation out there on how to submit patches, so I don't want to make this post too long explaining a process most people probably won't go through.

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


Messages In This Thread
Soquartz-cm4io emmc with usb host - by louisvinc - 02-12-2023, 12:20 PM
RE: Soquartz-cm4io emmc with usb host - by CounterPillow - 02-14-2023, 12:15 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  SOQuartz Model A baseboard Real-Time Clock stormwyrm 1 512 11-19-2023, 01:04 AM
Last Post: stormwyrm
  SOQuartz with Waveshare CM4 fan heatsink stormwyrm 1 461 11-18-2023, 01:35 PM
Last Post: stormwyrm
  SOQuartz BLADE 3D server rack screws agriffith2134 1 647 08-14-2023, 02:23 PM
Last Post: agriffith2134
  eMMC endurance O1ez 2 1,647 09-27-2022, 04:43 AM
Last Post: O1ez
  DeskPi Super6C CM4 board with the SOQuartz adamfowleruk 5 4,204 08-09-2022, 03:22 PM
Last Post: tizilogic
  SOQuartz ATX Baseboard nixcamic 0 1,558 02-05-2022, 11:55 PM
Last Post: nixcamic
  Lamenting the fact that only 2 lanes of LVDS are exposed on SOQuartz evankrall 0 1,443 12-13-2021, 01:07 PM
Last Post: evankrall

Forum Jump:


Users browsing this thread: 1 Guest(s)