Skip to contentSkip to conversation

configs/avenger96_defconfig: add support for Arrow Avenger96 board

PATCH Superseded Peter Korsgaard 1 participant 2 messages Feb 7, 2021 – Feb 8, 2021 Arm STM32

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 configs/avenger96_defconfig: add support for Arrow Avenger96 board

Very similar to the other stm32mp157-based boards, except that we use the multi_v7 defconfig for ease of maintenance.

---
Changes since v1:
- Fix slow/slot/ typo in readme.txt
- Add warning about overwriting sd card content

 DEVELOPERS                                    |  2 +
 .../overlay/boot/extlinux/extlinux.conf       |  4 ++
 board/arrow/avenger96/readme.txt              | 41 +++++++++++++++++++
 .../common/stm32mp157/post-image.sh           |  2 +
 configs/avenger96_defconfig                   | 33 +++++++++++++++
 5 files changed, 82 insertions(+)
 create mode 100644 board/arrow/avenger96/overlay/boot/extlinux/extlinux.conf
 create mode 100644 board/arrow/avenger96/readme.txt
 create mode 100644 configs/avenger96_defconfig
DEVELOPERS +2 -0
index d2d94102b0..361ee2f35a 100644
@@ -2026,6 +2026,7 @@ N:	Pedro Aguilar <[email protected]>
 F:	package/libunistring/
 
 N:	Peter Korsgaard <[email protected]>
+F:	board/arrow/avenger96/
 F:	board/beagleboneai/
 F:	board/minnowboard/
 F:	board/librecomputer/lafrite/
@@ -2035,6 +2036,7 @@ F:	board/orangepi/
 F:	board/pandaboard/
 F:	board/roseapplepi/
 F:	boot/shim/
+F:	configs/avenger96_defconfig
 F:	configs/beagleboneai_defconfig
 F:	configs/lafrite_defconfig
 F:	configs/minnowboard_max-graphical_defconfig
board/arrow/avenger96/overlay/boot/extlinux/extlinux.conf new file +4 -0
new file mode 100644
index 0000000000..5d506b3dae
@@ -0,0 +1,4 @@
+label stm32mp157c-dk2-buildroot
+  kernel /boot/zImage
+  devicetree /boot/stm32mp157a-dhcor-avenger96.dtb
+  append root=/dev/mmcblk1p4 rootwait
board/arrow/avenger96/readme.txt new file +41 -0

41 lines not on this page · raw message

board/stmicroelectronics/common/stm32mp157/post-image.sh +2 -0
index eec3cb739d..363c3127cf 100755
@@ -14,6 +14,8 @@ atf_image()
 		echo "tf-a-stm32mp157c-dk2.stm32"
 	elif grep -Eq "DTB_FILE_NAME=stm32mp157a-dk1.dtb" <<< ${ATF_VARIABLES}; then
                 echo "tf-a-stm32mp157a-dk1.stm32"
+	elif grep -Eq "DTB_FILE_NAME=stm32mp157a-avenger96.dtb" <<< ${ATF_VARIABLES}; then
+                echo "tf-a-stm32mp157a-avenger96.stm32"
 	fi
 }
 
configs/avenger96_defconfig new file +33 -0
new file mode 100644
index 0000000000..6fea029bf8
@@ -0,0 +1,33 @@
+BR2_arm=y
+BR2_cortex_a7=y
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_8=y
+BR2_ROOTFS_OVERLAY="board/arrow/avenger96/overlay/"
+BR2_ROOTFS_POST_IMAGE_SCRIPT="board/stmicroelectronics/common/stm32mp157/post-image.sh"
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.8.13"
+BR2_LINUX_KERNEL_DEFCONFIG="multi_v7"
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="stm32mp157a-dhcor-avenger96"
+BR2_LINUX_KERNEL_INSTALL_TARGET=y
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_4=y
+BR2_TARGET_ROOTFS_EXT2_SIZE="120M"
+# BR2_TARGET_ROOTFS_TAR is not set
+BR2_TARGET_ARM_TRUSTED_FIRMWARE=y
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION=y
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION_VALUE="v2.2"
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="stm32mp1"
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_VARIABLES="STM32MP_SDMMC=1 AARCH32_SP=sp_min DTB_FILE_NAME=stm32mp157a-avenger96.dtb"
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_DEBUG=y
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_IMAGES="*.stm32"
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_NEEDS_DTC=y
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
+BR2_TARGET_UBOOT_CUSTOM_VERSION=y
+BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2020.07"
+BR2_TARGET_UBOOT_BOARD_DEFCONFIG="stm32mp15_trusted"
+# BR2_TARGET_UBOOT_FORMAT_BIN is not set
+BR2_TARGET_UBOOT_FORMAT_STM32=y
+BR2_TARGET_UBOOT_CUSTOM_MAKEOPTS="DEVICE_TREE=stm32mp15xx-dhcor-avenger96"
+BR2_PACKAGE_HOST_GENIMAGE=y
Signature · 1 line
2.20.1
#1 lore raw

PATCH v2 1/1 configs/avenger96_defconfig: add support for Arrow Avenger96 board

Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Peter" == Peter Korsgaard <[email protected]> writes:

Very similar to the other stm32mp157-based boards, except that we use the multi_v7 defconfig for ease of maintenance.

---
Changes since v1:
- Fix slow/slot/ typo in readme.txt
- Add warning about overwriting sd card content

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard