* [PATCH v4] imx: imx8qm-rom7720: switch to binman
@ 2022-10-25 15:20 Oliver Graute
2022-10-25 15:20 ` [PATCH v5] imx: imx8qm: cgtqmx8: " Oliver Graute
0 siblings, 1 reply; 8+ messages in thread
From: Oliver Graute @ 2022-10-25 15:20 UTC (permalink / raw)
To: sbabic
Cc: festevam, oliver.graute, Fabio Estevam, NXP i.MX U-Boot Team,
Ye Li, Marcel Ziswiler, Denys Drozdov, Gaurav Jain,
Horia Geantă,
u-boot
Switch to use binman to pack images
Signed-off-by: Oliver Graute <oliver.graute@kococonnector.com>
---
Changes for v4
- remove hardcoded dtb filename
- added CONFIG_FIT_EXTERNAL_OFFSET
Changes for v3
- just rebased to master
Changes for v2
- just rebased to master
arch/arm/dts/imx8qm-rom7720-a1.dts | 1 +
arch/arm/dts/imx8qm-u-boot.dtsi | 131 ++++++++++++++++++
arch/arm/mach-imx/imx8/Kconfig | 1 +
.../advantech/imx8qm_rom7720_a1/imximage.cfg | 4 +-
configs/imx8qm_rom7720_a1_4G_defconfig | 3 +-
doc/board/advantech/imx8qm-rom7720-a1.rst | 3 +-
6 files changed, 138 insertions(+), 5 deletions(-)
create mode 100644 arch/arm/dts/imx8qm-u-boot.dtsi
diff --git a/arch/arm/dts/imx8qm-rom7720-a1.dts b/arch/arm/dts/imx8qm-rom7720-a1.dts
index d1f2fff869..332d441c6d 100644
--- a/arch/arm/dts/imx8qm-rom7720-a1.dts
+++ b/arch/arm/dts/imx8qm-rom7720-a1.dts
@@ -10,6 +10,7 @@
/memreserve/ 0x80000000 0x00020000;
#include "fsl-imx8qm.dtsi"
+#include "imx8qm-u-boot.dtsi"
/ {
model = "Advantech iMX8QM Qseven series";
diff --git a/arch/arm/dts/imx8qm-u-boot.dtsi b/arch/arm/dts/imx8qm-u-boot.dtsi
new file mode 100644
index 0000000000..9b382f4d11
--- /dev/null
+++ b/arch/arm/dts/imx8qm-u-boot.dtsi
@@ -0,0 +1,131 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright 2021 NXP
+ */
+
+/ {
+ binman: binman {
+ multiple-images;
+ };
+};
+
+&binman {
+ u-boot-spl-ddr {
+ align = <4>;
+ align-size = <4>;
+ filename = "u-boot-spl-ddr.bin";
+ pad-byte = <0xff>;
+
+ u-boot-spl {
+ align-end = <4>;
+ filename = "u-boot-spl.bin";
+ };
+ };
+
+ spl {
+ filename = "spl.bin";
+
+ mkimage {
+ args = "-n spl/u-boot-spl.cfgout -T imx8image -e 0x100000";
+
+ blob {
+ filename = "u-boot-spl-ddr.bin";
+ };
+ };
+ };
+
+ itb {
+ filename = "u-boot.itb";
+
+ fit {
+ description = "Configuration to load ATF before U-Boot";
+ fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
+ fit,fdt-list = "of-list";
+ #address-cells = <1>;
+
+ images {
+ uboot {
+ arch = "arm64";
+ compression = "none";
+ description = "U-Boot (64-bit)";
+ load = <CONFIG_SYS_TEXT_BASE>;
+ type = "standalone";
+
+ uboot-blob {
+ filename = "u-boot-nodtb.bin";
+ type = "blob-ext";
+ };
+ };
+
+ atf {
+ arch = "arm64";
+ compression = "none";
+ description = "ARM Trusted Firmware";
+ entry = <0x00910000>;
+ load = <0x00091000>;
+ type = "firmware";
+
+ atf-blob {
+ filename = "bl31.bin";
+ type = "atf-bl31";
+ };
+ };
+
+ scfw {
+ arch = "arm64";
+ compression = "none";
+ description = "System Controler Firmware";
+ type = "firmware";
+
+ scfw_blob {
+ filename = "mx8qm-val-scfw-tcm.bin";
+ type = "blob-ext";
+ };
+ };
+
+ seco {
+ arch = "arm64";
+ compression = "none";
+ description = "Seco Firmware";
+ type = "firmware";
+
+ seco_blob {
+ filename = "mx8qm-ahab-container.img";
+ type = "blob-ext";
+ };
+ };
+
+ fdt {
+ type = "flat_dt";
+ compression = "none";
+
+ uboot-fdt-blob {
+ filename = "u-boot.dtb";
+ type = "blob-ext";
+ };
+ };
+ };
+
+ configurations {
+ default = "conf";
+
+ conf {
+ fdt = "fdt";
+ firmware = "uboot";
+ loadables = "atf";
+ };
+ };
+ };
+ };
+
+ imx-boot {
+ filename = "flash.bin";
+ pad-byte = <0x00>;
+
+ spl {
+ filename = "spl.bin";
+ offset = <0x0>;
+ type = "blob-ext";
+ };
+ };
+};
diff --git a/arch/arm/mach-imx/imx8/Kconfig b/arch/arm/mach-imx/imx8/Kconfig
index abb03340d8..71abbb33ea 100644
--- a/arch/arm/mach-imx/imx8/Kconfig
+++ b/arch/arm/mach-imx/imx8/Kconfig
@@ -82,6 +82,7 @@ config TARGET_CONGA_QMX8
config TARGET_IMX8QM_ROM7720_A1
bool "Support i.MX8QM ROM-7720-A1"
+ select BINMAN
select BOARD_LATE_INIT
select SUPPORT_SPL
select IMX8QM
diff --git a/board/advantech/imx8qm_rom7720_a1/imximage.cfg b/board/advantech/imx8qm_rom7720_a1/imximage.cfg
index 5ecde0c530..43035088e3 100644
--- a/board/advantech/imx8qm_rom7720_a1/imximage.cfg
+++ b/board/advantech/imx8qm_rom7720_a1/imximage.cfg
@@ -4,8 +4,8 @@
*/
-/* Boot from SD, sector size 0x400 */
-BOOT_FROM SD 0x400
+BOOT_FROM sd
+
/* SoC type IMX8QM */
SOC_TYPE IMX8QM
/* Append seco container image */
diff --git a/configs/imx8qm_rom7720_a1_4G_defconfig b/configs/imx8qm_rom7720_a1_4G_defconfig
index 3b099761a9..4b7ed6df01 100644
--- a/configs/imx8qm_rom7720_a1_4G_defconfig
+++ b/configs/imx8qm_rom7720_a1_4G_defconfig
@@ -20,8 +20,9 @@ CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x80200000
CONFIG_REMAKE_ELF=y
CONFIG_FIT=y
+CONFIG_FIT_EXTERNAL_OFFSET=0x3000
CONFIG_SPL_LOAD_FIT=y
-CONFIG_SPL_FIT_GENERATOR="arch/arm/mach-imx/mkimage_fit_atf.sh"
+# CONFIG_USE_SPL_FIT_GENERATOR is not set
CONFIG_BOOTDELAY=3
CONFIG_USE_BOOTCOMMAND=y
CONFIG_BOOTCOMMAND="mmc dev ${mmcdev}; if mmc rescan; then if run loadbootscript; then run bootscript; else if run loadimage; then run mmcboot; else run netboot; fi; fi; else booti ${loadaddr} - ${fdt_addr}; fi"
diff --git a/doc/board/advantech/imx8qm-rom7720-a1.rst b/doc/board/advantech/imx8qm-rom7720-a1.rst
index bd4be1dbeb..953cf01fde 100644
--- a/doc/board/advantech/imx8qm-rom7720-a1.rst
+++ b/doc/board/advantech/imx8qm-rom7720-a1.rst
@@ -57,8 +57,7 @@ Build U-Boot
$ export ATF_LOAD_ADDR=0x80000000
$ export BL33_LOAD_ADDR=0x80020000
$ make imx8qm_rom7720_a1_4G_defconfig
- $ make u-boot.bin
- $ make flash.bin
+ $ make
Flash the binary into the SD card
---------------------------------
--
2.17.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH v5] imx: imx8qm: cgtqmx8: switch to binman
2022-10-25 15:20 [PATCH v4] imx: imx8qm-rom7720: switch to binman Oliver Graute
@ 2022-10-25 15:20 ` Oliver Graute
2022-10-25 15:31 ` Oliver Graute
0 siblings, 1 reply; 8+ messages in thread
From: Oliver Graute @ 2022-10-25 15:20 UTC (permalink / raw)
To: sbabic
Cc: festevam, oliver.graute, Fabio Estevam, NXP i.MX U-Boot Team,
Denys Drozdov, Horia Geantă,
Gaurav Jain, Ye Li, Marcel Ziswiler, u-boot
Switch to use binman to pack images
Signed-off-by: Oliver Graute <oliver.graute@kococonnector.com>
Reviewed-by: Fabio Estevam <festevam@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
---
Changes for v5
- added CONFIG_FIT_EXTERNAL_OFFSET
Changes for v4
- rebased on master
Changes for v3
-added Reviewed-by
- rebased on master
arch/arm/dts/imx8qm-cgtqmx8.dts | 1 +
arch/arm/mach-imx/imx8/Kconfig | 1 +
board/congatec/cgtqmx8/imximage.cfg | 4 ++--
configs/cgtqmx8_defconfig | 3 ++-
doc/board/congatec/cgtqmx8.rst | 3 +--
5 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/arch/arm/dts/imx8qm-cgtqmx8.dts b/arch/arm/dts/imx8qm-cgtqmx8.dts
index 555c357f6f..919d00644f 100644
--- a/arch/arm/dts/imx8qm-cgtqmx8.dts
+++ b/arch/arm/dts/imx8qm-cgtqmx8.dts
@@ -12,6 +12,7 @@
/memreserve/ 0x80000000 0x00020000;
#include "fsl-imx8qm.dtsi"
+#include "imx8qm-u-boot.dtsi"
/ {
model = "Congatec QMX8 Qseven series";
diff --git a/arch/arm/mach-imx/imx8/Kconfig b/arch/arm/mach-imx/imx8/Kconfig
index ba2a38c7f7..a0036a32b5 100644
--- a/arch/arm/mach-imx/imx8/Kconfig
+++ b/arch/arm/mach-imx/imx8/Kconfig
@@ -76,6 +76,7 @@ config TARGET_IMX8QM_MEK
config TARGET_CONGA_QMX8
bool "Support congatec conga-QMX8 board"
+ select BINMAN
select BOARD_LATE_INIT
select SUPPORT_SPL
select IMX8QM
diff --git a/board/congatec/cgtqmx8/imximage.cfg b/board/congatec/cgtqmx8/imximage.cfg
index 5ecde0c530..43035088e3 100644
--- a/board/congatec/cgtqmx8/imximage.cfg
+++ b/board/congatec/cgtqmx8/imximage.cfg
@@ -4,8 +4,8 @@
*/
-/* Boot from SD, sector size 0x400 */
-BOOT_FROM SD 0x400
+BOOT_FROM sd
+
/* SoC type IMX8QM */
SOC_TYPE IMX8QM
/* Append seco container image */
diff --git a/configs/cgtqmx8_defconfig b/configs/cgtqmx8_defconfig
index ddc65a06b9..fb43de624b 100644
--- a/configs/cgtqmx8_defconfig
+++ b/configs/cgtqmx8_defconfig
@@ -20,8 +20,9 @@ CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x80200000
CONFIG_REMAKE_ELF=y
CONFIG_FIT=y
+CONFIG_FIT_EXTERNAL_OFFSET=0x3000
CONFIG_SPL_LOAD_FIT=y
-CONFIG_SPL_FIT_GENERATOR="arch/arm/mach-imx/mkimage_fit_atf.sh"
+# CONFIG_USE_SPL_FIT_GENERATOR is not set
CONFIG_OF_BOARD_SETUP=y
CONFIG_BOOTDELAY=3
CONFIG_USE_BOOTCOMMAND=y
diff --git a/doc/board/congatec/cgtqmx8.rst b/doc/board/congatec/cgtqmx8.rst
index bccdef2f16..16711a844d 100644
--- a/doc/board/congatec/cgtqmx8.rst
+++ b/doc/board/congatec/cgtqmx8.rst
@@ -57,8 +57,7 @@ Build U-Boot
$ export ATF_LOAD_ADDR=0x80000000
$ export BL33_LOAD_ADDR=0x80020000
$ make cgtqmx8_defconfig
- $ make u-boot.bin
- $ make flash.bin
+ $ make
Flash the binary into the SD card
---------------------------------
--
2.17.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH v5] imx: imx8qm: cgtqmx8: switch to binman
2022-10-25 15:20 ` [PATCH v5] imx: imx8qm: cgtqmx8: " Oliver Graute
@ 2022-10-25 15:31 ` Oliver Graute
2022-10-25 15:53 ` Fabio Estevam
2022-11-01 23:00 ` Fabio Estevam
0 siblings, 2 replies; 8+ messages in thread
From: Oliver Graute @ 2022-10-25 15:31 UTC (permalink / raw)
To: sbabic
Cc: festevam, Fabio Estevam, NXP i.MX U-Boot Team, Denys Drozdov,
Horia Geantă,
Gaurav Jain, Ye Li, Marcel Ziswiler, u-boot
On 25/10/22, Oliver Graute wrote:
> Switch to use binman to pack images
>
> Signed-off-by: Oliver Graute <oliver.graute@kococonnector.com>
> Reviewed-by: Fabio Estevam <festevam@denx.de>
> Reviewed-by: Simon Glass <sjg@chromium.org>
I missed
Reviewed-by: Peng Fan <peng.fan@nxp.com>
>
> ---
> Changes for v5
> - added CONFIG_FIT_EXTERNAL_OFFSET
>
> Changes for v4
> - rebased on master
>
> Changes for v3
> -added Reviewed-by
> - rebased on master
>
> arch/arm/dts/imx8qm-cgtqmx8.dts | 1 +
> arch/arm/mach-imx/imx8/Kconfig | 1 +
> board/congatec/cgtqmx8/imximage.cfg | 4 ++--
> configs/cgtqmx8_defconfig | 3 ++-
> doc/board/congatec/cgtqmx8.rst | 3 +--
> 5 files changed, 7 insertions(+), 5 deletions(-)
>
> diff --git a/arch/arm/dts/imx8qm-cgtqmx8.dts b/arch/arm/dts/imx8qm-cgtqmx8.dts
> index 555c357f6f..919d00644f 100644
> --- a/arch/arm/dts/imx8qm-cgtqmx8.dts
> +++ b/arch/arm/dts/imx8qm-cgtqmx8.dts
> @@ -12,6 +12,7 @@
> /memreserve/ 0x80000000 0x00020000;
>
> #include "fsl-imx8qm.dtsi"
> +#include "imx8qm-u-boot.dtsi"
>
> / {
> model = "Congatec QMX8 Qseven series";
> diff --git a/arch/arm/mach-imx/imx8/Kconfig b/arch/arm/mach-imx/imx8/Kconfig
> index ba2a38c7f7..a0036a32b5 100644
> --- a/arch/arm/mach-imx/imx8/Kconfig
> +++ b/arch/arm/mach-imx/imx8/Kconfig
> @@ -76,6 +76,7 @@ config TARGET_IMX8QM_MEK
>
> config TARGET_CONGA_QMX8
> bool "Support congatec conga-QMX8 board"
> + select BINMAN
> select BOARD_LATE_INIT
> select SUPPORT_SPL
> select IMX8QM
> diff --git a/board/congatec/cgtqmx8/imximage.cfg b/board/congatec/cgtqmx8/imximage.cfg
> index 5ecde0c530..43035088e3 100644
> --- a/board/congatec/cgtqmx8/imximage.cfg
> +++ b/board/congatec/cgtqmx8/imximage.cfg
> @@ -4,8 +4,8 @@
> */
>
>
> -/* Boot from SD, sector size 0x400 */
> -BOOT_FROM SD 0x400
> +BOOT_FROM sd
> +
> /* SoC type IMX8QM */
> SOC_TYPE IMX8QM
> /* Append seco container image */
> diff --git a/configs/cgtqmx8_defconfig b/configs/cgtqmx8_defconfig
> index ddc65a06b9..fb43de624b 100644
> --- a/configs/cgtqmx8_defconfig
> +++ b/configs/cgtqmx8_defconfig
> @@ -20,8 +20,9 @@ CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
> CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x80200000
> CONFIG_REMAKE_ELF=y
> CONFIG_FIT=y
> +CONFIG_FIT_EXTERNAL_OFFSET=0x3000
> CONFIG_SPL_LOAD_FIT=y
> -CONFIG_SPL_FIT_GENERATOR="arch/arm/mach-imx/mkimage_fit_atf.sh"
> +# CONFIG_USE_SPL_FIT_GENERATOR is not set
> CONFIG_OF_BOARD_SETUP=y
> CONFIG_BOOTDELAY=3
> CONFIG_USE_BOOTCOMMAND=y
> diff --git a/doc/board/congatec/cgtqmx8.rst b/doc/board/congatec/cgtqmx8.rst
> index bccdef2f16..16711a844d 100644
> --- a/doc/board/congatec/cgtqmx8.rst
> +++ b/doc/board/congatec/cgtqmx8.rst
> @@ -57,8 +57,7 @@ Build U-Boot
> $ export ATF_LOAD_ADDR=0x80000000
> $ export BL33_LOAD_ADDR=0x80020000
> $ make cgtqmx8_defconfig
> - $ make u-boot.bin
> - $ make flash.bin
> + $ make
>
> Flash the binary into the SD card
> ---------------------------------
> --
> 2.17.1
>
Now Running into this issue:
MKIMAGE u-boot.img
MKIMAGE u-boot-dtb.img
LD u-boot.elf
make[1]: Für das Ziel „SPL“ ist nichts zu tun.
BINMAN all
binman: Section '/binman/u-boot-spl-ddr': Symbol '_binman_u_boot_any_prop_image_pos'
in entry '/binman/u-boot-spl-ddr/u-boot-spl/u-boot-spl-nodtb': Entry 'u-boot-any' not found in list (u-boot-spl-nodtb,u-boot-spl-dtb,u-boot-spl,main-section)
Makefile:1109: recipe for target 'all' failed
make: *** [all] Error 1
some hints?
Best Regards,
Oliver
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v5] imx: imx8qm: cgtqmx8: switch to binman
2022-10-25 15:31 ` Oliver Graute
@ 2022-10-25 15:53 ` Fabio Estevam
2022-10-26 14:00 ` Oliver Graute
2022-11-01 23:00 ` Fabio Estevam
1 sibling, 1 reply; 8+ messages in thread
From: Fabio Estevam @ 2022-10-25 15:53 UTC (permalink / raw)
To: sbabic, festevam, Fabio Estevam, NXP i.MX U-Boot Team,
Denys Drozdov, Horia Geantă,
Gaurav Jain, Ye Li, Marcel Ziswiler, u-boot
Hi Oliver,
On Tue, Oct 25, 2022 at 12:31 PM Oliver Graute <oliver.graute@gmail.com> wrote:
> Now Running into this issue:
>
> MKIMAGE u-boot.img
> MKIMAGE u-boot-dtb.img
> LD u-boot.elf
> make[1]: Für das Ziel „SPL“ ist nichts zu tun.
> BINMAN all
> binman: Section '/binman/u-boot-spl-ddr': Symbol '_binman_u_boot_any_prop_image_pos'
> in entry '/binman/u-boot-spl-ddr/u-boot-spl/u-boot-spl-nodtb': Entry 'u-boot-any' not found in list (u-boot-spl-nodtb,u-boot-spl-dtb,u-boot-spl,main-section)
> Makefile:1109: recipe for target 'all' failed
> make: *** [all] Error 1
>
> some hints?
I suggest sending the two patches as a series: 1/2 and 2/2 as it is
easier to review.
Looks like you missed passing @fdt-SEQ like it is done on
arch/arm/dts/imx8mm-u-boot.dtsi.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v5] imx: imx8qm: cgtqmx8: switch to binman
2022-10-25 15:53 ` Fabio Estevam
@ 2022-10-26 14:00 ` Oliver Graute
0 siblings, 0 replies; 8+ messages in thread
From: Oliver Graute @ 2022-10-26 14:00 UTC (permalink / raw)
To: Fabio Estevam
Cc: sbabic, festevam, NXP i.MX U-Boot Team, Denys Drozdov,
Horia Geantă,
Gaurav Jain, Ye Li, Marcel Ziswiler, u-boot
On 25/10/22, Fabio Estevam wrote:
> Hi Oliver,
>
> On Tue, Oct 25, 2022 at 12:31 PM Oliver Graute <oliver.graute@gmail.com> wrote:
>
> > Now Running into this issue:
> >
> > MKIMAGE u-boot.img
> > MKIMAGE u-boot-dtb.img
> > LD u-boot.elf
> > make[1]: Für das Ziel „SPL“ ist nichts zu tun.
> > BINMAN all
> > binman: Section '/binman/u-boot-spl-ddr': Symbol '_binman_u_boot_any_prop_image_pos'
> > in entry '/binman/u-boot-spl-ddr/u-boot-spl/u-boot-spl-nodtb': Entry 'u-boot-any' not found in list (u-boot-spl-nodtb,u-boot-spl-dtb,u-boot-spl,main-section)
> > Makefile:1109: recipe for target 'all' failed
> > make: *** [all] Error 1
> >
> > some hints?
>
> I suggest sending the two patches as a series: 1/2 and 2/2 as it is
> easier to review.
Ok will send both patches in a series
>
> Looks like you missed passing @fdt-SEQ like it is done on
> arch/arm/dts/imx8mm-u-boot.dtsi.
Still see the above error (only for cgtqmx8 board) after replacing fdt
with @fdt-SEQ and further alignment with arch/arm/dts/imx8mm-u-boot.dtsi.
Error disappears if I remove the u-boot-spl node in imx8qm-u-boot.dts
But this make no sense for me.
/*
u-boot-spl {
align-end = <4>;
filename = "u-boot-spl.bin";
};
*
Best regards,
Oliver
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v5] imx: imx8qm: cgtqmx8: switch to binman
2022-10-25 15:31 ` Oliver Graute
2022-10-25 15:53 ` Fabio Estevam
@ 2022-11-01 23:00 ` Fabio Estevam
2022-11-02 9:05 ` Oliver Graute
1 sibling, 1 reply; 8+ messages in thread
From: Fabio Estevam @ 2022-11-01 23:00 UTC (permalink / raw)
To: sbabic, festevam, Fabio Estevam, NXP i.MX U-Boot Team,
Denys Drozdov, Horia Geantă,
Gaurav Jain, Ye Li, Marcel Ziswiler, u-boot
Hi Oliver,
On Tue, Oct 25, 2022 at 12:31 PM Oliver Graute <oliver.graute@gmail.com> wrote:
> Now Running into this issue:
>
> MKIMAGE u-boot.img
> MKIMAGE u-boot-dtb.img
> LD u-boot.elf
> make[1]: Für das Ziel „SPL“ ist nichts zu tun.
> BINMAN all
> binman: Section '/binman/u-boot-spl-ddr': Symbol '_binman_u_boot_any_prop_image_pos'
> in entry '/binman/u-boot-spl-ddr/u-boot-spl/u-boot-spl-nodtb': Entry 'u-boot-any' not found in list (u-boot-spl-nodtb,u-boot-spl-dtb,u-boot-spl,main-section)
> Makefile:1109: recipe for target 'all' failed
> make: *** [all] Error 1
>
> some hints?
As suggested in another thread, does it help if you add:
# CONFIG_SPL_BINMAN_UBOOT_SYMBOLS is not set
into your defconfig?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v5] imx: imx8qm: cgtqmx8: switch to binman
2022-11-01 23:00 ` Fabio Estevam
@ 2022-11-02 9:05 ` Oliver Graute
0 siblings, 0 replies; 8+ messages in thread
From: Oliver Graute @ 2022-11-02 9:05 UTC (permalink / raw)
To: Fabio Estevam
Cc: sbabic, festevam, NXP i.MX U-Boot Team, Denys Drozdov,
Horia Geantă,
Gaurav Jain, Ye Li, Marcel Ziswiler, u-boot
On 01/11/22, Fabio Estevam wrote:
> Hi Oliver,
>
> On Tue, Oct 25, 2022 at 12:31 PM Oliver Graute <oliver.graute@gmail.com> wrote:
>
> > Now Running into this issue:
> >
> > MKIMAGE u-boot.img
> > MKIMAGE u-boot-dtb.img
> > LD u-boot.elf
> > make[1]: Für das Ziel „SPL“ ist nichts zu tun.
> > BINMAN all
> > binman: Section '/binman/u-boot-spl-ddr': Symbol '_binman_u_boot_any_prop_image_pos'
> > in entry '/binman/u-boot-spl-ddr/u-boot-spl/u-boot-spl-nodtb': Entry 'u-boot-any' not found in list (u-boot-spl-nodtb,u-boot-spl-dtb,u-boot-spl,main-section)
> > Makefile:1109: recipe for target 'all' failed
> > make: *** [all] Error 1
> >
> > some hints?
>
> As suggested in another thread, does it help if you add:
>
> # CONFIG_SPL_BINMAN_UBOOT_SYMBOLS is not set
>
> into your defconfig?
indeed this solves the problem. Very thanks
I`ll post v6 then.
Best Regards,
Oliver
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v5] imx: imx8qm: cgtqmx8: switch to binman
2022-10-26 14:00 [PATCH v5] imx: imx8qm-rom7720: " Oliver Graute
@ 2022-10-26 14:00 ` Oliver Graute
0 siblings, 0 replies; 8+ messages in thread
From: Oliver Graute @ 2022-10-26 14:00 UTC (permalink / raw)
To: sbabic
Cc: festevam, peng.fan, oliver.graute, uboot-imx, agust, u-boot,
Denys Drozdov, Marcel Ziswiler, Horia Geantă,
Ye Li, Gaurav Jain
Switch to use binman to pack images
Signed-off-by: Oliver Graute <oliver.graute@kococonnector.com>
Reviewed-by: Fabio Estevam <festevam@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
---
Changes for v5
- added CONFIG_FIT_EXTERNAL_OFFSET
Changes for v4
- rebased on master
Changes for v3
-added Reviewed-by
- rebased on master
arch/arm/dts/imx8qm-cgtqmx8.dts | 1 +
arch/arm/mach-imx/imx8/Kconfig | 1 +
board/congatec/cgtqmx8/imximage.cfg | 4 ++--
configs/cgtqmx8_defconfig | 3 ++-
doc/board/congatec/cgtqmx8.rst | 3 +--
5 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/arch/arm/dts/imx8qm-cgtqmx8.dts b/arch/arm/dts/imx8qm-cgtqmx8.dts
index 555c357f6f..919d00644f 100644
--- a/arch/arm/dts/imx8qm-cgtqmx8.dts
+++ b/arch/arm/dts/imx8qm-cgtqmx8.dts
@@ -12,6 +12,7 @@
/memreserve/ 0x80000000 0x00020000;
#include "fsl-imx8qm.dtsi"
+#include "imx8qm-u-boot.dtsi"
/ {
model = "Congatec QMX8 Qseven series";
diff --git a/arch/arm/mach-imx/imx8/Kconfig b/arch/arm/mach-imx/imx8/Kconfig
index ba2a38c7f7..a0036a32b5 100644
--- a/arch/arm/mach-imx/imx8/Kconfig
+++ b/arch/arm/mach-imx/imx8/Kconfig
@@ -76,6 +76,7 @@ config TARGET_IMX8QM_MEK
config TARGET_CONGA_QMX8
bool "Support congatec conga-QMX8 board"
+ select BINMAN
select BOARD_LATE_INIT
select SUPPORT_SPL
select IMX8QM
diff --git a/board/congatec/cgtqmx8/imximage.cfg b/board/congatec/cgtqmx8/imximage.cfg
index 5ecde0c530..43035088e3 100644
--- a/board/congatec/cgtqmx8/imximage.cfg
+++ b/board/congatec/cgtqmx8/imximage.cfg
@@ -4,8 +4,8 @@
*/
-/* Boot from SD, sector size 0x400 */
-BOOT_FROM SD 0x400
+BOOT_FROM sd
+
/* SoC type IMX8QM */
SOC_TYPE IMX8QM
/* Append seco container image */
diff --git a/configs/cgtqmx8_defconfig b/configs/cgtqmx8_defconfig
index ddc65a06b9..fb43de624b 100644
--- a/configs/cgtqmx8_defconfig
+++ b/configs/cgtqmx8_defconfig
@@ -20,8 +20,9 @@ CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x80200000
CONFIG_REMAKE_ELF=y
CONFIG_FIT=y
+CONFIG_FIT_EXTERNAL_OFFSET=0x3000
CONFIG_SPL_LOAD_FIT=y
-CONFIG_SPL_FIT_GENERATOR="arch/arm/mach-imx/mkimage_fit_atf.sh"
+# CONFIG_USE_SPL_FIT_GENERATOR is not set
CONFIG_OF_BOARD_SETUP=y
CONFIG_BOOTDELAY=3
CONFIG_USE_BOOTCOMMAND=y
diff --git a/doc/board/congatec/cgtqmx8.rst b/doc/board/congatec/cgtqmx8.rst
index bccdef2f16..16711a844d 100644
--- a/doc/board/congatec/cgtqmx8.rst
+++ b/doc/board/congatec/cgtqmx8.rst
@@ -57,8 +57,7 @@ Build U-Boot
$ export ATF_LOAD_ADDR=0x80000000
$ export BL33_LOAD_ADDR=0x80020000
$ make cgtqmx8_defconfig
- $ make u-boot.bin
- $ make flash.bin
+ $ make
Flash the binary into the SD card
---------------------------------
--
2.17.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
end of thread, other threads:[~2022-11-02 9:12 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-25 15:20 [PATCH v4] imx: imx8qm-rom7720: switch to binman Oliver Graute
2022-10-25 15:20 ` [PATCH v5] imx: imx8qm: cgtqmx8: " Oliver Graute
2022-10-25 15:31 ` Oliver Graute
2022-10-25 15:53 ` Fabio Estevam
2022-10-26 14:00 ` Oliver Graute
2022-11-01 23:00 ` Fabio Estevam
2022-11-02 9:05 ` Oliver Graute
2022-10-26 14:00 [PATCH v5] imx: imx8qm-rom7720: " Oliver Graute
2022-10-26 14:00 ` [PATCH v5] imx: imx8qm: cgtqmx8: " Oliver Graute
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.