configs/avenger96_defconfig: add support for Arrow Avenger96 board
authorPeter Korsgaard <peter@korsgaard.com>
Sun, 7 Feb 2021 21:52:27 +0000 (22:52 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 8 Feb 2021 15:25:00 +0000 (16:25 +0100)
Very similar to the other stm32mp157-based boards, except that we use the
multi_v7 defconfig for ease of maintenance.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
DEVELOPERS
board/arrow/avenger96/overlay/boot/extlinux/extlinux.conf [new file with mode: 0644]
board/arrow/avenger96/readme.txt [new file with mode: 0644]
board/stmicroelectronics/common/stm32mp157/post-image.sh
configs/avenger96_defconfig [new file with mode: 0644]

index d2d94102b063574ba6f2afb1634655a06a26fbea..361ee2f35af11a954b11bdd30949c2fc0b7dd455 100644 (file)
@@ -2026,6 +2026,7 @@ N:        Pedro Aguilar <paguilar@paguilar.org>
 F:     package/libunistring/
 
 N:     Peter Korsgaard <peter@korsgaard.com>
+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
diff --git a/board/arrow/avenger96/overlay/boot/extlinux/extlinux.conf b/board/arrow/avenger96/overlay/boot/extlinux/extlinux.conf
new file mode 100644 (file)
index 0000000..5d506b3
--- /dev/null
@@ -0,0 +1,4 @@
+label stm32mp157c-dk2-buildroot
+  kernel /boot/zImage
+  devicetree /boot/stm32mp157a-dhcor-avenger96.dtb
+  append root=/dev/mmcblk1p4 rootwait
diff --git a/board/arrow/avenger96/readme.txt b/board/arrow/avenger96/readme.txt
new file mode 100644 (file)
index 0000000..19ab09e
--- /dev/null
@@ -0,0 +1,41 @@
+Arrow Avenger96
+
+Intro
+=====
+
+This configuration supports the Arrow Avenger96 board:
+
+https://wiki.dh-electronics.com/index.php/Avenger96
+
+How to build
+============
+
+ $ make avenger96_defconfig
+ $ make
+
+How to write the microSD card
+=============================
+
+WARNING! This will destroy all the card content. Use with care!
+
+Once the build process is finished you will have an image called
+"sdcard.img" in the output/images/ directory.
+
+Copy the bootable "sdcard.img" onto an microSD card with "dd":
+
+  $ sudo dd if=output/images/sdcard.img of=/dev/sdX
+
+Boot the board
+==============
+
+ (1) Configure the boot switches for boot from microsd: 1-0-1
+
+ (2) Insert the microSD card in the slot
+
+ (3) Plug a serial adapter (beware: 1v8 levels!) to the low speed
+     expansion connector
+
+ (4) Plug in power cable
+
+ (5) The system will start, with the console on UART, but also visible
+     on the screen.
index eec3cb739d6949f42ea72d23df0471758a646767..363c3127cfc5ec26d72a6dac4b3b32b11f1d27bf 100755 (executable)
@@ -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
 }
 
diff --git a/configs/avenger96_defconfig b/configs/avenger96_defconfig
new file mode 100644 (file)
index 0000000..6fea029
--- /dev/null
@@ -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