Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 0/2] i.MX6 SABRESD improvements (using a Freescale kernel)
@ 2014-09-24 16:14 Luca Ceresoli
  2014-09-24 16:14 ` [Buildroot] [PATCH 1/2] freescale/imx6-sabresd: use global patch dir for U-Boot patches Luca Ceresoli
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Luca Ceresoli @ 2014-09-24 16:14 UTC (permalink / raw)
  To: buildroot

Hi,

here are 2 little improvements to the i.MX6 SABRESD board support in Buildroot,
both suggested by Thomas Petazzoni in [1].

This differs from the patchest I sent earlier today [2] in the kernel origin:
keep using git.freescale.com instead of switching to a mainline kernel, as
per the discussion in [2].

Nothing huge, just see the changelog below.

Built and run on an i.MX6DL SABRESD board.

Vincent, it would be nice if you could test it on a Quad-based board.

Luca Ceresoli (2):
  freescale/imx6-sabresd: use global patch dir for U-Boot patches
  freescale/imx6-sabresd: lock down kernel headers to the kernel version

 ...01-mx6qsabre_common-boot-Linux-to-init-in-mfgtools-mode.patch | 0
 configs/freescale_imx6dlsabresd_defconfig                        | 9 ++++++++-
 configs/freescale_imx6qsabresd_defconfig                         | 9 ++++++++-
 3 files changed, 16 insertions(+), 2 deletions(-)
 rename board/freescale/imx6sabresd/{ => patches/uboot}/uboot-0001-mx6qsabre_common-boot-Linux-to-init-in-mfgtools-mode.patch (100%)

[1] http://lists.busybox.net/pipermail/buildroot/2014-September/106704.html
[2] http://lists.busybox.net/pipermail/buildroot/2014-September/106972.html

-- 
Luca

-- 
1.9.1

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 1/2] freescale/imx6-sabresd: use global patch dir for U-Boot patches
  2014-09-24 16:14 [Buildroot] [PATCH 0/2] i.MX6 SABRESD improvements (using a Freescale kernel) Luca Ceresoli
@ 2014-09-24 16:14 ` Luca Ceresoli
  2014-09-24 16:14 ` [Buildroot] [PATCH 2/2] freescale/imx6-sabresd: lock down kernel headers to the kernel version Luca Ceresoli
  2014-09-25 13:28 ` [Buildroot] [PATCH 0/2] i.MX6 SABRESD improvements (using a Freescale kernel) Vincent Stehlé
  2 siblings, 0 replies; 4+ messages in thread
From: Luca Ceresoli @ 2014-09-24 16:14 UTC (permalink / raw)
  To: buildroot

The best practice is to use the BR2_GLOBAL_PATCH_DIR for patches against
U-Boot, not BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR.

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Cc: Vincent Stehl? <vincent.stehle@freescale.com>
Cc: Gilles Talis <gilles.talis@gmail.com>
Cc: Gary Bisson <bisson.gary@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 ...ot-0001-mx6qsabre_common-boot-Linux-to-init-in-mfgtools-mode.patch | 0
 configs/freescale_imx6dlsabresd_defconfig                             | 4 +++-
 configs/freescale_imx6qsabresd_defconfig                              | 4 +++-
 3 files changed, 6 insertions(+), 2 deletions(-)
 rename board/freescale/imx6sabresd/{ => patches/uboot}/uboot-0001-mx6qsabre_common-boot-Linux-to-init-in-mfgtools-mode.patch (100%)

diff --git a/board/freescale/imx6sabresd/uboot-0001-mx6qsabre_common-boot-Linux-to-init-in-mfgtools-mode.patch b/board/freescale/imx6sabresd/patches/uboot/uboot-0001-mx6qsabre_common-boot-Linux-to-init-in-mfgtools-mode.patch
similarity index 100%
rename from board/freescale/imx6sabresd/uboot-0001-mx6qsabre_common-boot-Linux-to-init-in-mfgtools-mode.patch
rename to board/freescale/imx6sabresd/patches/uboot/uboot-0001-mx6qsabre_common-boot-Linux-to-init-in-mfgtools-mode.patch
diff --git a/configs/freescale_imx6dlsabresd_defconfig b/configs/freescale_imx6dlsabresd_defconfig
index 62caf79..b8c4b22 100644
--- a/configs/freescale_imx6dlsabresd_defconfig
+++ b/configs/freescale_imx6dlsabresd_defconfig
@@ -2,6 +2,9 @@
 BR2_arm=y
 BR2_cortex_a9=y
 
+# patches
+BR2_GLOBAL_PATCH_DIR="board/freescale/imx6sabresd/patches"
+
 # system
 BR2_TARGET_GENERIC_GETTY_PORT="ttymxc0"
 
@@ -25,4 +28,3 @@ BR2_TARGET_UBOOT_FORMAT_IMX=y
 BR2_TARGET_UBOOT_CUSTOM_GIT=y
 BR2_TARGET_UBOOT_CUSTOM_REPO_URL="git://git.freescale.com/imx/uboot-imx.git"
 BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="rel_imx_3.10.17_1.0.0_ga"
-BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR="board/freescale/imx6sabresd"
diff --git a/configs/freescale_imx6qsabresd_defconfig b/configs/freescale_imx6qsabresd_defconfig
index bc0aa46..40a9384 100644
--- a/configs/freescale_imx6qsabresd_defconfig
+++ b/configs/freescale_imx6qsabresd_defconfig
@@ -2,6 +2,9 @@
 BR2_arm=y
 BR2_cortex_a9=y
 
