* [Buildroot] imx8 common script problem
@ 2022-02-20 17:05 Michael Nazzareno Trimarchi
2022-02-20 17:36 ` Giulio Benetti
0 siblings, 1 reply; 2+ messages in thread
From: Michael Nazzareno Trimarchi @ 2022-02-20 17:05 UTC (permalink / raw)
To: Buildroot Mailing List, Arnout Vandecappelle
Cc: Giulio Benetti, Fabio Estevam
HI all
I found that in order to generate a correct flash.bin image, the
script at the moment are broken at least for imx8mn. It works only
with this change
${HOST_DIR}/bin/mkimage_imx8 -fit -loader
${BINARIES_DIR}/u-boot-spl-ddr.bin 0x7E1000 -second_loader ${BIN
ARIES_DIR}/u-boot.itb 0x40200000 0x60000 -out ${BINARIES_DIR}/imx8-boot-sd.bin
elif grep -Eq "^BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MN=y$"
${BR2_CONFIG}; then
- cat ${BINARIES_DIR}/u-boot-spl.bin
${BINARIES_DIR}/ddr_fw.bin > ${BINARIES_DIR}/u-boot-spl-ddr.bin
+ dd if=${BINARIES_DIR}/u-boot-spl.bin
of=${BINARIES_DIR}/u-boot-spl-pad.bin bs=4 conv=sync
+ cat ${BINARIES_DIR}/u-boot-spl-pad.bin
${BINARIES_DIR}/ddr_fw.bin > ${BINARIES_DIR}/u-boot-spl-ddr.bin
BL31=${BINARIES_DIR}/bl31.bin
BL33=${BINARIES_DIR}/u-boot-nodtb.bin ATF_LOAD_ADDR=0x00960000
${HOST_DIR}/bin/mkimage_fit_atf.sh ${UBOOT_DTB} >
${BINARIES_DIR}/u-boot.its
${HOST_DIR}/bin/mkimage -E -p 0x3000 -f
${BINARIES_DIR}/u-boot.its ${BINARIES_DIR}/u-boot.itb
- rm -f ${BINARIES_DIR}/u-boot.its
+ #rm -f ${BINARIES_DIR}/u-boot.its
The padding seems correct even in the origina soc.mk of imx tools. Can
anyone comment?
Michael
--
Michael Nazzareno Trimarchi
Co-Founder & Chief Executive Officer
M. +39 347 913 2170
michael@amarulasolutions.com
__________________________________
Amarula Solutions BV
Joop Geesinkweg 125, 1114 AB, Amsterdam, NL
T. +31 (0)85 111 9172
info@amarulasolutions.com
www.amarulasolutions.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Buildroot] imx8 common script problem
2022-02-20 17:05 [Buildroot] imx8 common script problem Michael Nazzareno Trimarchi
@ 2022-02-20 17:36 ` Giulio Benetti
0 siblings, 0 replies; 2+ messages in thread
From: Giulio Benetti @ 2022-02-20 17:36 UTC (permalink / raw)
To: Michael Nazzareno Trimarchi, Buildroot Mailing List,
Arnout Vandecappelle
Cc: Fabio Estevam, Stephane Viau
Hi Michael, Stephan, All,
On 20/02/22 18:05, Michael Nazzareno Trimarchi wrote:
> HI all
>
> I found that in order to generate a correct flash.bin image, the
> script at the moment are broken at least for imx8mn. It works only
> with this change
>
> ${HOST_DIR}/bin/mkimage_imx8 -fit -loader
> ${BINARIES_DIR}/u-boot-spl-ddr.bin 0x7E1000 -second_loader ${BIN
> ARIES_DIR}/u-boot.itb 0x40200000 0x60000 -out ${BINARIES_DIR}/imx8-boot-sd.bin
> elif grep -Eq "^BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MN=y$"
> ${BR2_CONFIG}; then
> - cat ${BINARIES_DIR}/u-boot-spl.bin
> ${BINARIES_DIR}/ddr_fw.bin > ${BINARIES_DIR}/u-boot-spl-ddr.bin
> + dd if=${BINARIES_DIR}/u-boot-spl.bin
> of=${BINARIES_DIR}/u-boot-spl-pad.bin bs=4 conv=sync
> + cat ${BINARIES_DIR}/u-boot-spl-pad.bin
> ${BINARIES_DIR}/ddr_fw.bin > ${BINARIES_DIR}/u-boot-spl-ddr.bin
> BL31=${BINARIES_DIR}/bl31.bin
> BL33=${BINARIES_DIR}/u-boot-nodtb.bin ATF_LOAD_ADDR=0x00960000
> ${HOST_DIR}/bin/mkimage_fit_atf.sh ${UBOOT_DTB} >
> ${BINARIES_DIR}/u-boot.its
> ${HOST_DIR}/bin/mkimage -E -p 0x3000 -f
> ${BINARIES_DIR}/u-boot.its ${BINARIES_DIR}/u-boot.itb
> - rm -f ${BINARIES_DIR}/u-boot.its
> + #rm -f ${BINARIES_DIR}/u-boot.its
>
>
> The padding seems correct even in the origina soc.mk of imx tools. Can
> anyone comment?
I think the correct person to ask is Stephan that added support for:
board/freescale/imx8mnevk/
configs/freescale_imx8mnevk_defconfig
and he maintains him as you can find in DEVELOPERS file.
Michael, can you please send a patch --in-reply= to this e-mail with
these changes putting in Cc all people I've listed here? So it's easier
to review it. Especially for Stephan or who else owns a board with this SoC.
Unfortunately I don't have such hardware :-/
Best regards
--
Giulio Benetti
Benetti Engineering sas
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-02-20 17:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-20 17:05 [Buildroot] imx8 common script problem Michael Nazzareno Trimarchi
2022-02-20 17:36 ` Giulio Benetti
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.