User avatar
DougieLawson
Posts: 35373
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Linux kernel is now 4.4

Wed Jul 06, 2016 7:42 pm

Simply restore your backup of /boot and /lib/modules/$(uname -r) and everything should work exactly as a it was before you ran rpi-update.
Note: Having anything remotely humorous in your signature is completely banned on this forum.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6895
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: Linux kernel is now 4.4

Wed Jul 06, 2016 8:35 pm

tony power wrote:my rpi 3.
raspistill stopped working after kernel upgrade
but raspivid still works

Code: Select all

sudo rpi-update
reboot
here is error message.

Code: Select all

# raspistill -o img.jpg
raspistill: error while loading shared libraries: libbrcmGLESv2.so: cannot open shared object file: No such file or directory
.

I want to fix this issue please.
https://github.com/raspberrypi/firmware/issues/629
Already fixed if you rpi-update again. A few files got missed in the push.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

tony power
Posts: 33
Joined: Tue Mar 08, 2016 9:07 pm

Re: Linux kernel is now 4.4

Wed Jul 06, 2016 9:11 pm

6by9 wrote:
tony power wrote:my rpi 3.
raspistill stopped working after kernel upgrade
but raspivid still works

Code: Select all

sudo rpi-update
reboot
here is error message.

Code: Select all

# raspistill -o img.jpg
raspistill: error while loading shared libraries: libbrcmGLESv2.so: cannot open shared object file: No such file or directory
.

I want to fix this issue please.
https://github.com/raspberrypi/firmware/issues/629
Already fixed if you rpi-update again. A few files got missed in the push.
thank you, fixed after rpi-update

SuperDave156
Posts: 19
Joined: Sat Jan 05, 2013 12:56 pm

Re: Linux kernel is now 4.4

Thu Aug 04, 2016 6:37 pm

There has been a significant problem introduced between Pi2 and Pi3
On the Pi3, reading the keyboard from within a python program that has been run on startup from /etc/rc.local causes a crash as follows:

oldterm = termios.tcgetattr(fd)
termios error: (25, 'inappropriate ioctl for device')

Try running the python program below on startup from rc.local on a Pi2 (version 4.4.16+) and it will work.
Try it on a Pi3 (version 4.4.16-v7+) and it will crash...

Run the Pi3 SD card in the Pi2 and it crashes.
Run the Pi2 SD card in the Pi3 and it does not even boot (unfortunately)

This is a big problem for me and probably others too so any help to solve it would be much appreciated.

Thanks,
David Taylor,
Stevenage

Code: Select all

#!/usr/bin/python
#
# startup.py
# Pi3 fails to read keyboard input but Pi2 does!
# run this program from etc/rc.local on the Pi3 version of the os and it will fail
# run this program from etc/rc.local on the Pi2 version of the os and it will work

import os, sys, time
import termios, fcntl


def GetKey():
   fd = sys.stdin.fileno()
   oldterm = termios.tcgetattr(fd)
   newattr = termios.tcgetattr(fd)
   newattr[3] = newattr[3] & ~TERMIOS.ICANON & ~TERMIOS.ECHO
   newattr[6][TERMIOS.VMIN] = 1
   newattr[6][TERMIOS.VTIME] = 0
   termios.tcsetattr(fd, termios.TCSANOW, newattr)
   oldflags = fcntl.fcntl(fd, fcntl.F_GETFL)
   fcntl.fcntl(fd, fcntl.F_SETFL, oldflags | os.O_NONBLOCK)
   try:
      try:
         c = sys.stdin.read(1)
#         print "Got character", repr(c)
         return c
      except IOError: pass
   finally:
      termios.tcsetattr(fd, termios.TCSAFLUSH, oldterm)
      fcntl.fcntl(fd, fcntl.F_SETFL, oldflags)


if __name__ == "__main__":

   # give us a chance to quit before launching
   print '###  Press q to prevent launch or any other key to launch  ###'
   bLaunch = True 
   TERMIOS = termios
   i = 0
   z = 5
   while i < z:
      print z - i,   
      i = i + 1
      ch = GetKey()
      if ch != None:
         if ch == 'q':
            print
            print 'Launch has been stopped by pressing ' + ch
            bLaunch = False
         break
      time.sleep(1)
         
   if bLaunch == True:
      print
      print "Launch the main loop here"

exit(0)

Rosentorp
Posts: 7
Joined: Tue Aug 23, 2016 2:47 pm

Re: Linux kernel is now 4.4

Tue Aug 23, 2016 2:56 pm

HI! We have updated our image to the latest firmware with rpi-update. Taking pictures with raspistill seems to work but takne from inside of our application (with mmal) we get a picture with very cyan vignetting.

Do you have any suggestion about what to do?

Thanks!

/Anders

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

Re: Linux kernel is now 4.4

Tue Aug 23, 2016 4:40 pm

