Linux kernel is now 4.0


183 posts   Page 1 of 8   1, 2, 3, 4, 5 ... 8
by dom » Sun Jun 21, 2015 3:25 pm
The default firmware branch has been updated to use the 4.0 kernel.
The source tree has been available for a few months and is being used by OpenELEC amongst others.

Update with:
Code: Select all
sudo rpi-update


Ideally nothing much will change. The newer kernel tree does support more devices (e.g. USB devices like wifi and dvb).

Please report if there are any regressions compared to the 3.18 kernel. If testing is positive it will appear in "apt-get upgrade" and on new raspbian images in the near future.

The default source tree on https://github.com/raspberrypi/linux is now rpi-4.0.y. This tree is now considered the stable kernel source tree and will merge in minor bumps to the kernel version, rather than rebase.
There is now a 4.1 kernel tree where more experimental kernel commits may go (in general moving closer to upstream).
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5025
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge
by YemSalat » Sun Jun 21, 2015 3:36 pm
Yay! :D
So far so good.. (*after ~7 minutes of usage)
Posts: 33
Joined: Sat May 31, 2014 11:38 am
by tonyscam » Sun Jun 21, 2015 7:44 pm
Just loaded up 4.0, uptime @ 10 minutes and counting. So far so good and it'll be interesting to see if the USB WiFi dongle finally works. Never got it working with the previous kernels.
Posts: 2
Joined: Sun Jun 21, 2015 7:35 pm
by dcrystalj » Sun Jun 21, 2015 7:45 pm
I love to see things moving, but can you tell me how to install linux-headers-4.05+ ? i cannot find it anymore :(
Posts: 5
Joined: Sun Jun 21, 2015 7:44 pm
by Douglas6 » Sun Jun 21, 2015 9:25 pm
Great news. It appears some new features in BlueZ require 4.1+. Good to see we're getting there.
User avatar
Posts: 3588
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL
by swe_toast » Mon Jun 22, 2015 6:34 am
Did the update but it still reports
*** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
*** Performing self-update
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 10102 100 10102 0 0 19322 0 --:--:-- --:--:-- --:--:-- 19352
*** Relaunching after update
*** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
*** Your firmware is already up to date

uname -r
3.18.0-trunk-rpi

uname -a
Linux 3.18.0-trunk-rpi #1 PREEMPT Debian 3.18.5-1~exp1+rpi16 (2015-03-28) armv6l GNU/Linux

and there is no image in the repo for the 4.0.5 kernel
aptitude search linux-image-
p linux-image-3.10-3-rpi - Linux 3.10 for RaspberryPI
p linux-image-3.12-1-rpi - Linux 3.12 for RaspberryPI
p linux-image-3.16.0-4-rpi - Linux 3.16 for RaspberryPI
i linux-image-3.18.0-trunk-rpi - Linux 3.18 for RaspberryPI
p linux-image-3.18.0-trunk-rpi2 - Linux 3.18 for RaspberryPI2
p linux-image-3.6-trunk-rpi - Linux 3.6 for RaspberryPI
p linux-image-rpi - Linux for RaspberryPI (meta-package)
i linux-image-rpi-rpfv - This metapackage will pull in the raspbian kernel for the raspberry pi 1
p linux-image-rpi2-rpfv - This metapackage will pull in the raspbian kernel for the raspberry pi 2
Posts: 25
Joined: Wed Jan 28, 2015 9:39 am
by dom » Mon Jun 22, 2015 10:52 am
swe_toast wrote:uname -r
3.18.0-trunk-rpi

uname -a
Linux 3.18.0-trunk-rpi #1 PREEMPT Debian 3.18.5-1~exp1+rpi16 (2015-03-28) armv6l GNU/Linux

This doesn't look a standard raspbian kernel. What distribution are you using?
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5025
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge
by r0land » Mon Jun 22, 2015 2:40 pm
RTC pcf8563 finally started working. It wasn't working for me in all 3.18 firmware versions
Posts: 1
Joined: Mon Jun 22, 2015 2:38 pm
by swe_toast » Mon Jun 22, 2015 3:13 pm
Posts: 25
Joined: Wed Jan 28, 2015 9:39 am
by Massi » Mon Jun 22, 2015 3:22 pm
anyone testing the new kernel can check if finalyi r8188eu dongles are working "out of the box"? :)
Posts: 1524
Joined: Fri May 02, 2014 1:52 pm
Location: Italy
by DougieLawson » Mon Jun 22, 2015 3:51 pm
Massi wrote:anyone testing the new kernel can check if finalyi r8188eu dongles are working "out of the box"? :)

