* Add BOARD_VENDOR to board configs * Add BOARD_VENDOR to all board configuration files - Added BOARD_VENDOR variable to board configuration files - Using lowercase vendor slugs (e.g., friendlyelec, radxa, xunlong) - Set 'generic' for boards without clear vendor match - TV box files (.tvb) excluded as they have no clear vendor - Enables better board categorization and vendor-specific handling * Manual adjustements on top of AI matching * Drop doubled definition and add retroid vendor
54 lines
1.9 KiB
Plaintext
54 lines
1.9 KiB
Plaintext
# MBa8MP-RAS314 with TQMa8MPxL
|
|
BOARD_NAME="MBa8MP-RAS314"
|
|
BOARD_VENDOR="tqgroup"
|
|
BOARDFAMILY="imx8m"
|
|
BOARD_MAINTAINER="schmiedelm"
|
|
HAS_VIDEO_OUTPUT="yes"
|
|
ATF_PLAT="imx8mp"
|
|
ATF_UART_BASE="0x30a60000"
|
|
BOOTCONFIG="tqma8mpxl_multi_mba8mp_ras314_defconfig"
|
|
KERNEL_TARGET="current"
|
|
MODULES_BLACKLIST="btnxpuart" # would be loaded delayed by udev rule
|
|
DEFAULT_CONSOLE="serial"
|
|
SERIALCON="ttymxc3"
|
|
BOOT_FDT_FILE="freescale/imx8mp-tqma8mpql-mba8mp-ras314.dtb"
|
|
ASOUND_STATE="asound.state.tqma"
|
|
|
|
function post_family_tweaks_bsp__mba8mpxl-ras314() {
|
|
|
|
# Wifi & Bluetooth (use firmware from NXP)
|
|
curl -fLOJ https://github.com/nxp-imx/imx-firmware/raw/lf-6.6.3_1.0.0/nxp/FwImage_8997/pcieuart8997_combo_v4.bin || {
|
|
echo "download of pcieuart8997_combo_v4.bin failed"
|
|
rm -f pcieuart8997_combo_v4.bin
|
|
exit 1
|
|
}
|
|
run_host_command_logged mkdir -pv --mode=755 "$destination/lib/firmware/" || exit_with_error "Unable to mkdir firmware"
|
|
run_host_command_logged mkdir -v --mode=775 "$destination/lib/firmware/mrvl/" || exit_with_error "Unable to mkdir mrvl"
|
|
run_host_command_logged mv -v "pcieuart8997_combo_v4.bin" "$destination/lib/firmware/mrvl/" || exit_with_error "Unable to copy mrvl firmware"
|
|
|
|
# Add udev rule to delay btnxpuart loading
|
|
cat <<- NXP_UDEV_RULE > "${destination}"/etc/udev/rules.d/10-nxp-bluetooth-delay.rules
|
|
# wait until combo FW is loaded by wifi driver
|
|
KERNEL=="mlan*", ACTION=="add", RUN+="/sbin/modprobe btnxpuart"
|
|
NXP_UDEV_RULE
|
|
|
|
# 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
|
|
|
|
}
|