Skip to contentSkip to conversation

configs/octavo_osd32mp1_brk: new defconfig

PATCH In review Kory Maincent 3 participants 5 messages Nov 30, 2021 – Mar 20, 2022 Arm STM32

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 configs/octavo_osd32mp1_brk: new defconfig

This patch adds support to Octavo Systems Brk board.

Very similar to the other stm32mp157-based boards. We use the TF-A, U-boot and Linux version from ST used by the Octavo constructor.

Reference:
https://octavosystems.com/octavo_products/osd32mp1-brk/

The device tree blobs come from Octavo System:
https://github.com/octavosystems/OSD32MP1-BRK-device-tree.git

The uboot patches come from Octavo System:
https://github.com/octavosystems/BRK_Developer_Package_patches/tree/master/u-boot-v2020.01-stm32mp

The kernel defconfig has been extracted from the prebuilt image.

Device tree and patch are licensed under BSD 2-Clause.

---

Changes in v2:
- Use the genimage.cfg from the board folder not a common octavo folder.
- Fix typos
- Use BR2_GLOBAL_PATCH_DIR
- Create proper U-boot patches with my signed-off
- Add readme.txt
- Use linux config and fragment config from the LINUX_DIR
- Update the defconfig to be more explicit

 DEVELOPERS                                    |    4 +
 board/octavo/osd32mp1-brk/genimage.cfg        |   23 +
 .../linux-dts/stm32mp157c-osd32mp1-brk.dts    | 1167 ++++++++
 .../overlay/boot/extlinux/extlinux.conf       |    4 +
 .../uboot/0001-osd32mp1-BRK-board-added.patch | 2349 +++++++++++++++++
 board/octavo/osd32mp1-brk/readme.txt          |   36 +
 .../osd32mp1-brk/tfa-dts/osd32mp1_ddr.dtsi    |  119 +
 .../tfa-dts/stm32mp157c-osd32mp1-brk.dts      |  581 ++++
 configs/octavo_osd32mp1_brk_defconfig         |   59 +
 9 files changed, 4342 insertions(+)
 create mode 100644 board/octavo/osd32mp1-brk/genimage.cfg
 create mode 100644 board/octavo/osd32mp1-brk/linux-dts/stm32mp157c-osd32mp1-brk.dts
 create mode 100644 board/octavo/osd32mp1-brk/overlay/boot/extlinux/extlinux.conf
 create mode 100644 board/octavo/osd32mp1-brk/patches/uboot/0001-osd32mp1-BRK-board-added.patch
 create mode 100644 board/octavo/osd32mp1-brk/readme.txt
 create mode 100644 board/octavo/osd32mp1-brk/tfa-dts/osd32mp1_ddr.dtsi
 create mode 100644 board/octavo/osd32mp1-brk/tfa-dts/stm32mp157c-osd32mp1-brk.dts
 create mode 100644 configs/octavo_osd32mp1_brk_defconfig
DEVELOPERS +4 -0
index b190c0f356..1c58486b3d 100644
@@ -1562,6 +1562,10 @@ N:	Koen Martens <[email protected]>
 F:	package/capnproto/
 F:	package/linuxconsoletools/
 
+N:	Kory Maincent <[email protected]>
+F:	board/octavo/osd32mp1-brk/
+F:	configs/octavo_osd32mp1_brk_defconfig
+
 N:	Kurt Van Dijck <[email protected]>
 F:	package/bcusdk/
 F:	package/libpthsem/
board/octavo/osd32mp1-brk/genimage.cfg new file +23 -0
new file mode 100644
index 0000000000..644fc3d922
@@ -0,0 +1,23 @@
+image sdcard.img {
+	hdimage {
+		gpt = "true"
+	}
+
+	partition fsbl1 {
+		image = "tf-a-stm32mp157c-osd32mp1-brk.stm32"
+	}
+
+	partition fsbl2 {
+		image = "tf-a-stm32mp157c-osd32mp1-brk.stm32"
+	}
+
+	partition ssbl {
+		image = "u-boot.stm32"
+		size = 2M
+	}
+
+	partition rootfs {
+		image = "rootfs.ext4"
+		bootable = "yes"
+	}
+}
board/octavo/osd32mp1-brk/linux-dts/stm32mp157c-osd32mp1-brk.dts new file +1167 -0

1,167 lines not on this page · raw message

board/octavo/osd32mp1-brk/overlay/boot/extlinux/extlinux.conf new file +4 -0
new file mode 100644
index 0000000000..a1ca2e58d6
@@ -0,0 +1,4 @@
+label osd32mp1-brk-buildroot
+  kernel /boot/zImage
+  devicetree /boot/stm32mp157c-osd32mp1-brk.dtb
+  append root=/dev/mmcblk0p4 rootwait
board/octavo/osd32mp1-brk/patches/uboot/0001-osd32mp1-BRK-board-added.patch new file +2349 -0

