Open fryc88 opened 1 year ago
Just a quick update, yesterday I've flashed your precompiled firmware for MKS PI board and that's what are my findings, so I'm assuming something's missing or not turned on. I've compared original config file and yours, added some bits and bobs to yours according to differences, that added me touchscreen, but:
Any ideas with above how to hopefully get it sorted? I know prebuilt MKS image works with screen, but it does not work with RTL8723BS wifi, and also i couldnt find headers to compile&add USB wifi driver...
Hi @fryc88 First of all, please note that this repo is fork of armbian but not a mks repo. Technically this means you may use tools, docs and tutorial for armbian but should not expect that that something from MKS repo(s) will work here. Why? Short answer is they (MKS team) do not share real sources ofr their configs, modules etc. And even if their buils names itself as "armbian" and some wifi card works here, it does not mean that similar build and official kernel module will work (they love to do closed sorce customizations and name them using officially open source names). Which also means that (available) schematic, bit reverse engineering and lot of tries-and-fails as the best friends in your task.
Hints for a few points from your questions:
About no video via HDMI-A-0 output, as mentioned
2.1 Please not that the build is use default HDMI drivers. If you need special modes, modules or any other kernel adjustment, you have to add them to kernel patches and build your custome image. And pay attention to DTS. Hint: this board pretends by Rocksimp Renegade board. So you may compare theirs schematic to e.g. verify pinouts and adjust DTS.
2.2 The both images (MKS and "my" custom one) has a "only one screen" behavior. Means when system detected SPI display connected, then HDMI is disabled. And viceverce, when system was booted with HDMI monitor on, then SPI display and touchscreen are not working. Seems detection happened during boot time. And perhaps this is default configuration of xserver, but not hardware limitation (I do not belive there are any hardware solution which switches between SPI and HDMI videos)
2.3. My image use standart kernel drivers for HDMI, [ilitek,st7796 ][https://github.com/redrathnure/armbian-mkspi/blob/644cb389bca66dc2229ac09df4881a9b34959777/userpatches/kernel/rockchip64-edge/zz-mkspi-kernel-rockchip64-edge.patch#L176] SPI screens and custom ti,tsc2046 module for touch screen. If you have different LCD or/and touchscreen or/and HDMI ports, you should find right drivers/modules and adjust DTS for the board. Sometimes insperation may came from boards with similar hardware but with true open sourced OS :)
2.4. pretty much the same as original IPS50 screen
please note "original" is MKSPI-TS32 (LCD works fine with ilitek,st7796 module, but tsc2046-like touch need custome kernel driver). Also pay attention to schematic and pins
also after playing with config files I've got screens backlight on, but still no video.
I would recommend to double check pins and DTS for the board. And double check that LED chips are the same. Otherwise try to use [different kernel module ][https://github.com/redrathnure/armbian-mkspi/blob/644cb389bca66dc2229ac09df4881a9b34959777/userpatches/kernel/rockchip64-edge/zz-mkspi-kernel-rockchip64-edge.patch#L176].
touchscreen is working fine after moving configs from original old armbian to your build, events can be seen in event monitor
You may decode DTS files from original and custom images and compare them. Pay attention to pins and related configuration
can't still get built in wifi to work, RTL8723BS (i think)
I would recomend to check schematic, DTS and loaded kernels in original repo. However it's always bit challenging to make relatively fresh WIFI chips works propertly. Also you may look to better supported bords if they have similar WIFI.
Display rotation is not working on klipad50 :(
First: Thanks for your work Maxim!
I've got internal wifi working with your images on the klipad50 by replacing the devicetree file with the version, that came with Sovol's original 5.16 kernel. It will lack the spi-dev, but that can be re-enabled with a patch.
The change (and original dtb source) can be found here: https://netztorte.de/3d/doku.php?id=rk3328-roc-cc_dts#wifipatch
There is a compiled version of the dtb at the bottom of this page: https://netztorte.de/3d/doku.php?id=rebuilding#internal_wifi (It also shows the required steps for setting up klipper on the klipad50 based on your image, with screen-rotation and enabled beeps).
I've tested the new .dtb successfully with following versions: 0.3.2-24.2.0-trunk: Armbian-unofficial_24.2.0-trunk_Mkspi_bookworm_current_6.1.76.img.xz 0.3.4-24.2.0-trunk: Armbian-unofficial_24.2.0-trunk_Mkspi_bookworm_current_6.6.17.img.xz 0.3.4-24.2.0-trunk: Armbian-unofficial_24.2.0-trunk_Mkspi_bookworm_edge_6.7.5.img.xz
First: Thanks for your work Maxim!
I've got internal wifi working with your images on the klipad50 by replacing the devicetree file with the version, that came with Sovol's original 5.16 kernel. It will lack the spi-dev, but that can be re-enabled with a patch.
The change (and original dtb source) can be found here: https://netztorte.de/3d/doku.php?id=rk3328-roc-cc_dts#wifipatch
There is a compiled version of the dtb at the bottom of this page: https://netztorte.de/3d/doku.php?id=rebuilding#internal_wifi (It also shows the required steps for setting up klipper on the klipad50 based on your image, with screen-rotation and enabled beeps).
I've tested the new .dtb successfully with following versions: 0.3.2-24.2.0-trunk: Armbian-unofficial_24.2.0-trunk_Mkspi_bookworm_current_6.1.76.img.xz 0.3.4-24.2.0-trunk: Armbian-unofficial_24.2.0-trunk_Mkspi_bookworm_current_6.6.17.img.xz 0.3.4-24.2.0-trunk: Armbian-unofficial_24.2.0-trunk_Mkspi_bookworm_edge_6.7.5.img.xz
Hi did you get it fully working in the end? I'm struggling with the Sovol Klipper Screen to get it up to date and gaining full control of it, and I was thinking of installing a clean OS but I am not skilled enough to compile, debug, etc... so I was wondering if you have a complete and fully working build to share
@MrTondy I am not sure you need to compile something here. It's easier than looks like. Basically you would need following steps:
Which feature would you like to have?
Hi, I'm struggling to install system on klipad50, that's MKS device, no commonly used yet. It's like combo of IPS50 touchscreen, MKS PI and RTL8723BS (if i'm reading it right) wifi card. I tried stock MKS PI system, but it won't run WiFi drivers, except of that everything else works, but there's no ethernet connection on it, so can't do it any other way. I also tried manually installing drivers at least for USB WiFi card that i've got, but it's asking for headers for 5.16.20 trunk version, that's doesn't seem to be downloadable anywhere, at least not via google, and because of above - no connection - I can't use apt. So I would like to try your system, but I can't find info how do I tell it to use these modules while compiling it? On your GIF in github there's one more step at end, to choose kernel settings, but that doesn't show in my case. Thanks in advance for any help.
Funding