Skip to contentSkip to conversation

raspberrypi2: switch Linux kernel to rpi-3.18.y

PATCH New Frank Hunleth 3 participants 6 messages Apr 29, 2015 – May 1, 2015 Broadcom BCM2711/BCM2835 Arm architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 raspberrypi2: switch Linux kernel to rpi-3.18.y

This changes the kernel used on the Raspberry Pi 2 from the 3.19 branch back to the 3.18 branch. This provides a couple of advantages:

1. mmc0 works again. Floris Bos found out that this was due to using the precompiled DTB files from rpi-firmware. These DTBs were built using 3.18.
2. The rpi-3.18.y branch is not regularly rebased like rpi-3.19.y according to popcornmix. See
https://github.com/raspberrypi/linux/issues/915.

---
 configs/raspberrypi2_defconfig | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
configs/raspberrypi2_defconfig +4 -4
index 6a48b26..5859749 100644
@@ -7,15 +7,15 @@ BR2_TOOLCHAIN_BUILDROOT_CXX=y
 
 BR2_TARGET_GENERIC_GETTY_PORT="tty1"
 
-# Lock to 3.19 headers as the RPi2 kernel is based off the 3.19 branch
+# Lock to 3.18 headers as the RPi2 kernel is based off the 3.18 branch
 BR2_KERNEL_HEADERS_VERSION=y
-BR2_DEFAULT_KERNEL_VERSION="3.19"
-BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_19=y
+BR2_DEFAULT_KERNEL_VERSION="3.18"
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_18=y
 
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_GIT=y
 BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/raspberrypi/linux.git"
-BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="2c4959b772a35d9d459b0a92f39bb066e9a44d37"
+BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="2747cc0bde4ca441691260fae1e34c9ef954ccae"
 BR2_LINUX_KERNEL_DEFCONFIG="bcm2709"
 BR2_LINUX_KERNEL_ZIMAGE=y
 
Signature · 1 line
1.9.1
#1 lore raw

PATCH 2/2 raspberrypi: bump raspberrypi_dt_defconfig kernel

This brings the raspberrypi_dt_defconfig up to the same kernel used by the raspberrypi2_defconfig. Also changed the git URL to use HTTP for consistency.

---
 configs/raspberrypi_dt_defconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
configs/raspberrypi_dt_defconfig +2 -2
index c727a7c..991460e 100644
@@ -11,8 +11,8 @@ BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_18=y
 
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_GIT=y
-BR2_LINUX_KERNEL_CUSTOM_REPO_URL="git://github.com/raspberrypi/linux.git"
-BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="246530ff8a4f302b8666c6d9cf509407d8c1257a"
+BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/raspberrypi/linux.git"
+BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="2747cc0bde4ca441691260fae1e34c9ef954ccae"
 BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
 BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/raspberrypi/linux-3.18-rpi-dt.defconfig"
 BR2_LINUX_KERNEL_ZIMAGE=y
Signature · 1 line
1.9.1
#2 lore raw

PATCH 1/2 raspberrypi2: switch Linux kernel to rpi-3.18.y

In reply to Frank Hunleth
Quoted 11 lines · Frank Hunleth

This changes the kernel used on the Raspberry Pi 2 from the 3.19 branch back to the 3.18 branch. This provides a couple of advantages:

1. mmc0 works again. Floris Bos found out that this was due to using the precompiled DTB files from rpi-firmware. These DTBs were built using 3.18.
2. The rpi-3.18.y branch is not regularly rebased like rpi-3.19.y according to popcornmix. See
https://github.com/raspberrypi/linux/issues/915.

Can confirm buildroot's raspberrypi2_defconfig now works on a Pi 2 including mmc0, so patch works as intended.

Did notice the rpi-firmware package itself could use some more work. Besides the binary device tree files always being installed thing, the sample config.txt in package/rpi-firmware/config.txt also contains values that are not that suitable for the Pi 2.
E.g. the Pi 2 normally runs at 900 Mhz but is being downclocked to 700 by "arm_freq=700" there.
Might be better not to have any low level settings like that there, just "kernel=zImage"

Yours sincerely,

Floris Bos

#3 lore raw

PATCH 1/2 raspberrypi2: switch Linux kernel to rpi-3.18.y

In reply to Frank Hunleth

Dear Frank Hunleth,

Quoted 10 lines · Frank Hunleth

This changes the kernel used on the Raspberry Pi 2 from the 3.19 branch back to the 3.18 branch. This provides a couple of advantages:

1. mmc0 works again. Floris Bos found out that this was due to using the precompiled DTB files from rpi-firmware. These DTBs were built using 3.18.
2. The rpi-3.18.y branch is not regularly rebased like rpi-3.19.y according to popcornmix. See
https://github.com/raspberrypi/linux/issues/915.

Quoted 4 lines
---
 configs/raspberrypi2_defconfig | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Applied both patches, thanks.

What about the raspberrypi_defconfig ? Is there any reason to keep it around using the 3.12 kernel ? Or can we rename raspberrypi_dt_defconfig to raspberrypi_defconfig ?

Thanks,

Thomas

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

PATCH 1/2 raspberrypi2: switch Linux kernel to rpi-3.18.y

Quoted 18 lines · Thomas Petazzoni

Dear Frank Hunleth,

Quoted 10 lines · Frank Hunleth

This changes the kernel used on the Raspberry Pi 2 from the 3.19 branch back to the 3.18 branch. This provides a couple of advantages:

1. mmc0 works again. Floris Bos found out that this was due to using the precompiled DTB files from rpi-firmware. These DTBs were built using 3.18.
2. The rpi-3.18.y branch is not regularly rebased like rpi-3.19.y according to popcornmix. See
https://github.com/raspberrypi/linux/issues/915.

Quoted 4 lines
---
 configs/raspberrypi2_defconfig | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
Quoted 5 lines

Applied both patches, thanks.

What about the raspberrypi_defconfig ? Is there any reason to keep it around using the 3.12 kernel ? Or can we rename raspberrypi_dt_defconfig to raspberrypi_defconfig ?

I've never used raspberrypi_defconfig, so I would be in favor of this.

Regards,
Frank

#5 lore raw

PATCH 1/2 raspberrypi2: switch Linux kernel to rpi-3.18.y

Hello,

Quoted 5 lines · Frank Hunleth
Quoted 3 lines

What about the raspberrypi_defconfig ? Is there any reason to keep it around using the 3.12 kernel ? Or can we rename raspberrypi_dt_defconfig to raspberrypi_defconfig ?

I've never used raspberrypi_defconfig, so I would be in favor of this.

Yann, your thought?

Thomas

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