Skip to contentSkip to conversation

u-boot-fslc: Bump revision to 3106462

PATCH In review Otavio Salvador 2 participants 9 messages Jul 4, 2016 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/7 u-boot-fslc: Bump revision to 3106462

This includes following fixes:

3106462 mx7dsabresd: Fix the boot of a NXP kernel
401468c mx7: Place MX7_SEC option in Kconfig

---

 recipes-bsp/u-boot/u-boot-fslc-mxsboot_2016.05.bb | 2 +-
 recipes-bsp/u-boot/u-boot-fslc_2016.05.bb         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
recipes-bsp/u-boot/u-boot-fslc-mxsboot_2016.05.bb +1 -1
index 28a64a4..f266da6 100644
@@ -7,7 +7,7 @@ PROVIDES = "u-boot-mxsboot"
 
 PV = "v2016.05+git${SRCPV}"
 
-SRCREV = "6e4d8c5bdc6ca8eb241e848f658c4f5abb8b0783"
+SRCREV = "31064626988e9ac242b76d3fcbd2091143796d8e"
 SRCBRANCH = "2016.05+fslc"
 
 SRC_URI = "git://github.com/Freescale/u-boot-fslc.git;branch=${SRCBRANCH}"
recipes-bsp/u-boot/u-boot-fslc_2016.05.bb +1 -1
index 72198b7..8bd4d68 100644
@@ -2,5 +2,5 @@ include u-boot-fslc.inc
 
 PV = "v2016.05+git${SRCPV}"
 
-SRCREV = "6e4d8c5bdc6ca8eb241e848f658c4f5abb8b0783"
+SRCREV = "31064626988e9ac242b76d3fcbd2091143796d8e"
 SRCBRANCH = "2016.05+fslc"
Signature · 1 line
2.9.0
#1 lore raw

PATCH 2/7 imx-base.inc: Use linux-fslc-imx for i.MX7

---

 conf/machine/include/imx-base.inc | 1 +
 1 file changed, 1 insertion(+)
conf/machine/include/imx-base.inc +1 -0
index 31f7f17..8abf86b 100644
@@ -150,6 +150,7 @@ IMX_DEFAULT_KERNEL = "linux-imx"
 IMX_DEFAULT_KERNEL_mxs = "linux-fslc"
 IMX_DEFAULT_KERNEL_mx5 = "linux-fslc"
 IMX_DEFAULT_KERNEL_mx6 = "linux-fslc-imx"
+IMX_DEFAULT_KERNEL_mx7 = "linux-fslc-imx"
 IMX_DEFAULT_KERNEL_mx6ul = "linux-imx"
 
 PREFERRED_PROVIDER_virtual/kernel ??= "${IMX_DEFAULT_KERNEL}"
Signature · 1 line
2.9.0
#2 lore raw

PATCH 3/7 imx-base.inc: Use linux-fslc-imx for i.MX6UL

In reply to Otavio Salvador

---

 conf/machine/include/imx-base.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
conf/machine/include/imx-base.inc +1 -1
index 8abf86b..d6069a7 100644
@@ -151,7 +151,7 @@ IMX_DEFAULT_KERNEL_mxs = "linux-fslc"
 IMX_DEFAULT_KERNEL_mx5 = "linux-fslc"
 IMX_DEFAULT_KERNEL_mx6 = "linux-fslc-imx"
 IMX_DEFAULT_KERNEL_mx7 = "linux-fslc-imx"
-IMX_DEFAULT_KERNEL_mx6ul = "linux-imx"
+IMX_DEFAULT_KERNEL_mx6ul = "linux-fslc-imx"
 
 PREFERRED_PROVIDER_virtual/kernel ??= "${IMX_DEFAULT_KERNEL}"
 
Signature · 1 line
2.9.0
#3 lore raw

PATCH 4/7 fsl-vivante-kernel-driver-handler.bbclass: Allow build for non-i.MX6

In reply to Otavio Salvador

When building for non-i.MX6, we ought to assume the SoC does not has Vivante GPU at all, or the build will fail. This fixes the build of linux-fslc-imx-rt for i.MX7D as it does not have a Vivante GPU.

---

 classes/fsl-vivante-kernel-driver-handler.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
classes/fsl-vivante-kernel-driver-handler.bbclass +2 -2
index cdd6450..e0578f4 100644
@@ -20,7 +20,7 @@
 #       0 - enable the builtin kernel driver module
 #       1 - enable the external kernel module
 #
