From cba2963b12d48a4d459ba875a65776f21fe59053 Mon Sep 17 00:00:00 2001 From: Martin Schmiedel Date: Thu, 23 Jan 2025 10:25:49 +0100 Subject: [PATCH] MBa8MPxL: cleanup board configs - remove unused group periphery - fix desktop related X11 settings - harmonize BOARD_NAME Signed-off-by: Martin Schmiedel --- config/boards/mba8mpxl-ras314.conf | 37 ++++++++++++++++-------------- config/boards/mba8mpxl.conf | 27 +++++++++++++++------- 2 files changed, 39 insertions(+), 25 deletions(-) diff --git a/config/boards/mba8mpxl-ras314.conf b/config/boards/mba8mpxl-ras314.conf index 530c40d4ad2a..c7fa29488676 100644 --- a/config/boards/mba8mpxl-ras314.conf +++ b/config/boards/mba8mpxl-ras314.conf @@ -1,5 +1,5 @@ -# MBa8MPxL-RAS314 with TQMa8MPxL -BOARD_NAME="TQ8MP-RAS314" +# MBa8MP-RAS314 with TQMa8MPxL +BOARD_NAME="MBa8MP-RAS314" BOARDFAMILY="imx8m" BOARD_MAINTAINER="schmiedelm" HAS_VIDEO_OUTPUT="yes" @@ -27,20 +27,23 @@ function post_family_tweaks_bsp__mba8mpxl-ras314() { KERNEL=="mlan*", ACTION=="add", RUN+="/sbin/modprobe btnxpuart" EOF - # Define a function to be run board-side during postinst of the BSP - display_alert "Adding to bsp-cli" "${BOARD}: postinst for periferial access" "info" - postinst_functions+=("board_side_imx8m_bsp_cli_postinst") # add to the postinst function list - function board_side_imx8mpxl_bsp_cli_postinst() { - # Peripheral access for specific groups - addgroup --system --quiet periphery - } + if [[ "${BUILD_DESKTOP}" == "yes" ]]; then + # fix X11 config + mkdir -p "$destination"/etc/X11/xorg.conf.d + cat <<- XORG_HDMI_CONF > "$destination"/etc/X11/xorg.conf.d/10-hdmi.conf + Section "Device" + Identifier "etnaviv" + Driver "modesetting" + Option "kmsdev" "/dev/dri/card1" + Option "AccelMethod" "none" ### "glamor" to enable 3D acceleration, "none" to disable. + Option "Atomic" "On" + EndSection + + Section "ServerFlags" + Option "AutoAddGPU" "false" + Option "DRI" "3" + EndSection + XORG_HDMI_CONF + fi - mkdir -p "$destination"/etc/X11/xorg.conf.d - cat <<- EOF > "$destination"/etc/X11/xorg.conf.d/02-driver.conf - Section "Device" - Identifier "main" - driver "fbdev" - Option "fbdev" "/dev/fb0" - EndSection - EOF } diff --git a/config/boards/mba8mpxl.conf b/config/boards/mba8mpxl.conf index e752074ff045..64a982424c23 100644 --- a/config/boards/mba8mpxl.conf +++ b/config/boards/mba8mpxl.conf @@ -13,12 +13,23 @@ BOOT_FDT_FILE="freescale/imx8mp-tqma8mpql-mba8mpxl.dtb" ASOUND_STATE="asound.state.tqma" function post_family_tweaks_bsp__mba8mpxl() { - mkdir -p "$destination"/etc/X11/xorg.conf.d - cat <<- EOF > "$destination"/etc/X11/xorg.conf.d/02-driver.conf - Section "Device" - Identifier "main" - driver "fbdev" - Option "fbdev" "/dev/fb0" - EndSection - EOF + + if [[ "${BUILD_DESKTOP}" == "yes" ]]; then + # fix X11 config + mkdir -p "$destination"/etc/X11/xorg.conf.d + cat <<- XORG_HDMI_CONF > "$destination"/etc/X11/xorg.conf.d/10-hdmi.conf + Section "Device" + Identifier "etnaviv" + Driver "modesetting" + Option "kmsdev" "/dev/dri/card1" + Option "AccelMethod" "none" ### "glamor" to enable 3D acceleration, "none" to disable. + Option "Atomic" "On" + EndSection + + Section "ServerFlags" + Option "AutoAddGPU" "false" + Option "DRI" "3" + EndSection + XORG_HDMI_CONF + fi }