* [Buildroot] [PATCH 1/3] imx/post-image.sh: Support BR2_LINUX_KERNEL_INSTALL_TARGET=y for non-SPL
@ 2021-07-11 20:19 Fabio Estevam
2021-07-11 20:19 ` [Buildroot] [PATCH 2/3] configs/imx7d-sdb: Add extlinux.conf support Fabio Estevam
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Fabio Estevam @ 2021-07-11 20:19 UTC (permalink / raw)
To: buildroot
Currently, only SPL is supported when BR2_LINUX_KERNEL_INSTALL_TARGET=y
is selected.
Support non-SPL case too.
This is needed for booting imx7d-sabresd, for example.
Signed-off-by: Fabio Estevam <festevam@gmail.com>
---
.../common/imx/genimage.cfg.template_no_boot_part | 15 +++++++++++++++
board/freescale/common/imx/post-image.sh | 2 ++
2 files changed, 17 insertions(+)
create mode 100644 board/freescale/common/imx/genimage.cfg.template_no_boot_part
diff --git a/board/freescale/common/imx/genimage.cfg.template_no_boot_part b/board/freescale/common/imx/genimage.cfg.template_no_boot_part
new file mode 100644
index 000000000000..edc34d0fcd12
--- /dev/null
+++ b/board/freescale/common/imx/genimage.cfg.template_no_boot_part
@@ -0,0 +1,15 @@
+image sdcard.img {
+ hdimage {
+ }
+
+ partition u-boot {
+ in-partition-table = "no"
+ image = "%UBOOTBIN%"
+ offset = 1024
+ }
+
+ partition rootfs {
+ partition-type = 0x83
+ image = "rootfs.ext2"
+ }
+}
diff --git a/board/freescale/common/imx/post-image.sh b/board/freescale/common/imx/post-image.sh
index 0c2ef53dc643..3bb482debda0 100755
--- a/board/freescale/common/imx/post-image.sh
+++ b/board/freescale/common/imx/post-image.sh
@@ -47,6 +47,8 @@ genimage_type()
elif grep -Eq "^BR2_LINUX_KERNEL_INSTALL_TARGET=y$" ${BR2_CONFIG}; then
if grep -Eq "^BR2_TARGET_UBOOT_SPL=y$" ${BR2_CONFIG}; then
echo "genimage.cfg.template_no_boot_part_spl"
+ else
+ echo "genimage.cfg.template_no_boot_part"
fi
elif grep -Eq "^BR2_TARGET_UBOOT_SPL=y$" ${BR2_CONFIG}; then
echo "genimage.cfg.template_spl"
--
2.25.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH 2/3] configs/imx7d-sdb: Add extlinux.conf support
2021-07-11 20:19 [Buildroot] [PATCH 1/3] imx/post-image.sh: Support BR2_LINUX_KERNEL_INSTALL_TARGET=y for non-SPL Fabio Estevam
@ 2021-07-11 20:19 ` Fabio Estevam
2021-07-12 16:35 ` Pierre-Jean Texier
2021-07-11 20:19 ` [Buildroot] [PATCH 3/3] configs/imx7d-sdb: Bump U-Boot and kernel versions Fabio Estevam
2021-07-12 16:33 ` [Buildroot] [PATCH 1/3] imx/post-image.sh: Support BR2_LINUX_KERNEL_INSTALL_TARGET=y for non-SPL Pierre-Jean Texier
2 siblings, 1 reply; 6+ messages in thread
From: Fabio Estevam @ 2021-07-11 20:19 UTC (permalink / raw)
To: buildroot
imx7d-sdb has been converted to use disto boot in U-Boot.
Add extlinux.conf support so that the board can boot correctly.
Signed-off-by: Fabio Estevam <festevam@gmail.com>
---
.../imx7dsdb/rootfs_overlay/boot/extlinux/extlinux.conf | 4 ++++
configs/imx7d-sdb_defconfig | 2 ++
2 files changed, 6 insertions(+)
create mode 100644 board/freescale/imx7dsdb/rootfs_overlay/boot/extlinux/extlinux.conf
diff --git a/board/freescale/imx7dsdb/rootfs_overlay/boot/extlinux/extlinux.conf b/board/freescale/imx7dsdb/rootfs_overlay/boot/extlinux/extlinux.conf
new file mode 100644
index 000000000000..d538b5d6432f
--- /dev/null
+++ b/board/freescale/imx7dsdb/rootfs_overlay/boot/extlinux/extlinux.conf
@@ -0,0 +1,4 @@
+Label imx7d-sabresd-buildroot
+ kernel /boot/zImage
+ devicetree /boot/imx7d-sdb.dtb
+ append root=PARTUUID=${uuid} rootwait rw console=${console},${baudrate}
diff --git a/configs/imx7d-sdb_defconfig b/configs/imx7d-sdb_defconfig
index 1a3494b4af44..0c34f6e6dfea 100644
--- a/configs/imx7d-sdb_defconfig
+++ b/configs/imx7d-sdb_defconfig
@@ -17,6 +17,7 @@ BR2_LINUX_KERNEL_DEFCONFIG="imx_v6_v7"
BR2_LINUX_KERNEL_DTS_SUPPORT=y
BR2_LINUX_KERNEL_INTREE_DTS_NAME="imx7d-sdb"
BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
+BR2_LINUX_KERNEL_INSTALL_TARGET=y
# U-Boot
BR2_TARGET_UBOOT=y
@@ -26,6 +27,7 @@ BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2020.01"
BR2_TARGET_UBOOT_FORMAT_DTB_IMX=y
# Filesystem
+BR2_ROOTFS_OVERLAY="board/freescale/imx7dsdb/rootfs_overlay"
BR2_ROOTFS_POST_IMAGE_SCRIPT="board/freescale/common/imx/post-image.sh"
BR2_TARGET_ROOTFS_EXT2=y
BR2_TARGET_ROOTFS_EXT2_4=y
--
2.25.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH 3/3] configs/imx7d-sdb: Bump U-Boot and kernel versions
2021-07-11 20:19 [Buildroot] [PATCH 1/3] imx/post-image.sh: Support BR2_LINUX_KERNEL_INSTALL_TARGET=y for non-SPL Fabio Estevam
2021-07-11 20:19 ` [Buildroot] [PATCH 2/3] configs/imx7d-sdb: Add extlinux.conf support Fabio Estevam
@ 2021-07-11 20:19 ` Fabio Estevam
2021-07-12 16:36 ` Pierre-Jean Texier
2021-07-12 16:33 ` [Buildroot] [PATCH 1/3] imx/post-image.sh: Support BR2_LINUX_KERNEL_INSTALL_TARGET=y for non-SPL Pierre-Jean Texier
2 siblings, 1 reply; 6+ messages in thread
From: Fabio Estevam @ 2021-07-11 20:19 UTC (permalink / raw)
To: buildroot
Bump U-Boot to 2021.07 and kernel to 5.13 version.
Signed-off-by: Fabio Estevam <festevam@gmail.com>
---
configs/imx7d-sdb_defconfig | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/configs/imx7d-sdb_defconfig b/configs/imx7d-sdb_defconfig
index 0c34f6e6dfea..8ee5e1fc4015 100644
--- a/configs/imx7d-sdb_defconfig
+++ b/configs/imx7d-sdb_defconfig
@@ -3,8 +3,8 @@ BR2_arm=y
BR2_cortex_a7=y
BR2_ARM_FPU_NEON_VFPV4=y
-# Linux headers same as kernel, a 5.4 series
-BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_4=y
+# Linux headers same as kernel, a 5.13 series
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_13=y
# system
BR2_TARGET_GENERIC_GETTY_PORT="ttymxc0"
@@ -12,7 +12,7 @@ BR2_TARGET_GENERIC_GETTY_PORT="ttymxc0"
# Kernel
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
-BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.4.8"
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.13"
BR2_LINUX_KERNEL_DEFCONFIG="imx_v6_v7"
BR2_LINUX_KERNEL_DTS_SUPPORT=y
BR2_LINUX_KERNEL_INTREE_DTS_NAME="imx7d-sdb"
@@ -23,7 +23,7 @@ BR2_LINUX_KERNEL_INSTALL_TARGET=y
BR2_TARGET_UBOOT=y
BR2_TARGET_UBOOT_BOARDNAME="mx7dsabresd"
BR2_TARGET_UBOOT_CUSTOM_VERSION=y
-BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2020.01"
+BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2021.07"
BR2_TARGET_UBOOT_FORMAT_DTB_IMX=y
# Filesystem
--
2.25.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH 1/3] imx/post-image.sh: Support BR2_LINUX_KERNEL_INSTALL_TARGET=y for non-SPL
2021-07-11 20:19 [Buildroot] [PATCH 1/3] imx/post-image.sh: Support BR2_LINUX_KERNEL_INSTALL_TARGET=y for non-SPL Fabio Estevam
2021-07-11 20:19 ` [Buildroot] [PATCH 2/3] configs/imx7d-sdb: Add extlinux.conf support Fabio Estevam
2021-07-11 20:19 ` [Buildroot] [PATCH 3/3] configs/imx7d-sdb: Bump U-Boot and kernel versions Fabio Estevam
@ 2021-07-12 16:33 ` Pierre-Jean Texier
2 siblings, 0 replies; 6+ messages in thread
From: Pierre-Jean Texier @ 2021-07-12 16:33 UTC (permalink / raw)
To: buildroot
Hi Fabio,
Le 11/07/2021 ? 22:19, Fabio Estevam a ?crit?:
> Currently, only SPL is supported when BR2_LINUX_KERNEL_INSTALL_TARGET=y
> is selected.
>
> Support non-SPL case too.
>
> This is needed for booting imx7d-sabresd, for example.
>
> Signed-off-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Pierre-Jean Texier <texier.pj2@gmail.com>
Thanks
--
Pierre-Jean Texier
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH 2/3] configs/imx7d-sdb: Add extlinux.conf support
2021-07-11 20:19 ` [Buildroot] [PATCH 2/3] configs/imx7d-sdb: Add extlinux.conf support Fabio Estevam
@ 2021-07-12 16:35 ` Pierre-Jean Texier
0 siblings, 0 replies; 6+ messages in thread
From: Pierre-Jean Texier @ 2021-07-12 16:35 UTC (permalink / raw)
To: buildroot
Hi Fabio,
Le 11/07/2021 ? 22:19, Fabio Estevam a ?crit?:
> imx7d-sdb has been converted to use disto boot in U-Boot.
>
> Add extlinux.conf support so that the board can boot correctly.
>
> Signed-off-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Pierre-Jean Texier <texier.pj2@gmail.com>
Thanks
--
Pierre-Jean Texier
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH 3/3] configs/imx7d-sdb: Bump U-Boot and kernel versions
2021-07-11 20:19 ` [Buildroot] [PATCH 3/3] configs/imx7d-sdb: Bump U-Boot and kernel versions Fabio Estevam
@ 2021-07-12 16:36 ` Pierre-Jean Texier
0 siblings, 0 replies; 6+ messages in thread
From: Pierre-Jean Texier @ 2021-07-12 16:36 UTC (permalink / raw)
To: buildroot
Hi Fabio,
Le 11/07/2021 ? 22:19, Fabio Estevam a ?crit?:
> Bump U-Boot to 2021.07 and kernel to 5.13 version.
>
> Signed-off-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Pierre-Jean Texier <texier.pj2@gmail.com>
Thanks
--
Pierre-Jean Texier
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-07-12 16:36 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-11 20:19 [Buildroot] [PATCH 1/3] imx/post-image.sh: Support BR2_LINUX_KERNEL_INSTALL_TARGET=y for non-SPL Fabio Estevam
2021-07-11 20:19 ` [Buildroot] [PATCH 2/3] configs/imx7d-sdb: Add extlinux.conf support Fabio Estevam
2021-07-12 16:35 ` Pierre-Jean Texier
2021-07-11 20:19 ` [Buildroot] [PATCH 3/3] configs/imx7d-sdb: Bump U-Boot and kernel versions Fabio Estevam
2021-07-12 16:36 ` Pierre-Jean Texier
2021-07-12 16:33 ` [Buildroot] [PATCH 1/3] imx/post-image.sh: Support BR2_LINUX_KERNEL_INSTALL_TARGET=y for non-SPL Pierre-Jean Texier
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.