diff options
| author | Max Krummenacher <max.krummenacher@toradex.com> | 2021-01-25 15:53:45 +0100 |
|---|---|---|
| committer | Otavio Salvador <otavio@ossystems.com.br> | 2021-01-26 08:24:15 -0300 |
| commit | b6e910abdea72f9cd6336c4eeecdf8646e3543c2 (patch) | |
| tree | 9acb4e06a4544a6055ac319ddf13dd006f74c23b | |
| parent | 67dbd8b8d7d4dd00e91d8c82e0118746e7a0eb8b (diff) | |
| download | meta-freescale-b6e910abdea72f9cd6336c4eeecdf8646e3543c2.tar.gz | |
machines: imx-base.inc: fix failing u-boot builds
If using a fsl-xxx distro the prefered provider of U-Boot is
u-boot-imx. That U-Boot didn't make the switch to a unified dl/q/qp
binary and does not use an spl. For the imx6ulevk it does not use an
spl.
The below commits try to address that, however the change is not
limited to
- the fsl distro but rather uses use-nxp-bsp which can be used with any distro
- some machines which do not use u-boot-imx, e.g. colibri-imx6 now fail.
Fix this by moving the configuration into the affected distro in
meta-freescale-distro and the machines.
Fixes:
c9757ea3 ("imx-base.inc: Fix use-nxp-bsp after rework")
77e56f30 ("imx-base.inc: Limit use-fsl-bsp u-boot overrides to i.MX 6 and 7")
e5cd33c9 ("u-boot.imx: Add u-boot configuration for fsl")
Build tested with fsl-xwayland & use-nxp-bsp for imx6qdlsabreauto,
imx6qdlsabresd, and imx6ulevk.
Build tested with the fslc-xwayland & use-nxp-bsp for imx6qdlsabreauto,
imx6qdlsabresd, imx6ulevk, and colibri-imx6.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
| -rw-r--r-- | conf/machine/imx6qdlsabreauto.conf | 4 | ||||
| -rw-r--r-- | conf/machine/imx6qdlsabresd.conf | 4 | ||||
| -rw-r--r-- | conf/machine/include/imx-base.inc | 12 |
3 files changed, 8 insertions, 12 deletions
diff --git a/conf/machine/imx6qdlsabreauto.conf b/conf/machine/imx6qdlsabreauto.conf index 16c1dcb66..a6d5908bb 100644 --- a/conf/machine/imx6qdlsabreauto.conf +++ b/conf/machine/imx6qdlsabreauto.conf | |||
| @@ -40,6 +40,10 @@ UBOOT_SUFFIX = "img" | |||
| 40 | SPL_BINARY = "SPL" | 40 | SPL_BINARY = "SPL" |
| 41 | WKS_FILE = "imx-uboot-spl-bootpart.wks.in" | 41 | WKS_FILE = "imx-uboot-spl-bootpart.wks.in" |
| 42 | 42 | ||
| 43 | # The fsl distro uses u-boot-imx which does not provide unified functionality | ||
| 44 | # for dl/q/qp SoC variants. Change the defconfig to the targeted SoC variant. | ||
| 45 | UBOOT_MACHINE_fsl = "mx6qsabreauto_defconfig" | ||
| 46 | |||
| 43 | SERIAL_CONSOLES = "115200;ttymxc3" | 47 | SERIAL_CONSOLES = "115200;ttymxc3" |
| 44 | 48 | ||
| 45 | MACHINE_FIRMWARE_append_mx6 = " linux-firmware-ath6k" | 49 | MACHINE_FIRMWARE_append_mx6 = " linux-firmware-ath6k" |
diff --git a/conf/machine/imx6qdlsabresd.conf b/conf/machine/imx6qdlsabresd.conf index 2fe95dc6d..406ad7d78 100644 --- a/conf/machine/imx6qdlsabresd.conf +++ b/conf/machine/imx6qdlsabresd.conf | |||
| @@ -49,6 +49,10 @@ UBOOT_SUFFIX = "img" | |||
| 49 | SPL_BINARY = "SPL" | 49 | SPL_BINARY = "SPL" |
| 50 | WKS_FILE = "imx-uboot-spl-bootpart.wks.in" | 50 | WKS_FILE = "imx-uboot-spl-bootpart.wks.in" |
| 51 | 51 | ||
| 52 | # The fsl distro uses u-boot-imx which does not provide unified functionality | ||
| 53 | # for dl/q/qp SoC variants. Change the defconfig to the targeted SoC variant. | ||
| 54 | UBOOT_MACHINE_fsl = "mx6qsabresd_defconfig" | ||
| 55 | |||
| 52 | SERIAL_CONSOLES = "115200;ttymxc0" | 56 | SERIAL_CONSOLES = "115200;ttymxc0" |
| 53 | 57 | ||
| 54 | MACHINE_FIRMWARE_append_mx6 = " linux-firmware-ath6k" | 58 | MACHINE_FIRMWARE_append_mx6 = " linux-firmware-ath6k" |
diff --git a/conf/machine/include/imx-base.inc b/conf/machine/include/imx-base.inc index 6314a20ed..8ade0cac1 100644 --- a/conf/machine/include/imx-base.inc +++ b/conf/machine/include/imx-base.inc | |||
| @@ -382,18 +382,6 @@ SOC_DEFAULT_WKS_FILE_mxs ?= "imx-uboot-mxs-bootpart.wks.in" | |||
| 382 | 382 | ||
| 383 | WKS_FILE ?= "${SOC_DEFAULT_WKS_FILE}" | 383 | WKS_FILE ?= "${SOC_DEFAULT_WKS_FILE}" |
| 384 | 384 | ||
| 385 | # Certain machines are set to use the mainline u-boot by default | ||
| 386 | # to encourage syncronization with mainline. Undo that here for | ||
| 387 | # machines that don't work with mainline. | ||
| 388 | UBOOT_MAKE_TARGET_use-nxp-bsp_mx6 = "u-boot.imx" | ||
| 389 | UBOOT_SUFFIX_use-nxp-bsp_mx6 = "imx" | ||
| 390 | SPL_BINARY_use-nxp-bsp_mx6 = "" | ||
| 391 | WKS_FILE_use-nxp-bsp_mx6 = "imx-uboot-bootpart.wks.in" | ||
| 392 | UBOOT_MAKE_TARGET_use-nxp-bsp_mx7 = "u-boot.imx" | ||
| 393 | UBOOT_SUFFIX_use-nxp-bsp_mx7 = "imx" | ||
| 394 | SPL_BINARY_use-nxp-bsp_mx7 = "" | ||
| 395 | WKS_FILE_use-nxp-bsp_mx7 = "imx-uboot-bootpart.wks.in" | ||
| 396 | |||
| 397 | SERIAL_CONSOLES = "115200;ttymxc0" | 385 | SERIAL_CONSOLES = "115200;ttymxc0" |
| 398 | SERIAL_CONSOLES_mxs = "115200;ttyAMA0" | 386 | SERIAL_CONSOLES_mxs = "115200;ttyAMA0" |
| 399 | 387 | ||
