Skip to contentSkip to conversation

Replace wandboard kernel

PATCH Superseded John Weber 4 participants 10 messages Apr 3, 2013 Arm i.MX and Layerscape

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

John Weber

author
#0 lore raw

cover Replace wandboard kernel

This patchset adds a recipe to support building the wandboard kernel from the 'official' wandboard git repository. This recipe is named 'linux-wandboard'.

It also removes support from linux-imx for Wandboard so that kernel support for Wandboard is not confusing and is maintained in one repository.

John Weber (3):
linux-wandboard (3.0.35): add recipe for 'official' wandboard kernel
wandboard-dual: Make linux-wandboard preferred provider linux-imx (3.0.35): Remove wandboard from recipe

 conf/machine/wandboard-dual.conf                   |    1 +
 ...1-Linux-3.0.35-Add-wandboard-dual-support.patch | 1216 -
 ...002-wandboard-dual-fix-sdhc-platform-data.patch |   52 -
 ....0.35-Add-brcm80211-driver-backported-fro.patch |94038 ---------------
 ...mx-3.0.35-remove-brcm80211-staging-driver.patch |123141 --------------------
 ...odifications-for-fsl-3.0.0-and-add-header.patch |   86 -
 .../linux-imx-3.0.35/wandboard-dual/defconfig      | 2768 -
 recipes-kernel/linux/linux-imx_3.0.35.bbappend     |   10 +-
 ...onfig-Add-SNVS_RTC-to-Wandboard-platform-.patch |   31 +
 .../0002-wandboard-Fix-SDHC-platform-data.patch    |   56 +
 .../wandboard-dual/defconfig                       | 3102 +
 recipes-kernel/linux/linux-wandboard.inc           |   69 +
 recipes-kernel/linux/linux-wandboard_3.0.35.bb     |   17 +
 13 files changed, 3277 insertions(+), 221310 deletions(-)
 delete mode 100644 recipes-kernel/linux/linux-imx-3.0.35/wandboard-dual/0001-Linux-3.0.35-Add-wandboard-dual-support.patch
 delete mode 100644 recipes-kernel/linux/linux-imx-3.0.35/wandboard-dual/0002-wandboard-dual-fix-sdhc-platform-data.patch
 delete mode 100644 recipes-kernel/linux/linux-imx-3.0.35/wandboard-dual/0003-linux-imx-3.0.35-Add-brcm80211-driver-backported-fro.patch
 delete mode 100644 recipes-kernel/linux/linux-imx-3.0.35/wandboard-dual/0003-linux-imx-3.0.35-remove-brcm80211-staging-driver.patch
 delete mode 100644 recipes-kernel/linux/linux-imx-3.0.35/wandboard-dual/0004-modifications-for-fsl-3.0.0-and-add-header.patch
 delete mode 100644 recipes-kernel/linux/linux-imx-3.0.35/wandboard-dual/defconfig
 create mode 100644 recipes-kernel/linux/linux-wandboard-3.0.35/wandboard-dual/0001-mach-mx6-Kconfig-Add-SNVS_RTC-to-Wandboard-platform-.patch
 create mode 100644 recipes-kernel/linux/linux-wandboard-3.0.35/wandboard-dual/0002-wandboard-Fix-SDHC-platform-data.patch
 create mode 100644 recipes-kernel/linux/linux-wandboard-3.0.35/wandboard-dual/defconfig
 create mode 100644 recipes-kernel/linux/linux-wandboard.inc
 create mode 100644 recipes-kernel/linux/linux-wandboard_3.0.35.bb
Signature · 1 line
1.7.9.5
author
#1 lore raw

PATCH 1/3 linux-wandboard (3.0.35): add recipe for 'official' wandboard kernel

Adds a recipe to build a kernel using the 'offical' wandboard git repository. Recipe is two parts. linux-wandboard.inc specifies items that should not change very often (SRCURI, LICENCE, and some task append functions). The .bb file specifies the SRCREV and other things that could change quite often.