+# patches
+BR2_GLOBAL_PATCH_DIR="board/freescale/imx6sabresd/patches"
+
 # system
 BR2_TARGET_GENERIC_GETTY_PORT="ttymxc0"
 
@@ -25,4 +28,3 @@ BR2_TARGET_UBOOT_FORMAT_IMX=y
 BR2_TARGET_UBOOT_CUSTOM_GIT=y
 BR2_TARGET_UBOOT_CUSTOM_REPO_URL="git://git.freescale.com/imx/uboot-imx.git"
 BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="rel_imx_3.10.17_1.0.0_ga"
-BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR="board/freescale/imx6sabresd"
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 2/2] freescale/imx6-sabresd: lock down kernel headers to the kernel version
  2014-09-24 16:14 [Buildroot] [PATCH 0/2] i.MX6 SABRESD improvements (using a Freescale kernel) Luca Ceresoli
  2014-09-24 16:14 ` [Buildroot] [PATCH 1/2] freescale/imx6-sabresd: use global patch dir for U-Boot patches Luca Ceresoli
@ 2014-09-24 16:14 ` Luca Ceresoli
  2014-09-25 13:28 ` [Buildroot] [PATCH 0/2] i.MX6 SABRESD improvements (using a Freescale kernel) Vincent Stehlé
  2 siblings, 0 replies; 4+ messages in thread
From: Luca Ceresoli @ 2014-09-24 16:14 UTC (permalink / raw)
  To: buildroot

The current defconfigs for iMX6 SABRESD kernel 3.10.17 from the Freescale
git repository. This kernel is older than the toolchain kernel headers
used in Buildroot (currently 3.16.3).

Explicitly lock down the kernel headers to match the version of the kernel
that is built.

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Cc: Vincent Stehl? <vincent.stehle@freescale.com>
Cc: Gilles Talis <gilles.talis@gmail.com>
Cc: Gary Bisson <bisson.gary@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 configs/freescale_imx6dlsabresd_defconfig | 5 +++++
 configs/freescale_imx6qsabresd_defconfig  | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/configs/freescale_imx6dlsabresd_defconfig b/configs/freescale_imx6dlsabresd_defconfig
index b8c4b22..680031d 100644
--- a/configs/freescale_imx6dlsabresd_defconfig
+++ b/configs/freescale_imx6dlsabresd_defconfig
@@ -5,6 +5,11 @@ BR2_cortex_a9=y
 # patches
 BR2_GLOBAL_PATCH_DIR="board/freescale/imx6sabresd/patches"
 
+# toolchain
+BR2_KERNEL_HEADERS_VERSION=y
+BR2_DEFAULT_KERNEL_VERSION="3.10.17"
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_10=y
+
 # system
 BR2_TARGET_GENERIC_GETTY_PORT="ttymxc0"
 
diff --git a/configs/freescale_imx6qsabresd_defconfig b/configs/freescale_imx6qsabresd_defconfig
index 40a9384..f2f702e 100644
--- a/configs/freescale_imx6qsabresd_defconfig
+++ b/configs/freescale_imx6qsabresd_defconfig
@@ -5,6 +5,11 @@ BR2_cortex_a9=y
 # patches
 BR2_GLOBAL_PATCH_DIR="board/freescale/imx6sabresd/patches"
 
+# toolchain
+BR2_KERNEL_HEADERS_VERSION=y
+BR2_DEFAULT_KERNEL_VERSION="3.10.17"
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_10=y
+
 # system
 BR2_TARGET_GENERIC_GETTY_PORT="ttymxc0"
 
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 0/2] i.MX6 SABRESD improvements (using a Freescale kernel)
  2014-09-24 16:14 [Buildroot] [PATCH 0/2] i.MX6 SABRESD improvements (using a Freescale kernel) Luca Ceresoli
  2014-09-24 16:14 ` [Buildroot] [PATCH 1/2] freescale/imx6-sabresd: use global patch dir for U-Boot patches Luca Ceresoli
  2014-09-24 16:14 ` [Buildroot] [PATCH 2/2] freescale/imx6-sabresd: lock down kernel headers to the kernel version Luca Ceresoli
@ 2014-09-25 13:28 ` Vincent Stehlé
  2 siblings, 0 replies; 4+ messages in thread
From: Vincent Stehlé @ 2014-09-25 13:28 UTC (permalink / raw)
  To: buildroot

On 09/24/2014 06:14 PM, Luca Ceresoli wrote:
..
> Vincent, it would be nice if you could test it on a Quad-based board.

Hi Luca,

I applied your two patches on top of 7989e05327903. I can build
freescale_imx6qsabresd_defconfig and run on a Sabre SD Quad with no issue.

  Tested-by: Vincent Stehl? <vincent.stehle@freescale.com>

Best regards,

V.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-09-25 13:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-24 16:14 [Buildroot] [PATCH 0/2] i.MX6 SABRESD improvements (using a Freescale kernel) Luca Ceresoli
2014-09-24 16:14 ` [Buildroot] [PATCH 1/2] freescale/imx6-sabresd: use global patch dir for U-Boot patches Luca Ceresoli
2014-09-24 16:14 ` [Buildroot] [PATCH 2/2] freescale/imx6-sabresd: lock down kernel headers to the kernel version Luca Ceresoli
2014-09-25 13:28 ` [Buildroot] [PATCH 0/2] i.MX6 SABRESD improvements (using a Freescale kernel) Vincent Stehlé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox