Question regarding SPL symbol offsets generation
Subsystems (2)
Dear Community
I'd like to ask about one issue with generation of symbol offsets in binman [1].
In my case the CONFIG_FSPI_CONF_HEADER is defined.
Problem is with generated symbols [2] to point into ddr-1d-imem-fw/ddr-1d-dmem-fw/ddr-2d-imem-fw/ddr-2d-dmem-fw.
It looks like only symbols have extra offset of 0x1000 (the same as the first section introduces) - binaries for training memory are placed without this extra offset.
On the other hand - before this change:
SHA1: 37e50627efacd8dae18b564e9d8886a033e181bc
The u-boot-spl-ddr.bin was a separate binman "entry" (i.e. not section)
- so e.g. ddr-1d-dmem-fw {} had proper offsets (as this binary was also mangled into spl.bin with mkimage invocation).
Now the question - how to properly fix this issue?
I've tried to add pad-before = <0x1000>; to ddr-1d-imem-fw property hoping to "move" this binary itself by 0x1000. However with it the symbol of ddr-1d-dmem-fw is moved up as well.
Another option was to try alignment 'align-size' set to 0x1000 - effect is the same as described above.
In the documentation [3] - I've found that I could use "ProcessEntryContents()" for tweaking, but this seems to be not eligible (as all imx8mX boards, which are going to boot from fspi) are affected.
Maybe falling-back to 'multiple-images' [4] and generate the u-boot-spl-ddr.bin in that way is a proper solution?
Last but not least - this problem is not present when one boots from SD/eMMC as in this case the "fspi_conf_block" property is not present and everything starts with 0x0 offset.
Thanks in advance for your help.
Links:
[2] -
https://source.denx.de/u-boot/u-boot/-/blob/master/drivers/ddr/imx/phy/helper.c#L27
[3] -
https://github.com/ARM-software/u-boot/blob/master/tools/binman/README#L526
[4] -
https://github.com/ARM-software/u-boot/blob/master/tools/binman/README#L371
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: [email protected]
Hi Lukasz,
Quoted 41 lines · Lukasz Majewski
Dear Community
I'd like to ask about one issue with generation of symbol offsets in binman [1].
In my case the
CONFIG_FSPI_CONF_HEADERis defined.Problem is with generated symbols [2] to point into ddr-1d-imem-fw/ddr-1d-dmem-fw/ddr-2d-imem-fw/ddr-2d-dmem-fw.
It looks like only symbols have extra offset of
0x1000(the same as the first section introduces) - binaries for training memory are placed without this extra offset.On the other hand - before this change:
SHA1:37e50627efacd8dae18b564e9d8886a033e181bcThe u-boot-spl-ddr.bin was a separate binman "entry" (i.e. not section)
- so e.g. ddr-1d-dmem-fw {} had proper offsets (as this binary was also mangled into spl.bin with mkimage invocation).Now the question - how to properly fix this issue?
I've tried to add pad-before = <
0x1000>; to ddr-1d-imem-fw property hoping to "move" this binary itself by0x1000. However with it the symbol of ddr-1d-dmem-fw is moved up as well.Another option was to try alignment 'align-size' set to
0x1000- effect is the same as described above.In the documentation [3] - I've found that I could use "
ProcessEntryContents()" for tweaking, but this seems to be not eligible (as all imx8mX boards, which are going to boot from fspi) are affected.Maybe falling-back to 'multiple-images' [4] and generate the u-boot-spl-ddr.bin in that way is a proper solution?
Quoted 5 lines
Last but not least - this problem is not present when one boots from SD/eMMC as in this case the "
fspi_conf_block" property is not present and everything starts with0x0offset.Thanks in advance for your help.
BTW we are waiting for tests for this etype...when those are in place it should provide a way to test the behaviour.
I see that Entry_nxp_imx8mimage.SetImagePos() adjusts the image-pos. Is that the symbol you are writing? Are you saying that the image_pos symbol that is written is incorrect?
Or are you using u-boot-spl-mkimage.signed.bin (i.e. without the 4KB header) in the first section.
The image_pos is an absolute image position, so it doesn't matter what sections are written out as files. The image_pos will be the same regardless.
Why are u-boot-spl-mkimage.signed.bin and u-boot-fit.signed.bin written out? Aren't they just intermediate images, not useful for flashing to the board? If not, why is the FSPI conf block before them?
There is a 'skip-at-start' property which might be useful here, so long as I understand the above correctly.
Regards,
Simon
Quoted 26 lines
Links:
[2] -
https://source.denx.de/u-boot/u-boot/-/blob/master/drivers/ddr/imx/phy/helper.c#L27[3] -
https://github.com/ARM-software/u-boot/blob/master/tools/binman/README#L526[4] -
https://github.com/ARM-software/u-boot/blob/master/tools/binman/README#L371Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: [email protected]
Hi Simon,
Quoted 49 lines
Hi Lukasz,
Quoted 46 lines · Lukasz Majewski
Dear Community
I'd like to ask about one issue with generation of symbol offsets in binman [1].
In my case the
CONFIG_FSPI_CONF_HEADERis defined.Problem is with generated symbols [2] to point into ddr-1d-imem-fw/ddr-1d-dmem-fw/ddr-2d-imem-fw/ddr-2d-dmem-fw.
It looks like only symbols have extra offset of
0x1000(the same as the first section introduces) - binaries for training memory are placed without this extra offset.On the other hand - before this change:
SHA1:37e50627efacd8dae18b564e9d8886a033e181bcThe u-boot-spl-ddr.bin was a separate binman "entry" (i.e. not section)
- so e.g. ddr-1d-dmem-fw {} had proper offsets (as this binary was also mangled into spl.bin with mkimage invocation).Now the question - how to properly fix this issue?
I've tried to add pad-before = <
0x1000>; to ddr-1d-imem-fw property hoping to "move" this binary itself by0x1000. However with it the symbol of ddr-1d-dmem-fw is moved up as well.Another option was to try alignment 'align-size' set to
0x1000- effect is the same as described above.In the documentation [3] - I've found that I could use "
ProcessEntryContents()" for tweaking, but this seems to be not eligible (as all imx8mX boards, which are going to boot from fspi) are affected.Maybe falling-back to 'multiple-images' [4] and generate the u-boot-spl-ddr.bin in that way is a proper solution?
Last but not least - this problem is not present when one boots from SD/eMMC as in this case the "
fspi_conf_block" property is not present and everything starts with0x0offset.
Quoted 9 lines
Quoted 1 line
Thanks in advance for your help.
BTW we are waiting for tests for this etype...when those are in place it should provide a way to test the behaviour.
I see that
Entry_nxp_imx8mimage.SetImagePos()adjusts the image-pos. Is that the symbol you are writing? Are you saying that theimage_possymbol that is written is incorrect?
Yes, it is up by +0x1000 when compared to the real place where binaries (like ddr_1d_imem_fw) are placed.
Quoted 2 lines
Or are you using u-boot-spl-mkimage.signed.bin (i.e. without the 4KB header) in the first section.
No, HAB (signing) is disabled.
Instead I'm using the CONFIG_FSPI_CONF_HEADER from [1]. It adds FSPI (QSPI) specific header with 0x1000 size.
Quoted 4 lines
The
image_posis an absolute image position, so it doesn't matter what sections are written out as files. Theimage_poswill be the same regardless.
To have the board booting again - I do need to perform:
imem_start -= 0x1000;
dmem_start -= 0x1000;
added at [5].
Quoted 5 lines
Why are u-boot-spl-mkimage.signed.bin and u-boot-fit.signed.bin written out? Aren't they just intermediate images, not useful for flashing to the board? If not, why is the FSPI conf block before them?
As stated above - I'm not using HAB so those are not created.
The FSPI block is required to boot the device with QSPI - it holds meta data to configure the memory itself.
Quoted 2 lines
There is a 'skip-at-start' property which might be useful here, so long as I understand the above correctly.
Ok - I will try it.
Thanks for your help :-)
Quoted 32 lines
Regards,
SimonQuoted 27 lines
Links:
[2] -
https://source.denx.de/u-boot/u-boot/-/blob/master/drivers/ddr/imx/phy/helper.c#L27[3] -
https://github.com/ARM-software/u-boot/blob/master/tools/binman/README#L526[4] -
https://github.com/ARM-software/u-boot/blob/master/tools/binman/README#L371Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email:
[email protected]
Links:
[5] -
https://source.denx.de/u-boot/u-boot/-/blob/master/drivers/ddr/imx/phy/helper.c#L87
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: [email protected]
Fabio Estevam
reviewerHi Lukasz,
Quoted 18 lines · Lukasz Majewski
Dear Community
I'd like to ask about one issue with generation of symbol offsets in binman [1].
In my case the
CONFIG_FSPI_CONF_HEADERis defined.Problem is with generated symbols [2] to point into ddr-1d-imem-fw/ddr-1d-dmem-fw/ddr-2d-imem-fw/ddr-2d-dmem-fw.
It looks like only symbols have extra offset of
0x1000(the same as the first section introduces) - binaries for training memory are placed without this extra offset.On the other hand - before this change:
SHA1:37e50627efacd8dae18b564e9d8886a033e181bc
Quoted 6 lines
The u-boot-spl-ddr.bin was a separate binman "entry" (i.e. not section)
- so e.g. ddr-1d-dmem-fw {} had proper offsets (as this binary was also mangled into spl.bin with mkimage invocation).Now the question - how to properly fix this issue?
I assume you fixed the problem with this change:
https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/
Hi Fabio,
Quoted 27 lines
Hi Lukasz,
Quoted 24 lines · Lukasz Majewski
Dear Community
I'd like to ask about one issue with generation of symbol offsets in binman [1].
In my case the
CONFIG_FSPI_CONF_HEADERis defined.Problem is with generated symbols [2] to point into ddr-1d-imem-fw/ddr-1d-dmem-fw/ddr-2d-imem-fw/ddr-2d-dmem-fw.
It looks like only symbols have extra offset of
0x1000(the same as the first section introduces) - binaries for training memory are placed without this extra offset.On the other hand - before this change:
SHA1:37e50627efacd8dae18b564e9d8886a033e181bcThe u-boot-spl-ddr.bin was a separate binman "entry" (i.e. not section)
- so e.g. ddr-1d-dmem-fw {} had proper offsets (as this binary was also mangled into spl.bin with mkimage invocation).
Quoted 4 lines
Quoted 1 line
Now the question - how to properly fix this issue?
I assume you fixed the problem with this change:
https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/
Unfortunately not - this change is only for properly setting start address of the u-boot.
The _real_ problem here is the symbol placement generated by binman when we try to define the image as a single one.
Moreover, this change follows other boards with imx8mm processor - ./configs/imx8mm_beacon_fspi_defconfig to be specific.
The "fix" (for which I'd been now probably opt) for this issue would be to generate two images with binman - one for u-boot-spl-ddr.bin and the final flash.bin with the former one included (as it was before SHA1:37e50627efacd8dae18b564e9d8886a033e181bc)
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: [email protected]
Fabio Estevam
reviewerHi Lukasz,
Quoted 6 lines · Lukasz Majewski
Unfortunately not - this change is only for properly setting start address of the u-boot.
The _real_ problem here is the symbol placement generated by binman when we try to define the image as a single one.
Quoted 7 lines
Moreover, this change follows other boards with imx8mm processor - ./configs/imx8mm_beacon_fspi_defconfig to be specific.
The "fix" (for which I'd been now probably opt) for this issue would be to generate two images with binman - one for u-boot-spl-ddr.bin and the final flash.bin with the former one included (as it was before SHA1:
37e50627efacd8dae18b564e9d8886a033e181bc)
Is QSPI boot broken on i.MX8MM?
I am adding Adam and Mamta who have tested QSPI booting on imx8mm_beacon and imx8mm_evk, respectively.
Hi,
Quoted 19 lines · Fabio Estevam
Hi Lukasz,
Quoted 6 lines · Lukasz Majewski
Unfortunately not - this change is only for properly setting start address of the u-boot.
The _real_ problem here is the symbol placement generated by binman when we try to define the image as a single one.
Quoted 7 lines
Moreover, this change follows other boards with imx8mm processor - ./configs/imx8mm_beacon_fspi_defconfig to be specific.
The "fix" (for which I'd been now probably opt) for this issue would be to generate two images with binman - one for u-boot-spl-ddr.bin and the final flash.bin with the former one included (as it was before SHA1:
37e50627efacd8dae18b564e9d8886a033e181bc)
Quoted 4 lines
Is QSPI boot broken on i.MX8MM?
I am adding Adam and Mamta who have tested QSPI booting on
imx8mm_beaconandimx8mm_evk, respectively.
Note also that I sent a series[1] which allows the symbols-base to be adjusted, if that helps.
Regards,
Simon
[1] https://patchwork.ozlabs.org/project/uboot/list/?series=421010
Hi Fabio,
Quoted 13 lines
Hi Lukasz,
Quoted 9 lines · Lukasz Majewski
Unfortunately not - this change is only for properly setting start address of the u-boot.
The _real_ problem here is the symbol placement generated by binman when we try to define the image as a single one.
Moreover, this change follows other boards with imx8mm processor - ./configs/imx8mm_beacon_fspi_defconfig to be specific.
Quoted 8 lines
Quoted 5 lines
The "fix" (for which I'd been now probably opt) for this issue would be to generate two images with binman - one for u-boot-spl-ddr.bin and the final flash.bin with the former one included (as it was before SHA1:
37e50627efacd8dae18b564e9d8886a033e181bc)Is QSPI boot broken on i.MX8MM?
With newest mainline - yes.
Please consult (this works on polis):
https://github.com/lmajewski/u-boot/commits/phycore-imx8mm-qspi-nvme
The spl symbols after binman generation are off by 0x1000 (by the inserted on the beginning QSPI header)
Quoted 2 lines
I am adding Adam and Mamta who have tested QSPI booting on
imx8mm_beaconandimx8mm_evk, respectively.
Ok. Good.
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: [email protected]
Hi Simon,
Quoted 24 lines
Hi,
Quoted 20 lines · Fabio Estevam
Hi Lukasz,
Quoted 14 lines · Lukasz Majewski
Unfortunately not - this change is only for properly setting start address of the u-boot.
The _real_ problem here is the symbol placement generated by binman when we try to define the image as a single one.
Moreover, this change follows other boards with imx8mm processor - ./configs/imx8mm_beacon_fspi_defconfig to be specific.
The "fix" (for which I'd been now probably opt) for this issue would be to generate two images with binman - one for u-boot-spl-ddr.bin and the final flash.bin with the former one included (as it was before SHA1:
37e50627efacd8dae18b564e9d8886a033e181bc)
Quoted 7 lines
Quoted 4 lines
Is QSPI boot broken on i.MX8MM?
I am adding Adam and Mamta who have tested QSPI booting on
imx8mm_beaconandimx8mm_evk, respectively.Note also that I sent a series[1] which allows the symbols-base to be adjusted, if that helps.
I've seen them - but not yet tested.
Thanks Simon for the patch series.
Quoted 5 lines
Regards,
Simon[1] https://patchwork.ozlabs.org/project/uboot/list/?series=421010
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: [email protected]
Quoted 32 lines · Lukasz Majewski
Hi Simon,
Quoted 29 lines
Hi,
Quoted 24 lines · Fabio Estevam
Hi Lukasz,
Quoted 6 lines · Lukasz Majewski
Unfortunately not - this change is only for properly setting start address of the u-boot.
The _real_ problem here is the symbol placement generated by binman when we try to define the image as a single one.
Quoted 8 lines
Moreover, this change follows other boards with imx8mm processor - ./configs/imx8mm_beacon_fspi_defconfig to be specific.
The "fix" (for which I'd been now probably opt) for this issue would be to generate two images with binman - one for u-boot-spl-ddr.bin and the final flash.bin with the former one included (as it was before SHA1:
37e50627efacd8dae18b564e9d8886a033e181bc)Is QSPI boot broken on i.MX8MM?
I am adding Adam and Mamta who have tested QSPI booting on
imx8mm_beaconandimx8mm_evk, respectively.
Quoted 6 lines
Quoted 2 lines
Note also that I sent a series[1] which allows the symbols-base to be adjusted, if that helps.
I've seen them - but not yet tested.
Thanks Simon for the patch series.
Is it still broken with this patch series? I have been traveling and haven't had much time to test.
adam
Quoted 19 lines
Quoted 6 lines
Regards,
Simon[1] https://patchwork.ozlabs.org/project/uboot/list/?series=421010
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: [email protected]
Hi Adam,
Quoted 37 lines · Lukasz Majewski
Quoted 36 lines
Hi Simon,
Quoted 32 lines
Hi,
Quoted 21 lines · Fabio Estevam
Hi Lukasz,
Quoted 10 lines · Lukasz Majewski
Unfortunately not - this change is only for properly setting start address of the u-boot.
The _real_ problem here is the symbol placement generated by binman when we try to define the image as a single one.
Moreover, this change follows other boards with imx8mm processor - ./configs/imx8mm_beacon_fspi_defconfig to be specific.
Quoted 5 lines
The "fix" (for which I'd been now probably opt) for this issue would be to generate two images with binman - one for u-boot-spl-ddr.bin and the final flash.bin with the former one included (as it was before SHA1:
37e50627efacd8dae18b564e9d8886a033e181bc)Quoted 4 lines
Is QSPI boot broken on i.MX8MM?
I am adding Adam and Mamta who have tested QSPI booting on
imx8mm_beaconandimx8mm_evk, respectively.Note also that I sent a series[1] which allows the symbols-base to be adjusted, if that helps.
Quoted 6 lines
Quoted 3 lines
I've seen them - but not yet tested.
Thanks Simon for the patch series.
Is it still broken with this patch series? I have been traveling and haven't had much time to test.
Yes, I can confirm that it is still broken.
I've applied:
https://patchwork.ozlabs.org/project/uboot/cover/[email protected]/
on top of mainline:
SHA1: 1630ff26cc960439b5949b80cfc604a2c8aa47dd
Adding symbols-base = <0>; to imx8mm-u-boot.dtsi did not help.
Quoted 23 lines
adam
Quoted 21 lines
Quoted 7 lines
Regards,
Simon[1]
https://patchwork.ozlabs.org/project/uboot/list/?series=421010Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email:
[email protected]
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: [email protected]
Hi Lukasz,
Quoted 49 lines · Lukasz Majewski
Hi Adam,
Quoted 37 lines · Lukasz Majewski
Quoted 36 lines
Hi Simon,
Quoted 32 lines
Hi,
Quoted 21 lines · Fabio Estevam
Hi Lukasz,
Quoted 10 lines · Lukasz Majewski
Unfortunately not - this change is only for properly setting start address of the u-boot.
The _real_ problem here is the symbol placement generated by binman when we try to define the image as a single one.
Moreover, this change follows other boards with imx8mm processor - ./configs/imx8mm_beacon_fspi_defconfig to be specific.
Quoted 5 lines
The "fix" (for which I'd been now probably opt) for this issue would be to generate two images with binman - one for u-boot-spl-ddr.bin and the final flash.bin with the former one included (as it was before SHA1:
37e50627efacd8dae18b564e9d8886a033e181bc)Quoted 4 lines
Is QSPI boot broken on i.MX8MM?
I am adding Adam and Mamta who have tested QSPI booting on
imx8mm_beaconandimx8mm_evk, respectively.Note also that I sent a series[1] which allows the symbols-base to be adjusted, if that helps.
Quoted 6 lines
Quoted 3 lines
I've seen them - but not yet tested.
Thanks Simon for the patch series.
Is it still broken with this patch series? I have been traveling and haven't had much time to test.
Yes, I can confirm that it is still broken.
Quoted 7 lines
I've applied:
https://patchwork.ozlabs.org/project/uboot/cover/[email protected]/on top of mainline:
SHA1:1630ff26cc960439b5949b80cfc604a2c8aa47ddAdding symbols-base = <0>; to
imx8mm-u-boot.dtsidid not help.
Can you please point me to the tree? I suspect that the symbols-base is already 0, so setting it to 0 has no effect. I'm not sure though,
Regards,
Simon
Hi Simon,
Quoted 56 lines
Hi Lukasz,
Quoted 53 lines · Lukasz Majewski
Hi Adam,
Quoted 38 lines
Quoted 36 lines · Lukasz Majewski
Hi Simon,
Quoted 32 lines
Hi,
Quoted 21 lines · Fabio Estevam
Hi Lukasz,
Quoted 10 lines · Lukasz Majewski
Unfortunately not - this change is only for properly setting start address of the u-boot.
The _real_ problem here is the symbol placement generated by binman when we try to define the image as a single one.
Moreover, this change follows other boards with imx8mm processor - ./configs/imx8mm_beacon_fspi_defconfig to be specific.
Quoted 5 lines
The "fix" (for which I'd been now probably opt) for this issue would be to generate two images with binman - one for u-boot-spl-ddr.bin and the final flash.bin with the former one included (as it was before SHA1:
37e50627efacd8dae18b564e9d8886a033e181bc)Quoted 4 lines
Is QSPI boot broken on i.MX8MM?
I am adding Adam and Mamta who have tested QSPI booting on
imx8mm_beaconandimx8mm_evk, respectively.Note also that I sent a series[1] which allows the symbols-base to be adjusted, if that helps.
Quoted 6 lines
Quoted 3 lines
I've seen them - but not yet tested.
Thanks Simon for the patch series.
Is it still broken with this patch series? I have been traveling and haven't had much time to test.
Yes, I can confirm that it is still broken.
I've applied:
https://patchwork.ozlabs.org/project/uboot/cover/[email protected]/
Quoted 6 lines
Quoted 4 lines
on top of mainline:
SHA1:1630ff26cc960439b5949b80cfc604a2c8aa47ddAdding symbols-base = <0>; to
imx8mm-u-boot.dtsidid not help.Can you please point me to the tree?
https://github.com/lmajewski/u-boot/commits/imx8mm-test-qspi-boot-binman-patches
Quoted 3 lines
I suspect that the symbols-base
is already 0, so setting it to 0 has no effect. I'm not sure though,
Ach... I see.
Please correct me if I'm wrong, but isn't the "symbols-base" an absolute address?
This is my impression from the descripion.
However, in my case - I would need the "relative" modification - please see the required "hack":
https://github.com/lmajewski/u-boot/commit/07c0057fcfd242fa791767aaf0ac752d3d0545f7
Quoted 2 lines
Regards,
Simon
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: [email protected]
Hi ,
Quoted 74 lines · Lukasz Majewski
Hi Simon,
Quoted 56 lines
Hi Lukasz,
Quoted 53 lines · Lukasz Majewski
Hi Adam,
Quoted 38 lines
Quoted 36 lines · Lukasz Majewski
Hi Simon,
Quoted 32 lines
Hi,
Quoted 21 lines · Fabio Estevam
Hi Lukasz,
Quoted 10 lines · Lukasz Majewski
Unfortunately not - this change is only for properly setting start address of the u-boot.
The _real_ problem here is the symbol placement generated by binman when we try to define the image as a single one.
Moreover, this change follows other boards with imx8mm processor - ./configs/imx8mm_beacon_fspi_defconfig to be specific.
Quoted 5 lines
The "fix" (for which I'd been now probably opt) for this issue would be to generate two images with binman - one for u-boot-spl-ddr.bin and the final flash.bin with the former one included (as it was before SHA1:
37e50627efacd8dae18b564e9d8886a033e181bc)Quoted 4 lines
Is QSPI boot broken on i.MX8MM?
I am adding Adam and Mamta who have tested QSPI booting on
imx8mm_beaconandimx8mm_evk, respectively.Note also that I sent a series[1] which allows the symbols-base to be adjusted, if that helps.
Quoted 6 lines
Quoted 3 lines
I've seen them - but not yet tested.
Thanks Simon for the patch series.
Is it still broken with this patch series? I have been traveling and haven't had much time to test.
Yes, I can confirm that it is still broken.
I've applied:
https://patchwork.ozlabs.org/project/uboot/cover/[email protected]/Quoted 6 lines
Quoted 4 lines
on top of mainline:
SHA1:1630ff26cc960439b5949b80cfc604a2c8aa47ddAdding symbols-base = <0>; to
imx8mm-u-boot.dtsidid not help.Can you please point me to the tree?
https://github.com/lmajewski/u-boot/commits/imx8mm-test-qspi-boot-binman-patches
Quoted 3 lines
I suspect that the symbols-base
is already 0, so setting it to 0 has no effect. I'm not sure though,Ach... I see.
Quoted 8 lines
Please correct me if I'm wrong, but isn't the "symbols-base" an absolute address?
This is my impression from the descripion.
However, in my case - I would need the "relative" modification - please see the required "hack":
https://github.com/lmajewski/u-boot/commit/07c0057fcfd242fa791767aaf0ac752d3d0545f7
From the mailing list it seems you found a solution?
Quoted 8 lines
Quoted 4 lines
Regards,
SimonBest regards,
Quoted 7 lines
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: [email protected]
Regards,
Simon
Hi Simon,
Quoted 83 lines
Hi ,
Quoted 80 lines · Lukasz Majewski
Hi Simon,
Quoted 59 lines
Hi Lukasz,
Quoted 55 lines · Lukasz Majewski
Hi Adam,
Quoted 40 lines
Quoted 38 lines · Lukasz Majewski
Hi Simon,
Quoted 34 lines
Hi,
Quoted 23 lines · Fabio Estevam
Hi Lukasz,
Quoted 11 lines · Lukasz Majewski
Unfortunately not - this change is only for properly setting start address of the u-boot.
The _real_ problem here is the symbol placement generated by binman when we try to define the image as a single one.
Moreover, this change follows other boards with imx8mm processor - ./configs/imx8mm_beacon_fspi_defconfig to be specific.
Quoted 6 lines
The "fix" (for which I'd been now probably opt) for this issue would be to generate two images with binman - one for u-boot-spl-ddr.bin and the final flash.bin with the former one included (as it was before SHA1:
37e50627efacd8dae18b564e9d8886a033e181bc)Quoted 4 lines
Is QSPI boot broken on i.MX8MM?
I am adding Adam and Mamta who have tested QSPI booting on
imx8mm_beaconandimx8mm_evk, respectively.Note also that I sent a series[1] which allows the symbols-base to be adjusted, if that helps.
Quoted 6 lines
Quoted 3 lines
I've seen them - but not yet tested.
Thanks Simon for the patch series.
Is it still broken with this patch series? I have been traveling and haven't had much time to test.
Yes, I can confirm that it is still broken.
I've applied:
https://patchwork.ozlabs.org/project/uboot/cover/[email protected]/Quoted 6 lines
Quoted 4 lines
on top of mainline:
SHA1:1630ff26cc960439b5949b80cfc604a2c8aa47ddAdding symbols-base = <0>; to
imx8mm-u-boot.dtsidid not help.Can you please point me to the tree?
https://github.com/lmajewski/u-boot/commits/imx8mm-test-qspi-boot-binman-patches
Quoted 3 lines
I suspect that the symbols-base
is already 0, so setting it to 0 has no effect. I'm not sure though,Ach... I see.
Please correct me if I'm wrong, but isn't the "symbols-base" an absolute address?
Quoted 8 lines
Quoted 6 lines
This is my impression from the descripion.
However, in my case - I would need the "relative" modification - please see the required "hack":
https://github.com/lmajewski/u-boot/commit/07c0057fcfd242fa791767aaf0ac752d3d0545f7From the mailing list it seems you found a solution?
Nope, the "hack" is not for upstreaming...
It just shows that some symbols were misplaced and shall be _properly_ fixed by altering either imx8mm-u-boot.dtsi or binman itself.
Quoted 13 lines
Quoted 13 lines
Quoted 5 lines
Regards,
SimonBest regards,
Lukasz Majewski
--
Quoted 7 lines
Quoted 4 lines
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email:
[email protected]Regards,
Simon
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: [email protected]
Quoted 40 lines · Lukasz Majewski
Hi Adam,
Quoted 37 lines · Lukasz Majewski
Quoted 36 lines
Hi Simon,
Quoted 32 lines
Hi,
Quoted 21 lines · Fabio Estevam
Hi Lukasz,
Quoted 10 lines · Lukasz Majewski
Unfortunately not - this change is only for properly setting start address of the u-boot.
The _real_ problem here is the symbol placement generated by binman when we try to define the image as a single one.
Moreover, this change follows other boards with imx8mm processor - ./configs/imx8mm_beacon_fspi_defconfig to be specific.
Quoted 5 lines
The "fix" (for which I'd been now probably opt) for this issue would be to generate two images with binman - one for u-boot-spl-ddr.bin and the final flash.bin with the former one included (as it was before SHA1:
37e50627efacd8dae18b564e9d8886a033e181bc)Quoted 4 lines
Is QSPI boot broken on i.MX8MM?
I am adding Adam and Mamta who have tested QSPI booting on
imx8mm_beaconandimx8mm_evk, respectively.Note also that I sent a series[1] which allows the symbols-base to be adjusted, if that helps.
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
I've seen them - but not yet tested.
Thanks Simon for the patch series.
Is it still broken with this patch series? I have been traveling and haven't had much time to test.
Yes, I can confirm that it is still broken.
Sorry for the delay. I had to return my 8MM to Beacon, and I was waiting for a replacement.
To not prolong it anymore, I decided to try it with an 8M Nano, and I got a boot failure on master. I was able to successfully boot 2024.01-rc5, but I haven't had time to bisect it yet. I'll try to do that this week. I think once we can bisect the error, it might become more apparent.
adam
Quoted 45 lines
I've applied:
https://patchwork.ozlabs.org/project/uboot/cover/[email protected]/on top of mainline:
SHA1:1630ff26cc960439b5949b80cfc604a2c8aa47ddAdding symbols-base = <0>; to
imx8mm-u-boot.dtsidid not help.Quoted 23 lines
adam
Quoted 21 lines
Quoted 7 lines
Regards,
Simon[1]
https://patchwork.ozlabs.org/project/uboot/list/?series=421010Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email:
[email protected]Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: [email protected]
Quoted 51 lines · Adam Ford
Quoted 40 lines · Lukasz Majewski
Hi Adam,
Quoted 37 lines · Lukasz Majewski
Quoted 36 lines
Hi Simon,
Quoted 32 lines
Hi,
Quoted 21 lines · Fabio Estevam
Hi Lukasz,
Quoted 10 lines · Lukasz Majewski
Unfortunately not - this change is only for properly setting start address of the u-boot.
The _real_ problem here is the symbol placement generated by binman when we try to define the image as a single one.
Moreover, this change follows other boards with imx8mm processor - ./configs/imx8mm_beacon_fspi_defconfig to be specific.
Quoted 5 lines
The "fix" (for which I'd been now probably opt) for this issue would be to generate two images with binman - one for u-boot-spl-ddr.bin and the final flash.bin with the former one included (as it was before SHA1:
37e50627efacd8dae18b564e9d8886a033e181bc)Quoted 4 lines
Is QSPI boot broken on i.MX8MM?
I am adding Adam and Mamta who have tested QSPI booting on
imx8mm_beaconandimx8mm_evk, respectively.Note also that I sent a series[1] which allows the symbols-base to be adjusted, if that helps.
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
I've seen them - but not yet tested.
Thanks Simon for the patch series.
Is it still broken with this patch series? I have been traveling and haven't had much time to test.
Yes, I can confirm that it is still broken.
Quoted 8 lines
Sorry for the delay. I had to return my 8MM to Beacon, and I was waiting for a replacement.
To not prolong it anymore, I decided to try it with an 8M Nano, and I got a boot failure on master. I was able to successfully boot 2024.01-rc5, but I haven't had time to bisect it yet. I'll try to do that this week. I think once we can bisect the error, it might become more apparent.
Git bisect narrowed down the git which broke the build:
commit 37e50627efacd8dae18b564e9d8886a033e181bc (HEAD)
Author: Marek Vasut <[email protected]> Date: Fri Apr 26 01:00:37 2024 +0200
ARM: dts: imx: Convert i.MX8M flash.bin image generation to binman
I am guessing the binman isn't prepending the header stuff. I'll try to investigate it this week.
adam
Quoted 48 lines
adam
Quoted 45 lines
I've applied:
https://patchwork.ozlabs.org/project/uboot/cover/[email protected]/on top of mainline:
SHA1:1630ff26cc960439b5949b80cfc604a2c8aa47ddAdding symbols-base = <0>; to
imx8mm-u-boot.dtsidid not help.Quoted 23 lines
adam
Quoted 21 lines
Quoted 7 lines
Regards,
Simon[1]
https://patchwork.ozlabs.org/project/uboot/list/?series=421010Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email:
[email protected]Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: [email protected]
Quoted 64 lines · Adam Ford
Quoted 51 lines · Adam Ford
Quoted 40 lines · Lukasz Majewski
Hi Adam,
Quoted 37 lines · Lukasz Majewski
Quoted 36 lines
Hi Simon,
Quoted 32 lines
Hi,
Quoted 21 lines · Fabio Estevam
Hi Lukasz,
Quoted 10 lines · Lukasz Majewski
Unfortunately not - this change is only for properly setting start address of the u-boot.
The _real_ problem here is the symbol placement generated by binman when we try to define the image as a single one.
Moreover, this change follows other boards with imx8mm processor - ./configs/imx8mm_beacon_fspi_defconfig to be specific.
Quoted 5 lines
The "fix" (for which I'd been now probably opt) for this issue would be to generate two images with binman - one for u-boot-spl-ddr.bin and the final flash.bin with the former one included (as it was before SHA1:
37e50627efacd8dae18b564e9d8886a033e181bc)Quoted 4 lines
Is QSPI boot broken on i.MX8MM?
I am adding Adam and Mamta who have tested QSPI booting on
imx8mm_beaconandimx8mm_evk, respectively.Note also that I sent a series[1] which allows the symbols-base to be adjusted, if that helps.
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
I've seen them - but not yet tested.
Thanks Simon for the patch series.
Is it still broken with this patch series? I have been traveling and haven't had much time to test.
Yes, I can confirm that it is still broken.
Quoted 8 lines
Sorry for the delay. I had to return my 8MM to Beacon, and I was waiting for a replacement.
To not prolong it anymore, I decided to try it with an 8M Nano, and I got a boot failure on master. I was able to successfully boot 2024.01-rc5, but I haven't had time to bisect it yet. I'll try to do that this week. I think once we can bisect the error, it might become more apparent.
Git bisect narrowed down the git which broke the build:
Quoted 8 lines
commit
37e50627efacd8dae18b564e9d8886a033e181bc(HEAD)Author: Marek Vasut <[email protected]> Date: Fri Apr 26 01:00:37 2024 +0200ARM: dts: imx: Convert i.MX8M flash.bin image generation to binman
I am guessing the binman isn't prepending the header stuff. I'll try to investigate it this week.
Despite being tired (and having a little wine), I couldn't put this down.
The working version appears to have a sequence that starts at 0x1000:
00001000 d1 00 20 41 00 20 91 00 00 00 00 00 00 00 00 00
The same sequence on the non-working version has the same sequence at a different offset:
000005c0 d1 00 20 41 00 20 91 00 00 00 00 00 00 00 00 00
I think the offset needs to be fixed. I tried the following patch, but I am now getting some i2c clock failures, so I need to investigate further:
arch/arm/dts/imx8mn-u-boot.dtsi +3 -1
@@ -117,7 +117,9 @@ nxp,rom-version = <2>; nxp,loader-address = <CONFIG_SPL_TEXT_BASE>; args; /* Needed by mkimage etype superclass */ - +#ifdef CONFIG_FSPI_CONF_HEADER + offset = <0x1000>; +#endif section { filename = "u-boot-spl-ddr.bin"; pad-byte = <0xff>;
Wtih the above patch, SPL tries to execute:
U-Boot SPL 2025.01-rc1-g6ebfafe8c532-dirty (Nov 03 2024 - 21:23:04 -0600) Failed to get i2c clk
Once I can figure out the i2c clk issue, I can further test and/or submit a patch with a fixes-tag.
adam
Quoted 51 lines
adam
Quoted 48 lines
adam
Quoted 45 lines
I've applied:
https://patchwork.ozlabs.org/project/uboot/cover/[email protected]/on top of mainline:
SHA1:1630ff26cc960439b5949b80cfc604a2c8aa47ddAdding symbols-base = <0>; to
imx8mm-u-boot.dtsidid not help.Quoted 23 lines
adam
Quoted 21 lines
Quoted 7 lines
Regards,
Simon[1]
https://patchwork.ozlabs.org/project/uboot/list/?series=421010Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email:
[email protected]Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: [email protected]
Hi Adam,
Quoted 66 lines · Adam Ford
Quoted 54 lines
Quoted 42 lines · Lukasz Majewski
Hi Adam,
Quoted 39 lines
Quoted 37 lines · Lukasz Majewski
Hi Simon,
Quoted 33 lines
Hi,
Quoted 22 lines · Fabio Estevam
Hi Lukasz,
Quoted 11 lines · Lukasz Majewski
Unfortunately not - this change is only for properly setting start address of the u-boot.
The _real_ problem here is the symbol placement generated by binman when we try to define the image as a single one.
Moreover, this change follows other boards with imx8mm processor - ./configs/imx8mm_beacon_fspi_defconfig to be specific.
Quoted 5 lines
The "fix" (for which I'd been now probably opt) for this issue would be to generate two images with binman
- one for u-boot-spl-ddr.bin and the final flash.bin with the former one included (as it was before SHA1:37e50627efacd8dae18b564e9d8886a033e181bc)Quoted 4 lines
Is QSPI boot broken on i.MX8MM?
I am adding Adam and Mamta who have tested QSPI booting on
imx8mm_beaconandimx8mm_evk, respectively.Note also that I sent a series[1] which allows the symbols-base to be adjusted, if that helps.
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
I've seen them - but not yet tested.
Thanks Simon for the patch series.
Is it still broken with this patch series? I have been traveling and haven't had much time to test.
Yes, I can confirm that it is still broken.
Quoted 8 lines
Sorry for the delay. I had to return my 8MM to Beacon, and I was waiting for a replacement.
To not prolong it anymore, I decided to try it with an 8M Nano, and I got a boot failure on master. I was able to successfully boot 2024.01-rc5, but I haven't had time to bisect it yet. I'll try to do that this week. I think once we can bisect the error, it might become more apparent.
Git bisect narrowed down the git which broke the build:
Quoted 8 lines
commit
37e50627efacd8dae18b564e9d8886a033e181bc(HEAD)Author: Marek Vasut <[email protected]> Date: Fri Apr 26 01:00:37 2024 +0200ARM: dts: imx: Convert i.MX8M flash.bin image generation to binman
I am guessing the binman isn't prepending the header stuff. I'll try to investigate it this week.
This is the problem with adjustments.
I've prepared following fixes for it (but are not upstreamable):
https://github.com/lmajewski/u-boot/commits/phycore-imx8mm-qspi-nvme
(problem is with wrong offsets assigned -> 0x1000 switch)
Unfortunately, I don't have the HW any more at hand.
Quoted 53 lines
adam
Quoted 50 lines
adam
Quoted 47 lines
I've applied:
https://patchwork.ozlabs.org/project/uboot/cover/[email protected]/on top of mainline:
SHA1:1630ff26cc960439b5949b80cfc604a2c8aa47ddAdding symbols-base = <0>; to
imx8mm-u-boot.dtsidid not help.Quoted 24 lines
adam
Quoted 22 lines
Quoted 8 lines
Regards,
Simon[1]
https://patchwork.ozlabs.org/project/uboot/list/?series=421010Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Erika
Unter HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax:
(+49)-8142-66989-80 Email: [email protected]Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Erika
Unter HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax:
(+49)-8142-66989-80 Email: [email protected]
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: [email protected]
Quoted 78 lines · Lukasz Majewski
Hi Adam,
Quoted 66 lines · Adam Ford
Quoted 54 lines
Quoted 42 lines · Lukasz Majewski
Hi Adam,
Quoted 39 lines
Quoted 37 lines · Lukasz Majewski
Hi Simon,
Quoted 33 lines
Hi,
Quoted 22 lines · Fabio Estevam
Hi Lukasz,
Quoted 11 lines · Lukasz Majewski
Unfortunately not - this change is only for properly setting start address of the u-boot.
The _real_ problem here is the symbol placement generated by binman when we try to define the image as a single one.
Moreover, this change follows other boards with imx8mm processor - ./configs/imx8mm_beacon_fspi_defconfig to be specific.
Quoted 5 lines
The "fix" (for which I'd been now probably opt) for this issue would be to generate two images with binman
- one for u-boot-spl-ddr.bin and the final flash.bin with the former one included (as it was before SHA1:37e50627efacd8dae18b564e9d8886a033e181bc)Quoted 4 lines
Is QSPI boot broken on i.MX8MM?
I am adding Adam and Mamta who have tested QSPI booting on
imx8mm_beaconandimx8mm_evk, respectively.Note also that I sent a series[1] which allows the symbols-base to be adjusted, if that helps.
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
I've seen them - but not yet tested.
Thanks Simon for the patch series.
Is it still broken with this patch series? I have been traveling and haven't had much time to test.
Yes, I can confirm that it is still broken.
Quoted 8 lines
Sorry for the delay. I had to return my 8MM to Beacon, and I was waiting for a replacement.
To not prolong it anymore, I decided to try it with an 8M Nano, and I got a boot failure on master. I was able to successfully boot 2024.01-rc5, but I haven't had time to bisect it yet. I'll try to do that this week. I think once we can bisect the error, it might become more apparent.
Git bisect narrowed down the git which broke the build:
Quoted 8 lines
commit
37e50627efacd8dae18b564e9d8886a033e181bc(HEAD)Author: Marek Vasut <[email protected]> Date: Fri Apr 26 01:00:37 2024 +0200ARM: dts: imx: Convert i.MX8M flash.bin image generation to binman
I am guessing the binman isn't prepending the header stuff. I'll try to investigate it this week.
Quoted 8 lines
This is the problem with adjustments.
I've prepared following fixes for it (but are not upstreamable):
https://github.com/lmajewski/u-boot/commits/phycore-imx8mm-qspi-nvme(problem is with wrong offsets assigned ->
0x1000switch)Unfortunately, I don't have the HW any more at hand.
I think we should try to generate two binaries. The original flash.bin file with the references to the FSPI stuff removed and the offsets left as if FSPI booting doesn't exist, then a second binary which adds the FSPI header at 0x400 and append the original flash.bin file (build for sd booting) moved to offset 0x1000.
I manually created a binary like this using DD and it worked, but building the image with the various offsets in the device tree appears to break both SPL and U-Boot phases.
I tried to create a second file node to do this, but I don't understand the binman stuff enough to have been successful. I have only tried the Nano, but I will test a Mini as soon as I can get my hands on one again.
adam
Quoted 67 lines
Quoted 54 lines
adam
Quoted 50 lines
adam
Quoted 47 lines
I've applied:
https://patchwork.ozlabs.org/project/uboot/cover/[email protected]/on top of mainline:
SHA1:1630ff26cc960439b5949b80cfc604a2c8aa47ddAdding symbols-base = <0>; to
imx8mm-u-boot.dtsidid not help.Quoted 24 lines
adam
Quoted 22 lines
Quoted 8 lines
Regards,
Simon[1]
https://patchwork.ozlabs.org/project/uboot/list/?series=421010Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Erika
Unter HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax:
(+49)-8142-66989-80 Email: [email protected]Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Erika
Unter HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax:
(+49)-8142-66989-80 Email: [email protected]Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: [email protected]
Quoted 95 lines · Adam Ford
Quoted 78 lines · Lukasz Majewski
Hi Adam,
Quoted 66 lines · Adam Ford
Quoted 54 lines
Quoted 42 lines · Lukasz Majewski
Hi Adam,
Quoted 39 lines
Quoted 37 lines · Lukasz Majewski
Hi Simon,
Quoted 33 lines
Hi,
Quoted 22 lines · Fabio Estevam
Hi Lukasz,
Quoted 11 lines · Lukasz Majewski
Unfortunately not - this change is only for properly setting start address of the u-boot.
The _real_ problem here is the symbol placement generated by binman when we try to define the image as a single one.
Moreover, this change follows other boards with imx8mm processor - ./configs/imx8mm_beacon_fspi_defconfig to be specific.
Quoted 5 lines
The "fix" (for which I'd been now probably opt) for this issue would be to generate two images with binman
- one for u-boot-spl-ddr.bin and the final flash.bin with the former one included (as it was before SHA1:37e50627efacd8dae18b564e9d8886a033e181bc)Quoted 4 lines
Is QSPI boot broken on i.MX8MM?
I am adding Adam and Mamta who have tested QSPI booting on
imx8mm_beaconandimx8mm_evk, respectively.Note also that I sent a series[1] which allows the symbols-base to be adjusted, if that helps.
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
I've seen them - but not yet tested.
Thanks Simon for the patch series.
Is it still broken with this patch series? I have been traveling and haven't had much time to test.
Yes, I can confirm that it is still broken.
Quoted 8 lines
Sorry for the delay. I had to return my 8MM to Beacon, and I was waiting for a replacement.
To not prolong it anymore, I decided to try it with an 8M Nano, and I got a boot failure on master. I was able to successfully boot 2024.01-rc5, but I haven't had time to bisect it yet. I'll try to do that this week. I think once we can bisect the error, it might become more apparent.
Git bisect narrowed down the git which broke the build:
Quoted 8 lines
commit
37e50627efacd8dae18b564e9d8886a033e181bc(HEAD)Author: Marek Vasut <[email protected]> Date: Fri Apr 26 01:00:37 2024 +0200ARM: dts: imx: Convert i.MX8M flash.bin image generation to binman
I am guessing the binman isn't prepending the header stuff. I'll try to investigate it this week.
Quoted 8 lines
This is the problem with adjustments.
I've prepared following fixes for it (but are not upstreamable):
https://github.com/lmajewski/u-boot/commits/phycore-imx8mm-qspi-nvme(problem is with wrong offsets assigned ->
0x1000switch)Unfortunately, I don't have the HW any more at hand.
I think we should try to generate two binaries. The original flash.bin file with the references to the FSPI stuff removed and the offsets left as if FSPI booting doesn't exist, then a second binary which adds the FSPI header at
0x400and append the original flash.bin file (build for sd booting) moved to offset0x1000.
Quoted 8 lines
I manually created a binary like this using DD and it worked, but building the image with the various offsets in the device tree appears to break both SPL and U-Boot phases.
I tried to create a second file node to do this, but I don't understand the binman stuff enough to have been successful. I have only tried the Nano, but I will test a Mini as soon as I can get my hands on one again.
I think I have a fix for the Nano. I want to get my hands on a Mini again to test it. My solution creates two files, a flash.bin for booting SD/eMMC and a second file which adds the FSPI header at 0x400 with the whole standard image starting at 0x1000. I have been able to boot both the SD and eMMC's with one config option which can allow me to remove the FSPI config file and consolidate both configs into one. Once I can verify it works on Mini, I'll post my proposed fix.
adam
Quoted 70 lines
adam
Quoted 67 lines
Quoted 54 lines
adam
Quoted 50 lines
adam
Quoted 47 lines
I've applied:
https://patchwork.ozlabs.org/project/uboot/cover/[email protected]/on top of mainline:
SHA1:1630ff26cc960439b5949b80cfc604a2c8aa47ddAdding symbols-base = <0>; to
imx8mm-u-boot.dtsidid not help.Quoted 24 lines
adam
Quoted 22 lines
Quoted 8 lines
Regards,
Simon[1]
https://patchwork.ozlabs.org/project/uboot/list/?series=421010Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Erika
Unter HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax:
(+49)-8142-66989-80 Email: [email protected]Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Erika
Unter HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax:
(+49)-8142-66989-80 Email: [email protected]Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: [email protected]
Fabio Estevam
reviewerQuoted 7 lines · Adam Ford
I think I have a fix for the Nano. I want to get my hands on a Mini again to test it. My solution creates two files, a flash.bin for booting SD/eMMC and a second file which adds the FSPI header at
0x400with the whole standard image starting at0x1000. I have been able to boot both the SD and eMMC's with one config option which can allow me to remove the FSPI config file and consolidate both configs into one. Once I can verify it works on Mini, I'll post my proposed fix.
Thanks, Adam. Appreciate your effort!
Quoted 11 lines · Fabio Estevam
Quoted 7 lines · Adam Ford
I think I have a fix for the Nano. I want to get my hands on a Mini again to test it. My solution creates two files, a flash.bin for booting SD/eMMC and a second file which adds the FSPI header at
0x400with the whole standard image starting at0x1000. I have been able to boot both the SD and eMMC's with one config option which can allow me to remove the FSPI config file and consolidate both configs into one. Once I can verify it works on Mini, I'll post my proposed fix.
Quoted 1 line
Thanks, Adam. Appreciate your effort!
No problem. I managed to get my hands on a Mini, and I just sent a patch series which restored FSPI booting on both the im8mn-beacon and imx8mm-beacon boards.
If/when I get some more time, I might try to port the stuff I did for Nano to the Plus since I think the boot ROM is similar between them.
adam