---
 ...onfig-Add-SNVS_RTC-to-Wandboard-platform-.patch |   31 +
 .../0002-wandboard-Fix-SDHC-platform-data.patch    |   56 +
 .../wandboard-dual/defconfig                       | 3102 ++++++++++++++++++++
 recipes-kernel/linux/linux-wandboard.inc           |   69 +
 recipes-kernel/linux/linux-wandboard_3.0.35.bb     |   17 +
 5 files changed, 3275 insertions(+)
 create mode 100644 recipes-kernel/linux/linux-wandboard-3.0.35/wandboard-dual/0001-mach-mx6-Kconfig-Add-SNVS_RTC-to-Wandboard-platform-.patch
 create mode 100644 recipes-kernel/linux/linux-wandboard-3.0.35/wandboard-dual/0002-wandboard-Fix-SDHC-platform-data.patch
 create mode 100644 recipes-kernel/linux/linux-wandboard-3.0.35/wandboard-dual/defconfig
 create mode 100644 recipes-kernel/linux/linux-wandboard.inc
 create mode 100644 recipes-kernel/linux/linux-wandboard_3.0.35.bb
recipes-kernel/linux/linux-wandboard-3.0.35/wandboard-dual/0001-mach-mx6-Kconfig-Add-SNVS_RTC-to-Wandboard-platform-.patch new file +31 -0
new file mode 100644
index 0000000..8721b7b
@@ -0,0 +1,31 @@
+From de98f8f133d1077c04dc54d546ca9b63dcaeccd1 Mon Sep 17 00:00:00 2001
+From: John Weber <[email protected]>
+Date: Mon, 1 Apr 2013 21:19:49 -0500
+Subject: [wandboard][PATCH 1/2] mach-mx6 Kconfig: Add SNVS_RTC to Wandboard
+ platform selections
+
+Without this line, CONFIG_IMX_HAVE_PLATFORM_IMX_SNVS_RTC will be configured
+if the main i.MX SNVS RTC driver is selected.
+
+Upstream-Status: Submitted
+
+Signed-off-by: John Weber <[email protected]>
+---
+ arch/arm/mach-mx6/Kconfig |    1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/arch/arm/mach-mx6/Kconfig b/arch/arm/mach-mx6/Kconfig
+index c34de93..a7fd8bd 100644
+--- a/arch/arm/mach-mx6/Kconfig
++++ b/arch/arm/mach-mx6/Kconfig
+@@ -303,6 +303,7 @@ config MACH_WANDBOARD
+ 	select IMX_HAVE_PLATFORM_MXC_HDMI if FB_MXC_HDMI
+ 	select IMX_HAVE_PLATFORM_IMX_IPUV3 if MXC_IPU_V3
+ 	select IMX_HAVE_PLATFORM_IMX_ANATOP_THERMAL if ANATOP_THERMAL
++	select IMX_HAVE_PLATFORM_IMX_SNVS_RTC if RTC_DRV_SNVS
+ 	select IMX_HAVE_PLATFORM_IMX_PM if PM
+ 	select IMX_HAVE_PLATFORM_IMX_DVFS if CPU_FREQ_IMX
+ 	select IMX_HAVE_PLATFORM_SPI_IMX if SPI
+-- 
+1.7.9.5
+
recipes-kernel/linux/linux-wandboard-3.0.35/wandboard-dual/0002-wandboard-Fix-SDHC-platform-data.patch new file +56 -0

56 lines not on this page · raw message

recipes-kernel/linux/linux-wandboard-3.0.35/wandboard-dual/defconfig new file +3102 -0

2,913 lines not on this page · raw message

recipes-kernel/linux/linux-wandboard.inc new file +69 -0

69 lines not on this page · raw message

recipes-kernel/linux/linux-wandboard_3.0.35.bb new file +17 -0
new file mode 100644
index 0000000..938d130

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
1.7.9.5

Part of the diff is not shown here. View the raw message.

#2 lore raw

Re: [meta-fsl-arm-extra][PATCH 1/3] linux-wandboard (3.0.35): add recipe for 'official' wandboard kernel

Quoted 7 lines · John Weber

Adds a recipe to build a kernel using the 'offical' wandboard git repository. Recipe is two parts. linux-wandboard.inc specifies items that should not change very often (SRCURI, LICENCE, and some task append functions). The .bb file specifies the SRCREV and other things that could change quite often.