1,796 lines not on this page · raw message

board/octavo/osd32mp1-brk/readme.txt new file +36 -0
new file mode 100644
index 0000000000..a981f1e037

Lines of this file are not shown. View the raw message.

board/octavo/osd32mp1-brk/tfa-dts/osd32mp1_ddr.dtsi new file +119 -0

119 lines not on this page · raw message

board/octavo/osd32mp1-brk/tfa-dts/stm32mp157c-osd32mp1-brk.dts new file +581 -0

581 lines not on this page · raw message

configs/octavo_osd32mp1_brk_defconfig new file +59 -0

59 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 6 lines
2.25.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

Part of the diff is not shown here. View the raw message.

#1 lore raw

PATCH v2 2/2 configs/octavo_osd32mp1_red: new defconfig

This patch adds support to Octavo Systems Brk board.

Very similar to the other stm32mp157-based boards. We use the TF-A, U-boot and Linux version from ST selected by the Octavo constructor.

Reference:
https://octavosystems.com/octavo_products/osd32mp1-red/

The device tree blobs come from Octavo System:
https://github.com/octavosystems/OSD32MP1-RED-Device-tree.git

The uboot patches come from Octavo System:

    https://github.com/octavosystems/osd32mp1-build-tools/tree/master/patches/u-boot-2018.11

The kernel defconfig has been downloaded from Octavo System github.

Device tree and uboot patches are licensed under BSD 3-Clause.

---

Changes in v2:
- Use the genimage.cfg from the board folder not a common octavo folder.
- Fix typos
- Use BR2_GLOBAL_PATCH_DIR
- Create proper U-boot patches with my signed-off
- Add readme.txt
- Use linux config and fragment config from the LINUX_DIR
- Update the defconfig to be more explicit

 DEVELOPERS                                    |    2 +
 board/octavo/osd32mp1-red/genimage.cfg        |   23 +
 .../osd32mp1-red/linux-dts/osd32mp1-red.dts   | 1469 ++++++++++++
 .../linux-dts/stm32mp157c-osd32mp1-red.dtsi   | 2077 +++++++++++++++++
 .../overlay/boot/extlinux/extlinux.conf       |    4 +
 ...Add-OSD32MP1-RED-Device-Tree-support.patch | 1729 ++++++++++++++
 ...5_trusted_defconfig-disable-environm.patch |   32 +
 board/octavo/osd32mp1-red/readme.txt          |   37 +
 .../osd32mp1-red/tfa-dts/osd32mp1-red.dts     |  615 +++++
 ...m32mp15-osd32mp1-ddr3-1x4Gb-1066-binG.dtsi |  119 +
 configs/octavo_osd32mp1_red_defconfig         |   59 +
 11 files changed, 6166 insertions(+)
 create mode 100644 board/octavo/osd32mp1-red/genimage.cfg
 create mode 100644 board/octavo/osd32mp1-red/linux-dts/osd32mp1-red.dts
 create mode 100644 board/octavo/osd32mp1-red/linux-dts/stm32mp157c-osd32mp1-red.dtsi
 create mode 100644 board/octavo/osd32mp1-red/overlay/boot/extlinux/extlinux.conf
 create mode 100644 board/octavo/osd32mp1-red/patches/uboot/0001-Add-OSD32MP1-RED-Device-Tree-support.patch
 create mode 100644 board/octavo/osd32mp1-red/patches/uboot/0002-configs-stm32mp15_trusted_defconfig-disable-environm.patch
 create mode 100644 board/octavo/osd32mp1-red/readme.txt
 create mode 100644 board/octavo/osd32mp1-red/tfa-dts/osd32mp1-red.dts
 create mode 100644 board/octavo/osd32mp1-red/tfa-dts/stm32mp15-osd32mp1-ddr3-1x4Gb-1066-binG.dtsi
 create mode 100644 configs/octavo_osd32mp1_red_defconfig
DEVELOPERS +2 -0
index 1c58486b3d..defb887316 100644
@@ -1564,7 +1564,9 @@ F:	package/linuxconsoletools/
 
 N:	Kory Maincent <[email protected]>
 F:	board/octavo/osd32mp1-brk/
+F:	board/octavo/osd32mp1-red/
 F:	configs/octavo_osd32mp1_brk_defconfig
+F:	configs/octavo_osd32mp1_red_defconfig
 
 N:	Kurt Van Dijck <[email protected]>
 F:	package/bcusdk/
