Commit 41310ef
committed
desktops: enable panthor-gpu DT overlay on rk3588 vendor-kernel desktops
Ports armbian/build extensions/mesa-vpu.sh 'extension_prepare_config__3d'
into module_desktops install so the overlay is enabled at the
desktop-install layer rather than only at image-build time.
Mesa's panthor driver needs the panthor-gpu DT overlay to claim the
rk3588 Mali-G610 via the vendor kernel's kbase interface. Without the
overlay, GL / Vulkan / GBM run as llvmpipe software. build's
extensions/mesa-vpu.sh set the overlay by appending panthor-gpu to
DEFAULT_OVERLAYS at extension_prepare_config time. That covers
image-built desktops but not desktops installed on top of a minimal
image via armbian-config.
Add _module_desktops_add_3d_overlay to module_desktops.sh with the
same gating upstream has:
BOARDFAMILY in {rockchip-rk3588, rk35xx}
BRANCH == vendor
release not in {bookworm, bullseye, buster, focal, jammy}
tier != minimal
de not in {xfce, i3-wm} (X11-only, no GBM path)
All conditions match → delegate to the existing
module_devicetree_overlays install overlays=panthor-gpu. That module
already handles the atomic armbianEnv.txt rewrite, validates the
name against the discovered .dtbo set, keeps a .bak, and is
idempotent. No reimplementation needed.
BOARDFAMILY + BRANCH are trusted as already-sourced globals —
module_env_init.sh sources /etc/armbian-release at configng init
time, before any module_* function runs. armbian-base-files (which
ships the file) is installed before module_desktops on every build
path, so the file is present in the chroot during mode=build.
Call site: right after _module_desktops_configure_networking in the
install pipeline, so both build-mode and runtime installs converge
on the same overlay set that image-built desktops already have.1 parent 27eea9b commit 41310ef
1 file changed
Lines changed: 89 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
104 | 184 | | |
105 | 185 | | |
106 | 186 | | |
| |||
401 | 481 | | |
402 | 482 | | |
403 | 483 | | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
404 | 493 | | |
405 | 494 | | |
406 | 495 | | |
| |||
0 commit comments