PINE64
7" LCD - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: Quartz64 (https://forum.pine64.org/forumdisplay.php?fid=166)
+--- Forum: Quartz64 Hardware and Accessories (https://forum.pine64.org/forumdisplay.php?fid=169)
+--- Thread: 7" LCD (/showthread.php?tid=19752)



7" LCD - drock - 03-24-2025

I have been working to get the LCD working on Armbian using the notes here:

https://pine64.org/documentation/Quartz64/How-Tos/Connecting_a_MIPI-DSI_display/

I was able to make the dtbo file, but the command to update uboot, doesn't work and I can't find a package to install it it. Does anyone have any advice here?

small update. I think that the overlay I built is not compatible with armbian. @CounterPillow made it for mainline and I believe armbian is using BSP. I tried to build with DTC and get errors. I tried to boot a plebian image(older mainline built image), but I can't seem to get them to power up. Will follow up if I make any headway.


RE: 7" LCD - drock - 04-08-2025

Follow up, I was able to make this work!

For starters the easiest way to get the linux source is from github:
https://github.com/torvalds/linux

you can change to the version of the kernel you are running by clicking master, tag and then selecting the version you want. You can download the source as a zip here. You can also use the git command to pull the source.

You an probably just use the makefile, but I did it manually like this:

IDE=pine64-lcd-panel
SRC=$IDE.dts
TMP=$IDE.tmp.dts
DST=$IDE.dtbo

cpp -nostdinc -I linux-6.8/include -undef -x assembler-with-cpp $SRC > $TMP
dtc -O dtb -b 0 -o $DST $TMP
rm $TMP


You then need to edit:
/boot/armbianEnv.txt
add the line
overlay=pine64-lcd-panel

Armbian adds a prefix to overlays, you should see a line that says overlay_prefix=rockchip

You need to add the prefix to the file (rockchip-pine64-lcd-panel.dtbo) copy the file to:
/boot/dtb/rockchip/overlay/

restart and the screen should come up.

The UART debugger was helpful to see it trying to load the overlay and problems with the prefix/naming.

References
https://github.com/CounterPillow/overlay-examples
https://forum.armbian.com/topic/47793-overlays-do-not-apply-even-when-selected-in-armbian-config-and-then-rebooting/
https://stackoverflow.com/questions/28502757/imx6-device-tree-compilation-fatal-error-unable-to-parse-input-tree