add apalis-imx8 boot firmware update support and fixup for imx8qm-mek erase in mfgtool#454
Conversation
|
Testing these changes |
c0fb19a to
cff180d
Compare
|
This needs an env size patch to avoid overflow error. |
4d38d3b to
7cb5278
Compare
2c259ce to
c902f64
Compare
|
Updated with comments from @igoropaniuk Diff from previous version: |
ricardosalveti
left a comment
There was a problem hiding this comment.
LGTM, will let @igoropaniuk do a final review.
igoropaniuk
left a comment
There was a problem hiding this comment.
LGTM, only one minor comment
|
@mike-scott we should also drop these two config options: as it's handled now in boot.cmd instead (and to avoid collisions in logic) did that already for imx8qm-mek https://github.com/foundriesio/meta-lmp/pull/459/files |
cd42199 to
2da2cd5
Compare
Done. |
Pertninent diff from last version: |
u-boot-fio config shows: CONFIG_ENV_SIZE=0x4000 Let's update 0x2000 value in fw_env.config to match that. Signed-off-by: Michael Scott <[email protected]>
The erase group for boot partitions on imx8qm is 0x400. This means using the current settings we are erasing the whole boot partition and clearing the Toradex Config Block. Let's account for the 0x400 erase block by erasing to block 0x3C00. Fixes: 58fba18 ("bsp: mfgtool-files: common: adjust boot0 erase cmds") Signed-off-by: Michael Scott <[email protected]>
Support secondary boot on the apalis-imx8 HW. (Similar to patch for imx8qm-mek) Signed-off-by: Michael Scott <[email protected]>
Support secondary boot for apalis-imx8 (Similar to patch for imx8qm-mek) Signed-off-by: Michael Scott <[email protected]>
Add support for boot firmware updates (Similar to patch for imx8qm-mek) Signed-off-by: Michael Scott <[email protected]>
Flash secondary boot images on apalis-imx8. (Similar to patch for iMX8QM-MEK) Signed-off-by: Michael Scott <[email protected]>
The boot script now lives in u-boot fit-image, and it's extracted by SPL. Let's use it. Signed-off-by: Michael Scott <[email protected]>
Some settings are in a different order and some settings may not be needed due to slight differences between the defconfigs. However, let's sync up the LmP settings for u-boot-fio so that future updates are easier to follow. Signed-off-by: Michael Scott <[email protected]>
…loadaddr This keeps the lmp-base boot script in better sync with the imx8qm-mek. Signed-off-by: Michael Scott <[email protected]>
This fixes an issue during boot software upgrade where the env is extended past the original 0x2000 limit. Signed-off-by: Michael Scott <[email protected]>
Relevant changes: - bfbf318ff1 [FIO toup] apalis-imx8: allow dropping CONFIG_CMD_USB requirement Signed-off-by: Michael Scott <[email protected]>
Boot script is now integrated into u-boot fit-image for all supported hardware. Signed-off-by: Michael Scott <[email protected]>
2da2cd5 to
e399962
Compare
|
Drop CONFIG_BOOTCOUNT_LIMIT, as this is now handled in boot.cmd instead. (Similar to imx8qm-mek change by Igor Opaniuk <[email protected]>) Signed-off-by: Michael Scott <[email protected]>
Enable CONFIG_PSCI_BOARD_REBOOT, which enables reboot cmd for triggering board reset (SC_PM_RESET_TYPE_BOARD). Default reset cmd is doing SC_PM_RESET_TYPE_COLD, which doesn't force BootROM to reload imx-boot firmware. (Similar to commit for imx8qm-mek by Igor Opaniuk <[email protected]>) Signed-off-by: Michael Scott <[email protected]>
Define custom do_reboot cmd in order to perform a cold reset to force BootROM to reload the imx-boot firmware. (Similar to commit for imx8qm-mek by Igor Opaniuk <[email protected]>) Signed-off-by: Michael Scott <[email protected]>
e399962 to
2f02b59
Compare
|
Fixed the disable of |
No description provided.