Sure @le51. May be there is simpler way of doing that, if yes I would like to know.
I am also thinking about releasing prebuilt image with these changes. Here is what I did and the reasoning behind it.
-
kernel should have needed drivers/modules to run the hardware.
I am building armbian image using their builder. There I enable few modules.
CONFIG_DRM_PANEL_RADXA_DISPLAY_8HD=y
CONFIG_DRM_PANEL_JADARD_JD9365DA_H3=y
Why these modules? These where enabled in debian/ubuntu from Radxa where display is working. I have additional modules added but these two I added for monitor. After armbian builds image. If the default modules are enough please somebody fix my mistake. -
you need to tell the system that it has this hardware (screen/ may be camera) attached.
For attachable detachable hardware like screen, camera ,… dtoverlay (device tree overlay) is used.
- For radxa debian you add into /boot/config.txt the line dtoverlay=rock-5b-radxa-display-10hd as you can check from https://wiki.radxa.com/Rock5/accessories/radxa-display-10hd
- For armbian you add into /boot/armbianEnv.txt the line overlays=radxa-display-10hd. Note in the current distro another value is wrong and you need to change it, that shoul be overlay_prefix=rock-5b , by default the value was different and it was wrong. The reasoning here is like this. System joins values of these fields to generate a file name.
overlay_prefix+overlays => "rock-5b" + "radxa-display-10hd" => "rock-5b-radxa-display-10hd"
and tries to find that file inside directory /boot/dtb-5.10 bla bla/rockchip/overlay/ . You can navigate there and check yourself. After restart it should ideally work. Be careful it may not boot if something is wrong. In that case put your sd card into another computer, open the armbianEnv.txt and remove the overlays= line. I used this page as source https://docs.armbian.com/User-Guide_Allwinner_overlays/
If you want just the image that works for me I can upload it. Then you download and write it to sdcard.