diff mbox

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

Message ID 1430314604-28680-1-git-send-email-fhunleth@troodon-software.com
State Accepted
Headers show

Commit Message

Frank Hunleth April 29, 2015, 1:36 p.m. UTC
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.

Signed-off-by: Frank Hunleth <fhunleth@troodon-software.com>
---
 configs/raspberrypi2_defconfig | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Comments

Floris Bos April 30, 2015, 2:48 p.m. UTC | #1
On 04/29/2015 03:36 PM, Frank Hunleth wrote:
> 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.
>
> Signed-off-by: Frank Hunleth <fhunleth@troodon-software.com>

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

Reviewed-by: Floris Bos <bos@je-eigen-domein.nl>


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
Thomas Petazzoni May 1, 2015, 8:25 a.m. UTC | #2
Dear Frank Hunleth,

On Wed, 29 Apr 2015 09:36:43 -0400, Frank Hunleth wrote:
> 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.
> 
> Signed-off-by: Frank Hunleth <fhunleth@troodon-software.com>
> ---
>  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
Frank Hunleth May 1, 2015, 10:20 a.m. UTC | #3
On Fri, May 1, 2015 at 4:25 AM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Dear Frank Hunleth,
>
> On Wed, 29 Apr 2015 09:36:43 -0400, Frank Hunleth wrote:
>> 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.
>>
>> Signed-off-by: Frank Hunleth <fhunleth@troodon-software.com>
>> ---
>>  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 ?

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

Regards,
Frank
Thomas Petazzoni May 1, 2015, 10:46 a.m. UTC | #4
Hello,

On Fri, 1 May 2015 06:20:28 -0400, Frank Hunleth wrote:

> > 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
diff mbox

Patch

diff --git a/configs/raspberrypi2_defconfig b/configs/raspberrypi2_defconfig
index 6a48b26..5859749 100644
--- a/configs/raspberrypi2_defconfig
+++ b/configs/raspberrypi2_defconfig
@@ -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