Skip to contentSkip to conversation

freescale_imx31_3stack_defconfig fails to build

Buildroot New Thomas Petazzoni 3 participants 9 messages Nov 5, 2016 – Nov 9, 2016 1 message not in the archive Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

Fabio, Vincent,

The freescale_imx31_3stack_defconfig in Buildroot no longer builds, because the Linux kernel version used in this defconfig is too old, and doesn't build with gcc 5.x.

Has one of you access to this platform, and be willing to update this defconfig?

See
http://free-electrons.com/~thomas/pub/buildroot-defconfigs/freescale_imx31_3stack_defconfig.log.FAIL
for the full build log.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
reviewer
#1 lore raw

Hi Thomas,

Quoted 8 lines · Thomas Petazzoni

Fabio, Vincent,

The freescale_imx31_3stack_defconfig in Buildroot no longer builds, because the Linux kernel version used in this defconfig is too old, and doesn't build with gcc 5.x.

Has one of you access to this platform, and be willing to update this defconfig?

I think we should be able to use the latest mainline on mx31pdk.

I will try to get access to a mx31pdk and will give it a try with latest mainline.

Thanks

#2 lore raw

Hello,

Quoted 7 lines · Fabio Estevam
Quoted 2 lines

Has one of you access to this platform, and be willing to update this defconfig?

I think we should be able to use the latest mainline on mx31pdk.

I will try to get access to a mx31pdk and will give it a try with latest mainline.

Great, thanks!

Bonus point for other improvements to the defconfig, such as adding the build for the bootloader, etc :)

Thanks,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
reviewer
#3 lore raw
Quoted 4 lines · Thomas Petazzoni

Great, thanks!

Bonus point for other improvements to the defconfig, such as adding the build for the bootloader, etc :)

Yes, I thought about that as well. Mainline U-Boot should also boot fine on this board, so hopefully I will be able to test it next week.

Thanks

A message that is not in the archive (sent off-list or not yet received): 6234984d-6409-37c1-b050-504775d37c17@bergerie

#5 lore raw

Hello,

Quoted 9 lines · Vincent Stehl?
Quoted 2 lines

Has one of you access to this platform, and be willing to update this defconfig?

Hi Thomas and Fabio,

I am sorry to say that I don't have access to an i.MX31 PDK anymore. The one I used by the time was already a "rare" resource in Freescale France :)

I will try to help repair the build at least.

If this platform is difficult to get access to, and rarely used, then maybe we should just remove the defconfig in Buildroot? It doesn't make a lot of sense to have defconfig for platforms that are not in use.

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
reviewer
#6 lore raw
Quoted 9 lines · Thomas Petazzoni

Hello,

Quoted 5 lines · Vincent Stehl?
Quoted 2 lines

Has one of you access to this platform, and be willing to update this defconfig?

Hi Thomas and Fabio,

Quoted 8 lines
Quoted 4 lines

I am sorry to say that I don't have access to an i.MX31 PDK anymore. The one I used by the time was already a "rare" resource in Freescale France :)

I will try to help repair the build at least.

If this platform is difficult to get access to, and rarely used, then maybe we should just remove the defconfig in Buildroot? It doesn't make a lot of sense to have defconfig for platforms that are not in use.

Yes, even for me it will be difficult to get access to a mx31pdk board, so I am OK with removing its defconfig from Buildroot.

Regards,

Fabio Estevam

#7 lore raw

PATCH 1/1 configs: freescale_imx31_3stack: bump kernel version to 4.1.15_2.0.0_ga

In reply to Thomas Petazzoni

From: Vincent Stehl? <[email protected]>

Switch to the kernel of release 4.1.15_2.0.0_ga, as it builds properly with gcc 5.x, which is now the default.

We add a linux config fragment to disable the framebuffer, to repair the build for imx_v6_v7_defconfig.

---

Hello Thomas and Fabio,

My friend Julien got the i.MX31 PDK and he could kindly test a few buildroot configs!

His experiments show that mainline kernel will not boot "as is" on the PDK. What he proposed instead is that we switch to a recent NXP/Freescale release based on kernel 4.1, which does boot on the PDK.

Is that proposal fine with you, please?

Best regards,

Vincent.

 board/freescale/imx31_3stack/linux.fragment |  1 +
 configs/freescale_imx31_3stack_defconfig    | 12 ++++++------
 2 files changed, 7 insertions(+), 6 deletions(-)
 create mode 100644 board/freescale/imx31_3stack/linux.fragment
board/freescale/imx31_3stack/linux.fragment new file +1 -0
new file mode 100644
index 0000000..8d89e8e
@@ -0,0 +1 @@
+CONFIG_FB_MXS=n
configs/freescale_imx31_3stack_defconfig +6 -6
index bf1afad..0476fc1 100644
@@ -3,18 +3,18 @@ BR2_arm=y
 BR2_arm1136jf_s=y
 BR2_ARM_EABIHF=y
 
