Skip to contentSkip to conversation

configs/avenger96_defconfig: add support for Arrow Avenger96 board

PATCH New Peter Korsgaard 4 participants 9 messages Feb 7, 2021 Arm STM32

lore
Share & tools
lore
#0 lore raw

PATCH 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.

---
 DEVELOPERS                                    |  2 +
 .../overlay/boot/extlinux/extlinux.conf       |  4 ++
 board/arrow/avenger96/readme.txt              | 39 +++++++++++++++++++
 .../common/stm32mp157/post-image.sh           |  2 +
 configs/avenger96_defconfig                   | 33 ++++++++++++++++
 5 files changed, 80 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 +39 -0
new file mode 100644
index 0000000000..b99361a7e0
@@ -0,0 +1,39 @@
+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
+=============================
+
+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 slow
+
+ (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.
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 1/1 configs/avenger96_defconfig: add support for Arrow Avenger96 board

Hi Peter,

board/arrow/avenger96/readme.txt line 24

Quoted 9 lines · Peter Korsgaard
board/arrow/avenger96/readme.txt new file +9 -0
+How to write the microSD card
+=============================
+
+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

Maybe warn that this overwrites data on the SD card.

board/arrow/avenger96/readme.txt line 31

Quoted 7 lines
board/arrow/avenger96/readme.txt new file +7 -0
+
+Boot the board
+==============
+
+ (1) Configure the boot switches for boot from microsd: 1-0-1
+
+ (2) Insert the microSD card in the slow

Slot?

baruch

Signature · 3 lines
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
#2 lore raw

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

On 2021-02-07 18:09 +0200, Baruch Siach spake thusly:

Quoted 3 lines · Peter Korsgaard
Quoted 1 line

+ $ sudo dd if=output/images/sdcard.img of=/dev/sdX

Maybe warn that this overwrites data on the SD card.

As far as I could see, we don't do that in any of the 72 readme.txt we already have...

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#3 lore raw

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

Hi Yann,

Quoted 7 lines · Yann E. MORIN

On 2021-02-07 18:09 +0200, Baruch Siach spake thusly:

Quoted 3 lines · Peter Korsgaard
Quoted 1 line

+ $ sudo dd if=output/images/sdcard.img of=/dev/sdX

Maybe warn that this overwrites data on the SD card.

As far as I could see, we don't do that in any of the 72 readme.txt we already have...

$ git grep WARNING -- board/
...
board/chromebook/elm/readme.txt:WARNING: make sure there is nothing important on that card,
board/chromebook/snow/readme.txt:WARNING: make sure there is nothing important on that card,
board/engicam/geam6ul/readme.txt:*** WARNING! This will destroy all the card content. Use with care! ***
board/engicam/icorem6/readme.txt:*** WARNING! This will destroy all the card content. Use with care! ***
board/engicam/icorem6_rqs/readme.txt:*** WARNING! This will destroy all the card content. Use with care! ***
board/engicam/isiot/readme.txt:*** WARNING! This will destroy all the card content. Use with care! ***
board/freescale/imx23evk/readme.txt:*** WARNING! The command will destroy all the card content. Use with care! ***
board/freescale/imx25pdk/readme.txt:*** WARNING! This will destroy all the card content. Use with care! ***
board/freescale/imx28evk/readme.txt:*** WARNING! The command will destroy all the card content. Use with care! ***
board/freescale/imx51evk/readme.txt:*** WARNING! This will destroy all the card content. Use with care! ***
board/freescale/imx6-sabresd/readme.txt:*** WARNING! This will destroy all the card content. Use with care! ***
board/freescale/imx6sabre/readme.txt:*** WARNING! The script will destroy all the card content. Use with care! ***
board/freescale/imx6ulevk/readme.txt:*** WARNING! This will destroy all the card content. Use with care! ***
board/freescale/imx6ullevk/readme.txt:*** WARNING! This will destroy all the card content. Use with care! ***
board/freescale/imx7dsdb/readme.txt:*** WARNING! This will destroy all the card content. Use with care! ***
board/freescale/imx8mmevk/readme.txt:*** WARNING! This will destroy all the card content. Use with care! ***
board/freescale/imx8mnevk/readme.txt:*** WARNING! This will destroy all the card content. Use with care! ***
board/freescale/imx8mqevk/readme.txt:*** WARNING! This will destroy all the card content. Use with care! ***
board/freescale/imx8qmmek/readme.txt:*** WARNING! This will destroy all the card content. Use with care! ***
board/freescale/imx8qxpmek/readme.txt:*** WARNING! This will destroy all the card content. Use with care! ***
board/freescale/warpboard/README:*** WARNING! This will destroy all the eMMC content. Use it with care! ***
board/grinn/chiliboard/readme.txt:*** WARNING! This will destroy all contents of device you specify! ***
board/grinn/liteboard/readme.txt:*** WARNING! This will destroy all contents of device you specify! ***
board/olimex/imx233_olinuxino/readme.txt:*** WARNING! The command will destroy all the card content. Use with care! ***
board/qmtech/zynq/readme.txt:*** WARNING! This will destroy all the card content. Use with care! ***
board/solidrun/clearfog/readme.txt:*** WARNING! The dd command will destroy all the card content. Use with care! ***
board/technexion/imx6ulpico/readme.txt:*** WARNING! This will destroy all the card content. Use with care! ***
board/technexion/imx7dpico/readme.txt:*** WARNING! This will destroy all the eMMC content. Use with care! ***
board/technexion/imx8mmpico/readme.txt:*** WARNING! This will destroy all the eMMC content. Use with care! ***
board/technexion/imx8mpico/readme.txt:*** WARNING! This will destroy all the eMMC content. Use with care! ***
board/warp7/readme.txt:*** WARNING! This will destroy all the eMMC content. Use it with care! ***
board/zynqmp/readme.txt:WARNING! This will destroy all the card content. Use with care!

baruch

Signature · 3 lines
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
#4 lore raw

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

Hi all,

Quoted 44 lines · Baruch Siach

Hi Yann,

Quoted 6 lines · Yann E. MORIN

On 2021-02-07 18:09 +0200, Baruch Siach spake thusly:

Quoted 3 lines · Peter Korsgaard
Quoted 1 line

+ $ sudo dd if=output/images/sdcard.img of=/dev/sdX

Maybe warn that this overwrites data on the SD card.

As far as I could see, we don't do that in any of the 72 readme.txt we already have...

$ git grep WARNING -- board/
...
board/chromebook/elm/readme.txt:WARNING: make sure there is nothing important on that card,
board/chromebook/snow/readme.txt:WARNING: make sure there is nothing important on that card,
board/engicam/geam6ul/readme.txt:*** WARNING! This will destroy all the card content. Use with care! ***
board/engicam/icorem6/readme.txt:*** WARNING! This will destroy all the card content. Use with care! ***
board/engicam/icorem6_rqs/readme.txt:*** WARNING! This will destroy all the card content. Use with care! ***
board/engicam/isiot/readme.txt:*** WARNING! This will destroy all the card content. Use with care! ***
board/freescale/imx23evk/readme.txt:*** WARNING! The command will destroy all the card content. Use with care! ***
board/freescale/imx25pdk/readme.txt:*** WARNING! This will destroy all the card content. Use with care! ***
board/freescale/imx28evk/readme.txt:*** WARNING! The command will destroy all the card content. Use with care! ***
board/freescale/imx51evk/readme.txt:*** WARNING! This will destroy all the card content. Use with care! ***
board/freescale/imx6-sabresd/readme.txt:*** WARNING! This will destroy all the card content. Use with care! ***
board/freescale/imx6sabre/readme.txt:*** WARNING! The script will destroy all the card content. Use with care! ***
board/freescale/imx6ulevk/readme.txt:*** WARNING! This will destroy all the card content. Use with care! ***
board/freescale/imx6ullevk/readme.txt:*** WARNING! This will destroy all the card content. Use with care! ***
board/freescale/imx7dsdb/readme.txt:*** WARNING! This will destroy all the card content. Use with care! ***
board/freescale/imx8mmevk/readme.txt:*** WARNING! This will destroy all the card content. Use with care! ***
board/freescale/imx8mnevk/readme.txt:*** WARNING! This will destroy all the card content. Use with care! ***
board/freescale/imx8mqevk/readme.txt:*** WARNING! This will destroy all the card content. Use with care! ***
board/freescale/imx8qmmek/readme.txt:*** WARNING! This will destroy all the card content. Use with care! ***
board/freescale/imx8qxpmek/readme.txt:*** WARNING! This will destroy all the card content. Use with care! ***
board/freescale/warpboard/README:*** WARNING! This will destroy all the eMMC content. Use it with care! ***
board/grinn/chiliboard/readme.txt:*** WARNING! This will destroy all contents of device you specify! ***
board/grinn/liteboard/readme.txt:*** WARNING! This will destroy all contents of device you specify! ***
board/olimex/imx233_olinuxino/readme.txt:*** WARNING! The command will destroy all the card content. Use with care! ***
board/qmtech/zynq/readme.txt:*** WARNING! This will destroy all the card content. Use with care! ***
board/solidrun/clearfog/readme.txt:*** WARNING! The dd command will destroy all the card content. Use with care! ***
board/technexion/imx6ulpico/readme.txt:*** WARNING! This will destroy all the card content. Use with care! ***
board/technexion/imx7dpico/readme.txt:*** WARNING! This will destroy all the eMMC content. Use with care! ***
board/technexion/imx8mmpico/readme.txt:*** WARNING! This will destroy all the eMMC content. Use with care! ***
board/technexion/imx8mpico/readme.txt:*** WARNING! This will destroy all the eMMC content. Use with care! ***
board/warp7/readme.txt:*** WARNING! This will destroy all the eMMC content. Use it with care! ***
board/zynqmp/readme.txt:WARNING! This will destroy all the card content. Use with care!
Quoted 2 lines

baruch

Is not that obvious that dd will overwrite the data? Imo it's superfluous information at all.

Best
Bartek

#5 lore raw

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

Hi Bartosz,

Quoted 15 lines · Bartosz Bilas
Quoted 5 lines · Baruch Siach
Quoted 4 lines · Yann E. MORIN

On 2021-02-07 18:09 +0200, Baruch Siach spake thusly:

Quoted 3 lines · Peter Korsgaard
Quoted 1 line

+ $ sudo dd if=output/images/sdcard.img of=/dev/sdX

Maybe warn that this overwrites data on the SD card.

Quoted 9 lines
Quoted 2 lines

As far as I could see, we don't do that in any of the 72 readme.txt we already have...

$ git grep WARNING -- board/
...
board/chromebook/elm/readme.txt:WARNING: make sure there is nothing important on that card,
board/chromebook/snow/readme.txt:WARNING: make sure there is nothing important on that card,
board/engicam/geam6ul/readme.txt:*** WARNING! This will destroy all the card content. Use with care! ***
...
Quoted 2 lines

Is not that obvious that dd will overwrite the data? Imo it's superfluous information at all.

It might be obvious to you. Many newcomers don't know what dd is, or how filesystem works. A warning can't hurt.

baruch

Signature · 3 lines
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
#6 lore raw

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

On 2021-02-07 22:09 +0200, Baruch Siach spake thusly:

Quoted 16 lines

Hi Bartosz,

Quoted 13 lines · Bartosz Bilas
Quoted 12 lines · Baruch Siach
Quoted 6 lines · Yann E. MORIN

On 2021-02-07 18:09 +0200, Baruch Siach spake thusly:

Quoted 3 lines · Peter Korsgaard
Quoted 1 line

+ $ sudo dd if=output/images/sdcard.img of=/dev/sdX

Maybe warn that this overwrites data on the SD card.

As far as I could see, we don't do that in any of the 72 readme.txt we already have...

$ git grep WARNING -- board/
...
board/chromebook/elm/readme.txt:WARNING: make sure there is nothing important on that card,
board/chromebook/snow/readme.txt:WARNING: make sure there is nothing important on that card,
board/engicam/geam6ul/readme.txt:*** WARNING! This will destroy all the card content. Use with care! ***

[--SNIP--]

OK, that's for sure not a small list, indeed...

I just had a look at a few readmes, and it seems my sampling was not that fortunate:

board/acmesystems/aria-g25/readme.txt
board/acmesystems/arietta-g25/readme.txt
board/amarula/vyasa/readme.txt
board/asus/tinker/readme.txt
board/csky/readme.txt
board/orangepi/orangepi-plus/readme.txt
board/raspberrypi/readme.txt
board/warp7/readme.txt

And surely, we do not have that warning in all the readmes we have a "sudo dd":

    $ git grep 'sudo dd ' |wc -l
    72
Quoted 4 lines
Quoted 2 lines

Is not that obvious that dd will overwrite the data? Imo it's superfluous information at all.

It might be obvious to you. Many newcomers don't know what dd is, or how filesystem works. A warning can't hurt.

I too believe that such a warning is superfluous. Working with things like Buildroot really requires a bit of preliminary knowledge; we can't take everyone by the hand and we should probably require quite some prerequisites...

Yeah, the might sound haughty or elitist, but we have to draw the line somewhere, and I believe usage of 'dd' and its consequences are below that line...

Regards,
Yann E. MORIN.

Quoted 7 lines

baruch

Signature · 3 lines
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#7 lore raw

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

In reply to Baruch Siach
Quoted 19 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Baruch" == Baruch Siach <[email protected]> writes:

Hi Bartosz,

Quoted 15 lines · Bartosz Bilas
Quoted 14 lines · Baruch Siach
Quoted 6 lines · Yann E. MORIN

On 2021-02-07 18:09 +0200, Baruch Siach spake thusly:

Quoted 3 lines · Peter Korsgaard

+ $ sudo dd if=output/images/sdcard.img of=/dev/sdX Maybe warn that this overwrites data on the SD card.

As far as I could see, we don't do that in any of the 72 readme.txt we already have...

$ git grep WARNING -- board/
...
board/chromebook/elm/readme.txt:WARNING: make sure there is nothing important on that card,
board/chromebook/snow/readme.txt:WARNING: make sure there is nothing important on that card,
board/engicam/geam6ul/readme.txt:*** WARNING! This will destroy all the card content. Use with care! ***
...
Quoted 5 lines
Quoted 2 lines

Is not that obvious that dd will overwrite the data? Imo it's superfluous information at all.

It might be obvious to you. Many newcomers don't know what dd is, or how filesystem works. A warning can't hurt.

Indeed. I don't have a problem adding a oneliner warning. It doesn't hurt, and it might indeed help stop someone from losing data.

Signature · 1 line
Bye, Peter Korsgaard
#8 lore raw

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

In reply to Baruch Siach
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Baruch" == Baruch Siach <[email protected]> writes:

Hi Peter,
On Sun, Feb 07 2021, Peter Korsgaard wrote:

Quoted 11 lines

board/arrow/avenger96/readme.txt line 24

Quoted 9 lines
board/arrow/avenger96/readme.txt new file +9 -0
+How to write the microSD card
+=============================
+
+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

Maybe warn that this overwrites data on the SD card.

Sure, I can add this. Notice that this is a direct cut'n'paste of board/stmicroelectronics/stm32mp157c-dk2/readme.txt

Quoted 9 lines

board/arrow/avenger96/readme.txt line 31

Quoted 7 lines
board/arrow/avenger96/readme.txt new file +7 -0
+
+Boot the board
+==============
+
+ (1) Configure the boot switches for boot from microsd: 1-0-1
+
+ (2) Insert the microSD card in the slow

Slot?

Ups, indeed - Will fix.

Signature · 1 line
Bye, Peter Korsgaard