i.MX6 SABRESD improvements (using a Freescale kernel)
cover i.MX6 SABRESD improvements (using a Freescale kernel)
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
Signature · 4 lines
Luca -- 1.9.1
PATCH 1/2 freescale/imx6-sabresd: use global patch dir for U-Boot patches
The best practice is to use the BR2_GLOBAL_PATCH_DIR for patches against U-Boot, not BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR.
---
...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%)board/freescale/imx6sabresd/patches/uboot/uboot-0001-mx6qsabre_common-boot-Linux-to-init-in-mfgtools-mode.patch renamed from board/freescale/imx6sabresd/uboot-0001-mx6qsabre_common-boot-Linux-to-init-in-mfgtools-mode.patch +0 -0
configs/freescale_imx6dlsabresd_defconfig +3 -1
@@ -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"
configs/freescale_imx6qsabresd_defconfig +3 -1
@@ -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"
Signature · 1 line
1.9.1
PATCH 2/2 freescale/imx6-sabresd: lock down kernel headers to the kernel version
In reply to Luca CeresoliThe 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.
--- configs/freescale_imx6dlsabresd_defconfig | 5 +++++ configs/freescale_imx6qsabresd_defconfig | 5 +++++ 2 files changed, 10 insertions(+)
configs/freescale_imx6dlsabresd_defconfig +5 -0
@@ -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"
configs/freescale_imx6qsabresd_defconfig +5 -0
@@ -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"
Signature · 1 line
1.9.1
cover i.MX6 SABRESD improvements (using a Freescale kernel)
In reply to Luca CeresoliOn 09/24/2014 06:14 PM, Luca Ceresoli wrote:
..
Quoted 1 line
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.
Best regards,
V.