package/imx-seco: use the c0 revision for the imx8qxp ahab image
PATCH 1/1 package/imx-seco: use the c0 revision for the imx8qxp ahab image
From: Charles Hardin <[email protected]>
The silicon revision for the imx8 is C0 and this is the release candidate for the new update images. It also seems to work on some B0 early silicon in addition, so change the ahab container to use mx8qxc0-ahab-container.img
--- package/freescale-imx/imx-seco/imx-seco.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/freescale-imx/imx-seco/imx-seco.mk +1 -1
@@ -22,7 +22,7 @@ IMX_SECO_INSTALL_IMAGES = YES # is done in post-image script. ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X),y) define IMX_SECO_INSTALL_IMAGES_CMDS - cp $(@D)/firmware/seco/mx8qxb0-ahab-container.img \ + cp $(@D)/firmware/seco/mx8qxc0-ahab-container.img \ $(BINARIES_DIR)/ahab-container.img endef else ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8),y)
Signature · 1 line
2.21.1 (Apple Git-122.3)
PATCH 1/1 package/imx-seco: use the c0 revision for the imx8qxp ahab image
Quoted 5 lines
The silicon revision for the imx8 is C0 and this is the release candidate for the new update images. It also seems to work on some B0 early silicon in addition, so change the ahab container to use mx8qxc0-ahab-container.img
The C0 firmware cannot be executed along with the B0 ROM for a couple of reasons (different function address map and lacking features).
Warning:
Once we make the switch to mx8qxc0-ahab-container, all boards based on a B0 silicon version won't boot anymore!
Quoted 3 lines
Signed-off-by Charles Hardin <[email protected]>Signed-off-by Charles Hardin <[email protected]>
BR,
Stephane.
Quoted 26 lines
---
package/freescale-imx/imx-seco/imx-seco.mk| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)package/freescale-imx/imx-seco/imx-seco.mk +0
-0@@ -22,7 +22,7 @@ IMX_SECO_INSTALL_IMAGES = YES # is done in post-image script. ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X),y)define
IMX_SECO_INSTALL_IMAGES_CMDSpackage/freescale-imx/imx-seco/imx-seco.mk +1
-1- cp $(@D)/firmware/seco/mx8qxb0-ahab-container.img \ + cp $(@D)/firmware/seco/mx8qxc0-ahab-container.img \ $(BINARIES_DIR)/ahab-container.imgendef
else ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8),y) --
2.21.1 (Apple Git-122.3)_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
PATCH 1/1 package/imx-seco: use the c0 revision for the imx8qxp ahab image
Quoted 6 lines · Stephane Viau (OSS)
Quoted 5 lines
The silicon revision for the imx8 is C0 and this is the release candidate for the new update images. It also seems to work on some B0 early silicon in addition, so change the ahab container to use mx8qxc0-ahab-container.img
Quoted 8 lines
The C0 firmware cannot be executed along with the B0 ROM for a couple of reasons (different function address map and lacking features).
Warning:
Once we make the switch to mx8qxc0-ahab-container, all boards based on a B0 silicon version won't boot anymore!
That's how I found this - I had a C0 ROM and that doesn't boot with the b0 ahab,
so it needs to be setup to go one way or the other. I think C0 is the production
GA release from NXP, so this is out there for people as needed that have that
problem.
This was from the u-boot
CPU: Freescale i.MX8QXP revC A35 at 1200 MHz at 34C
Quoted 31 lines
Quoted 2 lines
Signed-off-by Charles Hardin <[email protected]>[Stephane: tested on i.MX8 QXP EVK Rev C]Tested-by Stephane Viau <[email protected]>BR,
Stephane.Review
Quoted 5 lines
---
package/freescale-imx/imx-seco/imx-seco.mk| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)(quoted diff) +0
-0
b/package/freescale-imx/imx-seco/imx-seco.mkQuoted 15 lines
index
245c3e3311..711315ea93100644package/freescale-imx/imx-seco/imx-seco.mk +0
-0@@ -22,7 +22,7 @@ IMX_SECO_INSTALL_IMAGES = YES # is done in post-image script. ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X),y)define
IMX_SECO_INSTALL_IMAGES_CMDSpackage/freescale-imx/imx-seco/imx-seco.mk +1
-1- cp $(@D)/firmware/seco/mx8qxb0-ahab-container.img \ + cp $(@D)/firmware/seco/mx8qxc0-ahab-container.img \ $(BINARIES_DIR)/ahab-container.imgendef
else ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8),y) --
2.21.1 (Apple Git-122.3)
Quoted 6 lines
Quoted 6 lines
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20210429/52024a6d/attachment.html>
PATCH 1/1 package/imx-seco: use the c0 revision for the imx8qxp ahab image
Hi Charles,
Quoted 14 lines
Quoted 6 lines
Quoted 5 lines
The silicon revision for the imx8 is C0 and this is the release candidate for the new update images. It also seems to work on some B0 early silicon in addition, so change the ahab container to use mx8qxc0-ahab-container.img
Quoted 7 lines
The C0 firmware cannot be executed along with the B0 ROM for a couple of reasons (different function address map and lacking features).
Warning:
Once we make the switch to mx8qxc0-ahab-container, all boards based on a B0 silicon version won't boot anymore!
Quoted 4 lines
That's how I found this - I had a C0 ROM and that doesn't boot with the b0 ahab, so it needs to be setup to go one way or the other. I think C0 is the production GA release from NXP, so this is out there for people as needed that have that problem.
It's true that the recommendation is to move onto C0 silicon version based on the considerations mentioned in [1] ;
... and I personally have no issues with this switch (I have both B0 and C0 in hands and would be happy to switch to C0).
However, I am wondering whether a Kconfig 'choice' would be a better option to let the B0 users (if any?) pick mx8qxb0-ahab-container for backward compatibility?
BR,
Stephane.
[1] https://www.nxp.com/docs/en/application-note/AN12770.pdf
Quoted 37 lines
This was from the u-boot
CPU: Freescale i.MX8QXP revC A35 at 1200 MHz at 34C
Quoted 30 lines
Quoted 2 lines
Signed-off-by Charles Hardin <ckhardin at gmail.com<mailto:[email protected]>>[Stephane: tested on i.MX8 QXP EVK Rev C]Tested-by Stephane Viau <stephane.viau at oss.nxp.com<mailto:[email protected]>>BR,
Stephane.Quoted 20 lines
---
package/freescale-imx/imx-seco/imx-seco.mk<http://imx-seco.mk> | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)package/freescale-imx/imx-seco/imx-seco.mk<http://imx-seco.mk> +0
-0@@ -22,7 +22,7 @@ IMX_SECO_INSTALL_IMAGES = YES # is done in post-image script. ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X),y)define
IMX_SECO_INSTALL_IMAGES_CMDSpackage/freescale-imx/imx-seco/imx-seco.mk<http://imx-seco.mk> +1
-1- cp $(@D)/firmware/seco/mx8qxb0-ahab-container.img \ + cp $(@D)/firmware/seco/mx8qxc0-ahab-container.img \ $(BINARIES_DIR)/ahab-container.imgendef
else ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8),y) --
2.21.1 (Apple Git-122.3)
PATCH v2 1/1 package/imx-seco: use the c0 revision for the imx8qxp ahab image
In reply to Charles HardinFrom: Charles Hardin <[email protected]>
Update the selection of the ahab container image to use based upon a choice in the Config.in - there are multiple ASIC revisions that use AHAB and the firmware images need to match. This extends the support beyond a default image for just the imx8 amd imx8x based upon the current contents of the imx-seco firmware extraction.
Files from 3.7.4:
mx8dxla0-ahab-container.img
mx8dxla1-ahab-container.img
mx8qmb0-ahab-container.img
mx8qxb0-ahab-container.img
mx8qxc0-ahab-container.img
---
Changes v1 -> v2:
- convert the image selection to a choice in Config.in (suggested by Stephane)
--- package/freescale-imx/imx-seco/Config.in | 38 ++++++++++++++++++++++ package/freescale-imx/imx-seco/imx-seco.mk | 14 ++++---- 2 files changed, 44 insertions(+), 8 deletions(-)
package/freescale-imx/imx-seco/Config.in +38 -0
@@ -7,3 +7,41 @@ config BR2_PACKAGE_IMX_SECO This library is provided by Freescale as-is and doesn't have an upstream. + +if BR2_PACKAGE_IMX_SECO +choice + prompt "i.MX Seco Firmware Release" + help + Select the appropriate ahab container image to install + to match the asics revision. + +config BR2_PACKAGE_IMX_SECO_MX8DXLA0 + bool "imx-seco-mx8dxla0" + depends on BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8 + +config BR2_PACKAGE_IMX_SECO_MX8DXLA1 + bool "imx-seco-mx8dxla1" + depends on BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8 + +config BR2_PACKAGE_IMX_SECO_MX8QMB0 + bool "imx-seco-mx8qmb0" + depends on BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8 + +config BR2_PACKAGE_IMX_SECO_MX8QXB0 + bool "imx-seco-mx8qxb0" + depends on BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X + +config BR2_PACKAGE_IMX_SECO_MX8QXC0 + bool "imx-seco-mx8qxc0" + depends on BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X +endchoice + +config BR2_PACKAGE_IMX_SECO_AHAB_CONTAINER_IMAGE + string + default "mx8dxla0-ahab-container.img" if BR2_PACKAGE_IMX_SECO_MX8DXLA0 + default "mx8dxla1-ahab-container.img" if BR2_PACKAGE_IMX_SECO_MX8DXLA1 + default "mx8qmb0-ahab-container.img" if BR2_PACKAGE_IMX_SECO_MX8QMB0 + default "mx8qxb0-ahab-container.img" if BR2_PACKAGE_IMX_SECO_MX8QXB0 + default "mx8qxc0-ahab-container.img" if BR2_PACKAGE_IMX_SECO_MX8QXC0 + +endif
package/freescale-imx/imx-seco/imx-seco.mk +6 -8
@@ -18,18 +18,16 @@ endef IMX_SECO_INSTALL_IMAGES = YES +IMX_SECO_AHAB_CONTAINER_IMAGE = $(call qstrip,$(BR2_PACKAGE_IMX_SECO_AHAB_CONTAINER_IMAGE)) +ifeq ($(IMX_SECO_AHAB_CONTAINER_IMAGE),) +$(error No iMX Seco AHAB Container Image file specified) +endif + # SECO firmware is needed when generating imx8-boot-sd.bin which # is done in post-image script. -ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X),y) -define IMX_SECO_INSTALL_IMAGES_CMDS - cp $(@D)/firmware/seco/mx8qxb0-ahab-container.img \ - $(BINARIES_DIR)/ahab-container.img -endef -else ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8),y) define IMX_SECO_INSTALL_IMAGES_CMDS - cp $(@D)/firmware/seco/mx8qmb0-ahab-container.img \ + cp $(@D)/firmware/seco/$(IMX_SECO_AHAB_CONTAINER_IMAGE) \ $(BINARIES_DIR)/ahab-container.img endef -endif $(eval $(generic-package))
Signature · 1 line
2.21.1 (Apple Git-122.3)
PATCH v2 1/1 package/imx-seco: use the c0 revision for the imx8qxp ahab image
Hi Charles,
Quoted 17 lines
From: Charles Hardin <[email protected]>
Update the selection of the ahab container image to use based upon a choice in the Config.in - there are multiple ASIC revisions that use AHAB and the firmware images need to match. This extends the support beyond a default image for just the imx8 amd imx8x based upon the current contents of the imx-seco firmware extraction.
Files from 3.7.4:
mx8dxla0-ahab-container.img
mx8dxla1-ahab-container.img
mx8qmb0-ahab-container.img
mx8qxb0-ahab-container.img
mx8qxc0-ahab-container.img
Quoted 6 lines
Signed-off-by Charles Hardin <[email protected]>---
Changes v1 -> v2:
- convert the image selection to a choice in Config.in (suggested by Stephane)
Thank you for the quick feedback on this ; I appreciate it... and will try and test it ASAP!
Quoted 11 lines
---
package/freescale-imx/imx-seco/Config.in | 38 ++++++++++++++++++++++package/freescale-imx/imx-seco/imx-seco.mk| 14 ++++----2 files changed, 44 insertions(+), 8 deletions(-)package/freescale-imx/imx-seco/Config.in +0
-0
package/freescale-imx/imx-seco/Config.in config BR2_PACKAGE_IMX_SECO · line 16
Quoted 10 lines
package/freescale-imx/imx-seco/Config.in +7
-0@@ -7,3 +7,41 @@ config BR2_PACKAGE_IMX_SECO This library is provided by Freescale as-is and doesn't have an upstream. + +if BR2_PACKAGE_IMX_SECO +choice + prompt "i.MX Seco Firmware Release" + help + Select the appropriate ahab container image to install + to match the asics revision.
Should we default it to C0 when 8X is selected?:
default BR2_PACKAGE_IMX_SECO_MX8QXC0 if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X
BR,
Stephane.
Quoted 64 lines
package/freescale-imx/imx-seco/Config.in +31
-0+ +config BR2_PACKAGE_IMX_SECO_MX8DXLA0 + bool "imx-seco-mx8dxla0" + depends on BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8 + +config BR2_PACKAGE_IMX_SECO_MX8DXLA1 + bool "imx-seco-mx8dxla1" + depends on BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8 + +config BR2_PACKAGE_IMX_SECO_MX8QMB0 + bool "imx-seco-mx8qmb0" + depends on BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8 + +config BR2_PACKAGE_IMX_SECO_MX8QXB0 + bool "imx-seco-mx8qxb0" + depends on BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X + +config BR2_PACKAGE_IMX_SECO_MX8QXC0 + bool "imx-seco-mx8qxc0" + depends on BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X +endchoice + +config BR2_PACKAGE_IMX_SECO_AHAB_CONTAINER_IMAGE + string + default "mx8dxla0-ahab-container.img" if BR2_PACKAGE_IMX_SECO_MX8DXLA0 + default "mx8dxla1-ahab-container.img" if BR2_PACKAGE_IMX_SECO_MX8DXLA1 + default "mx8qmb0-ahab-container.img" if BR2_PACKAGE_IMX_SECO_MX8QMB0 + default "mx8qxb0-ahab-container.img" if BR2_PACKAGE_IMX_SECO_MX8QXB0 + default "mx8qxc0-ahab-container.img" if BR2_PACKAGE_IMX_SECO_MX8QXC0 + +endifpackage/freescale-imx/imx-seco/imx-seco.mk +0
-0@@ -18,18 +18,16 @@ endef
IMX_SECO_INSTALL_IMAGES= YESpackage/freescale-imx/imx-seco/imx-seco.mk +5
-0+IMX_SECO_AHAB_CONTAINER_IMAGE = $(call qstrip,$(BR2_PACKAGE_IMX_SECO_AHAB_CONTAINER_IMAGE)) +ifeq ($(IMX_SECO_AHAB_CONTAINER_IMAGE),) +$(error No iMX Seco AHAB Container Image file specified) +endif +# SECO firmware is needed when generating imx8-boot-sd.bin which
# is done in post-image script.package/freescale-imx/imx-seco/imx-seco.mk +0
-6-ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X),y) -define IMX_SECO_INSTALL_IMAGES_CMDS - cp $(@D)/firmware/seco/mx8qxb0-ahab-container.img \ - $(BINARIES_DIR)/ahab-container.img -endef -else ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8),y)define
IMX_SECO_INSTALL_IMAGES_CMDSpackage/freescale-imx/imx-seco/imx-seco.mk +1
-1- cp $(@D)/firmware/seco/mx8qmb0-ahab-container.img \ + cp $(@D)/firmware/seco/$(IMX_SECO_AHAB_CONTAINER_IMAGE) \ $(BINARIES_DIR)/ahab-container.imgendef
-endif$(eval $(generic-package))
--
2.21.1 (Apple Git-122.3)
PATCH v2 1/1 package/imx-seco: use the c0 revision for the imx8qxp ahab image
St?phane, Charles, All,
On 2021-04-30 17:09 +0000, Stephane Viau (OSS) spake thusly:
Quoted 7 lines
Quoted 7 lines
From: Charles Hardin <[email protected]>
Update the selection of the ahab container image to use based upon a choice in the Config.in - there are multiple ASIC revisions that use AHAB and the firmware images need to match. This extends the support beyond a default image for just the imx8 amd imx8x based upon the current contents of the imx-seco firmware extraction.
Quoted 8 lines
Quoted 8 lines
Files from 3.7.4:
mx8dxla0-ahab-container.img
mx8dxla1-ahab-container.img
mx8qmb0-ahab-container.img
mx8qxb0-ahab-container.img
mx8qxc0-ahab-container.imgSigned-off-by Charles Hardin <[email protected]>
[--SNIP--]
Quoted 6 lines
Quoted 6 lines
package/freescale-imx/imx-seco/Config.in +0
-0@@ -7,3 +7,41 @@ config BR2_PACKAGE_IMX_SECO
Quoted 12 lines
package/freescale-imx/imx-seco/Config.in config BR2_PACKAGE_IMX_SECO · line 16
Quoted 9 lines
package/freescale-imx/imx-seco/Config.in +7
-0This library is provided by Freescale as-is and doesn't have an upstream. + +if BR2_PACKAGE_IMX_SECO +choice + prompt "i.MX Seco Firmware Release" + help + Select the appropriate ahab container image to install + to match the asics revision.Should we default it to C0 when 8X is selected?:
defaultBR2_PACKAGE_IMX_SECO_MX8QXC0ifBR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X
If a default is selected, please add a blurb in the ocmmit log to explain why it is orefered over the others, e.g.:
The IMX8X C0 HW variant is the most widespread, so that's the default, but there are a few B0 still circulating so we still keep the B0 option for those.
Quoted 16 lines
BR,
Stephane.Quoted 13 lines
package/freescale-imx/imx-seco/Config.in +13
-0+ +config BR2_PACKAGE_IMX_SECO_MX8DXLA0 + bool "imx-seco-mx8dxla0" + depends on BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8 + +config BR2_PACKAGE_IMX_SECO_MX8DXLA1 + bool "imx-seco-mx8dxla1" + depends on BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8 + +config BR2_PACKAGE_IMX_SECO_MX8QMB0 + bool "imx-seco-mx8qmb0" + depends on BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8 +
Quoted 8 lines
package/freescale-imx/imx-seco/Config.in config BR2_PACKAGE_IMX_SECO · line 37
Quoted 8 lines
package/freescale-imx/imx-seco/Config.in +8
-0+config BR2_PACKAGE_IMX_SECO_MX8QXB0 + bool "imx-seco-mx8qxb0" + depends on BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X + +config BR2_PACKAGE_IMX_SECO_MX8QXC0 + bool "imx-seco-mx8qxc0" + depends on BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X +endchoice
Nitpick: empty line just before 'endchoice'.
Quoted 15 lines
Quoted 15 lines
package/freescale-imx/imx-seco/Config.in +9
-0+config BR2_PACKAGE_IMX_SECO_AHAB_CONTAINER_IMAGE + string + default "mx8dxla0-ahab-container.img" if BR2_PACKAGE_IMX_SECO_MX8DXLA0 + default "mx8dxla1-ahab-container.img" if BR2_PACKAGE_IMX_SECO_MX8DXLA1 + default "mx8qmb0-ahab-container.img" if BR2_PACKAGE_IMX_SECO_MX8QMB0 + default "mx8qxb0-ahab-container.img" if BR2_PACKAGE_IMX_SECO_MX8QXB0 + default "mx8qxc0-ahab-container.img" if BR2_PACKAGE_IMX_SECO_MX8QXC0 + +endifpackage/freescale-imx/imx-seco/imx-seco.mk +0
-0@@ -18,18 +18,16 @@ endef
Quoted 6 lines
package/freescale-imx/imx-seco/imx-seco.mk endef · line 24
Quoted 6 lines
IMX_SECO_INSTALL_IMAGES= YESpackage/freescale-imx/imx-seco/imx-seco.mk +4
-0+IMX_SECO_AHAB_CONTAINER_IMAGE = $(call qstrip,$(BR2_PACKAGE_IMX_SECO_AHAB_CONTAINER_IMAGE)) +ifeq ($(IMX_SECO_AHAB_CONTAINER_IMAGE),) +$(error No iMX Seco AHAB Container Image file specified) +endif
This can't happen: the selection is a choice, so at least one is enabled, and thus IMX_SECO_AHAB_CONTAINER_IMAGE will always get a value.
It can only be empty when a new choice entry is added, for which no corresponding default is added for IMX_SECO_AHAB_CONTAINER_IMAGE.
Regards,
Yann E. MORIN.
Quoted 24 lines
Quoted 15 lines
# SECO firmware is needed when generating imx8-boot-sd.bin which
# is done in post-image script.package/freescale-imx/imx-seco/imx-seco.mk +0
-6-ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X),y) -define IMX_SECO_INSTALL_IMAGES_CMDS - cp $(@D)/firmware/seco/mx8qxb0-ahab-container.img \ - $(BINARIES_DIR)/ahab-container.img -endef -else ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8),y)define
IMX_SECO_INSTALL_IMAGES_CMDSpackage/freescale-imx/imx-seco/imx-seco.mk +1
-1- cp $(@D)/firmware/seco/mx8qmb0-ahab-container.img \ + cp $(@D)/firmware/seco/$(IMX_SECO_AHAB_CONTAINER_IMAGE) \ $(BINARIES_DIR)/ahab-container.imgendef
-endifQuoted 5 lines
$(eval $(generic-package))
--
2.21.1 (Apple Git-122.3)_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
PATCH v3 1/1 package/imx-seco: use the c0 revision for the imx8qxp ahab image
In reply to Charles HardinFrom: Charles Hardin <[email protected]>
Update the selection of the ahab container image to use based upon a choice in the Config.in - there are multiple ASIC revisions that use AHAB and the firmware images need to match. This extends the support beyond a default image for just the imx8 amd imx8x based upon the current contents of the imx-seco firmware extraction.
Files from 3.7.4:
mx8dxla0-ahab-container.img
mx8dxla1-ahab-container.img
mx8qmb0-ahab-container.img
mx8qxb0-ahab-container.img
mx8qxc0-ahab-container.img
The original defaults prior to this patch were mx8qmb0 for IMX8 and mx8qxb0 for the IMX8X selections. However, this patch will change the default selection of the IMX8X from the B0 option to C0 because the IMX8X C0 HW variant is widespread and the current release of hardware silicon. Because there are still B0's in circulation an option is being kept for that as well.
---
Changes v2 -> v3
- add a newline for the endchoice (suggested by Yann)
- in this patch there is no way for contain image to be empty so remove the protection and assume extensions of choice will be done correctly in the future (suggested by Yann)
Changes v1 -> v2:
- convert the image selection to a choice in Config.in (suggested by Stephane)
--- package/freescale-imx/imx-seco/Config.in | 43 ++++++++++++++++++++++ package/freescale-imx/imx-seco/imx-seco.mk | 11 ++---- 2 files changed, 46 insertions(+), 8 deletions(-)
package/freescale-imx/imx-seco/Config.in +43 -0
@@ -7,3 +7,46 @@ config BR2_PACKAGE_IMX_SECO This library is provided by Freescale as-is and doesn't have an upstream. + +if BR2_PACKAGE_IMX_SECO +choice + prompt "i.MX Seco Firmware Release" + default BR2_PACKAGE_IMX_SECO_MX8QMB0 if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8 + default BR2_PACKAGE_IMX_SECO_MX8QXC0 if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X + help + Select the appropriate ahab container image to install + to match the iMX asics revision. + + Note - mismatches result in a failure to boot + +config BR2_PACKAGE_IMX_SECO_MX8DXLA0 + bool "imx-seco-mx8dxla0" + depends on BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8 + +config BR2_PACKAGE_IMX_SECO_MX8DXLA1 + bool "imx-seco-mx8dxla1" + depends on BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8 + +config BR2_PACKAGE_IMX_SECO_MX8QMB0 + bool "imx-seco-mx8qmb0" + depends on BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8 + +config BR2_PACKAGE_IMX_SECO_MX8QXB0 + bool "imx-seco-mx8qxb0" + depends on BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X + +config BR2_PACKAGE_IMX_SECO_MX8QXC0 + bool "imx-seco-mx8qxc0" + depends on BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X + +endchoice + +config BR2_PACKAGE_IMX_SECO_AHAB_CONTAINER_IMAGE + string + default "mx8dxla0-ahab-container.img" if BR2_PACKAGE_IMX_SECO_MX8DXLA0 + default "mx8dxla1-ahab-container.img" if BR2_PACKAGE_IMX_SECO_MX8DXLA1 + default "mx8qmb0-ahab-container.img" if BR2_PACKAGE_IMX_SECO_MX8QMB0 + default "mx8qxb0-ahab-container.img" if BR2_PACKAGE_IMX_SECO_MX8QXB0 + default "mx8qxc0-ahab-container.img" if BR2_PACKAGE_IMX_SECO_MX8QXC0 + +endif
package/freescale-imx/imx-seco/imx-seco.mk +3 -8
@@ -20,16 +20,11 @@ IMX_SECO_INSTALL_IMAGES = YES # SECO firmware is needed when generating imx8-boot-sd.bin which # is done in post-image script. -ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X),y) -define IMX_SECO_INSTALL_IMAGES_CMDS - cp $(@D)/firmware/seco/mx8qxb0-ahab-container.img \ - $(BINARIES_DIR)/ahab-container.img -endef -else ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8),y) +IMX_SECO_AHAB_CONTAINER_IMAGE = $(call qstrip,$(BR2_PACKAGE_IMX_SECO_AHAB_CONTAINER_IMAGE)) + define IMX_SECO_INSTALL_IMAGES_CMDS - cp $(@D)/firmware/seco/mx8qmb0-ahab-container.img \ + cp $(@D)/firmware/seco/$(IMX_SECO_AHAB_CONTAINER_IMAGE) \ $(BINARIES_DIR)/ahab-container.img endef -endif $(eval $(generic-package))
Signature · 1 line
2.21.1 (Apple Git-122.3)
Yann E. MORIN
AppliedPATCH v3 1/1 package/imx-seco: use the c0 revision for the imx8qxp ahab image
Charles, All,
On 2021-04-30 11:09 -0700, Charles Hardin spake thusly:
Quoted 15 lines
From: Charles Hardin <[email protected]>
Update the selection of the ahab container image to use based upon a choice in the Config.in - there are multiple ASIC revisions that use AHAB and the firmware images need to match. This extends the support beyond a default image for just the imx8 amd imx8x based upon the current contents of the imx-seco firmware extraction.
Files from 3.7.4:
mx8dxla0-ahab-container.img
mx8dxla1-ahab-container.img
mx8qmb0-ahab-container.img
mx8qxb0-ahab-container.img
mx8qxc0-ahab-container.img
Quoted 8 lines
The original defaults prior to this patch were mx8qmb0 for IMX8 and mx8qxb0 for the IMX8X selections. However, this patch will change the default selection of the IMX8X from the B0 option to C0 because the IMX8X C0 HW variant is widespread and the current release of hardware silicon. Because there are still B0's in circulation an option is being kept for that as well.
Signed-off-by Charles Hardin <[email protected]>
Applied to master, thanks.
Regards,
Yann E. MORIN.
Quoted 99 lines
---
Changes v2 -> v3
- add a newline for the endchoice (suggested by Yann)
- in this patch there is no way for contain image to be empty so remove the protection and assume extensions of choice will be done correctly in the future (suggested by Yann)Changes v1 -> v2:
- convert the image selection to a choice in Config.in (suggested by Stephane)--- package/freescale-imx/imx-seco/Config.in | 43 ++++++++++++++++++++++ package/freescale-imx/imx-seco/imx-seco.mk | 11 ++---- 2 files changed, 46 insertions(+), 8 deletions(-)package/freescale-imx/imx-seco/Config.in +43
-0@@ -7,3 +7,46 @@ config BR2_PACKAGE_IMX_SECO This library is provided by Freescale as-is and doesn't have an upstream. + +if BR2_PACKAGE_IMX_SECO +choice + prompt "i.MX Seco Firmware Release" + default BR2_PACKAGE_IMX_SECO_MX8QMB0 if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8 + default BR2_PACKAGE_IMX_SECO_MX8QXC0 if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X + help + Select the appropriate ahab container image to install + to match the iMX asics revision. + + Note - mismatches result in a failure to boot + +config BR2_PACKAGE_IMX_SECO_MX8DXLA0 + bool "imx-seco-mx8dxla0" + depends on BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8 + +config BR2_PACKAGE_IMX_SECO_MX8DXLA1 + bool "imx-seco-mx8dxla1" + depends on BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8 + +config BR2_PACKAGE_IMX_SECO_MX8QMB0 + bool "imx-seco-mx8qmb0" + depends on BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8 + +config BR2_PACKAGE_IMX_SECO_MX8QXB0 + bool "imx-seco-mx8qxb0" + depends on BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X + +config BR2_PACKAGE_IMX_SECO_MX8QXC0 + bool "imx-seco-mx8qxc0" + depends on BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X + +endchoice + +config BR2_PACKAGE_IMX_SECO_AHAB_CONTAINER_IMAGE + string + default "mx8dxla0-ahab-container.img" if BR2_PACKAGE_IMX_SECO_MX8DXLA0 + default "mx8dxla1-ahab-container.img" if BR2_PACKAGE_IMX_SECO_MX8DXLA1 + default "mx8qmb0-ahab-container.img" if BR2_PACKAGE_IMX_SECO_MX8QMB0 + default "mx8qxb0-ahab-container.img" if BR2_PACKAGE_IMX_SECO_MX8QXB0 + default "mx8qxc0-ahab-container.img" if BR2_PACKAGE_IMX_SECO_MX8QXC0 + +endifpackage/freescale-imx/imx-seco/imx-seco.mk +3
-8@@ -20,16 +20,11 @@ IMX_SECO_INSTALL_IMAGES = YES # SECO firmware is needed when generating imx8-boot-sd.bin which # is done in post-image script. -ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X),y) -define IMX_SECO_INSTALL_IMAGES_CMDS - cp $(@D)/firmware/seco/mx8qxb0-ahab-container.img \ - $(BINARIES_DIR)/ahab-container.img -endef -else ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8),y) +IMX_SECO_AHAB_CONTAINER_IMAGE = $(call qstrip,$(BR2_PACKAGE_IMX_SECO_AHAB_CONTAINER_IMAGE)) + define IMX_SECO_INSTALL_IMAGES_CMDS - cp $(@D)/firmware/seco/mx8qmb0-ahab-container.img \ + cp $(@D)/firmware/seco/$(IMX_SECO_AHAB_CONTAINER_IMAGE) \ $(BINARIES_DIR)/ahab-container.img endef -endif $(eval $(generic-package))Signature · 6 lines
2.21.1 (Apple Git-122.3) _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'