-# Linux headers same as kernel, a 3.15 series
-BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_15=y
+# Linux headers same as kernel, a 4.1 series
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_1=y
 
 # system
 BR2_TARGET_GENERIC_GETTY_PORT="ttymxc0"
 
 # kernel
 BR2_LINUX_KERNEL=y
-# Note: sadly the Linux kernel will not boot on the i.MX31 PDK, starting with
-# v3.16 and at least up to v4.0-rc4; this is why we use v3.15.y here.
-BR2_LINUX_KERNEL_CUSTOM_VERSION=y
-BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.15.10"
+BR2_LINUX_KERNEL_CUSTOM_GIT=y
+BR2_LINUX_KERNEL_CUSTOM_REPO_URL="git://git.freescale.com/imx/linux-imx.git"
+BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="rel_imx_4.1.15_2.0.0_ga"
 BR2_LINUX_KERNEL_DEFCONFIG="imx_v6_v7"
+BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/freescale/imx31_3stack/linux.fragment"
 BR2_TARGET_ROOTFS_CPIO_GZIP=y
 BR2_TARGET_ROOTFS_INITRAMFS=y
Signature · 1 line
2.10.2
#8 lore raw

PATCH 1/1 configs: freescale_imx31_3stack: bump kernel version to 4.1.15_2.0.0_ga

In reply to Thomas Petazzoni

From: Vincent Stehl? <[email protected]>

Switch to the kernel of release 4.1.15_2.0.0_ga, as it builds properly with gcc 5.x, which is now the default.

We add a linux config fragment to disable the framebuffer, to repair the build for imx_v6_v7_defconfig.

---

Hello Thomas and Fabio,

My friend Julien got the i.MX31 PDK and he could kindly test a few buildroot configs!

His experiments show that mainline kernel will not boot "as is" on the PDK. What he proposed instead is that we switch to a recent NXP/Freescale release based on kernel 4.1, which does boot on the PDK.

Is that proposal fine with you, please?

Best regards,

Vincent.

 board/freescale/imx31_3stack/linux.fragment |  1 +
 configs/freescale_imx31_3stack_defconfig    | 12 ++++++------
 2 files changed, 7 insertions(+), 6 deletions(-)
 create mode 100644 board/freescale/imx31_3stack/linux.fragment
board/freescale/imx31_3stack/linux.fragment new file +1 -0
new file mode 100644
index 0000000..8d89e8e
@@ -0,0 +1 @@
+CONFIG_FB_MXS=n
configs/freescale_imx31_3stack_defconfig +6 -6
index bf1afad..0476fc1 100644
@@ -3,18 +3,18 @@ BR2_arm=y
 BR2_arm1136jf_s=y
 BR2_ARM_EABIHF=y
 
-# Linux headers same as kernel, a 3.15 series
-BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_15=y
+# Linux headers same as kernel, a 4.1 series
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_1=y
 
 # system
 BR2_TARGET_GENERIC_GETTY_PORT="ttymxc0"
 
 # kernel
 BR2_LINUX_KERNEL=y
-# Note: sadly the Linux kernel will not boot on the i.MX31 PDK, starting with
-# v3.16 and at least up to v4.0-rc4; this is why we use v3.15.y here.
-BR2_LINUX_KERNEL_CUSTOM_VERSION=y
-BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.15.10"
+BR2_LINUX_KERNEL_CUSTOM_GIT=y
+BR2_LINUX_KERNEL_CUSTOM_REPO_URL="git://git.freescale.com/imx/linux-imx.git"
+BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="rel_imx_4.1.15_2.0.0_ga"
 BR2_LINUX_KERNEL_DEFCONFIG="imx_v6_v7"
+BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/freescale/imx31_3stack/linux.fragment"
 BR2_TARGET_ROOTFS_CPIO_GZIP=y
 BR2_TARGET_ROOTFS_INITRAMFS=y
Signature · 1 line
2.10.2
#9 lore raw

PATCH 1/1 configs: freescale_imx31_3stack: bump kernel version to 4.1.15_2.0.0_ga

Hello,

Quoted 5 lines · Vincent Stehle

From: Vincent Stehl? <[email protected]>

Switch to the kernel of release 4.1.15_2.0.0_ga, as it builds properly with gcc 5.x, which is now the default.

Quoted 8 lines

We add a linux config fragment to disable the framebuffer, to repair the build for imx_v6_v7_defconfig.

Thanks a lot! I've applied to master, with one minor change.

board/freescale/imx31_3stack/linux.fragment line 1

Quoted 7 lines
board/freescale/imx31_3stack/linux.fragment new file +1 -0
new file mode 100644
index 0000000..8d89e8e
@@ -0,0 +1 @@
+CONFIG_FB_MXS=n

It is more conventional to write this as:

# CONFIG_FB_MXS is not set

which is what kconfig generates in a defconfig for an option that is disabled.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com