Skip to contentSkip to conversation

Add support for BSH smm s2 [pro] boards

PATCH In review Dario Binacchi 2 participants 5 messages Jan 16, 2023 – Jan 29, 2023 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

v9 cover Add support for BSH smm s2 [pro] boards

The series adds support to BSH smm s2 [pro] boards.

Changes in v9:
- Bump Linux kernel to version 6.1.6.
- Remove the Linux kernel patches because they have been merged into the used version.

Changes in v8:
- Rebase on master and fix conflicts on DEVELOPERS file.
- Set BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_19=y,

Changes in v7:
- Add Giulio Benetti Reviewed-by tag.
- Add Heiko Thiery Reviewed-by tag.

Changes in v6:
- Change offset in imx-boot partition of genimage.cfg from 33k to 32k.

Changes in v5:
- Update the commit description.
- Bump the kernel version to 5.19.7.
- Remove the 0003-Revert-Revert-mtd-rawnand-gpmi-Fix-setting-busy-time.patch patch.
- Regenerate all added patches (Linux kernel and U-boot) so that they contain the [PATCH] header without numbering.
- Add patchwork link to U-boot patch.

Changes in v4:
- Update the commit description.
- Bump the kernel version to 5.18.19.
- Shrink the Linux configuration.
- Add 3 dashes to the kernel patches to avoid having the version history to fall into the final commit log.
- Add lore.kernel.org links to the submitted patches.
- Apply the 0003-Revert-Revert-mtd-rawnand-gpmi-Fix-setting-busy-time.patch to the kernel.

Changes in v3:
- Update the commit description.
- Bump U-Boot to version 2022-07.
- Remove U-Boot patches merged in version 2022-07.
- Update the Linux patches.

Changes in v2:
- Drop the patch that added the 'uuu' package. It has been merged.
- Patch 1/2: "configs/imx8mn_bsh_smm_s2_defconfig: new defconfig":
- Change commit subject and description.
- Update linux patch to version 4. It hasn't been merged yet but has been reviewed. This is the most up-to-date version.
- Replace Co-developed-by:' tag with Co-authored-by'.
- Use the buildroot's output directory if the binaries directory is not passed as a parameter to the `flash.sh' script.
- Replace the linux.config file with an architectural defconfig and a config fragment for the changes.
- Remove useless and deprecated statements in nand-full.lst.
- Remove the buildroot configurations for ext2/ext4 filesystem creation.
- Patch 2/2: "configs/imx8mn_bsh_smm_s2_pro_defconfig: new defconfig":
- Change commit subject line.
- Use the buildroot's output directory if the binaries directory is not passed as a parameter to the `flash.sh' script.
- Replace the linux.config file with an architectural defconfig and a config fragment for the changes.

Dario Binacchi (1):
configs/imx8mn_bsh_smm_s2_defconfig: new defconfig