They don't work reliably OOB, the connection keeps dying. I had to install Mr Engman's driver for the 4.0.5-v7+ kernel.
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

Since 2012: 1B*5, 2B*2, B+, A+, Zero*2, 3B*3

Please post ALL technical questions on the forum. Do not send private messages.
User avatar
Posts: 26126
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
by Massi » Mon Jun 22, 2015 3:55 pm
DougieLawson wrote:They don't work reliably OOB, the connection keeps dying. I had to install Mr Engman's driver for the 4.0.5-v7+ kernel.


Damn :(
i really can't understand where the problem is. Good drivers are available (MrEngman has been using them for ages).

(ps: dougie i'm counting a lot on you to find a good python scheduler :roll: )
Posts: 1524
Joined: Fri May 02, 2014 1:52 pm
Location: Italy
by DougieLawson » Mon Jun 22, 2015 4:08 pm
Massi wrote: (MrEngman has been using them for ages).

(ps: dougie i'm counting a lot on you to find a good python scheduler :roll: )

I'm puzzled that the updated drivers haven't been rolled into the RPF kernel source (or even the upstream source).

I found https://apscheduler.readthedocs.org/en/latest/
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

Since 2012: 1B*5, 2B*2, B+, A+, Zero*2, 3B*3

Please post ALL technical questions on the forum. Do not send private messages.
User avatar
Posts: 26126
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
by dom » Mon Jun 22, 2015 4:25 pm
swe_toast wrote:https://github.com/debian-pi/raspbian-ua-netinst


It's probably safest to ask there if running rpi-update is safe. You are using a custom kernel and running rpi-update will lose any custom mods.
Probably best to wait for raspbian-ua-netinst to produce an update with 4.0 kernel.
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5025
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge
by DougieLawson » Mon Jun 22, 2015 4:29 pm
dom wrote:
swe_toast wrote:https://github.com/debian-pi/raspbian-ua-netinst


It's probably safest to ask there if running rpi-update is safe. You are using a custom kernel and running rpi-update will lose any custom mods.
Probably best to wait for raspbian-ua-netinst to produce an update with 4.0 kernel.


I've successfully updated a raspbian-ua-netinst kernel with rpi-update in the past.
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

Since 2012: 1B*5, 2B*2, B+, A+, Zero*2, 3B*3

Please post ALL technical questions on the forum. Do not send private messages.
User avatar
Posts: 26126
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
by dom » Mon Jun 22, 2015 4:30 pm
DougieLawson wrote:They don't work reliably OOB, the connection keeps dying. I had to install Mr Engman's driver for the 4.0.5-v7+ kernel.


If there are fixes to wireless drivers they should be submitted to the upstream linux kernel, where they can be peer reviewed by the driver experts. If accepted we can pull in the commits.
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5025
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge
by tonyscam » Mon Jun 22, 2015 4:42 pm
Still no luck with wpa_supplicant and the supplied USB wireless dongle. Tried it on both raspberry pi 1 and raspi 2 boards, no luck with either. I should note that I have a distro of Ubuntu 15.04 running on a different SD card and the wireless dongle does work correctly in that distro. Of course, 15.04 is not an officially supported distro but the point is the wifi dongle can work properly.
Posts: 2
Joined: Sun Jun 21, 2015 7:35 pm
by Massi » Mon Jun 22, 2015 5:31 pm
dom wrote:
DougieLawson wrote:They don't work reliably OOB, the connection keeps dying. I had to install Mr Engman's driver for the 4.0.5-v7+ kernel.


If there are fixes to wireless drivers they should be submitted to the upstream linux kernel, where they can be peer reviewed by the driver experts. If accepted we can pull in the commits.


ok, is there a way in this forum to call a member into this topic?
i'd REALLY like MrEngman to read this :)
Posts: 1524
Joined: Fri May 02, 2014 1:52 pm
Location: Italy
by MrEngman » Mon Jun 22, 2015 6:16 pm
Massi wrote:
dom wrote:
DougieLawson wrote:They don't work reliably OOB, the connection keeps dying. I had to install Mr Engman's driver for the 4.0.5-v7+ kernel.


If there are fixes to wireless drivers they should be submitted to the upstream linux kernel, where they can be peer reviewed by the driver experts. If accepted we can pull in the commits.


ok, is there a way in this forum to call a member into this topic?
i'd REALLY like MrEngman to read this :)

I have.

As far as I know there is a policy in Linux where drivers will not be accepted into the source if they include firmware in the source code like the drivers I compile.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.
Posts: 3259
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK
by PhilE » Mon Jun 22, 2015 6:33 pm
Can you explain why the firmware is in the source of your drivers? I presume that isn't true for all drivers with firmware blobs, otherwise there wouldn't be any in the kernel at all.

[I'm asking because I don't know.]
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 994
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge
by deskanubis » Mon Jun 22, 2015 6:55 pm
So far, my Tontec 3,5" mz61581 screen is not working after "sudo rpi-update"

Worked fine on 3.18 kernel
Posts: 1
Joined: Mon Jun 22, 2015 6:53 pm
by MrEngman » Mon Jun 22, 2015 10:35 pm
PhilE wrote:Can you explain why the firmware is in the source of your drivers? I presume that isn't true for all drivers with firmware blobs, otherwise there wouldn't be any in the kernel at all.

[I'm asking because I don't know.]

Because that's the way the code was written. Ask Realtek why. A rather extreme example but in one of the drivers I compile there are two files each about 475-500kB in size with large blocks of hex characters which get translated to binary when compiled and provide the firmware.

e.g.
Code: Select all
0x01, 0x95, 0x10, 0x00, 0x0F, 0x00, 0x00, 0x00, 0x05, 0x14, 0x10, 0x48, 0x84, 0x7A, 0x00, 0x00,
0xCC, 0xCC, 0xCC, 0xCC, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x02, 0x4C, 0xB1, 0x02, 0x60, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x02, 0x61, 0x0E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x02, 0x70, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x02, 0x60, 0x85, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x6F, 0x7E, 0x00, 0x00,
0x15, 0xF0, 0xFF, 0x0F, 0x00, 0x00, 0x00, 0x15, 0xF0, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x05, 0xF0,
with one file having in excess of 4500 lines and the other more than 5000 lines like these.

As far as I'm concerned this is far more convenient that requiring a separate firmware file, especially if the driver is included in the image but the firmware is not and is not included in any of the firmware packages that can be downloaded.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.
Posts: 3259
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK
by allfox » Tue Jun 23, 2015 9:02 am
Greetings.

I couldn't find /proc/config.gz anymore, wish to opt-in CONFIG_IKCONFIG_PROC.
User avatar
Posts: 282
Joined: Sat Jun 22, 2013 1:36 pm
Location: Guang Dong, China
by PhilE » Tue Jun 23, 2015 9:08 am
It's a module now, to reduce the kernel size. If you:
Code: Select all
sudo modprobe configs

(or add it to /etc/modules) /proc/config.gz will appear.
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 994
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge
by allfox » Tue Jun 23, 2015 9:19 am
Got it~ thanks!
User avatar
Posts: 282
Joined: Sat Jun 22, 2013 1:36 pm
Location: Guang Dong, China