Rosentorp wrote:HI! We have updated our image to the latest firmware with rpi-update. Taking pictures with raspistill seems to work but takne from inside of our application (with mmal) we get a picture with very cyan vignetting.

Do you have any suggestion about what to do?
Report in the camera board forum. More chance of the right person seeing it.

zuzaparany
Posts: 6
Joined: Tue Jul 26, 2016 6:05 am

Re: Linux kernel is now 4.4

Thu Sep 01, 2016 6:46 pm

Dear everybody!
I have a strange problem and hope someone can help me. I have a Focusrite Saffire 6 USB 1.1 soundcard. With kernel 4.1.19 everything works fine, but when i install 4.4.x, the sound gets really strange...can't explain. The lows are clear but the highs are "resonating and it is like really fast stuttering...i tried buffer size and every pulseaudio troubleshoot stuff. What changed in kernel 4.4 that changed the audio? The soundcard is recognised and everything looks the same...
Thanks for the help :)

rascol
Posts: 9
Joined: Sat May 30, 2015 1:48 pm

Missing Files in 4.4 kernel source

Mon Jan 30, 2017 4:16 pm

I've written a program that required a kernel driver. For that reason the program has to be compiled against the version-specific kernel build system of the Raspian OS on which the program will be run - a bit of a pain but not a show stopper.

However, in attempting to retrieve the sources for Linux 4.4 that are earlier than the current one (4.4.45 at the moment) from "https://github.com/raspberrypi/linux" I found that these sources are missing critical files that prevent a driver from being compiled against them. For example, there is no "arch/arm/configs/bcm2709_defconfig" file in the v4.4.38 source. And a bunch of other arm-specific files are missing as well.

First question: Is there some way of recovering these missing files or does someone know of a server somewhere that has complete RPi previously released kernel sources?

Second question: Does anyone know a particular reason why the earlier sources are incomplete?

Much obliged if you can help me out.

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

Re: Missing Files in 4.4 kernel source

Mon Jan 30, 2017 5:26 pm

rascol wrote: Second question: Does anyone know a particular reason why the earlier sources are incomplete?
Where are you getting them from? The apt sources will only contain the generic kernel.

The raspberry pi kernel lives here: https://github.com/raspberrypi/linux

rascol
Posts: 9
Joined: Sat May 30, 2015 1:48 pm

Re: Linux kernel is now 4.4

Mon Jan 30, 2017 6:07 pm

The earlier sources can be found at "https://github.com/raspberrypi/linux/commits/rpi-4.4.y" by searching down through the commits until, for example, "Linux 4.4.44" is found and then clicking on it.

DirkS
Posts: 9844
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Linux kernel is now 4.4

Mon Jan 30, 2017 6:18 pm

rascol wrote:The earlier sources can be found at "https://github.com/raspberrypi/linux/commits/rpi-4.4.y" by searching down through the commits until, for example, "Linux 4.4.44" is found and then clicking on it.
rpi-source (https://github.com/notro/rpi-source) can help you with that

rascol
Posts: 9
Joined: Sat May 30, 2015 1:48 pm

Re: Linux kernel is now 4.4

Mon Jan 30, 2017 7:19 pm

Outstanding DirkS. Thanks.

Claggy
Posts: 16
Joined: Sun Jan 26, 2014 3:15 pm

Re: Linux kernel is now 4.4

Thu Feb 09, 2017 1:43 pm

Can we have a 4.4 kernel update via rpi-update with the patch mentioned here please:

https://github.com/raspberrypi/linux/issues/600

http://lists.infradead.org/pipermail/li ... 32633.html

Edit: Further reading about this Bug is in this thread:

https://github.com/raspberrypi/linux/issues/859

Claggy

Claggy
Posts: 16
Joined: Sun Jan 26, 2014 3:15 pm

Re: Linux kernel is now 4.4

Sat Feb 11, 2017 2:28 pm

Cloned the Raspberry Pi source tree, applied the patch, and done a pull request.

Claggy

User avatar
Mettauk
Posts: 232
Joined: Mon Dec 10, 2012 12:40 pm
Location: Zarg

Re: Linux kernel is now 4.4

Mon May 22, 2017 9:18 pm

I have some issues with the updates to numerious Pi that I updated/upgraded on 1st May 2017 and until today had not noticed that it had also affected I2C on a pi with motor controlers (PicoBorg Reverse).

The issues remind me of when the Pi 3 came out and all sorts of software fell over with the updates and/or did not work on Pi3 for a few weeks/months but WebIOpi seems really messed up (GPIO s set to out/low go high on boot and I2C control is lost. Pan Tilt servo control (MindSensors software fails) unless reverting to

Code: Select all

sudo rpi-update 5224108
which fixes gpio access and I2C motor control and pan/tilt camera control. This is fine in the short term....?

I'm not a newbie but have very limited tech skills so any advise would;d be best given for "almost stupid" user"
As humans we have been the same for a very very long time, technology changes how we do... not who we are as people.

Return to “Advanced users”