Michael Trimarchi (1):
configs/imx8mn_bsh_smm_s2_pro_defconfig: new defconfig

 DEVELOPERS                                    |   8 +
 .../common/imx8mn-bsh-smm-s2/linux.fragment   | 895 ++++++++++++++++++
 board/bsh/imx8mn-bsh-smm-s2-pro/extlinux.conf |   4 +
 board/bsh/imx8mn-bsh-smm-s2-pro/flash.sh      |  23 +
 board/bsh/imx8mn-bsh-smm-s2-pro/genimage.cfg  |  17 +
 board/bsh/imx8mn-bsh-smm-s2-pro/post-build.sh |   7 +
 board/bsh/imx8mn-bsh-smm-s2-pro/post-image.sh |   3 +
 board/bsh/imx8mn-bsh-smm-s2-pro/readme.txt    |  73 ++
 board/bsh/imx8mn-bsh-smm-s2/flash.sh          |  26 +
 board/bsh/imx8mn-bsh-smm-s2/nand-full.lst     |  29 +
 ...Remove-rootwait-1-to-all-the-affecte.patch | 160 ++++
 board/bsh/imx8mn-bsh-smm-s2/post-build.sh     |   4 +
 board/bsh/imx8mn-bsh-smm-s2/readme.txt        |  75 ++
 configs/imx8mn_bsh_smm_s2_defconfig           |  41 +
 configs/imx8mn_bsh_smm_s2_pro_defconfig       |  42 +
 15 files changed, 1407 insertions(+)
 create mode 100644 board/bsh/common/imx8mn-bsh-smm-s2/linux.fragment
 create mode 100644 board/bsh/imx8mn-bsh-smm-s2-pro/extlinux.conf
 create mode 100755 board/bsh/imx8mn-bsh-smm-s2-pro/flash.sh
 create mode 100644 board/bsh/imx8mn-bsh-smm-s2-pro/genimage.cfg
 create mode 100755 board/bsh/imx8mn-bsh-smm-s2-pro/post-build.sh
 create mode 100755 board/bsh/imx8mn-bsh-smm-s2-pro/post-image.sh
 create mode 100644 board/bsh/imx8mn-bsh-smm-s2-pro/readme.txt
 create mode 100755 board/bsh/imx8mn-bsh-smm-s2/flash.sh
 create mode 100644 board/bsh/imx8mn-bsh-smm-s2/nand-full.lst
 create mode 100644 board/bsh/imx8mn-bsh-smm-s2/patches/uboot/0001-include-configs-Remove-rootwait-1-to-all-the-affecte.patch
 create mode 100755 board/bsh/imx8mn-bsh-smm-s2/post-build.sh
 create mode 100644 board/bsh/imx8mn-bsh-smm-s2/readme.txt
 create mode 100644 configs/imx8mn_bsh_smm_s2_defconfig
 create mode 100644 configs/imx8mn_bsh_smm_s2_pro_defconfig
Signature · 6 lines
2.32.0

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

PATCH v9 1/2 configs/imx8mn_bsh_smm_s2_defconfig: new defconfig

BSH SMM S2 (SystemMaster S2) Board is an add-on board which provide input and output interfaces to a dedicated carrier board. It is designed mainly to provide graphical/video and connectivity interfaces to the appliance.

Board support package includes the following components:
- mainline Linux kernel 6.1.6
- mainline U-Boot 2022-07
- default packages from buildroot

https://www.apertis.org/reference_hardware/imx8mn_bsh_smm_s2pro_setup/
The smm s2 board is basically the same as the pro except it boots from NAND instead of eMMC.

---
Changes in v9:
- Bump Linux kernel to version 6.1.6.
- Remove the Linux kernel patches because they have been merged into the used version.

Changes in v8:
- Rebase on master and fix conflicts on DEVELOPERS file.
- Set BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_19=y.

Changes in v7:
- Add Giulio Benetti Reviewed-by tag.

(no changes since v5)

Changes in v5:
- Update the commit description.
- Bump the kernel version to 5.19.7.
- Remove the 0003-Revert-Revert-mtd-rawnand-gpmi-Fix-setting-busy-time.patch patch.
- Regenerate all added patches (Linux kernel and U-boot) so that they contain the [PATCH] header without numbering.
- Add patchwork link to U-boot patch.

Changes in v4:
- Update the commit description.
- Bump the kernel version to 5.18.19.
- Shrink the Linux configuration.
- Add 3 dashes to the kernel patches to avoid having the version history to fall into the final commit log.
- Add lore.kernel.org links to the submitted patches.
- Apply the 0003-Revert-Revert-mtd-rawnand-gpmi-Fix-setting-busy-time.patch to the kernel.

Changes in v3:
- Update the commit description.
- Bump U-Boot to version 2022-07.
- Remove U-Boot patches merged in version 2022-07.
- Update the Linux patches.

