dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5308
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Linux kernel is now 3.12

Mon Apr 28, 2014 9:33 pm

The 3.12 kernel tree has long term support and we are moving to it. The "next" firmware branch has been on 3.12 for the last two weeks without major complaints.
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).
There are new features if you interested:
http://kernelnewbies.org/Linux_3.11
http://kernelnewbies.org/Linux_3.12

and it will be supported upstream for longer than 3.10.

Please report if there are any regressions compared to the 3.10 kernel. If testing is positive it will appear in "apt-get upgrade" and on new raspbian images in perhaps a month's time.

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5308
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Linux kernel is now 3.12

Mon Apr 28, 2014 10:02 pm

In a separate update, the FIQ FSM USB driver rewrite is now added to the master firmware tree.
It has been on the "next" firmware tree for a number of weeks with many positive reports. See:
http://www.raspberrypi.org/forums/viewt ... 28&t=70437
for more info.

gkreidl
Posts: 6042
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Linux kernel is now 3.12

Tue Apr 29, 2014 11:55 pm

I've updated today and got a lot of crashes already. There's nothing to find in dmesg or kernel logs, just the message on the command line:
FATAL: cannot locate cpu MHZ in /proc/cpuinfo

Easy to reproduce:
open midori and go to https://vimeo.com
after a few seconds midori will crash, same happens with Minimal Kiosk Browser, so it must be the libwebkitgt+ engine which both use
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5308
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Linux kernel is now 3.12

Wed Apr 30, 2014 1:04 pm

gkreidl wrote:I've updated today and got a lot of crashes already. There's nothing to find in dmesg or kernel logs, just the message on the command line:
FATAL: cannot locate cpu MHZ in /proc/cpuinfo

Easy to reproduce:
open midori and go to https://vimeo.com
after a few seconds midori will crash, same happens with Minimal Kiosk Browser, so it must be the libwebkitgt+ engine which both use
I believe this is a bug in jackd (possibly something else). See:
http://jack-audio.10948.n7.nabble.com/J ... 17596.html
The change is due to this kernel commit:
http://lists.infradead.org/pipermail/li ... 78645.html

This probably needs fixing in raspian repo. I'm not sure if there is already an upstream fix for this, but the fault is in the application trying to use bogomips to mean something it doesn't.

I could try hacking it in the kernel, but that's not the right place to fix it.

gkreidl
Posts: 6042
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Linux kernel is now 3.12

Wed Apr 30, 2014 2:04 pm

I deinstalled jackd and jackd2 and it became a bit more stable. But it was impossible to deinstall the library (libjack-jack2-0) without deinstalling lots of other software (ffmpeg, gstreamer-plugins and lots more) and I so I still got crashes. It seems that quite a number of programs in Raspbian have been compiled against that library and all of them may crash now.
I had to revert again to commit f6eef32dd6388c3b04dbf462bd324d93281bf397 to get a stable system again.

This has to be solved in Raspbian before kernel 3.12 can become an update for everyone.