Most code of linux-wandboard.inc is the same as linux-imx.inc so please reuse it and override just what is need.

Quoted 8 lines
 ...onfig-Add-SNVS_RTC-to-Wandboard-platform-.patch |   31 +
 .../0002-wandboard-Fix-SDHC-platform-data.patch    |   56 +
 .../wandboard-dual/defconfig                       | 3102 ++++++++++++++++++++
 recipes-kernel/linux/linux-wandboard.inc           |   69 +
 recipes-kernel/linux/linux-wandboard_3.0.35.bb     |   17 +
 5 files changed, 3275 insertions(+)
 create mode 100644 recipes-kernel/linux/linux-wandboard-3.0.35/wandboard-dual/0001-mach-mx6-Kconfig-Add-SNVS_RTC-to-Wandboard-platform-.patch
 create mode 100644 recipes-kernel/linux/linux-wandboard-3.0.35/wandboard-dual/0002-wandboard-Fix-SDHC-platform-data.patch

Those patches are not dual specific so you can have them at linux-wandboard-3.0.35 dir.

Quoted 1 line
 create mode 100644 recipes-kernel/linux/linux-wandboard-3.0.35/wandboard-dual/defconfig

You should use savedefconfig to generated the reduced version of it.

Quoted 1 line
 create mode 100644 recipes-kernel/linux/linux-wandboard.inc

Please use linux-imx.inc file so we avoid code duplication.

Quoted 1 line
 create mode 100644 recipes-kernel/linux/linux-wandboard_3.0.35.bb

Regards,

--
Otavio Salvador O.S. Systems
E-mail: [email protected] http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br

author
#3 lore raw

PATCH 2/3 wandboard-dual: Make linux-wandboard preferred provider

In reply to John Weber

With the addition of the linux-wandboard recipes, which build the Wandboard kernel from the 'official' kernel source for Wandboard, change the PREFERRED_PROVIDER to 'linux-wandboard'.

---
 conf/machine/wandboard-dual.conf |    1 +
 1 file changed, 1 insertion(+)
conf/machine/wandboard-dual.conf +1 -0
index ce50149..f822264 100644
@@ -10,6 +10,7 @@ SOC_FAMILY = "mx6dl:mx6"
 KERNEL_DEVICETREE = "${S}/arch/arm/boot/dts/imx6dl-wandboard.dts"
 
 PREFERRED_PROVIDER_u-boot = "u-boot-imx" 
+PRERERRED_PROVIDER_virtual/kernel = "linux-wandboard"
 
 UBOOT_MACHINE = "wandboard_config"
 UBOOT_SUFFIX = "bin"
Signature · 1 line
1.7.9.5
author
#4 lore raw

PATCH 3/3 linux-imx (3.0.35): Remove wandboard from recipe

In reply to John Weber

With the addition of the linux-wandboard recipe, we remove wandboard support from the linux-imx recipes in order to prevent confusion and keep all Wandboard effort focused on the 'official' Wandboard kernel.

---
 ...1-Linux-3.0.35-Add-wandboard-dual-support.patch | 1216 -
 ...002-wandboard-dual-fix-sdhc-platform-data.patch |   52 -
 ....0.35-Add-brcm80211-driver-backported-fro.patch |94038 ---------------
 ...mx-3.0.35-remove-brcm80211-staging-driver.patch |123141 --------------------
 ...odifications-for-fsl-3.0.0-and-add-header.patch |   86 -
 .../linux-imx-3.0.35/wandboard-dual/defconfig      | 2768 -
 recipes-kernel/linux/linux-imx_3.0.35.bbappend     |   10 +-
 7 files changed, 1 insertion(+), 221310 deletions(-)
 delete mode 100644 recipes-kernel/linux/linux-imx-3.0.35/wandboard-dual/0001-Linux-3.0.35-Add-wandboard-dual-support.patch
 delete mode 100644 recipes-kernel/linux/linux-imx-3.0.35/wandboard-dual/0002-wandboard-dual-fix-sdhc-platform-data.patch
 delete mode 100644 recipes-kernel/linux/linux-imx-3.0.35/wandboard-dual/0003-linux-imx-3.0.35-Add-brcm80211-driver-backported-fro.patch
 delete mode 100644 recipes-kernel/linux/linux-imx-3.0.35/wandboard-dual/0003-linux-imx-3.0.35-remove-brcm80211-staging-driver.patch
 delete mode 100644 recipes-kernel/linux/linux-imx-3.0.35/wandboard-dual/0004-modifications-for-fsl-3.0.0-and-add-header.patch
 delete mode 100644 recipes-kernel/linux/linux-imx-3.0.35/wandboard-dual/defconfig