Changes in v2:
- Change commit subject and description.
- Update linux patch to version 4. It hasn't been merged yet but has been reviewed. This is the most up-to-date version.
- Replace Co-developed-by:' tag with Co-authored-by'.
- Use the buildroot's output directory if the binaries directory is not passed as a parameter to the `flash.sh' script.
- Replace the linux.config file with an architectural defconfig and a config fragment for the changes.
- Remove useless and deprecated statements in nand-full.lst.
- Remove the buildroot configurations for ext2/ext4 filesystem creation.

---
 DEVELOPERS                                    |   4 +
 board/bsh/imx8mn-bsh-smm-s2/flash.sh          |  26 +
 board/bsh/imx8mn-bsh-smm-s2/linux.fragment    | 895 ++++++++++++++++++
 board/bsh/imx8mn-bsh-smm-s2/nand-full.lst     |  29 +
 ...Remove-rootwait-1-to-all-the-affecte.patch | 160 ++++
 board/bsh/imx8mn-bsh-smm-s2/post-build.sh     |   4 +
 board/bsh/imx8mn-bsh-smm-s2/readme.txt        |  75 ++
 configs/imx8mn_bsh_smm_s2_defconfig           |  41 +
 8 files changed, 1234 insertions(+)
 create mode 100755 board/bsh/imx8mn-bsh-smm-s2/flash.sh
 create mode 100644 board/bsh/imx8mn-bsh-smm-s2/linux.fragment
 create mode 100644 board/bsh/imx8mn-bsh-smm-s2/nand-full.lst
 create mode 100644 board/bsh/imx8mn-bsh-smm-s2/patches/uboot/0001-include-configs-Remove-rootwait-1-to-all-the-affecte.patch
 create mode 100755 board/bsh/imx8mn-bsh-smm-s2/post-build.sh
 create mode 100644 board/bsh/imx8mn-bsh-smm-s2/readme.txt
 create mode 100644 configs/imx8mn_bsh_smm_s2_defconfig
DEVELOPERS +4 -0
index e8e0dffcd392..4f9dbec5c50b 100644
@@ -685,6 +685,8 @@ F:	package/luaexpat/
 F:	package/xinetd/
 
 N:	Dario Binacchi <[email protected]>
+F:	board/bsh/
+F:	configs/imx8mn_bsh_smm_s2_defconfig
 F:	package/sscep/
 F:	package/uuu/
 
@@ -2114,6 +2116,8 @@ F:	package/python-crc16/
 F:	package/python-pyzmq/
 
 N:	Michael Trimarchi <[email protected]>
+F:	board/bsh/
+F:	configs/imx8mn_bsh_smm_s2_defconfig
 F:	package/python-spidev/
 
 N:	Michael Vetter <[email protected]>
