PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2279
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: Linux kernel is now 4.4

Thu May 05, 2016 10:23 am

@MaxK1 if you do find a problem, ideally one that is reproducible, then please report it here.

MaxK1
Posts: 1043
Joined: Sun Aug 26, 2012 11:34 pm

Re: Linux kernel is now 4.4

Thu May 05, 2016 3:25 pm

I'm trying to assemble enough pieces to put together a "clean" and "disposable" system to reproduce it on. May take a while.
if/when I do reproduce the problem, I will report it here.
You are in a maze of twisty little passages, all alike.
When General Failure and Major Disaster get together, Private Parts usually suffers.

obi8
Posts: 1
Joined: Fri May 06, 2016 4:47 pm

Re: Linux kernel is now 4.4

Fri May 06, 2016 4:50 pm

is in the last firmware update bluetooth support for rpi3 include?

MarkJ62
Posts: 28
Joined: Mon Dec 17, 2012 11:55 am
Location: Sydney, Australia
Contact: Website

Re: Linux kernel is now 4.4

Sat May 07, 2016 8:50 am

Not strictly a kernel problem as I updated the kernel successfully via rpi-update, however doing an apt-get upgrade totally stuffs a Pi2 running stretch. Computer name redacted.

uname -a
Linux *** 4.4.9-v7+ #884 SMP Fri May 6 17:28:59 BST 2016 armv7l GNU/Linux

The following packages will be upgraded:
adduser base-files binutils bsdmainutils bsdutils busybox cgmanager
cgroup-bin cgroup-tools cifs-utils console-setup console-setup-linux cpp-4.9
cpp-5 dash dbus debconf debconf-i18n debconf-utils debian-reference-common
debian-reference-en dmsetup dphys-swapfile e2fslibs e2fsprogs fake-hwclock
g++-5 gcc-4.9 gcc-4.9-base gcc-5 gcc-5-base gir1.2-glib-2.0 git git-core
git-man gnupg gpgv grep gzip ifupdown info init init-system-helpers insserv
install-info isc-dhcp-common java-common keyboard-configuration kmod
libapparmor1 libapt-inst2.0 libapt-pkg-dev libapt-pkg5.0 libasan1 libasan2
libatomic1 libblkid1 libboost-filesystem1.58.0 libboost-iostreams1.58.0
libboost-system1.58.0 libbsd0 libcap-ng0 libcc1-0 libcgmanager0 libcgroup1
libcomerr2 libdbus-1-3 libdebconfclient0 libdevmapper-event1.02.1
libdevmapper1.02.1 libestr0 libexpat1 libfdisk1 libfftw3-double3
libfftw3-single3 libgcc-4.9-dev libgcc-5-dev libgcc1 libgcrypt20
libgfortran3 libgirepository-1.0-1 libglib2.0-0 libglib2.0-data libgnutls30
libgomp1 libgpg-error0 libgpm2 libio-socket-ssl-perl libiw30 libkmod2
liblvm2app2.2 liblz4-1 libmount1 libmpdec2 libmpfr4 libncurses5 libncursesw5
libnet-ssleay-perl libnewt0.52 libnghttp2-14 libpam-systemd libpcre3
libpcsclite1 libpolkit-agent-1-0 libpolkit-backend-1-0 libpolkit-gobject-1-0
libpython2.7-minimal libpython2.7-stdlib libpython3-stdlib libpython3.4
libpython3.4-minimal libpython3.4-stdlib libpython3.5-minimal
libpython3.5-stdlib librtmp1 libsasl2-2 libsasl2-modules-db libseccomp2
libselinux1 libsemanage-common libsemanage1 libsepol1 libsgutils2-2
libsigc++-2.0-0v5 libslang2 libsqlite3-0 libss2 libssl1.0.2 libstdc++-5-dev
libstdc++6 libsystemd0 libtalloc2 libtasn1-6 libtinfo5 libubsan0 libudev1
libuuid1 libv4l-0 libv4l2rds0 libv4lconvert0 libwbclient0 libxapian-dev
libxapian22v5 make manpages manpages-dev multiarch-support ncurses-base
ncurses-bin ncurses-term policykit-1 python-dbus python-gi python-gobject
python-numpy python2.7 python2.7-minimal python3 python3-minimal
python3-numpy python3.4 python3.4-minimal python3.5 python3.5-minimal
rsyslog samba-common sed shared-mime-info systemd systemd-sysv traceroute
ucf udev util-linux v4l-utils whiptail wireless-tools