recipes-kernel/linux/linux-imx-3.0.35/wandboard-dual/0001-Linux-3.0.35-Add-wandboard-dual-support.patch deleted +0 -0
deleted file mode 100644
index e0989db..0000000
recipes-kernel/linux/linux-imx-3.0.35/wandboard-dual/0002-wandboard-dual-fix-sdhc-platform-data.patch deleted +0 -0
deleted file mode 100644
index b5c9422..0000000
recipes-kernel/linux/linux-imx-3.0.35/wandboard-dual/0003-linux-imx-3.0.35-Add-brcm80211-driver-backported-fro.patch deleted +0 -0
deleted file mode 100644
index 1ed5f50..0000000
recipes-kernel/linux/linux-imx-3.0.35/wandboard-dual/0003-linux-imx-3.0.35-remove-brcm80211-staging-driver.patch deleted +0 -0
deleted file mode 100644
index 96d3ce1..0000000
recipes-kernel/linux/linux-imx-3.0.35/wandboard-dual/0004-modifications-for-fsl-3.0.0-and-add-header.patch deleted +0 -0
deleted file mode 100644
index 6aed334..0000000
recipes-kernel/linux/linux-imx-3.0.35/wandboard-dual/defconfig deleted +0 -0
deleted file mode 100644
index 1657ea1..0000000
recipes-kernel/linux/linux-imx_3.0.35.bbappend +1 -9
index 4b66f1e..8f51e62 100644
@@ -1,14 +1,6 @@
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
 
-PRINC := "${@int(PRINC) + 4}"
+PRINC := "${@int(PRINC) + 5}"
 
-# Wandboard-specific patches
-SRC_URI_append_wandboard-dual = " \
-   file://wandboard-dual/0001-Linux-3.0.35-Add-wandboard-dual-support.patch \
-   file://wandboard-dual/0002-wandboard-dual-fix-sdhc-platform-data.patch \
-   file://wandboard-dual/0003-linux-imx-3.0.35-Add-brcm80211-driver-backported-fro.patch \
-   file://wandboard-dual/0003-linux-imx-3.0.35-remove-brcm80211-staging-driver.patch \
-   file://wandboard-dual/0004-modifications-for-fsl-3.0.0-and-add-header.patch \
-"
 # Add support for the Congatec qmx6 board
 SRC_URI_append_cgtqmx6 = " file://cgtqmx6/cgtqmx6.patch"
Signature · 1 line
1.7.9.5
#5 lore raw
In reply to John Weber
Quoted 3 lines · John Weber

This patchset adds a recipe to support building the wandboard kernel from the 'official' wandboard git repository. This recipe is named 'linux-wandboard'.

Initially I was not confortable with this approach (of creating another linux recipe only to cover one board), but I understood that the 'official' has been maintained by community, and has been growing faster. So, I like/want to support the community kernel.

I'm not sure regarding the name "linux-wandboard". Isn't 'wandboard' the board name? What would be the wandboard's linux provider name?

Quoted 3 lines

It also removes support from linux-imx for Wandboard so that kernel support for Wandboard is not confusing and is maintained in one repository.

It makes me think that the same approach should be used for imx6sabrelite.

Is there a (better) external git repository for sabre lite kernel?

Thanks a lot, Jonh, for starting this.

Daiane

#6 lore raw
Quoted 7 lines · Daiane Angolini
Quoted 4 lines · John Weber

This patchset adds a recipe to support building the wandboard kernel from the 'official' wandboard git repository. This recipe is named 'linux-wandboard'.

Quoted 7 lines

Initially I was not confortable with this approach (of creating another linux recipe only to cover one board), but I understood that the 'official' has been maintained by community, and has been growing faster. So, I like/want to support the community kernel.