board/bsh/imx8mn-bsh-smm-s2/flash.sh new file +26 -0
new file mode 100755
index 000000000000..1f343d516dcf
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+if [ $# -eq 0 ]; then
+    OUTPUT_DIR=output
+else
+    OUTPUT_DIR=$1
+fi
+
+if ! test -d "${OUTPUT_DIR}" ; then
+    echo "ERROR: no output directory specified."
+    echo "Usage: $0 OUTPUT_DIR"
+    echo ""
+    echo "Arguments:"
+    echo "    OUTPUT_DIR    The Buildroot output directory."
+    exit 1
+fi
+
+IMAGES_DIR=${OUTPUT_DIR}/images
+
+${OUTPUT_DIR}/host/bin/uuu -v -b ${IMAGES_DIR}/nand-full.lst \
+  ${IMAGES_DIR}/flash.bin \
+  ${IMAGES_DIR}/flash.bin \
+  ${IMAGES_DIR}/rootfs.ubifs \
+  ${IMAGES_DIR}/Image \
+  ${IMAGES_DIR}/freescale/imx8mn-bsh-smm-s2.dtb
+
board/bsh/imx8mn-bsh-smm-s2/linux.fragment new file +895 -0

895 lines not on this page · raw message

board/bsh/imx8mn-bsh-smm-s2/nand-full.lst new file +29 -0
new file mode 100644
index 000000000000..c01d2d6c1dac
@@ -0,0 +1,29 @@
+# @_flash.bin            | bootloader
+# @_image   [_flash.bin] | image burn to nand, default is the same as bootloader
+# @_filesystem           | filesystem to burn
+# @_kernel               | kernel image
+# @_dtb                  | dtb image
+
+# This command will be run when ROM support stream mode
+# i.MX8QXP, i.MX8QM
+SDPS: boot -f _flash.bin
+
+FB: ucmd setenv fastboot_buffer ${loadaddr}
+FB: download -f _image
+# Burn image to nandfit partition if needed
+FB: ucmd if env exists nandfit_part; then nand erase.part nandfit; nand write ${fastboot_buffer} nandfit ${filesize}; else true; fi;
+FB: ucmd nandbcb init ${fastboot_buffer} nandboot ${filesize}
+
+FB[-t 10000]: ucmd ubi part nandrootfs
+FB[-t 10000]: ucmd ubi create root -
+FB: download -f _filesystem
+FB[-t 60000]: ucmd ubi write ${loadaddr} root ${filesize}
+
+FB: download -f _kernel
+FB[-t 10000]: ucmd nand write ${loadaddr} nandkernel ${filesize}
+
+FB: download -f _dtb
+FB[-t 8000]: ucmd nand write ${loadaddr} nanddtb ${filesize}
+
+FB: reboot
+FB: done
board/bsh/imx8mn-bsh-smm-s2/patches/uboot/0001-include-configs-Remove-rootwait-1-to-all-the-affecte.patch new file +160 -0

160 lines not on this page · raw message

board/bsh/imx8mn-bsh-smm-s2/post-build.sh new file +4 -0
new file mode 100755
index 000000000000..49df4cd6fb10
@@ -0,0 +1,4 @@
+#!/bin/sh
+BOARD_DIR="$(dirname $0)"
+
+cp ${BOARD_DIR}/nand-full.lst ${BINARIES_DIR}
board/bsh/imx8mn-bsh-smm-s2/readme.txt new file +75 -0

75 lines not on this page · raw message

configs/imx8mn_bsh_smm_s2_defconfig new file +41 -0

41 lines not on this page · raw message

Signature · 7 lines
2.32.0


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

Re: [Buildroot] [PATCH v9 1/2] configs/imx8mn_bsh_smm_s2_defconfig: new defconfig

Hello Dario,

Quoted 18 lines · On Mon, 16 Jan 2023 22:55:15 +0100 Dario Binacchi…

BSH SMM S2 (SystemMaster S2) Board is an add-on board which provide input and output interfaces to a dedicated carrier board. It is designed mainly to provide graphical/video and connectivity interfaces to the appliance.

Board support package includes the following components:
- mainline Linux kernel 6.1.6
- mainline U-Boot 2022-07
- default packages from buildroot

https://www.apertis.org/reference_hardware/imx8mn_bsh_smm_s2pro_setup/
The smm s2 board is basically the same as the pro except it boots from NAND instead of eMMC.

Quoted 5 lines

---
Changes in v9:
- Bump Linux kernel to version 6.1.6.
- Remove the Linux kernel patches because they have been merged into the used version.

Thanks, I've applied both patches. One interesting point to note is about the kernel configuration. Your Buildroot defconfig says to use the default ARM64 kernel configuration + apply a pretty huge fragment to disable lots of things:

 board/bsh/imx8mn-bsh-smm-s2/linux.fragment    | 895 ++++++++++++++++++

So you have a 895 lines fragment to disable lots of stuff. I was curious to see if this fragment was not *larger* than the actual resulting kernel configuration, as a defconfig, and indeed it is:

$ wc -l output/build/linux-6.1.6/defconfig 
816 output/build/linux-6.1.6/defconfig

And still reading this defconfig, it is pretty clear that lots of options that are enabled are not relevant to your system, and could be disabled, making the defconfig even smaller.

So overall, it looks like having a complete defconfig of your kernel configuration would be smaller than a fragment that disables zillions of things.

Best regards,

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
#3 lore raw

Re: [Buildroot] [PATCH v9 1/2] configs/imx8mn_bsh_smm_s2_defconfig: new defconfig

Hello Thomas,

Quoted 44 lines · Thomas Petazzoni

Hello Dario,

Quoted 18 lines · On Mon, 16 Jan 2023 22:55:15 +0100 Dario Binacchi…

BSH SMM S2 (SystemMaster S2) Board is an add-on board which provide input and output interfaces to a dedicated carrier board. It is designed mainly to provide graphical/video and connectivity interfaces to the appliance.

Board support package includes the following components:
- mainline Linux kernel 6.1.6
- mainline U-Boot 2022-07
- default packages from buildroot

https://www.apertis.org/reference_hardware/imx8mn_bsh_smm_s2pro_setup/
The smm s2 board is basically the same as the pro except it boots from NAND instead of eMMC.

Quoted 5 lines

---
Changes in v9:
- Bump Linux kernel to version 6.1.6.
- Remove the Linux kernel patches because they have been merged into the used version.

Thanks, I've applied both patches. One interesting point to note is about the kernel configuration. Your Buildroot defconfig says to use the default ARM64 kernel configuration + apply a pretty huge fragment to disable lots of things:

 board/bsh/imx8mn-bsh-smm-s2/linux.fragment    | 895 ++++++++++++++++++

So you have a 895 lines fragment to disable lots of stuff. I was curious to see if this fragment was not *larger* than the actual resulting kernel configuration, as a defconfig, and indeed it is:

$ wc -l output/build/linux-6.1.6/defconfig
816 output/build/linux-6.1.6/defconfig
Quoted 7 lines

And still reading this defconfig, it is pretty clear that lots of options that are enabled are not relevant to your system, and could be disabled, making the defconfig even smaller.

So overall, it looks like having a complete defconfig of your kernel configuration would be smaller than a fragment that disables zillions of things.

I will follow your suggestions to reduce the linux configuration.

Thanks and regards,

Dario

Quoted 8 lines

Best regards,

Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

Signature · 21 lines
Dario Binacchi

Senior Embedded Linux Developer

[email protected]

__________________________________


Amarula Solutions SRL

Via Le Canevare 30, 31100 Treviso, Veneto, IT

T. +39 042 243 5310
[email protected]

www.amarulasolutions.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#4 lore raw

PATCH v9 2/2 configs/imx8mn_bsh_smm_s2_pro_defconfig: new defconfig

In reply to Dario Binacchi

From: Michael Trimarchi <[email protected]>

BSH SMM S2 PRO (SystemMaster S2 Pro) Board is an add-on board which provide input and output interfaces to a dedicated carrier board. It is designed mainly to provide graphical/video and connectivity interfaces to the appliance.

Board support package includes the following components:
- mainline Linux kernel 6.1.6
- mainline U-Boot 2022-07
- Default packages from buildroot

https://www.apertis.org/reference_hardware/imx8mn_bsh_smm_s2pro_setup/

Add Ariel D'Alessandro and Dario Binacchi as co-maintainer, we work together on platform mainline

Build and tested using:
docker pull registry.gitlab.com/buildroot.org/buildroot/base:20220105.2314

---
Changes in v9:
- Bump Linux kernel to version 6.1.6.
- Remove the Linux kernel patches because they have been merged into the used version.

Changes in v8:
- Rebase on master and fix conflicts on DEVELOPERS file.
- Set BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_19=y.

Changes in v7:
- Add Heiko Thiery Reviewed-by tag.

Changes in v6:
- Change offset in imx-boot partition of genimage.cfg from 33k to 32k.

Changes in v5:
- Update the commit description.
- Bump the kernel version to 5.19.7.

Changes in v4:
- Update the commit description.
- Bump the kernel version to 5.18.19.

Changes in v3:
- Update the commit description.
- Bump U-Boot to version 2022-07.

Changes in v2:
- Change commit subject line.
- Use the buildroot's output directory if the binaries directory is not passed as a parameter to the `flash.sh' script.
- Replace the linux.config file with an architectural defconfig and a config fragment for the changes.

---
 DEVELOPERS                                    |  4 +
 .../imx8mn-bsh-smm-s2/linux.fragment          |  0
 board/bsh/imx8mn-bsh-smm-s2-pro/extlinux.conf |  4 +
 board/bsh/imx8mn-bsh-smm-s2-pro/flash.sh      | 23 ++++++
 board/bsh/imx8mn-bsh-smm-s2-pro/genimage.cfg  | 17 +++++
 board/bsh/imx8mn-bsh-smm-s2-pro/post-build.sh |  7 ++
 board/bsh/imx8mn-bsh-smm-s2-pro/post-image.sh |  3 +
 board/bsh/imx8mn-bsh-smm-s2-pro/readme.txt    | 73 +++++++++++++++++++
 configs/imx8mn_bsh_smm_s2_defconfig           |  2 +-
 configs/imx8mn_bsh_smm_s2_pro_defconfig       | 42 +++++++++++
 10 files changed, 174 insertions(+), 1 deletion(-)
 rename board/bsh/{ => common}/imx8mn-bsh-smm-s2/linux.fragment (100%)
 create mode 100644 board/bsh/imx8mn-bsh-smm-s2-pro/extlinux.conf
 create mode 100755 board/bsh/imx8mn-bsh-smm-s2-pro/flash.sh
 create mode 100644 board/bsh/imx8mn-bsh-smm-s2-pro/genimage.cfg
 create mode 100755 board/bsh/imx8mn-bsh-smm-s2-pro/post-build.sh
 create mode 100755 board/bsh/imx8mn-bsh-smm-s2-pro/post-image.sh
 create mode 100644 board/bsh/imx8mn-bsh-smm-s2-pro/readme.txt
 create mode 100644 configs/imx8mn_bsh_smm_s2_pro_defconfig
DEVELOPERS +4 -0
index 4f9dbec5c50b..13ad86fda087 100644
@@ -225,6 +225,8 @@ F:	configs/snps_archs38_haps_defconfig
 F:	configs/snps_archs38_hsdk_defconfig
 
 N:	Ariel D'Alessandro <[email protected]>
+F:	board/bsh/
+F:	configs/imx8mn_bsh_smm_s2_pro_defconfig
 F:	package/axfsutils/
 F:	package/mali-t76x/
 
@@ -687,6 +689,7 @@ F:	package/xinetd/
 N:	Dario Binacchi <[email protected]>
 F:	board/bsh/
 F:	configs/imx8mn_bsh_smm_s2_defconfig
+F:	configs/imx8mn_bsh_smm_s2_pro_defconfig
 F:	package/sscep/
 F:	package/uuu/
 
@@ -2118,6 +2121,7 @@ F:	package/python-pyzmq/
 N:	Michael Trimarchi <[email protected]>
 F:	board/bsh/
 F:	configs/imx8mn_bsh_smm_s2_defconfig
+F:	configs/imx8mn_bsh_smm_s2_pro_defconfig
 F:	package/python-spidev/
 
 N:	Michael Vetter <[email protected]>
board/bsh/common/imx8mn-bsh-smm-s2/linux.fragment renamed from board/bsh/imx8mn-bsh-smm-s2/linux.fragment +0 -0
similarity index 100%
rename from board/bsh/imx8mn-bsh-smm-s2/linux.fragment
rename to board/bsh/common/imx8mn-bsh-smm-s2/linux.fragment
board/bsh/imx8mn-bsh-smm-s2-pro/extlinux.conf new file +4 -0
new file mode 100644
index 000000000000..911135474253
@@ -0,0 +1,4 @@
+label buildroot
+  kernel /boot/Image
+  devicetree /boot/freescale/imx8mn-bsh-smm-s2pro.dtb
+  append root=PARTUUID=%PARTUUID% rootwait rw
board/bsh/imx8mn-bsh-smm-s2-pro/flash.sh new file +23 -0
new file mode 100755
index 000000000000..17b20f009771
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+if [ $# -eq 0 ]; then
+    OUTPUT_DIR=output
+else
+    OUTPUT_DIR=$1
+fi
+
+if ! test -d "${OUTPUT_DIR}" ; then
+    echo "ERROR: no output directory specified."
+    echo "Usage: $0 OUTPUT_DIR"
+    echo ""
+    echo "Arguments:"
+    echo "    OUTPUT_DIR    The Buildroot output directory."
+    exit 1
+fi
+
+IMAGES_DIR=${OUTPUT_DIR}/images
+
+${OUTPUT_DIR}/host/bin/uuu -v -b emmc_all \
+  ${IMAGES_DIR}/flash.bin \
+  ${IMAGES_DIR}/sdcard.img
+
board/bsh/imx8mn-bsh-smm-s2-pro/genimage.cfg new file +17 -0
new file mode 100644
index 000000000000..10c52548cdfa
@@ -0,0 +1,17 @@
+image sdcard.img {
+	hdimage {
+		partition-table-type = "gpt"
+	}
+
+	partition imx-boot {
+		in-partition-table = "no"
+		image = "flash.bin"
+		offset = 32K
+	}
+
+	partition rootfs {
+		offset = 8M
+		image = "rootfs.ext4"
+		partition-uuid = %PARTUUID%
+	}
+}
board/bsh/imx8mn-bsh-smm-s2-pro/post-build.sh new file +7 -0
new file mode 100755
index 000000000000..bf8861f6a914
@@ -0,0 +1,7 @@
+#!/bin/sh
+BOARD_DIR="$(dirname $0)"
+PARTUUID="$($HOST_DIR/bin/uuidgen)"
+
+install -d "$TARGET_DIR/boot/extlinux/"
+sed "s/%PARTUUID%/$PARTUUID/g" "$BOARD_DIR/extlinux.conf" > "$TARGET_DIR/boot/extlinux/extlinux.conf"
+sed "s/%PARTUUID%/$PARTUUID/g" "$BOARD_DIR/genimage.cfg" > "$BINARIES_DIR/genimage.cfg"
board/bsh/imx8mn-bsh-smm-s2-pro/post-image.sh new file +3 -0
new file mode 100755
index 000000000000..3452fd4501f8
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+support/scripts/genimage.sh -c ${BINARIES_DIR}/genimage.cfg
board/bsh/imx8mn-bsh-smm-s2-pro/readme.txt new file +73 -0

73 lines not on this page · raw message

configs/imx8mn_bsh_smm_s2_defconfig +1 -1
index 4b03d2e89ed6..9b8ac8bfe2da 100644
@@ -7,7 +7,7 @@ BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_VERSION=y
 BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.1.6"
 BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y
-BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/bsh/imx8mn-bsh-smm-s2/linux.fragment"
+BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/bsh/common/imx8mn-bsh-smm-s2/linux.fragment"
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_INTREE_DTS_NAME="freescale/imx8mn-bsh-smm-s2"
 BR2_LINUX_KERNEL_DTB_KEEP_DIRNAME=y
configs/imx8mn_bsh_smm_s2_pro_defconfig new file +42 -0

42 lines not on this page · raw message

Signature · 6 lines
2.32.0

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