After install reboot. Can't ssh in.

On console (plugged into HDMI) get:
Raspian GNU/Linux stretch/sid *** tty1
*** login: [12.721013[ NET: Registered protocol family 3
[12.753342] NET: Registered protocol family 5

I login successfully. Do an "ip a" and it says it has a loopback interface and an enxb827eb19cb20: with no IPv4 address. eth0 seems to have disappeared.

MaxK1
Posts: 1043
Joined: Sun Aug 26, 2012 11:34 pm

Re: Linux kernel is now 4.4

Sun May 08, 2016 7:36 am

@PhilE - I can reproduce the problem. It is related to the "brcmfmac: brcmf_sdio_hdparse: seq xx: sequence number error, expect yy" error. If you can trigger a bunch of those, you run out of memory eventually. I found that refreshing a bunch of tabs in iceweasel at the same time repeatedly, will do it. I does not occur with Jessie on a fresh install or a "normal" upgrade, only an rpi-update to 4.4.8 or 4.4.9 will. (There may be earlier versions of 4.4.x that will also cause the problem) I noticed that someone else reported that Ubuntu had different firmware for the on-board wi-fi, so that made me wonder if we have a driver/firmware mis-match?
You are in a maze of twisty little passages, all alike.
When General Failure and Major Disaster get together, Private Parts usually suffers.

User avatar
Dis93
Posts: 132
Joined: Thu Apr 07, 2016 8:30 pm
Location: Wuthering, Yorkshire

Re: Linux kernel is now 4.4

Sun May 08, 2016 1:45 pm

On my 3B, the 4.4.8 kernel has changed the led behaviour at shutdown. It now flashes 10 times then goes off.
On 4.4.1 it flashed 10 times then stayed on.
I think this new behaviour is preferable.

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

Re: Linux kernel is now 4.4

Sun May 08, 2016 2:08 pm

Dis93 wrote:On my 3B, the 4.4.8 kernel has changed the led behaviour at shutdown. It now flashes 10 times then goes off.
On 4.4.1 it flashed 10 times then stayed on.
I think this new behaviour is preferable.
Yes, new behaviour is deliberate to match behaviour on Pi1/Pi2.

stefandz
Posts: 8
Joined: Fri May 13, 2016 11:54 am

Re: Linux kernel is now 4.4

Fri May 13, 2016 11:59 am

OK, so this has broken an audio remapping that I was using to bring audio out via GPIO header pins:

Code: Select all

dtoverlay=pwm-2chan,pin=12,pin2=13,func=4,func2=4
in /boot/config.txt was doing the trick before - and now isn't.

Please forgive my ignorance, but could anyone point me in the direction of what I need to do to achieve what the previously working dtoverlay line was doing?

Many thanks in advance

S

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2279
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: Linux kernel is now 4.4

Fri May 13, 2016 1:27 pm

In what way is it broken? I can load the overlay, and the pwm driver loads with no errors.

Does "dmesg -l err" return anything?

What distribution are you using, and which version?

stefandz
Posts: 8
Joined: Fri May 13, 2016 11:54 am

Re: Linux kernel is now 4.4

Fri May 13, 2016 1:39 pm

Hi Phil

It is broken in as much as PWM output remains on the regular pins (those connected out to the 3.5mm socket) as opposed to shifting to the specified GPIO header pins. Distro is Raspbian Jessie 2016-05-10 (downloaded today) and with sudo rpi-update run. uname -a gives

Code: Select all

Linux raspberrypi 4.4.9-v7+ #884 SMP Fri May 6 17:28:59 BST 2016 armv7l GNU/Linux
dmesg -l err returns nothing.

This was working on the previous release of Jessie (2016-03-18).

Let me know if there's anything else I can send over. Full dump of /boot/config.txt is

Code: Select all

# For more options and information see
# http://www.raspberrypi.org/documentation/configuration/config-txt.md
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

# Uncomment this to enable the lirc-rpi module
#dtoverlay=lirc-rpi

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
dtparam=audio=on
dtparam=i2c_arm=on

# set high-quality PWM audio
audio_pwm_mode=2

# remap audio to GPIO
dtoverlay=pwm-2chan,pin=12,pin2=13,func=4,func2=4

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2279
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: Linux kernel is now 4.4

Fri May 13, 2016 2:51 pm

So you are using the overlay to reroute audio to the other pins, rather than the intended purpose which is to use the PWM block for something else (perhaps also audio, but not using the ALSA snd_bcm2835driver)? That's using a sledgehammer to crack a nut - all you really need is to change some pin functions.

Both the snd_bcm2835 driver and the pwm_bcm2835 driver try to use the same PWM block - pwm_bcm2835 directly, and snd_bcm2835 via a service on the VPU. The firmware enables the PWM function on the standard pins, and the overlay enables it on your chosen pins, which will leave it multiply mapped - not a great situation.

When I use your configuration both drivers are loaded and I get PWM enabled on 12, 13, 40 and 41 (this is a Pi3). What do you get (raspi-gpio will show you the pin state)? If your state is the same as mine then you could try using raspi-gpio to unmap the PWM function from 40 and 41:

Code: Select all

raspi-gpio set 40 ip
raspi-gpio set 41 ip
If that doesn't restore your audio then try removing the dtoverlay line and after a reboot run this:

Code: Select all

raspi-gpio set 40 ip
raspi-gpio set 41 ip
raspi-gpio set 12 a0
raspi-gpio set 13 a0
The real solution is to write an overlay to remap the PWM pins without loading the PWM driver, which is trivial.

stefandz
Posts: 8
Joined: Fri May 13, 2016 11:54 am

Re: Linux kernel is now 4.4

Fri May 13, 2016 2:59 pm

OK, I think I have a red herring here. Just done a blank reinstall, expand FS, upgrade kernel, remap audio. All works fine... so the problem appears to be between keyboard and screen.

Sorry for wasting time everyone :oops: I'll grab my coat...

S

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2279
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: Linux kernel is now 4.4

Fri May 13, 2016 3:02 pm

I'm happy that you are happy, but everything I've said is still true. If you open an issue on the GitHub raspberrypi/linux repo asking for an overlay to remap the PWM pins cleanly I'll see what I can do.

stefandz
Posts: 8
Joined: Fri May 13, 2016 11:54 am

Re: Linux kernel is now 4.4

Fri May 13, 2016 3:06 pm

Sorry PhilE - posted before reading your reply. I agree - I get audio out of both sets of pins now (the ones on the GPIO and the ones on the board connected to the 3.5mm socket. No idea what was happening before, but a clean reinstall fixed whatever else I had done that was messing stuff up.
The real solution is to write an overlay to remap the PWM pins without loading the PWM driver, which is trivial.
Really sorry, but for me this isn't trivial at all! :cry: my skills certainly don't like in this area. Is there a good resource I could reference to achieve this? If it's this simple I would happily bribe someone with a beer or a donation to help me out with a more correct solution.

stefandz
Posts: 8
Joined: Fri May 13, 2016 11:54 am

Re: Linux kernel is now 4.4

Fri May 13, 2016 3:07 pm

Argh!! I double-posted again...

I shall submit an issue on the Github repo as requested.

soundpaint
Posts: 1
Joined: Sat May 14, 2016 1:58 pm

Re: Linux kernel is now 4.4

Sat May 14, 2016 2:07 pm

Just to let you know:

I just downloaded latest NOOBS LITE and made a fresh install on a Pi 2 with a new SD card.
I now have a kernel 4.4, but kernel modules are still 4.1.19:

Code: Select all

[email protected]:~ $ uname -a
Linux raspberrypi 4.4.9-v7+ #884 SMP Fri May 6 17:28:59 BST 2016 armv7l GNU/Linux
[email protected]:~ $ ls -al /lib/modules
insgesamt 16
drwxr-xr-x  4 root root 4096 Mai 14 13:49 .
drwxr-xr-x 19 root root 4096 Mai 14 13:14 ..
drwxr-xr-x  3 root root 4096 Mai 14 11:40 4.1.19+
drwxr-xr-x  3 root root 4096 Mai 14 11:41 4.1.19-v7+
[email protected]:~ $ 
As a result, lot of things (including e.g. the USB mouse driver) do not seem to work...

Best wishes,
Jürgen

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

Re: Linux kernel is now 4.4

Sat May 14, 2016 7:01 pm

soundpaint wrote: I just downloaded latest NOOBS LITE and made a fresh install on a Pi 2 with a new SD card.
I now have a kernel 4.4, but kernel modules are still 4.1.19:
I've just tested this:

Code: Select all

[email protected]:~ $ uname -a
Linux raspberrypi 4.4.9-v7+ #884 SMP Fri May 6 17:28:59 BST 2016 armv7l GNU/Linux
[email protected]:~ $ ls -al /lib/modules
total 16
drwxr-xr-x  4 root root 4096 May 14 18:53 .
drwxr-xr-x 19 root root 4096 May 14 18:53 ..
drwxr-xr-x  3 root root 4096 May 14 18:53 4.4.9+
drwxr-xr-x  3 root root 4096 May 14 18:53 4.4.9-v7+
Can you try again? Perhaps you installed before the network raspbian image had been fully updated.

asandford
Posts: 1997
Joined: Mon Dec 31, 2012 12:54 pm
Location: Waterlooville

Re: Linux kernel is now 4.4

Sun May 15, 2016 8:49 pm

It appears that iscsi support has not been enabled again (I know that the Pi kernel has never had it, but the standard kernel has from 3.4, so I'm curious why it was removed).

IMHO, iscsi is a better way (for some things; and sometimes the only way) than cifs/nfs shares.

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

Re: Linux kernel is now 4.4

Mon May 16, 2016 11:45 am

asandford wrote:It appears that iscsi support has not been enabled again (I know that the Pi kernel has never had it, but the standard kernel has from 3.4, so I'm curious why it was removed).

IMHO, iscsi is a better way (for some things; and sometimes the only way) than cifs/nfs shares.
We have CONFIG_ISCSI_TCP=m and we haven't deliberately disabled anything related to ISCSI.
Can you say exactly which config option you believe is missing?

User avatar
AikonCWD
Posts: 180
Joined: Mon Jun 09, 2014 3:50 pm
Location: Barcelona

Re: Linux kernel is now 4.4

Tue May 17, 2016 7:17 am

It is posible to overclock the SD card with the new firmware? I found 2 different commands:

Code: Select all

dtoverlay=sdhost,overclock_50=100
dtparam=sd_overclock=100
Which command should I use? Thanks! :)
Last edited by AikonCWD on Tue May 17, 2016 10:03 pm, edited 1 time in total.
My e-mail = [email protected]

asandford
Posts: 1997
Joined: Mon Dec 31, 2012 12:54 pm
Location: Waterlooville

Re: Linux kernel is now 4.4

Tue May 17, 2016 10:45 am

dom wrote: We have CONFIG_ISCSI_TCP=m and we haven't deliberately disabled anything related to ISCSI.
Can you say exactly which config option you believe is missing?
Thanks, perhaps the base you started from had it left as an option.

To get iscsi working, I have to change that to

Code: Select all

CONFIG_ISCSI_TCP=y
and then wait for ~6 hours for the kernel to recompile.

The downside is that the size doubles:

Code: Select all

-rwxr-xr-x 1 root root 3964404 May 15 22:00 kernel.img
-rwxr-xr-x 1 root root 8970240 Feb 15 10:34 kernel.img-backup   <--- iscsi enabled

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

Re: Linux kernel is now 4.4

Tue May 17, 2016 11:31 am

asandford wrote: To get iscsi working, I have to change that to
Are you trying to boot from remote SCSI device? If /lib/modules are on the remote device then the modules won't help you.
If you are just mounting the remote SCSI device after booting, then the module should be fine. Did you add it to /etc/modules?

Duncb82
Posts: 7
Joined: Tue May 21, 2013 6:22 am

Re: Linux kernel is now 4.4

Tue May 17, 2016 3:53 pm

Using an rpi 2 with the official wifi adapter, I can't use any wifi after the upgrade to 4.4

Dropping back to 4.1 fixes it

It seems like it connects at least, but shows 0% strength in wicd network manager, and nothing can actually use the internet

Not sure how to troubleshoot this

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2279
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: Linux kernel is now 4.4

Tue May 17, 2016 3:55 pm

Which distribution are you using, and how did you upgrade? I've not heard of any WiFi regressions before.

Duncb82
Posts: 7
Joined: Tue May 21, 2013 6:22 am

Re: Linux kernel is now 4.4

Tue May 17, 2016 4:38 pm

Raspian Jessie all fully updated, and upgraded using rpi-update

Return to “Advanced users”