I'm not sure regarding the name "linux-wandboard". Isn't 'wandboard' the board name? What would be the wandboard's linux provider name?

In fact wandboard is more like the project umbrella name; and Wandboard Solo / Wandboard Dual being the boards.

Quoted 8 lines
Quoted 3 lines

It also removes support from linux-imx for Wandboard so that kernel support for Wandboard is not confusing and is maintained in one repository.

It makes me think that the same approach should be used for imx6sabrelite.

Is there a (better) external git repository for sabre lite kernel?

I fully agree; I think we should have a linux-boundary recipe in -extra and move SabreLITE to there so we give more freedom to Boundary Devices to update their kernel easily. Eric, what do you think?

--
Otavio Salvador O.S. Systems
E-mail: [email protected] http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br

#7 lore raw
Quoted 24 lines · Otavio Salvador
Quoted 7 lines · Daiane Angolini
Quoted 4 lines · John Weber

This patchset adds a recipe to support building the wandboard kernel from the 'official' wandboard git repository. This recipe is named 'linux-wandboard'.

Quoted 7 lines

Initially I was not confortable with this approach (of creating another linux recipe only to cover one board), but I understood that the 'official' has been maintained by community, and has been growing faster. So, I like/want to support the community kernel.

I'm not sure regarding the name "linux-wandboard". Isn't 'wandboard' the board name? What would be the wandboard's linux provider name?

In fact wandboard is more like the project umbrella name; and Wandboard Solo / Wandboard Dual being the boards.

Quoted 4 lines
Quoted 3 lines

It also removes support from linux-imx for Wandboard so that kernel support for Wandboard is not confusing and is maintained in one repository.

Quoted 8 lines
Quoted 3 lines

It makes me think that the same approach should be used for imx6sabrelite.

Is there a (better) external git repository for sabre lite kernel?

I fully agree; I think we should have a linux-boundary recipe in -extra and move SabreLITE to there so we give more freedom to Boundary Devices to update their kernel easily. Eric, what do you think?

Hi Otavio,

I think that's the right approach.

Things will spiral out of control if a single package tries to track all boards from all vendors.

i.MX6 boards seem to be popping up all over the place and avoiding bottlenecks will be important going forward.

Regards,

Eric

author
#8 lore raw
In reply to Daiane Angolini

Hi Daiane -

Quoted 9 lines · Daiane Angolini
Quoted 3 lines · John Weber

This patchset adds a recipe to support building the wandboard kernel from the 'official' wandboard git repository. This recipe is named 'linux-wandboard'.

Initially I was not confortable with this approach (of creating another linux recipe only to cover one board), but I understood that the 'official' has been maintained by community, and has been growing faster. So, I like/want to support the community kernel.

It really became apparent after the recent updates to their kernel repository. It is clear that they intend to keep it up to date and invite the community to assist (along with bringing in FSL updates as needed, of course). It became too much work to try to maintain a kernel outside of that (even though it tracked with the official FSL kernel).

Quoted 3 lines

I'm not sure regarding the name "linux-wandboard". Isn't 'wandboard' the board name? What would be the wandboard's linux provider name?

The provider is Wandboard.org, so I think linux-wandboard makes sense.

Quoted 11 lines
Quoted 5 lines

It also removes support from linux-imx for Wandboard so that kernel support for Wandboard is not confusing and is maintained in one repository.

It makes me think that the same approach should be used for imx6sabrelite.

Is there a (better) external git repository for sabre lite kernel?

Thanks a lot, Jonh, for starting this.

You're most welcome!

Quoted 3 lines

Daiane

#9 lore raw
In reply to John Weber
Quoted 7 lines · John Weber

This patchset adds a recipe to support building the wandboard kernel from the 'official' wandboard git repository. This recipe is named 'linux-wandboard'.

It also removes support from linux-imx for Wandboard so that kernel support for Wandboard is not confusing and is maintained in one repository.

Looking how the Wandboard development is happening I think I agree about the change, but I have some remarks in the patches... please check each of them...

--
Otavio Salvador O.S. Systems
E-mail: [email protected] http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br