forked from armbian/build
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MBa8MPxL: add basic files for TQ MBa8MPxL boards
- add imx8m familie - add MBa8MPxL and MBa8MPxL-RAS314 Boards (based on imx8m) Signed-off-by: Martin Schmiedel <[email protected]>
- Loading branch information
1 parent
8cd1a3d
commit d10e4b4
Showing
12 changed files
with
12,644 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# MBa8MPxL-RAS314 with TQMa8MPxL | ||
BOARD_NAME="TQ8MP-RAS314" | ||
BOARDFAMILY="imx8m" | ||
ATF_PLAT="imx8mp" | ||
ATF_UART_BASE="0x30a60000" | ||
BOOTCONFIG="tqma8mpxl_multi_mba8mp_ras314_defconfig" | ||
KERNEL_TARGET="current" | ||
DEFAULT_CONSOLE="serial" | ||
SERIALCON="ttymxc3" | ||
BOOT_FDT_FILE="freescale/imx8mp-tqma8mpql-mba8mp-ras314.dtb" | ||
BOARD_FIRMWARE_INSTALL="-full" | ||
PACKAGE_LIST_BOARD="gpiod python3-pip python3-periphery" | ||
|
||
function post_family_tweaks_bsp__mba8mpxl-ras314() { | ||
|
||
mkdir -p $destination/etc/udev/rules.d | ||
cat <<- EOF > "$destination"/etc/udev/70-periphery.rules | ||
# Allow group periphery to access devices | ||
SUBSYSTEM=="gpio*", GROUP="periphery", MODE="0660" | ||
SUBSYSTEM=="spidev*", GROUP="periphery", MODE="0660" | ||
SUBSYSTEM=="pwm*", GROUP="periphery", MODE="0660" | ||
SUBSYSTEM=="leds*", GROUP="periphery", MODE="0660" | ||
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 | ||
} | ||
|
||
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# MBa8MPxL with TQMa8MPxL | ||
BOARD_NAME="MBa8MPxL" | ||
BOARDFAMILY="imx8m" | ||
ATF_PLAT="imx8mp" | ||
ATF_UART_BASE="0x30a60000" | ||
BOOTCONFIG="tqma8mpxl_multi_mba8mpxl_defconfig" | ||
KERNEL_TARGET="current" | ||
DEFAULT_CONSOLE="serial" | ||
SERIALCON="ttymxc3" | ||
BOOT_FDT_FILE="freescale/imx8mp-tqma8mpql-mba8mpxl.dtb" | ||
PACKAGE_LIST_BOARD="gpiod python3-pip python3-periphery" | ||
|
||
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 | ||
} |
Oops, something went wrong.