BTW, the following quote shows how some developers think(from http://lists.infradead.org/pipermail/li ... 78645.html ):
Now that we support a timer-backed delay loop, I'm quickly getting sick
and tired of people complaining that their beloved bogomips value has
decreased. You know who you are!

This patch removes the bogomips line from /proc/cpuinfo, based on the
reasoning that any program parsing this is already broken and, as such,
won't be further broken if the field is removed.
As a result of his "being sick and tired" lots of programs are now broken. Leaving the bogomips info untouched wouldn't have done any harm at all.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5308
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Linux kernel is now 3.12

Wed Apr 30, 2014 2:48 pm

gkreidl wrote:As a result of his "being sick and tired" lots of programs are now broken. Leaving the bogomips info untouched wouldn't have done any harm at all.
Well, bogomips was (correctly as it uses timer based delays) reported as 2 with the previous kernel which is probably not the answer that jackd expected, so it quite possibly wasn't working idealy before (but the problem was non-fatal).
I imagine it is doing something hacky like reading bogomips and then doing something like "while (delay--) {}" where delay is scaled by bogomips to implement a delay.

erickpeniche
Posts: 4
Joined: Wed Apr 30, 2014 3:18 pm
Location: DFW

Re: Linux kernel is now 3.12

Wed Apr 30, 2014 3:20 pm

So do i have to wait til the next update to fix this? or can i edit some file to apply the patch mentioned? :?:

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5308
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Linux kernel is now 3.12

Wed Apr 30, 2014 3:37 pm

erickpeniche wrote:So do i have to wait til the next update to fix this? or can i edit some file to apply the patch mentioned? :?:
If you can build your own kernel, then reverting this commit http://lists.infradead.org/pipermail/li ... 78645.html will avoid the problem.

The correct solution is to rebuild jackd with this:
https://github.com/jackaudio/jack2/comm ... 74ff4995f0

@asb is able to do this, and an "apt-get upgrade" of the right package should fix it when it's ready.

chorispi
Posts: 2
Joined: Wed Apr 30, 2014 3:42 pm

Re: Linux kernel is now 3.12

Wed Apr 30, 2014 4:03 pm

Jackd complains because handling of bogomips has changed. Some time ago a kernelpatch has removed bogomips info from the kernel
http://lists.infradead.org/pipermail/li ... 78645.html

Here you can download modified linux kernel sources for using the new Wolfson audio card http://www.element14.com/community/comm ... wolfson_pi with a realtime preemtion patch, reverted bogomips patch, and sdhci patch for rt. There is also a binary version for the 3.12.y kernel for the raspberry pi available ->
http://blog.georgmill.de/2014/04/29/com ... a-new-try/

User avatar
Richard-TX
Posts: 1549
Joined: Tue May 28, 2013 3:24 pm
Location: North Texas

Re: Linux kernel is now 3.12

Thu May 01, 2014 6:30 am

I just did an upgrade and there is now a reserved device in i2c-1 bus.

This needs to go away by default. Just like I2C, the driver responsible should be added on after the fact by the user, not before.

Code: Select all

[email protected]:~# i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- UU -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
After a reboot, there is no sound output from mpd despite the fact that mpd/mpc reports "Playing". A mpc stop and mpc play has to be issued for music to start playing. In the 09-25-2013 version, mpd starts playing immediately after boot.
Richard
Doing Unix since 1985.
The 9-25-2013 image of Wheezy can be found at:
http://downloads.raspberrypi.org/raspbian/images/raspbian-2013-09-27/2013-09-25-wheezy-raspbian.zip

gkreidl
Posts: 6042
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Linux kernel is now 3.12

Thu May 01, 2014 7:46 am

dom wrote: The correct solution is to rebuild jackd with this:
https://github.com/jackaudio/jack2/comm ... 74ff4995f0

@asb is able to do this, and an "apt-get upgrade" of the right package should fix it when it's ready.
@dom: did you report it to him? Or should I create a bug report?
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

asb
Forum Moderator
Forum Moderator
Posts: 853
Joined: Fri Sep 16, 2011 7:16 pm
Contact: Website

Re: Linux kernel is now 3.12

Thu May 01, 2014 8:54 am

gkreidl wrote:
dom wrote: The correct solution is to rebuild jackd with this:
https://github.com/jackaudio/jack2/comm ... 74ff4995f0

@asb is able to do this, and an "apt-get upgrade" of the right package should fix it when it's ready.
@dom: did you report it to him? Or should I create a bug report?
I should have a rebuilt jackd to test later this morning.

asb
Forum Moderator
Forum Moderator
Posts: 853
Joined: Fri Sep 16, 2011 7:16 pm
Contact: Website

Re: Linux kernel is now 3.12

Thu May 01, 2014 11:50 am

Could you please test the following packages:

Code: Select all

wget http://asbradbury.org/tmp/raspi/jackd2_1.9.8~dfsg.4+20120529git007cdc37-5+rpi2_armhf.deb 
wget http://asbradbury.org/tmp/raspi/libjack-jackd2-0_1.9.8~dfsg.4+20120529git007cdc37-5+rpi2_armhf.deb
sudo dpkg -i *jackd2*.deb
If it fixes the issues for you, I'll get it on archive.raspberrypi.org. Testing that Sonic Pi still works for you would be helpful too.

gkreidl
Posts: 6042
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Linux kernel is now 3.12

Thu May 01, 2014 1:23 pm

No more crashes!

I tried to install sonic-pi to test it, but could not, because the dependencies could not be fulfilled.
You should also care about jack(1) and libjack-jackd2-dev; it's complaining about missing (wrong) dependencies now with the test version. Version numbers don't match, I suppose.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

asb
Forum Moderator
Forum Moderator
Posts: 853
Joined: Fri Sep 16, 2011 7:16 pm
Contact: Website

Re: Linux kernel is now 3.12

Thu May 01, 2014 1:29 pm

gkreidl wrote:No more crashes!

I tried to install sonic-pi to test it, but could not, because the dependencies could not be fulfilled.
You should also care about jack(1) and libjack-jackd2-dev; it's complaining about missing (wrong) dependencies now with the test version. Version numbers don't match, I suppose.
Thanks for testing.

You can get libjack-jackd2-dev from http://asbradbury.org/tmp/raspi/libjack ... _armhf.deb I just didn't list it as I assumed people wouldn't have had the -dev lib installed. I'm surprised you're having dependency issues with sonic-pi. Possibly the issues are stemming from the libjack-jackd2-dev issue?

I'm looking to avoid updating jackd1 if it's avoidable. I suspect nobody's using it as like jackd2, I believe it needs a patch to fix struct alignment as it segfaults when ldrex/strex access unaligned addresses.

gkreidl
Posts: 6042
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Linux kernel is now 3.12

Thu May 01, 2014 1:38 pm

asb wrote: You can get libjack-jackd2-dev from http://asbradbury.org/tmp/raspi/libjack ... _armhf.deb I just didn't list it as I assumed people wouldn't have had the -dev lib installed. I'm surprised you're having dependency issues with sonic-pi. Possibly the issues are stemming from the libjack-jackd2-dev issue?

I'm looking to avoid updating jackd1 if it's avoidable. I suspect nobody's using it as like jackd2, I believe it needs a patch to fix struct alignment as it segfaults when ldrex/strex access unaligned addresses.
Link doesn't work.
Yes, libjack-jackd2-dev is required by sonic-pi and it doesn't match.

I don't need jackd1, in fact I really just need the library and its dev package (quite a number of packages need the lib).
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

asb
Forum Moderator
Forum Moderator
Posts: 853
Joined: Fri Sep 16, 2011 7:16 pm
Contact: Website

Re: Linux kernel is now 3.12

Thu May 01, 2014 1:46 pm

Apologies, I've fixed the URL in my post. I'm not seeing much/any use of jackd1. apt-cache rdepends libjack0 doesn't show anything interesting and neither does apt-cache rdepends jackd1. If someone finds something important broken, do let me know though.

gkreidl
Posts: 6042
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Linux kernel is now 3.12

Thu May 01, 2014 2:19 pm

OK, now I could install sonic Pi and it's working (at least playing sounds, so connection to jackd2 must be working)
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

asb
Forum Moderator
Forum Moderator
Posts: 853
Joined: Fri Sep 16, 2011 7:16 pm
Contact: Website

Re: Linux kernel is now 3.12

Thu May 01, 2014 8:49 pm

Thanks gkreidl. I've gone ahead and pushed it to archive.raspberrypi.org. Anyone should now be able to apt-get update && apt-get upgrade or if they prefer just apt-get update && apt-get install libjack-jackd2-0.

User avatar
Richard-TX
Posts: 1549
Joined: Tue May 28, 2013 3:24 pm
Location: North Texas

Re: Linux kernel is now 3.12

Fri May 02, 2014 2:23 am

I had to blacklist the wolfson module due to multiple system issues.

Code: Select all

blacklist snd_soc_wm8804
I recommend that the snd_soc_wm8804 module NOT be included in the standard distribution.
Richard
Doing Unix since 1985.
The 9-25-2013 image of Wheezy can be found at:
http://downloads.raspberrypi.org/raspbian/images/raspbian-2013-09-27/2013-09-25-wheezy-raspbian.zip

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5308
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Linux kernel is now 3.12

Fri May 02, 2014 10:28 am

Richard-TX wrote:I had to blacklist the wolfson module due to multiple system issues.

Code: Select all

blacklist snd_soc_wm8804
I recommend that the snd_soc_wm8804 module NOT be included in the standard distribution.
Yes, make a note of any modules that want blacklisting here, and we'll add that to next raspbian image.

I'll add this one to list:
snd-soc-bcm2708-i2s

User avatar
Richard-TX
Posts: 1549
Joined: Tue May 28, 2013 3:24 pm
Location: North Texas

Re: Linux kernel is now 3.12

Fri May 02, 2014 12:36 pm

dom wrote:
Richard-TX wrote:I had to blacklist the wolfson module due to multiple system issues.

Code: Select all

blacklist snd_soc_wm8804
I recommend that the snd_soc_wm8804 module NOT be included in the standard distribution.
Yes, make a note of any modules that want blacklisting here, and we'll add that to next raspbian image.

I'll add this one to list:
snd-soc-bcm2708-i2s
Why blacklist snd-soc-bcm2708-i2s? Is there some issue with it?
Richard
Doing Unix since 1985.
The 9-25-2013 image of Wheezy can be found at:
http://downloads.raspberrypi.org/raspbian/images/raspbian-2013-09-27/2013-09-25-wheezy-raspbian.zip

SteveSpencer
Posts: 351
Joined: Thu Mar 28, 2013 9:19 am
Location: Nottingham, UK

Re: Linux kernel is now 3.12

Fri May 02, 2014 1:46 pm

I suspect because it reserves I2C 0x3B, which might not be convenient for other devices using userland code via dev-i2c.
Steve S
No, I can't think of anything funny that won't offend someone if they want it to...

User avatar
Richard-TX
Posts: 1549
Joined: Tue May 28, 2013 3:24 pm
Location: North Texas

Re: Linux kernel is now 3.12

Sat May 03, 2014 4:35 am

Blacklisting snd_soc_wm8804 results in address 0x3b NOT being reserved.

Code: Select all

# cat /etc/modprobe.d/raspi-blacklist.conf
# blacklist spi and i2c by default (many users don't need them)

blacklist snd_soc_wm8804

# i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

Richard
Doing Unix since 1985.
The 9-25-2013 image of Wheezy can be found at:
http://downloads.raspberrypi.org/raspbian/images/raspbian-2013-09-27/2013-09-25-wheezy-raspbian.zip

evilkitty
Posts: 370
Joined: Tue Apr 15, 2014 11:39 pm

Re: Linux kernel is now 3.12

Mon May 05, 2014 11:25 pm

Richard-TX wrote:After a reboot, there is no sound output from mpd despite the fact that mpd/mpc reports "Playing". A mpc stop and mpc play has to be issued for music to start playing. In the 09-25-2013 version, mpd starts playing immediately after boot.
Are you using analog, hdmi, or usb for sound?
i upgraded to this kernel today:
Linux raspberrypi 3.12.18+ #680 PREEMPT Sat May 3 19:29:46 BST 2014 armv6l GNU/Linux
analog audio output is working via mpd/mpc
I was having issues with my Ethernet going down when mpd/mpc is left playing for a extended period of time, hopefully this kernel will fix that, i wrote a script to brink it restore Ethernet when it goes down
My Pi Server: http://imgur.com/a/6xIUI | Thermostat: http://imgur.com/a/4LVnT

Return to “Advanced users”