-# Copyright 2015 (C) O.S. Systems Software LTDA.
+# Copyright 2015, 2016 (C) O.S. Systems Software LTDA.
 # Released under the MIT license (see COPYING.MIT for the terms)
 
 # Handle Vivante kernel driver setting:
@@ -31,7 +31,7 @@ MACHINE_HAS_VIVANTE_KERNEL_DRIVER_SUPPORT ??= "0"
 # Use Vivante kernel driver module:
 #   0 - enable the builtin kernel driver module
 #   1 - enable the external kernel module
-MACHINE_USES_VIVANTE_KERNEL_DRIVER_MODULE ??= "1"
+MACHINE_USES_VIVANTE_KERNEL_DRIVER_MODULE ??= "${@d.getVar('MACHINE_HAS_VIVANTE_KERNEL_DRIVER_SUPPORT', False) or '0'}"
 
 python fsl_vivante_kernel_driver_handler () {
     has_vivante_kernel_driver_support = e.data.getVar('MACHINE_HAS_VIVANTE_KERNEL_DRIVER_SUPPORT', True) or "0"
Signature · 1 line
2.9.0
#4 lore raw

PATCH 5/7 linux-fslc-imx: Disable Vivante GPU support

In reply to Otavio Salvador

The Vivante GPU is used as kernel module for all i.MX6, by default, so the defconfig should not enable it as other SoC (as i.MX6UL and i.MX7D) uses the same defconfig and does not have the Vivante GPU.

This avoids the built-in driver build for other SoCs, thus fixing a build error with GCC 6, which is hidden when using the external module.

---

 recipes-kernel/linux/linux-fslc-imx/defconfig | 1 -
 1 file changed, 1 deletion(-)
recipes-kernel/linux/linux-fslc-imx/defconfig +0 -1
index 40e35b9..df7d7f4 100644
@@ -328,7 +328,6 @@ CONFIG_MMC_SDHCI_PLTFM=y
 CONFIG_MMC_SDHCI_ESDHC_IMX=y
 CONFIG_MXC_IPU=y
 CONFIG_MXC_IPU_V3_PRE=y
-CONFIG_MXC_GPU_VIV=y
 CONFIG_MXC_SIM=y
 CONFIG_MXC_MIPI_CSI2=y
 CONFIG_MXC_HDMI_CEC=y
Signature · 1 line
2.9.0
#5 lore raw

PATCH 6/7 linux-fslc-imx: Bump to revision 960f493

In reply to Otavio Salvador

This merges the 4.1.26 stable release and include following change:

960f493 of: Allow NXP 4.1 kernel to allocate memory on 2GiB RAM boards

---

 recipes-kernel/linux/linux-fslc-imx_4.1-1.0.x.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-kernel/linux/linux-fslc-imx_4.1-1.0.x.bb +1 -1
index 5c1bc22..52c6e5f 100644
@@ -11,6 +11,6 @@ include linux-fslc.inc
 PV .= "+git${SRCPV}"
 
 SRCBRANCH = "4.1-1.0.x-imx"
-SRCREV = "3617c73273b93c811e23978ca835548fd0747ae4"
+SRCREV = "960f493cce161ddc2ba3ffe82c061496e5771829"
 
 COMPATIBLE_MACHINE = "(mx6|mx7)"
Signature · 1 line
2.9.0
#6 lore raw

PATCH 7/7 imx7dsabresd: Fix the boot of a NXP kernel

In reply to Otavio Salvador

Booting a NXP kernel with mainline U-boot leads to the following kernel crash:

,----

| caam: probe of 30900000.caam failed with error -11
| Unable to handle kernel NULL pointer dereference at virtual address 00000004
| pgd = 80004000
| [00000004] *pgd=00000000
| Internal error: Oops: 805 [#1] PREEMPT SMP ARM

`----

This happens because NXP kernel expects MX7 to boot in secure mode, so introduce mx7dsabresd_secure_defconfig that selects CONFIG_MX7_SEC and allows booting a NXP provided kernel successfully.

---

 conf/machine/imx7dsabresd.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
conf/machine/imx7dsabresd.conf +1 -1
index 1d05d26..b71bd4a 100644
@@ -18,7 +18,7 @@ KERNEL_DEVICETREE = "imx7d-sdb.dtb imx7d-sdb-epdc.dtb imx7d-sdb-gpmi-weim.dtb \
                      imx7d-sdb-reva-touch.dtb imx7d-sdb-reva-wm8960.dtb"
 
 UBOOT_CONFIG ??= "sd"
-UBOOT_CONFIG[sd] = "mx7dsabresd_config,sdcard"
+UBOOT_CONFIG[sd] = "mx7dsabresd_secure_config,sdcard"
 UBOOT_CONFIG[qspi1] = "mx7dsabresd_qspi1_config"
 UBOOT_CONFIG[nand] = "mx7dsabresd_nand_config,ubifs"
 UBOOT_CONFIG[epdc] = "mx7dsabresd_epdc_config"
Signature · 1 line
2.9.0
Tested-by on v1 7/7
#7 lore raw

Re: [meta-fsl-arm PATCH 7/7] imx7dsabresd: Fix the boot of a NXP kernel

Quoted 9 lines · Otavio Salvador

Booting a NXP kernel with mainline U-boot leads to the following kernel crash:

,----

| caam: probe of 30900000.caam failed with error -11
| Unable to handle kernel NULL pointer dereference at virtual address 00000004
| pgd = 80004000
| [00000004] *pgd=00000000
| Internal error: Oops: 805 [#1] PREEMPT SMP ARM
Quoted 7 lines

`----

This happens because NXP kernel expects MX7 to boot in secure mode, so introduce mx7dsabresd_secure_defconfig that selects CONFIG_MX7_SEC and allows booting a NXP provided kernel successfully.

Quoted 26 lines

---

 conf/machine/imx7dsabresd.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
conf/machine/imx7dsabresd.conf +1 -2
index 1d05d26..b71bd4a 100644
@@ -18,7 +18,7 @@ KERNEL_DEVICETREE = "imx7d-sdb.dtb imx7d-sdb-epdc.dtb imx7d-sdb-gpmi-weim.dtb \
                      imx7d-sdb-reva-touch.dtb imx7d-sdb-reva-wm8960.dtb"
 
 UBOOT_CONFIG ??= "sd"
-UBOOT_CONFIG[sd] = "mx7dsabresd_config,sdcard"
+UBOOT_CONFIG[sd] = "mx7dsabresd_secure_config,sdcard"
 UBOOT_CONFIG[qspi1] = "mx7dsabresd_qspi1_config"
 UBOOT_CONFIG[nand] = "mx7dsabresd_nand_config,ubifs"
 UBOOT_CONFIG[epdc] = "mx7dsabresd_epdc_config"
--

2.9.0

--
_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale

#8 lore raw
In reply to Otavio Salvador
Quoted 5 lines · Otavio Salvador

This includes following fixes:

3106462 mx7dsabresd: Fix the boot of a NXP kernel
401468c mx7: Place MX7_SEC option in Kconfig

I tested it for imx7 and it worked for me

Daiane

Quoted 39 lines

---

 recipes-bsp/u-boot/u-boot-fslc-mxsboot_2016.05.bb | 2 +-
 recipes-bsp/u-boot/u-boot-fslc_2016.05.bb         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
recipes-bsp/u-boot/u-boot-fslc-mxsboot_2016.05.bb +1 -1
index 28a64a4..f266da6 100644
@@ -7,7 +7,7 @@ PROVIDES = "u-boot-mxsboot"
 
 PV = "v2016.05+git${SRCPV}"
 
-SRCREV = "6e4d8c5bdc6ca8eb241e848f658c4f5abb8b0783"
+SRCREV = "31064626988e9ac242b76d3fcbd2091143796d8e"
 SRCBRANCH = "2016.05+fslc"
 
 SRC_URI = "git://github.com/Freescale/u-boot-fslc.git;branch=${SRCBRANCH}"
recipes-bsp/u-boot/u-boot-fslc_2016.05.bb +1 -2
index 72198b7..8bd4d68 100644
@@ -2,5 +2,5 @@ include u-boot-fslc.inc
 
 PV = "v2016.05+git${SRCPV}"
 
-SRCREV = "6e4d8c5bdc6ca8eb241e848f658c4f5abb8b0783"
+SRCREV = "31064626988e9ac242b76d3fcbd2091143796d8e"
 SRCBRANCH = "2016.05+fslc"
--

2.9.0

--
_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale