Skip to contentSkip to conversation

conf: boundary: add mainline BSP support to all platforms

PATCH Superseded Gary Bisson 2 participants 18 messages Apr 27, 2017 – Apr 28, 2017

lore
Share & tools
lore
#0 lore raw

cover conf: boundary: add mainline BSP support to all platforms

Hi,

This series adds support for mainline BSP use for all our platforms.

It has been tested on each one of the platforms.

One thing to note is that the current imx_v6_v7_defconfig selects the fbdev driver by default, so Etnaviv can't be tested for i.MX6SX for now.

Those patches are largely inspired by what Otavio did on Nitrogen6x. Not sure the MACHINE_ESSENTIAL_EXTRA_RDEPENDS are actually needed, this duplicates the zImage + dtb files which are located in the first 'boot' partition as well as the 'root' partition under the boot/ folder. This series keeps that RDEPENDS to match Nitrogen6x but I'm wondering if that shouldn't be removed.

Regards,
Gary

Gary Bisson (6):
nitrogen6sx: Add wic image tool support
nitrogen6sx: Add 'use-mainline-bsp' support
nitrogen6x-lite: Add wic image tool support
nitrogen6x-lite: Add 'use-mainline-bsp' support
nitrogen7: Add wic image tool support
nitrogen7: Add 'use-mainline-bsp' support

 conf/machine/nitrogen6sx.conf     | 16 +++++++++++++++-
 conf/machine/nitrogen6x-lite.conf | 16 +++++++++++++++-
 conf/machine/nitrogen7.conf       | 16 +++++++++++++++-
 3 files changed, 45 insertions(+), 3 deletions(-)
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/6 nitrogen6sx: Add wic image tool support

Required when mainline BSP is used. See 79b9c97f for more details.

---
 conf/machine/nitrogen6sx.conf | 13 +++++++++++++
 1 file changed, 13 insertions(+)
conf/machine/nitrogen6sx.conf +13 -0
index 43f3a2e..6dea99c 100644
@@ -21,6 +21,15 @@ IMAGE_BOOTLOADER ?= ""
 # Ensure boot scripts will be available at rootfs time
 do_rootfs[depends] += "u-boot-script-boundary:do_deploy"
 
+# wic support
+WKS_FILE ?= "sdimage-bootpart.wks"
+IMAGE_BOOT_FILES = " \
+    6x_bootscript-${MACHINE};6x_bootscript \
+    ${KERNEL_IMAGETYPE} \
+    ${KERNEL_IMAGETYPE}-imx6sx-nitrogen6sx.dtb;imx6sx-nitrogen6sx.dtb \
+"
+IMAGE_DEPENDS_wic_append = " dosfstools-native mtools-native"
+
 # Boot scripts to install
 BOOT_SCRIPTS = "6x_bootscript-${MACHINE}:6x_bootscript"
 
@@ -29,4 +38,8 @@ UBOOT_MACHINE ?= "nitrogen6sx_config"
 SERIAL_CONSOLE = "115200 ttymxc0"
 
 MACHINE_EXTRA_RRECOMMENDS += "linux-firmware-wl12xx"
+MACHINE_ESSENTIAL_EXTRA_RDEPENDS += " \
+    kernel-image \
+    kernel-devicetree \
+"
 MACHINE_FEATURES += " pci wifi bluetooth"
Signature · 1 line
2.11.0
#2 lore raw

PATCH 2/6 nitrogen6sx: Add 'use-mainline-bsp' support

In reply to Gary Bisson

The 'use-mainline-bsp' makes use of linux-fslc as kernel.

---
 conf/machine/nitrogen6sx.conf | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
conf/machine/nitrogen6sx.conf +2 -1
index 6dea99c..38dc414 100644
@@ -13,7 +13,8 @@ KERNEL_DEVICETREE = "imx6sx-nitrogen6sx.dtb"
 KERNEL_IMAGETYPE = "zImage"
 
 PREFERRED_PROVIDER_u-boot = "u-boot-boundary"
-PREFERRED_PROVIDER_virtual/kernel ?= "linux-boundary"
+PREFERRED_PROVIDER_virtual/kernel ??= "linux-boundary"
+PREFERRED_PROVIDER_virtual/kernel_use-mainline-bsp ??= "linux-fslc"
 
 # Use SPI NOR U-Boot by default
 IMAGE_BOOTLOADER ?= ""
Signature · 1 line
2.11.0
#3 lore raw

PATCH 3/6 nitrogen6x-lite: Add wic image tool support

In reply to Gary Bisson

Required when mainline BSP is used. See 79b9c97f for more details.

---
 conf/machine/nitrogen6x-lite.conf | 13 +++++++++++++
 1 file changed, 13 insertions(+)
conf/machine/nitrogen6x-lite.conf +13 -0
index c626ed1..a64ca45 100644
@@ -21,6 +21,15 @@ IMAGE_BOOTLOADER ?= ""
 # Ensure boot scripts will be available at rootfs time
 do_rootfs[depends] += "u-boot-script-boundary:do_deploy"
 
+# wic support
+WKS_FILE ?= "sdimage-bootpart.wks"
+IMAGE_BOOT_FILES = " \
+    6x_bootscript-${MACHINE};6x_bootscript \
+    ${KERNEL_IMAGETYPE} \
+    ${KERNEL_IMAGETYPE}-imx6dl-nit6xlite.dtb;imx6dl-nit6xlite.dtb \
+"
+IMAGE_DEPENDS_wic_append = " dosfstools-native mtools-native"
+
 # Boot scripts to install
 BOOT_SCRIPTS = "6x_bootscript-${MACHINE}:6x_bootscript"
 
@@ -29,4 +38,8 @@ UBOOT_MACHINE ?= "nit6xlite_config"
 SERIAL_CONSOLE = "115200 ttymxc1"
 
 MACHINE_EXTRA_RRECOMMENDS += " bcm4330-nvram-config"
+MACHINE_ESSENTIAL_EXTRA_RDEPENDS += " \
+    kernel-image \
+    kernel-devicetree \
+"
 MACHINE_FEATURES += " pci wifi bluetooth"
Signature · 1 line
2.11.0
#4 lore raw

PATCH 4/6 nitrogen6x-lite: Add 'use-mainline-bsp' support

In reply to Gary Bisson

The 'use-mainline-bsp' makes use of linux-fslc as kernel.

---
 conf/machine/nitrogen6x-lite.conf | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
conf/machine/nitrogen6x-lite.conf +2 -1
index a64ca45..779e100 100644
@@ -13,7 +13,8 @@ KERNEL_DEVICETREE = "imx6dl-nit6xlite.dtb"
 KERNEL_IMAGETYPE = "zImage"
 
 PREFERRED_PROVIDER_u-boot = "u-boot-boundary"
-PREFERRED_PROVIDER_virtual/kernel ?= "linux-boundary"
+PREFERRED_PROVIDER_virtual/kernel ??= "linux-boundary"
+PREFERRED_PROVIDER_virtual/kernel_use-mainline-bsp ??= "linux-fslc"
 
 # Use SPI NOR U-Boot by default
 IMAGE_BOOTLOADER ?= ""
Signature · 1 line
2.11.0
#5 lore raw

PATCH 5/6 nitrogen7: Add wic image tool support

In reply to Gary Bisson

Required when mainline BSP is used. See 79b9c97f for more details.

---
 conf/machine/nitrogen7.conf | 13 +++++++++++++
 1 file changed, 13 insertions(+)
conf/machine/nitrogen7.conf +13 -0
index 7ea21b2..b669ffc 100644
@@ -21,6 +21,15 @@ IMAGE_BOOTLOADER ?= ""
 # Ensure boot scripts will be available at rootfs time
 do_rootfs[depends] += "u-boot-script-boundary:do_deploy"
 
+# wic support
+WKS_FILE ?= "sdimage-bootpart.wks"
+IMAGE_BOOT_FILES = " \
+    6x_bootscript-${MACHINE};6x_bootscript \
+    ${KERNEL_IMAGETYPE} \
+    ${KERNEL_IMAGETYPE}-imx7d-nitrogen7.dtb;imx7d-nitrogen7.dtb \
+"
+IMAGE_DEPENDS_wic_append = " dosfstools-native mtools-native"
+
 # Boot scripts to install
 BOOT_SCRIPTS = "6x_bootscript-${MACHINE}:6x_bootscript"
 
@@ -29,4 +38,8 @@ UBOOT_MACHINE ?= "nitrogen7_config"
 SERIAL_CONSOLE = "115200 ttymxc0"
 
 MACHINE_EXTRA_RRECOMMENDS += "linux-firmware-wl12xx"
+MACHINE_ESSENTIAL_EXTRA_RDEPENDS += " \
+    kernel-image \
+    kernel-devicetree \
+"
 MACHINE_FEATURES += " pci wifi bluetooth"
Signature · 1 line
2.11.0
#6 lore raw

PATCH 6/6 nitrogen7: Add 'use-mainline-bsp' support

In reply to Gary Bisson

The 'use-mainline-bsp' makes use of linux-fslc as kernel.

---
 conf/machine/nitrogen7.conf | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
conf/machine/nitrogen7.conf +2 -1
index b669ffc..ff69a09 100644
@@ -13,7 +13,8 @@ KERNEL_DEVICETREE = "imx7d-nitrogen7.dtb"
 KERNEL_IMAGETYPE = "zImage"
 
 PREFERRED_PROVIDER_u-boot = "u-boot-boundary"
-PREFERRED_PROVIDER_virtual/kernel ?= "linux-boundary"
+PREFERRED_PROVIDER_virtual/kernel ??= "linux-boundary"
+PREFERRED_PROVIDER_virtual/kernel_use-mainline-bsp ??= "linux-fslc"
 
 # Use SPI NOR U-Boot by default
 IMAGE_BOOTLOADER ?= ""
Signature · 1 line
2.11.0
#7 lore raw
In reply to Gary Bisson
Quoted 6 lines · Gary Bisson

Those patches are largely inspired by what Otavio did on Nitrogen6x. Not sure the MACHINE_ESSENTIAL_EXTRA_RDEPENDS are actually needed, this duplicates the zImage + dtb files which are located in the first 'boot' partition as well as the 'root' partition under the boot/ folder. This series keeps that RDEPENDS to match Nitrogen6x but I'm wondering if that shouldn't be removed.

You are right, they can. :-)

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#8 lore raw

Hi Otavio,

Quoted 11 lines · Otavio Salvador
Quoted 6 lines · Gary Bisson

Those patches are largely inspired by what Otavio did on Nitrogen6x. Not sure the MACHINE_ESSENTIAL_EXTRA_RDEPENDS are actually needed, this duplicates the zImage + dtb files which are located in the first 'boot' partition as well as the 'root' partition under the boot/ folder. This series keeps that RDEPENDS to match Nitrogen6x but I'm wondering if that shouldn't be removed.

You are right, they can. :-)

Should I send a v2 right away or do you have other remarks?

Regards,
Gary

#9 lore raw

Please, do a v2.

Quoted 20 lines · Gary Bisson

Hi Otavio,

Quoted 11 lines · Otavio Salvador
Quoted 6 lines · Gary Bisson

Those patches are largely inspired by what Otavio did on Nitrogen6x. Not sure the MACHINE_ESSENTIAL_EXTRA_RDEPENDS are actually needed, this duplicates the zImage + dtb files which are located in the first 'boot' partition as well as the 'root' partition under the boot/ folder. This series keeps that RDEPENDS to match Nitrogen6x but I'm wondering if that shouldn't be removed.

You are right, they can. :-)

Should I send a v2 right away or do you have other remarks?

Regards,
Gary

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#10 lore raw

I actually just made a test without it and the boot/ folder (in the root partition) still contains the zImage...

Is there an easy/proper way to make an image that mounts the boot partition into boot/?

Regards,
Gary

Quoted 31 lines · Otavio Salvador

Please, do a v2.

Quoted 14 lines · Gary Bisson

Hi Otavio,

Quoted 10 lines · Otavio Salvador
Quoted 6 lines · Gary Bisson

Those patches are largely inspired by what Otavio did on Nitrogen6x. Not sure the MACHINE_ESSENTIAL_EXTRA_RDEPENDS are actually needed, this duplicates the zImage + dtb files which are located in the first 'boot' partition as well as the 'root' partition under the boot/ folder. This series keeps that RDEPENDS to match Nitrogen6x but I'm wondering if that shouldn't be removed.

Quoted 6 lines
Quoted 1 line

You are right, they can. :-)

Should I send a v2 right away or do you have other remarks?

Regards,
Gary

--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750

#11 lore raw

v2 cover conf: boundary: add mainline BSP support to all platforms

In reply to Gary Bisson

Hi,

This series adds support for mainline BSP use for all our platforms.

It has been tested on each one of the platforms.

One thing to note is that the current imx_v6_v7_defconfig selects the fbdev driver by default, so Etnaviv can't be tested for i.MX6SX for now.

Changelog v1->v2:
- Remove unnecessary MACHINE_ESSENTIAL_EXTRA_RDEPENDS

Regards,
Gary

Gary Bisson (6):
nitrogen6sx: Add wic image tool support
nitrogen6sx: Add 'use-mainline-bsp' support
nitrogen6x-lite: Add wic image tool support
nitrogen6x-lite: Add 'use-mainline-bsp' support
nitrogen7: Add wic image tool support
nitrogen7: Add 'use-mainline-bsp' support

 conf/machine/nitrogen6sx.conf     | 12 +++++++++++-
 conf/machine/nitrogen6x-lite.conf | 12 +++++++++++-
 conf/machine/nitrogen7.conf       | 12 +++++++++++-
 3 files changed, 33 insertions(+), 3 deletions(-)
Signature · 1 line
2.11.0
#12 lore raw

PATCH v2 1/6 nitrogen6sx: Add wic image tool support

Required when mainline BSP is used. See 79b9c97f for more details.

---
 conf/machine/nitrogen6sx.conf | 9 +++++++++
 1 file changed, 9 insertions(+)
conf/machine/nitrogen6sx.conf +9 -0
index 43f3a2e..0a4fbd7 100644
@@ -21,6 +21,15 @@ IMAGE_BOOTLOADER ?= ""
 # Ensure boot scripts will be available at rootfs time
 do_rootfs[depends] += "u-boot-script-boundary:do_deploy"
 
+# wic support
+WKS_FILE ?= "sdimage-bootpart.wks"
+IMAGE_BOOT_FILES = " \
+    6x_bootscript-${MACHINE};6x_bootscript \
+    ${KERNEL_IMAGETYPE} \
+    ${KERNEL_IMAGETYPE}-imx6sx-nitrogen6sx.dtb;imx6sx-nitrogen6sx.dtb \
+"
+IMAGE_DEPENDS_wic_append = " dosfstools-native mtools-native"
+
 # Boot scripts to install
 BOOT_SCRIPTS = "6x_bootscript-${MACHINE}:6x_bootscript"
 
Signature · 1 line
2.11.0
#13 lore raw

PATCH v2 2/6 nitrogen6sx: Add 'use-mainline-bsp' support

In reply to Gary Bisson

The 'use-mainline-bsp' makes use of linux-fslc as kernel.

---
 conf/machine/nitrogen6sx.conf | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
conf/machine/nitrogen6sx.conf +2 -1
index 0a4fbd7..45b79f4 100644
@@ -13,7 +13,8 @@ KERNEL_DEVICETREE = "imx6sx-nitrogen6sx.dtb"
 KERNEL_IMAGETYPE = "zImage"
 
 PREFERRED_PROVIDER_u-boot = "u-boot-boundary"
-PREFERRED_PROVIDER_virtual/kernel ?= "linux-boundary"
+PREFERRED_PROVIDER_virtual/kernel ??= "linux-boundary"
+PREFERRED_PROVIDER_virtual/kernel_use-mainline-bsp ??= "linux-fslc"
 
 # Use SPI NOR U-Boot by default
 IMAGE_BOOTLOADER ?= ""
Signature · 1 line
2.11.0
#14 lore raw

PATCH v2 3/6 nitrogen6x-lite: Add wic image tool support

In reply to Gary Bisson

Required when mainline BSP is used. See 79b9c97f for more details.

---
 conf/machine/nitrogen6x-lite.conf | 9 +++++++++
 1 file changed, 9 insertions(+)
conf/machine/nitrogen6x-lite.conf +9 -0
index c626ed1..b3356e5 100644
@@ -21,6 +21,15 @@ IMAGE_BOOTLOADER ?= ""
 # Ensure boot scripts will be available at rootfs time
 do_rootfs[depends] += "u-boot-script-boundary:do_deploy"
 
+# wic support
+WKS_FILE ?= "sdimage-bootpart.wks"
+IMAGE_BOOT_FILES = " \
+    6x_bootscript-${MACHINE};6x_bootscript \
+    ${KERNEL_IMAGETYPE} \
+    ${KERNEL_IMAGETYPE}-imx6dl-nit6xlite.dtb;imx6dl-nit6xlite.dtb \
+"
+IMAGE_DEPENDS_wic_append = " dosfstools-native mtools-native"
+
 # Boot scripts to install
 BOOT_SCRIPTS = "6x_bootscript-${MACHINE}:6x_bootscript"
 
Signature · 1 line
2.11.0
#15 lore raw

PATCH v2 4/6 nitrogen6x-lite: Add 'use-mainline-bsp' support

In reply to Gary Bisson

The 'use-mainline-bsp' makes use of linux-fslc as kernel.

---
 conf/machine/nitrogen6x-lite.conf | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
conf/machine/nitrogen6x-lite.conf +2 -1
index b3356e5..11efddf 100644
@@ -13,7 +13,8 @@ KERNEL_DEVICETREE = "imx6dl-nit6xlite.dtb"
 KERNEL_IMAGETYPE = "zImage"
 
 PREFERRED_PROVIDER_u-boot = "u-boot-boundary"
-PREFERRED_PROVIDER_virtual/kernel ?= "linux-boundary"
+PREFERRED_PROVIDER_virtual/kernel ??= "linux-boundary"
+PREFERRED_PROVIDER_virtual/kernel_use-mainline-bsp ??= "linux-fslc"
 
 # Use SPI NOR U-Boot by default
 IMAGE_BOOTLOADER ?= ""
Signature · 1 line
2.11.0
#16 lore raw

PATCH v2 5/6 nitrogen7: Add wic image tool support

In reply to Gary Bisson

Required when mainline BSP is used. See 79b9c97f for more details.

---
 conf/machine/nitrogen7.conf | 9 +++++++++
 1 file changed, 9 insertions(+)
conf/machine/nitrogen7.conf +9 -0
index 7ea21b2..db604ad 100644
@@ -21,6 +21,15 @@ IMAGE_BOOTLOADER ?= ""
 # Ensure boot scripts will be available at rootfs time
 do_rootfs[depends] += "u-boot-script-boundary:do_deploy"
 
+# wic support
+WKS_FILE ?= "sdimage-bootpart.wks"
+IMAGE_BOOT_FILES = " \
+    6x_bootscript-${MACHINE};6x_bootscript \
+    ${KERNEL_IMAGETYPE} \
+    ${KERNEL_IMAGETYPE}-imx7d-nitrogen7.dtb;imx7d-nitrogen7.dtb \
+"
+IMAGE_DEPENDS_wic_append = " dosfstools-native mtools-native"
+
 # Boot scripts to install
 BOOT_SCRIPTS = "6x_bootscript-${MACHINE}:6x_bootscript"
 
Signature · 1 line
2.11.0
#17 lore raw

PATCH v2 6/6 nitrogen7: Add 'use-mainline-bsp' support

In reply to Gary Bisson

The 'use-mainline-bsp' makes use of linux-fslc as kernel.

---
 conf/machine/nitrogen7.conf | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
conf/machine/nitrogen7.conf +2 -1
index db604ad..30cfb73 100644
@@ -13,7 +13,8 @@ KERNEL_DEVICETREE = "imx7d-nitrogen7.dtb"
 KERNEL_IMAGETYPE = "zImage"
 
 PREFERRED_PROVIDER_u-boot = "u-boot-boundary"
-PREFERRED_PROVIDER_virtual/kernel ?= "linux-boundary"
+PREFERRED_PROVIDER_virtual/kernel ??= "linux-boundary"
+PREFERRED_PROVIDER_virtual/kernel_use-mainline-bsp ??= "linux-fslc"
 
 # Use SPI NOR U-Boot by default
 IMAGE_BOOTLOADER ?= ""
Signature · 1 line
2.11.0