board/octavo/osd32mp1-red/genimage.cfg new file +23 -0
new file mode 100644
index 0000000000..0caad0b4b8
@@ -0,0 +1,23 @@
+image sdcard.img {
+	hdimage {
+		gpt = "true"
+	}
+
+	partition fsbl1 {
+		image = "tf-a-osd32mp1-red.stm32"
+	}
+
+	partition fsbl2 {
+		image = "tf-a-osd32mp1-red.stm32"
+	}
+
+	partition ssbl {
+		image = "u-boot.stm32"
+		size = 2M
+	}
+
+	partition rootfs {
+		image = "rootfs.ext4"
+		bootable = "yes"
+	}
+}
board/octavo/osd32mp1-red/linux-dts/osd32mp1-red.dts new file +1469 -0

1,469 lines not on this page · raw message

board/octavo/osd32mp1-red/linux-dts/stm32mp157c-osd32mp1-red.dtsi new file +2077 -0

1,499 lines not on this page · raw message

board/octavo/osd32mp1-red/overlay/boot/extlinux/extlinux.conf new file +4 -0
new file mode 100644
index 0000000000..c082c2462a

Lines of this file are not shown. View the raw message.

board/octavo/osd32mp1-red/patches/uboot/0001-Add-OSD32MP1-RED-Device-Tree-support.patch new file +1729 -0

1,729 lines not on this page · raw message

board/octavo/osd32mp1-red/patches/uboot/0002-configs-stm32mp15_trusted_defconfig-disable-environm.patch new file +32 -0
new file mode 100644
index 0000000000..cc43b80f21

Lines of this file are not shown. View the raw message.

board/octavo/osd32mp1-red/readme.txt new file +37 -0
new file mode 100644
index 0000000000..e087e38640

Lines of this file are not shown. View the raw message.

board/octavo/osd32mp1-red/tfa-dts/osd32mp1-red.dts new file +615 -0

615 lines not on this page · raw message

board/octavo/osd32mp1-red/tfa-dts/stm32mp15-osd32mp1-ddr3-1x4Gb-1066-binG.dtsi new file +119 -0

119 lines not on this page · raw message

configs/octavo_osd32mp1_red_defconfig new file +59 -0

59 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 6 lines
2.25.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

Part of the diff is not shown here. View the raw message.

#2 lore raw

Re: [Buildroot] [PATCH v2 2/2] configs/octavo_osd32mp1_red: new defconfig

Hi Kory,

On 30/11/21 11:39, Kory Maincent wrote:

[SNIP]

configs/octavo_osd32mp1_red_defconfig line 3

Quoted 9 lines
configs/octavo_osd32mp1_red_defconfig new file +3 -0
new file mode 100644
index 0000000000..1ff45429d2
@@ -0,0 +1,59 @@
+# architecture
+BR2_arm=y
+BR2_cortex_a7=y

as for patch [1/2] Here I think you should add:
BR2_ARM_FPU_NEON_VFPV4=y

This way, while building, you will have FPU that can use both VFPV4 and NEON. This can speed some package up.

Thank you
Best regards

Signature · 7 lines
Giulio Benetti
Benetti Engineering sas

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw
In reply to Kory Maincent

Hi Kory,

On 30/11/21 11:39, Kory Maincent wrote:
[SNIP]

configs/octavo_osd32mp1_brk_defconfig line 3

Quoted 9 lines
configs/octavo_osd32mp1_brk_defconfig new file +3 -0
new file mode 100644
index 0000000000..6b775282c0
@@ -0,0 +1,59 @@
+# architecture
+BR2_arm=y
+BR2_cortex_a7=y

Here I think you should add:
BR2_ARM_FPU_NEON_VFPV4=y

This way, while building, you will have FPU that can use both VFPV4 and NEON. This can speed some package up.

Thank you
Best regards

Signature · 7 lines
Giulio Benetti
Benetti Engineering sas

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#4 lore raw
In reply to Kory Maincent
Quoted 14 lines · On Tue, 30 Nov 2021 11:39:18 +0100 Kory Maincent <[email protected]>…

This patch adds support to Octavo Systems Brk board.

Very similar to the other stm32mp157-based boards. We use the TF-A, U-boot and Linux version from ST used by the Octavo constructor.

Reference:
https://octavosystems.com/octavo_products/osd32mp1-brk/

The device tree blobs come from Octavo System:
https://github.com/octavosystems/OSD32MP1-BRK-device-tree.git

The uboot patches come from Octavo System:
https://github.com/octavosystems/BRK_Developer_Package_patches/tree/master/u-boot-v2020.01-stm32mp

Quoted 6 lines

The kernel defconfig has been extracted from the prebuilt image.

Device tree and patch are licensed under BSD 2-Clause.

---

Both patches applied to the master branch, after rewording a bit the commit log. It seems like since your patch, Octavo has related an updated BSP, perhaps it is worth having a look and do an update?

Thanks!

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot