hectorkvs
Posts: 47
Joined: Tue Jan 21, 2020 1:23 pm

Re: Moving Linux Kernel to 5.4

Fri Jun 19, 2020 12:13 pm

PiUser10 wrote:
Fri Jun 19, 2020 12:04 pm
I assume that everyone reporting this issue with Bluetooth has done a recent sudo rpi-update command ?
if so you have installed the latest 5.4 kernel and also a new firmware with faulty builtin hardware Bluetooth support.
Over on the git hub this is documented see issue at https://github.com/Hexxeh/rpi-firmware/issues/227
Running the following command (as detailed in the git hub responses) will keep new kernel and revert to previous firmware

sudo SKIP_KERNEL=1 rpi-update a50c7d5

I have run this and it has fixed the Bluetooth issue on my Pi 4 8GB model.

However RUN THIS AT YOUR OWN RISK.
Thx mate..problem solved :-)

tvjon
Posts: 800
Joined: Mon Jan 07, 2013 9:11 am

Re: Moving Linux Kernel to 5.4

Fri Jun 19, 2020 12:15 pm

Good find!

Works a treat, thank you :)

User avatar
dickon
Posts: 1711
Joined: Sun Dec 09, 2012 3:54 pm
Location: Home, just outside Reading

Re: Moving Linux Kernel to 5.4

Fri Jun 19, 2020 12:19 pm

Interesting. Yes, I have. I had some 'fun' on Wednesday evening attempting to create a working minimalist PiOS64 OS (by using my current Raspbian 32b package lists into a debootstrapped minimal Debian, updating /etc/apt with the PiOS64 version, and dselect-upgrade) which went well, other than the thing wouldn't boot. I got the kernel as far as unpacking the initramfs, then the thing reset. I did another rpi-update, and that seemed to fix it, but vlc bombs when attempting to play any video, and I haven't had a chance to seriously look at it since.

Currently I'm on 198560b99ae3eb70a9f137c7524e14e0315708fb (Jun 6 2020 15:50:32).

Vanfanel
Posts: 459
Joined: Sat Aug 18, 2012 5:58 pm

Re: Moving Linux Kernel to 5.4

Mon Jun 22, 2020 11:03 pm

@dom: I have come back to Rasperry OS (64bit) after a LONG time using my own custom Debian AARCH64 systems.

So, I was surprised that the audio was at last taken to the ARM side too!
I have seen that you talk about the new KMS audio driver here:

viewtopic.php?t=269769

So I have set the full KMS overlay for the Pi4 in config.txt:

Code: Select all

dtoverlay=vc4-kms-v3d-pi4
And I disabled the bcm2835 audio, too.

and my

Code: Select all

/usr/share/alsa/cards/vc4-hdmi.conf
looks exactly like this:

Code: Select all

# Configuration for the VC4-HDMI sound card using software IEC958
# subframe conversion

<confdir:pcm/hdmi.conf>
vc4-hdmi.pcm.hdmi.0 {
	@args [ CARD AES0 AES1 AES2 AES3 ]
	@args.CARD {
		type string
	}
	@args.AES0 {
		type integer
	}
	@args.AES1 {
		type integer
	}
	@args.AES2 {
		type integer
	}
	@args.AES3 {
		type integer
	}
	type iec958
	slave {
		format IEC958_SUBFRAME_LE
		pcm {
			type hooks
			slave.pcm {
				type hw
				card $CARD
				device 0
			}
			hooks.0 {
				type ctl_elems
				hook_args [
				{
					name "IEC958 Playback Default"
					optional true
					lock true
					preserve true
					value [ $AES0 $AES1 $AES2 $AES3 ]
				}
				]
			}
		}
	}
	status [ $AES0 $AES1 $AES2 $AES3 ]
}

# default with plug
vc4-hdmi.pcm.default {
	@args [ CARD ]
	@args.CARD {
		type string
	}
	type plug
	slave.pcm {
		type softvol
		slave.pcm {
			@func concat
			strings [ "hdmi:" $CARD ]
		}
		control {
			name "PCM Playback Volume"
			card $CARD
		}
	}
}

According to

Code: Select all

aplay -L,
I have these audio devices:

Code: Select all

pi@raspberrypi:~ $ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=vc4hdmi
    vc4-hdmi, MAI PCM vc4-hdmi-hifi-0
    Default Audio Device
sysdefault:CARD=vc4hdmi
    vc4-hdmi, MAI PCM vc4-hdmi-hifi-0
    Default Audio Device
hdmi:CARD=vc4hdmi,DEV=0
    vc4-hdmi, MAI PCM vc4-hdmi-hifi-0
    HDMI Audio Output
dmix:CARD=vc4hdmi,DEV=0
    vc4-hdmi, MAI PCM vc4-hdmi-hifi-0
    Direct sample mixing device
dsnoop:CARD=vc4hdmi,DEV=0
    vc4-hdmi, MAI PCM vc4-hdmi-hifi-0
    Direct sample snooping device
hw:CARD=vc4hdmi,DEV=0
    vc4-hdmi, MAI PCM vc4-hdmi-hifi-0
    Direct hardware device without any conversions
plughw:CARD=vc4hdmi,DEV=0
    vc4-hdmi, MAI PCM vc4-hdmi-hifi-0
    Hardware device with all software conversions
default:CARD=vc4hdmi1
    vc4-hdmi1, MAI PCM vc4-hdmi-hifi-0
    Default Audio Device
sysdefault:CARD=vc4hdmi1
    vc4-hdmi1, MAI PCM vc4-hdmi-hifi-0
    Default Audio Device
dmix:CARD=vc4hdmi1,DEV=0
    vc4-hdmi1, MAI PCM vc4-hdmi-hifi-0
    Direct sample mixing device
dsnoop:CARD=vc4hdmi1,DEV=0
    vc4-hdmi1, MAI PCM vc4-hdmi-hifi-0
    Direct sample snooping device
hw:CARD=vc4hdmi1,DEV=0
    vc4-hdmi1, MAI PCM vc4-hdmi-hifi-0
    Direct hardware device without any conversions
plughw:CARD=vc4hdmi1,DEV=0
    vc4-hdmi1, MAI PCM vc4-hdmi-hifi-0
    Hardware device with all software conversions

However, speaker-test remains silent and gives me the middle-finger:

Code: Select all

pi@raspberrypi:~ $ speaker-test 

speaker-test 1.1.8

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Playback open error: -19,No such device

Also, aplay will not come out to play:

Code: Select all

pi@raspberrypi:~ $ aplay file_example_WAV_1MG.wav 
aplay: main:828: audio open error: No such device


I see these in dmesg:

Code: Select all

[  988.227828] vc4_hdmi fef00700.hdmi: ASoC: can't open interface fef00700.hdmi: -19
[ 1126.551342] vc4_hdmi fef00700.hdmi: ASoC: can't open interface fef00700.hdmi: -19
So, is the new KMS HDMI audio device supposed to work in 64bit mode? Or maybe not yet? Thanks!

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

Re: Moving Linux Kernel to 5.4

Tue Jun 23, 2020 9:59 am

Vanfanel wrote:
Mon Jun 22, 2020 11:03 pm
So, is the new KMS HDMI audio device supposed to work in 64bit mode? Or maybe not yet? Thanks!
Should do. Make sure you don't have any additional alsa config files.
I think the desktop control creates them when switching output device.

If you have a "~/.asoundrc" try removing it.

Vanfanel
Posts: 459
Joined: Sat Aug 18, 2012 5:58 pm

Re: Moving Linux Kernel to 5.4

Tue Jun 23, 2020 10:51 am

dom wrote:
Tue Jun 23, 2020 9:59 am
Vanfanel wrote:
Mon Jun 22, 2020 11:03 pm
So, is the new KMS HDMI audio device supposed to work in 64bit mode? Or maybe not yet? Thanks!
Should do. Make sure you don't have any additional alsa config files.
I think the desktop control creates them when switching output device.

If you have a "~/.asoundrc" try removing it.
I don't have a desktop enviroment running. There's no ~/.asounrdc or /etc/asound.conf or similar that I can see.

Also, looking at aplay -L, default device is:

Code: Select all

default:CARD=vc4hdmi
    vc4-hdmi, MAI PCM vc4-hdmi-hifi-0
    Default Audio Device
...So it *should* work, right?

Instead I see:

Code: Select all

pi@raspberrypi:~ $ aplay file_example_WAV_1MG.wav 
aplay: main:828: audio open error: No such device
^That should not happen, because the same aplay has just listed the HDMI device as default, as you have seen...

Since there is no desktop env here (not X server installed, in fact, I removed everythin related to X as soon as I booted the system) there should be no configuration interference.

HiassofT
Posts: 305
Joined: Fri Jun 30, 2017 10:07 pm
Location: Salzburg, Austria
Contact: Website

Re: Moving Linux Kernel to 5.4

Tue Jun 23, 2020 4:28 pm

Vanfanel wrote:
Mon Jun 22, 2020 11:03 pm
I see these in dmesg:

Code: Select all

[  988.227828] vc4_hdmi fef00700.hdmi: ASoC: can't open interface fef00700.hdmi: -19
[ 1126.551342] vc4_hdmi fef00700.hdmi: ASoC: can't open interface fef00700.hdmi: -19
So, is the new KMS HDMI audio device supposed to work in 64bit mode? Or maybe not yet? Thanks!
Make sure the monitor is plugged into HDMI0 and that it correctly reports audio via it's edid.

eg install the edid-decode package and then run

Code: Select all

edid-decode /sys/class/drm/card1-HDMI-A-1/edid
you should see an audio block like this

Code: Select all

  Audio data block
    Linear PCM, max channels 2
      Supported sample rates (kHz): 48 44.1 32
      Supported sample sizes (bits): 24 20 16
The audio devices will always be listed, but if you try to access them and no audio capable monitor is present you'll get the ENODEV/-19 error.

so long,

Hias

Vanfanel
Posts: 459
Joined: Sat Aug 18, 2012 5:58 pm

Re: Moving Linux Kernel to 5.4

Tue Jun 23, 2020 11:42 pm

HiassofT wrote:
Tue Jun 23, 2020 4:28 pm

Make sure the monitor is plugged into HDMI0 and that it correctly reports audio via it's edid.

eg install the edid-decode package and then run

Code: Select all

edid-decode /sys/class/drm/card1-HDMI-A-1/edid
you should see an audio block like this

Code: Select all

  Audio data block
    Linear PCM, max channels 2
      Supported sample rates (kHz): 48 44.1 32
      Supported sample sizes (bits): 24 20 16
The audio devices will always be listed, but if you try to access them and no audio capable monitor is present you'll get the ENODEV/-19 error.

so long,

Hias
That was it. Thanks a lot!! I have been years witing for this new Rpi audio infraestructure!! had mistaken HDMI port 1 and port 2. Now it works :)

@dom: problem solved. Yes, it works in 64bit mode :D

Thanks, both of you.

HiassofT
Posts: 305
Joined: Fri Jun 30, 2017 10:07 pm
Location: Salzburg, Austria
Contact: Website

Re: Moving Linux Kernel to 5.4

Wed Jun 24, 2020 9:57 am

Vanfanel wrote:
Tue Jun 23, 2020 11:42 pm
That was it. Thanks a lot!! I have been years witing for this new Rpi audio infraestructure!! had mistaken HDMI port 1 and port 2. Now it works :)
FYI: audio on the second (HDMI1) port works, too, just make sure you use the vc4hdmi1 card instead of vc4hdmi.

eg

Code: Select all

aplay -D default:CARD=vc4hdmi1 ...
so long,

Hias

User avatar
Narann
Posts: 4
Joined: Tue Jan 13, 2015 9:12 pm
Contact: Website

Re: Moving Linux Kernel to 5.4

Thu Jun 25, 2020 8:38 pm

Hi all!

After a rpi-update on a Rpi 1 B+, I have this:

Code: Select all

[  831.554499] 8<--- cut here ---
[  831.556249] Unable to handle kernel NULL pointer dereference at virtual address 0000008c
[  831.559224] pgd = 3b1f56ba
[  831.560757] [0000008c] *pgd=16e94831, *pte=00000000, *ppte=00000000
[  831.562460] Internal error: Oops: 17 [#1] ARM
[  831.564003] Modules linked in: sha256_generic libsha256 cfg80211 rfkill 8021q garp stp llc raspberrypi_hwmon bcm2835_codec(C) bcm2835_v4l2(C) v4l2_mem2mem bcm2835_isp(C) bcm2835_mmal_vchiq(C) videobuf2_dma_contig videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_common videodev vc_sm_cma(C) mc uio_pdrv_genirq uio fixed ip_tables x_tables ipv6 nf_defrag_ipv6
[  831.572312] CPU: 0 PID: 435 Comm: dhcpcd-run-hook Tainted: G         C        5.4.47+ #1322
[  831.575727] Hardware name: BCM2835
[  831.577499] PC is at trace_raw_output_file_check_and_advance_wb_err+0x48/0x8c
[  831.579374] LR is at filemap_map_pages+0x39c/0x3d0
[  831.581239] pc : [<c013c22c>]    lr : [<c013e064>]    psr: 60000113
[  831.583145] sp : da549e48  ip : da549e58  fp : da549e54
[  831.585049] r10: 00000001  r9 : c0a23028  r8 : da549ec4
[  831.586949] r7 : 00000402  r6 : 00000406  r5 : 00000080  r4 : dab56000
[  831.588887] r3 : 00020837  r2 : 00020836  r1 : 00000000  r0 : dab56000
[  831.590789] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
[  831.592696] Control: 00c5387d  Table: 17b8c008  DAC: 00000055
[  831.594568] Process dhcpcd-run-hook (pid: 435, stack limit = 0xbce22e55)
[  831.596496] Stack: (0xda549e48 to 0xda54a000)
[  831.598400] 9e40:                   00000000 da549e58 c013e064 c013d740 0000007d 00000000
[  831.602176] 9e60: da38d8e0 d81fc1e0 00080034 da38d8e4 0000007d 003d0000 da395390 00000000
[  831.605958] 9e80: 00000000 fc393799 c017c280 c0a23028 00000080 d80f2d80 da549ec4 b6ec2000
[  831.609771] 9ea0: 00000071 00000000 da549f24 da549eb8 c01731f4 c013dcd4 c00135dc c0014890
[  831.613642] 9ec0: c00148a8 d80f2d80 00000054 00100cca 00000073 b6ecc000 d7b8edb8 d7b8edb8
[  831.617662] 9ee0: 00000000 00000000 00000000 00000000 d6ebb330 d91e03bc 00000000 fc393799
[  831.621795] 9f00: da549fb0 d7ba54c0 b6ec2824 d91e0380 80000007 d91e03bc da549f7c da549f28
[  831.626076] 9f20: c0751850 c0172d30 c00148b8 c0014828 c001358c 00000000 c0a23028 00000003
[  831.630570] 9f40: da549f8c da549f50 c00135dc 00000054 c01a2420 c0a28314 00000007 b6ec2824
[  831.635179] 9f60: da549fb0 00c5387d 0003606c 00035d90 da549fac da549f80 c0019dd0 c0751530
[  831.639873] 9f80: da549fac da549f90 c00d90e0 c0013598 b6ec2824 20000010 ffffffff 00c5387d
[  831.644638] 9fa0: 00000000 da549fb0 c0009ee4 c0019d98 01543ba8 00000000 0000006c 00000000
[  831.649418] 9fc0: 0153fb38 000364d8 00036018 00000000 000364d8 0003606c 00035d90 0154a8ec
[  831.654201] 9fe0: 00035ed8 beb111c8 00018474 b6ec2824 20000010 ffffffff 00000000 00000000
[  831.658963] Backtrace: 
[  831.661300] [<c013d734>] (unlock_page) from [<c013e064>] (filemap_map_pages+0x39c/0x3d0)
[  831.665923] Code: e5952008 e3c314ff e3c1160f e58d1000 (e595100c) 
[  831.668460] ---[ end trace e00247edc8e582b1 ]---
[ 3626.887898] 8<--- cut here ---
[ 3626.890390] Unable to handle kernel paging request at virtual address bfd168dc
[ 3626.892664] pgd = f1a7fcb2
[ 3626.894836] [bfd168dc] *pgd=00000000
[ 3626.896973] Internal error: Oops: 80000005 [#2] ARM
[ 3626.899062] Modules linked in: sha256_generic libsha256 cfg80211 rfkill 8021q garp stp llc raspberrypi_hwmon bcm2835_codec(C) bcm2835_v4l2(C) v4l2_mem2mem bcm2835_isp(C) bcm2835_mmal_vchiq(C) videobuf2_dma_contig videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_common videodev vc_sm_cma(C) mc uio_pdrv_genirq uio fixed ip_tables x_tables ipv6 nf_defrag_ipv6
[ 3626.909447] CPU: 0 PID: 720 Comm: dhcpcd-run-hook Tainted: G      D  C        5.4.47+ #1322
[ 3626.913441] Hardware name: BCM2835
[ 3626.915381] PC is at 0xbfd168dc
[ 3626.917256] LR is at walk_stackframe+0x0/0x40
[ 3626.919078] pc : [<bfd168dc>]    lr : [<c0014884>]    psr: 00000093
[ 3626.920962] sp : d9c7ff20  ip : d9c7ff30  fp : d9c7ff2c
[ 3626.922812] r10: 00038778  r9 : 016995ac  r8 : 00c5387d
[ 3626.924614] r7 : 00c5387d  r6 : c001355c  r5 : d9c7ff54  r4 : d9c7ff5c
[ 3626.926417] r3 : d9c80000  r2 : d9c7ff5c  r1 : 00000000  r0 : d9c7ffbc
[ 3626.928210] Flags: nzcv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment user
[ 3626.930040] Control: 00c5387d  Table: 16e40008  DAC: 00000055
[ 3626.931847] Process dhcpcd-run-hook (pid: 720, stack limit = 0x40bfafc7)
[ 3626.933662] Stack: (0xd9c7ff20 to 0xd9c80000)
[ 3626.935496] ff20: d9c7ff4c d9c7ff30 c00148b8 c0014828 c001358c 00000000 c0a23028 00000003
[ 3626.939174] ff40: d9c7ff8c d9c7ff50 c00135dc c0014890 00000000 00000000 00000000 00000000
[ 3626.942887] ff60: d9c7ffb0 c00d90e0 c0009dbc 037a54bf ffffffff 00000001 c0009dbc ffffffff
[ 3626.946619] ff80: d9c7ffac d9c7ff90 c00d90e0 c0013598 b6da0b98 60000010 ffffffff 00c5387d
[ 3626.950412] ffa0: 00000000 d9c7ffb0 c0009dbc c00d9074 bea28628 00000000 000081d6 b6f06970
[ 3626.954398] ffc0: 00000004 00036140 01699834 01699850 bea287f0 016995ac 00038778 000364ec
[ 3626.958622] ffe0: bea28650 bea28618 0001f1c8 b6da0b98 60000010 ffffffff 00000000 00000000
[ 3626.962976] Backtrace: 
[ 3626.965156] [<c001481c>] (unwind_frame) from [<c00148b8>] (walk_stackframe+0x34/0x40)
[ 3626.969595] [<c0014884>] (walk_stackframe) from [<c00135dc>] (return_address+0x50/0x88)
[ 3626.974100]  r6:00000003 r5:c0a23028 r4:00000000 r3:c001358c
[ 3626.976411] [<c001358c>] (return_address) from [<c00d90e0>] (trace_hardirqs_off+0x78/0x13c)
[ 3626.980919]  r6:ffffffff r5:c0009dbc r4:00000001
[ 3626.983165] [<c00d9068>] (trace_hardirqs_off) from [<c0009dbc>] (__und_usr+0x3c/0x70)
[ 3626.987540] Exception stack(0xd9c7ffb0 to 0xd9c7fff8)
[ 3626.989728] ffa0:                                     bea28628 00000000 000081d6 b6f06970
[ 3626.993965] ffc0: 00000004 00036140 01699834 01699850 bea287f0 016995ac 00038778 000364ec
[ 3626.998151] ffe0: bea28650 bea28618 0001f1c8 b6da0b98 60000010 ffffffff
[ 3627.000297]  r7:00c5387d r6:ffffffff r5:60000010 r4:b6da0b98
[ 3627.002403] Code: bad PC value
[ 3627.004433] ---[ end trace e00247edc8e582b2 ]---
With some errors here and there:

Code: Select all

[    6.551706] [vc_sm_connected_init]: start
[    6.561852] vc_vchi_sm_init: failed to open VCHI service (-1)
[    6.561899] [vc_sm_connected_init]: failed to initialize shared memory service
[    6.574140] [vc_sm_connected_init]: end - returning -1

[   40.645102] bcm2835_mmal_vchiq: Failed to open VCHI service connection (status=-1)
Here is my config.txt:

Code: Select all

$ cat /boot/config.txt 
# For more options and information see
# http://rpf.io/configtxt
# 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

dtparam=audio=off
gpu_mem=16
start_x=0
dtparam=spi=off
dtparam=i2c_arm=off
enable_uart=0
arm_freq_min=200
gpu_freq_min=100
sdram_freq_min=200
dtparam=act_led_trigger=none
dtparam=act_led_activelow=off
dtparam=pwr_led_trigger=none
dtparam=pwr_led_activelow=off
Any idea?

EDIT: Seems to be related to this issue.

busywait
Posts: 64
Joined: Sat May 09, 2020 10:48 pm
Location: Southampton, UK

Re: Moving Linux Kernel to 5.4

Tue Jun 30, 2020 7:33 am

Vanfanel wrote:
Tue Jun 23, 2020 11:42 pm
HiassofT wrote:
Tue Jun 23, 2020 4:28 pm

Make sure the monitor is plugged into HDMI0 and that it correctly reports audio via it's edid.

...
That was it. Thanks a lot!! I have been years witing for this new Rpi audio infraestructure!! had mistaken HDMI port 1 and port 2. Now it works :)
Hmm, similar problem for me, but not so easy for me to fix: I have no audio from HDMI when I enable kms in kernel 5.4. The audio worked via the combined "HDMI" option in the sound panel when I booted the fkms kernel. After I changed to the kms version and rebooted I can choose between vc4-hdmi or vc4-hdmi1, but neither will make any noise.

In this case I am sticking to the 32-bit kernel.

Code: Select all

pi@rpi-tv:~ $ uname -a
Linux rpi-tv 5.4.49-v7l+ #1323 SMP Fri Jun 26 14:40:18 BST 2020 armv7l GNU/Linux

Code: Select all

pi@rpi-tv:~ $ speaker-test 
speaker-test 1.1.8
Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Sample format not available for playback: Invalid argument
Setting of hwparams failed: Invalid argument
The hardware is a Pi 4 4GB connected to a TV set through the connector closest to the power supply (known as HDMI 0, vc4-hdmi, or /sys/class/drm/card1-HDMI-A-1 I think).

It is a fresh install of Raspberry Pi OS 32 bit, with updates, and with /boot/config.txt edited to change
dtoverlay=vc4-fkms-v3d
to
dtoverlay=vc4-kms-v3d-pi4

I have deleted .asoundrc from inside the desktop, and it has been recreated.

The output from edid-decode includes these lines

Code: Select all

pi@rpi-tv:~ $ edid-decode /sys/class/drm/card1-HDMI-A-1/edid
EDID version: 1.3
Manufacturer: TSB Model 110 Serial Number 168...
Digital display
Maximum image size: 89 cm x 50 cm
...
Monitor name: TOSHIBA-TV
...
  Audio data block
    Linear PCM, max channels 2
      Supported sample rates (kHz): 48 44.1 32
      Supported sample sizes (bits): 24 20 16
--
    DC_Y444
    Maximum TMDS clock: 225MHz
    Video latency: 95
    Audio latency: 95
...
Basic audio support
...
(The output for card1-HDMI-A-2 says "No header found").

Code: Select all

pi@rpi-tv:~ $ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
default
output
sysdefault:CARD=Headphones
    bcm2835 Headphones, bcm2835 Headphones
    Default Audio Device
dmix:CARD=Headphones,DEV=0
    bcm2835 Headphones, bcm2835 Headphones
    Direct sample mixing device
dsnoop:CARD=Headphones,DEV=0
    bcm2835 Headphones, bcm2835 Headphones
    Direct sample snooping device
hw:CARD=Headphones,DEV=0
    bcm2835 Headphones, bcm2835 Headphones
    Direct hardware device without any conversions
plughw:CARD=Headphones,DEV=0
    bcm2835 Headphones, bcm2835 Headphones
    Hardware device with all software conversions
sysdefault:CARD=vc4hdmi
    vc4-hdmi, MAI PCM vc4-hdmi-hifi-0
    Default Audio Device
front:CARD=vc4hdmi,DEV=0
    vc4-hdmi, MAI PCM vc4-hdmi-hifi-0
    Front speakers
iec958:CARD=vc4hdmi,DEV=0
    vc4-hdmi, MAI PCM vc4-hdmi-hifi-0
    IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=vc4hdmi,DEV=0
    vc4-hdmi, MAI PCM vc4-hdmi-hifi-0
    Direct sample mixing device
dsnoop:CARD=vc4hdmi,DEV=0
    vc4-hdmi, MAI PCM vc4-hdmi-hifi-0
    Direct sample snooping device
hw:CARD=vc4hdmi,DEV=0
    vc4-hdmi, MAI PCM vc4-hdmi-hifi-0
    Direct hardware device without any conversions
plughw:CARD=vc4hdmi,DEV=0
    vc4-hdmi, MAI PCM vc4-hdmi-hifi-0
    Hardware device with all software conversions
sysdefault:CARD=vc4hdmi1
    vc4-hdmi1, MAI PCM vc4-hdmi-hifi-0
    Default Audio Device
front:CARD=vc4hdmi1,DEV=0
    vc4-hdmi1, MAI PCM vc4-hdmi-hifi-0
    Front speakers
iec958:CARD=vc4hdmi1,DEV=0
    vc4-hdmi1, MAI PCM vc4-hdmi-hifi-0
    IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=vc4hdmi1,DEV=0
    vc4-hdmi1, MAI PCM vc4-hdmi-hifi-0
    Direct sample mixing device
dsnoop:CARD=vc4hdmi1,DEV=0
    vc4-hdmi1, MAI PCM vc4-hdmi-hifi-0
    Direct sample snooping device
hw:CARD=vc4hdmi1,DEV=0
    vc4-hdmi1, MAI PCM vc4-hdmi-hifi-0
    Direct hardware device without any conversions
plughw:CARD=vc4hdmi1,DEV=0
    vc4-hdmi1, MAI PCM vc4-hdmi-hifi-0
    Hardware device with all software conversions

chrisy
Posts: 23
Joined: Sat May 25, 2013 7:34 pm

Re: Moving Linux Kernel to 5.4

Mon Jul 06, 2020 9:28 am

I've been using the KMS driver without issue for a while. However, yesterday I was trying to get Stellarium running and this required me to go into raspi-config and enable the OpenGL driver. I reverted the changes to config.txt after this to get back to the KMS driver. I'm not entirely sure what it changed, but it installed some package I didn't have and Stellarium started working.

Since then, the monitor has been going blank on occasion. The easiest way to reproduce this is to open YouTube and hover over a video. Mousing in and out of a video causes this issue. At one point the Pi crashed, and this turned up in the logs:

Code: Select all

v3d fec00000.v3d: MMU error from client L2T (0) at 0xa641000, pte invalid
Anyway, I've reverted back to the fkms driver and all is well again, but it looks like OpenGL and KMS don't get on (and Stellarium doesn't work again with fkms).
Last edited by chrisy on Mon Jul 06, 2020 10:53 am, edited 1 time in total.

PiUser10
Posts: 42
Joined: Mon Dec 30, 2013 9:20 am

Re: Moving Linux Kernel to 5.4

Mon Jul 06, 2020 9:41 am

The error message v3d fec00000.v3d: MMU error from client L2T (0) at 0xa641000, pte invalid has been present on my system since the start of using 5.4 kernel and 64 bit beta OS so I don't think it is related to OpenGL specifically.
Looking at the time stamp on my system it is caused by the desktop starting up or one of its autostart programs.
The KMS V3D module for the Pi 4 works OK (including KMS audio) but the issue with the screen blanking (and sometimes it stays blank)
is caused by the mouse moving into an accelerated video window (although I have had it happen on some normal GUI windows also)
and only appears to occur if the mouse pointer has been hidden and is then redisplayed. Once diaplayed you can move it around the windows
without further blanking until you stop moving it and it disappears again.
It happens in smplayer, mpv and VLC as well as chromium youtube.
All in all however the 64 bit beta OS is a massive step forward with the 5.4 kernel and I can run it as my default daily option as it is very stable.

chrisy
Posts: 23
Joined: Sat May 25, 2013 7:34 pm

Re: Moving Linux Kernel to 5.4

Mon Jul 06, 2020 11:00 am

The KMS V3D module for the Pi 4 works OK (including KMS audio) but the issue with the screen blanking (and sometimes it stays blank)
is caused by the mouse moving into an accelerated video window (although I have had it happen on some normal GUI windows also)
and only appears to occur if the mouse pointer has been hidden and is then redisplayed. Once diaplayed you can move it around the windows
without further blanking until you stop moving it and it disappears again.
Yes, this is exactly what I'm seeing. It's annoying, and my mouse pointer hasn't hidden. It would be nice to see a fix for this. Sounds like it might be a config thing if it's something to do with the pointer?

andrum99
Posts: 1264
Joined: Fri Jul 20, 2012 2:41 pm

Re: Moving Linux Kernel to 5.4

Mon Jul 06, 2020 12:12 pm

chrisy wrote:
Mon Jul 06, 2020 11:00 am
The KMS V3D module for the Pi 4 works OK (including KMS audio) but the issue with the screen blanking (and sometimes it stays blank)
is caused by the mouse moving into an accelerated video window (although I have had it happen on some normal GUI windows also)
and only appears to occur if the mouse pointer has been hidden and is then redisplayed. Once diaplayed you can move it around the windows
without further blanking until you stop moving it and it disappears again.
Yes, this is exactly what I'm seeing. It's annoying, and my mouse pointer hasn't hidden. It would be nice to see a fix for this. Sounds like it might be a config thing if it's something to do with the pointer?
KMS on Pi 4 is still in beta, so such minor issue are to be expected at this stage.

Squuiid
Posts: 3
Joined: Fri Dec 27, 2019 11:12 am

Re: Moving Linux Kernel to 5.4

Mon Jul 06, 2020 11:06 pm

YES! :D This latest kernel fixed my HDMI handshake problem! I now get an image on screen with an Epson 5020UBe where previously it was impossible to do so.
Thank you.

chrisy
Posts: 23
Joined: Sat May 25, 2013 7:34 pm

Re: Moving Linux Kernel to 5.4

Tue Jul 07, 2020 12:13 pm

andrum99 wrote:
Mon Jul 06, 2020 12:12 pm
chrisy wrote:
Mon Jul 06, 2020 11:00 am
The KMS V3D module for the Pi 4 works OK (including KMS audio) but the issue with the screen blanking (and sometimes it stays blank)
is caused by the mouse moving into an accelerated video window (although I have had it happen on some normal GUI windows also)
and only appears to occur if the mouse pointer has been hidden and is then redisplayed. Once diaplayed you can move it around the windows
without further blanking until you stop moving it and it disappears again.
Yes, this is exactly what I'm seeing. It's annoying, and my mouse pointer hasn't hidden. It would be nice to see a fix for this. Sounds like it might be a config thing if it's something to do with the pointer?
KMS on Pi 4 is still in beta, so such minor issue are to be expected at this stage.
I'd argue it's not *that* minor, as it makes it close to unusable. In any case, if it isn't reported it won't be fixed, and I'd not seen it reported.

andrum99
Posts: 1264
Joined: Fri Jul 20, 2012 2:41 pm

Re: Moving Linux Kernel to 5.4

Tue Jul 07, 2020 7:36 pm

chrisy wrote:
Tue Jul 07, 2020 12:13 pm
andrum99 wrote:
Mon Jul 06, 2020 12:12 pm
chrisy wrote:
Mon Jul 06, 2020 11:00 am


Yes, this is exactly what I'm seeing. It's annoying, and my mouse pointer hasn't hidden. It would be nice to see a fix for this. Sounds like it might be a config thing if it's something to do with the pointer?
KMS on Pi 4 is still in beta, so such minor issue are to be expected at this stage.
I'd argue it's not *that* minor, as it makes it close to unusable. In any case, if it isn't reported it won't be fixed, and I'd not seen it reported.
Minor or not, it's still in beta so you'll just have to wait. I wasn't questioning your reporting of it - I was just making you aware.

Bluestang
Posts: 35
Joined: Sat May 30, 2020 8:43 pm

Re: Moving Linux Kernel to 5.4

Mon Jul 13, 2020 4:43 pm

@HiassofT

I just reviewed the latest 5.4 kernel commit and this caught my attention:

Code: Select all

 This allows HBR audio passthough on a Pi 4 (e.g. DTS-HD and TrueHD)

A patch to alsa-lib is also required as it doesn't format status bits correctly for HBR.
LibreELEC/LibreELEC.tv@c70f34d

With this, and a suitable alsa vc4_hdmi.conf file, an app like kodi can output HBR passthrough.
Does this change the code in the vc4-hdmi.conf file that was posted on the first page of this thread?

Also, do we need new asound.rc files?

HiassofT
Posts: 305
Joined: Fri Jun 30, 2017 10:07 pm
Location: Salzburg, Austria
Contact: Website

Re: Moving Linux Kernel to 5.4

Tue Jul 14, 2020 8:59 am

Bluestang wrote:
Mon Jul 13, 2020 4:43 pm
@HiassofT

I just reviewed the latest 5.4 kernel commit and this caught my attention:

Code: Select all

 This allows HBR audio passthough on a Pi 4 (e.g. DTS-HD and TrueHD)

A patch to alsa-lib is also required as it doesn't format status bits correctly for HBR.
LibreELEC/LibreELEC.tv@c70f34d

With this, and a suitable alsa vc4_hdmi.conf file, an app like kodi can output HBR passthrough.
Does this change the code in the vc4-hdmi.conf file that was posted on the first page of this thread?

Also, do we need new asound.rc files?
Yes, vc4-hdmi.conf needs to be updated, too to get working HD audio passthrough. Our current WIP version is here https://github.com/LibreELEC/LibreELEC. ... -hdmi.conf

Note that the updated vc4-hdmi.conf only works with the patched alsa-lib. I sent the changes upstream yesterday https://mailman.alsa-project.org/piperm ... 70731.html , things may change (which could also affect vc4-hdmi.conf) and it'll probably take a while until the changes find a way into the RPi OS deb packages.

For Kodi you may also need popcornmix's channel mapping kernel patches from here https://github.com/popcornmix/linux/com ... i/rpi4-kms

It's early days but so far HD audio passthrough seems to work fine in our experimental LibreELEC builds.

so long,

Hias

Bluestang
Posts: 35
Joined: Sat May 30, 2020 8:43 pm

Re: Moving Linux Kernel to 5.4

Tue Jul 14, 2020 3:23 pm

HiassofT wrote:
Tue Jul 14, 2020 8:59 am
Bluestang wrote:
Mon Jul 13, 2020 4:43 pm
@HiassofT

I just reviewed the latest 5.4 kernel commit and this caught my attention:

Code: Select all

 This allows HBR audio passthough on a Pi 4 (e.g. DTS-HD and TrueHD)

A patch to alsa-lib is also required as it doesn't format status bits correctly for HBR.
LibreELEC/LibreELEC.tv@c70f34d

With this, and a suitable alsa vc4_hdmi.conf file, an app like kodi can output HBR passthrough.
Does this change the code in the vc4-hdmi.conf file that was posted on the first page of this thread?

Also, do we need new asound.rc files?
Yes, vc4-hdmi.conf needs to be updated, too to get working HD audio passthrough. Our current WIP version is here https://github.com/LibreELEC/LibreELEC. ... -hdmi.conf

Note that the updated vc4-hdmi.conf only works with the patched alsa-lib. I sent the changes upstream yesterday https://mailman.alsa-project.org/piperm ... 70731.html , things may change (which could also affect vc4-hdmi.conf) and it'll probably take a while until the changes find a way into the RPi OS deb packages.

For Kodi you may also need popcornmix's channel mapping kernel patches from here https://github.com/popcornmix/linux/com ... i/rpi4-kms

It's early days but so far HD audio passthrough seems to work fine in our experimental LibreELEC builds.

so long,

Hias

I did the above, (recompiled alsa-libs from the github master - your chgs were uploaded a few hrs ago), and I get this error in Rasbian:

Code: Select all

ALSA lib pcm_iec958.c:636:(_snd_pcm_iec958_open) Unknown field hdmi_mode
aplay: main:828: audio open error: Invalid argument
Am I missing something?

HiassofT
Posts: 305
Joined: Fri Jun 30, 2017 10:07 pm
Location: Salzburg, Austria
Contact: Website

Re: Moving Linux Kernel to 5.4

Tue Jul 14, 2020 4:56 pm

Bluestang wrote:
Tue Jul 14, 2020 3:23 pm
I did the above, (recompiled alsa-libs from the github master - your chgs were uploaded a few hrs ago), and I get this error in Rasbian:

Code: Select all

ALSA lib pcm_iec958.c:636:(_snd_pcm_iec958_open) Unknown field hdmi_mode
aplay: main:828: audio open error: Invalid argument
Am I missing something?
It seems you still have the old alsa-lib installed - it doesn't know about hdmi_mode yet.

so long,

Hias

Bluestang
Posts: 35
Joined: Sat May 30, 2020 8:43 pm

Re: Moving Linux Kernel to 5.4

Wed Jul 15, 2020 2:06 am

HiassofT wrote:
Tue Jul 14, 2020 4:56 pm
Bluestang wrote:
Tue Jul 14, 2020 3:23 pm
I did the above, (recompiled alsa-libs from the github master - your chgs were uploaded a few hrs ago), and I get this error in Rasbian:

Code: Select all

ALSA lib pcm_iec958.c:636:(_snd_pcm_iec958_open) Unknown field hdmi_mode
aplay: main:828: audio open error: Invalid argument
Am I missing something?
It seems you still have the old alsa-lib installed - it doesn't know about hdmi_mode yet.

so long,

Hias
Thanks for the clue, I got it working on Rasbian after having a second look at the makefile for the alsa-lib repo.

User avatar
DougieLawson
Posts: 39813
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Moving Linux Kernel to 5.4

Wed Jul 15, 2020 9:42 am

Got an odd one with an old RPi1B running 5.4.51+

Code: Select all

[23509.060258] ------------[ cut here ]------------
[23509.061968] WARNING: CPU: 0 PID: 50 at net/wireless/sme.c:756 __cfg80211_connect_result+0x410/0x4c0 [cfg80211]
[23509.062605] Modules linked in: snd_soc_wm5102 rpcsec_gss_krb5 snd_soc_wm_adsp snd_soc_arizona gpio_arizona arizona_micsupp snd_soc_wm8804_i2c snd_soc_wm8804 regmap_i2c arizona_ldo1 arizona_spi regmap_spi 8021q garp stp llc brcmfmac brcmutil sha256_generic libsha256 cfg80211 rfkill raspberrypi_hwmon snd_soc_rpi_cirrus snd_soc_bcm2835_i2s i2c_bcm2835 regmap_mmio bcm2835_codec(C) snd_soc_core bcm2835_isp(C) bcm2835_v4l2(C) v4l2_mem2mem snd_compress bcm2835_mmal_vchiq(C) videobuf2_vmalloc snd_pcm_dmaengine snd_bcm2835(C) videobuf2_dma_contig videobuf2_memops videobuf2_v4l2 videobuf2_common spi_bcm2835 snd_pcm snd_timer snd videodev vc_sm_cma(C) mc uio_pdrv_genirq fixed uio nf_log_ipv6 ip6t_REJECT nf_reject_ipv6 xt_hl ip6_tables ip6t_rt nf_log_ipv4 nf_log_common ipt_REJECT nf_reject_ipv4 xt_LOG nft_limit xt_limit xt_addrtype xt_tcpudp xt_conntrack nft_compat nft_counter nf_conntrack_netbios_ns nf_conntrack_broadcast nf_nat_ftp nf_nat nf_conntrack_ftp nf_conntrack nf_defrag_ipv4 i2c_dev
[23509.063016]  nf_tables nfnetlink ip_tables x_tables ipv6 nf_defrag_ipv6
[23509.063509] CPU: 0 PID: 50 Comm: kworker/u2:1 Tainted: G        WC        5.4.51+ #1325
[23509.063523] Hardware name: BCM2835
[23509.065191] Workqueue: cfg80211 cfg80211_event_work [cfg80211]
[23509.065802] Backtrace:
[23509.065865] [<c0014c9c>] (dump_backtrace) from [<c0014f8c>] (show_stack+0x20/0x24)
[23509.065894]  r6:00000009 r5:00000000 r4:00000000 r3:9066507b
[23509.065944] [<c0014f6c>] (show_stack) from [<c073391c>] (dump_stack+0x20/0x28)
[23509.065988] [<c07338fc>] (dump_stack) from [<c0023808>] (__warn+0xdc/0x100)
[23509.066016] [<c002372c>] (__warn) from [<c00238dc>] (warn_slowpath_fmt+0xb0/0xc0)
[23509.066041]  r9:bf54afd8 r8:000002f4 r7:bf5213e8 r6:00000009 r5:c0a25028 r4:00000000
[23509.067710] [<c0023830>] (warn_slowpath_fmt) from [<bf5213e8>] (__cfg80211_connect_result+0x410/0x4c0 [cfg80211])
[23509.068376]  r9:00000100 r8:d6163e64 r7:c0a25028 r6:00000000 r5:d20a760c r4:d35d3004
[23509.072078] [<bf520fd8>] (__cfg80211_connect_result [cfg80211]) from [<bf4f1840>] (cfg80211_process_wdev_events+0x138/0x1c8 [cfg80211])
[23509.072650]  r8:d35d3084 r7:d35d3024 r6:d35d3004 r5:80000013 r4:d20a7600
[23509.075765] [<bf4f1708>] (cfg80211_process_wdev_events [cfg80211]) from [<bf4f1910>] (cfg80211_process_rdev_events+0x40/0x98 [cfg80211])
[23509.076876]  r10:d2f900d8 r9:00000000 r8:d34b3200 r7:00000000 r6:00000040 r5:d2f90420
[23509.076893]  r4:d35d3004
[23509.080139] [<bf4f18d0>] (cfg80211_process_rdev_events [cfg80211]) from [<bf4eb1b8>] (cfg80211_event_work+0x24/0x2c [cfg80211])
[23509.081372]  r5:d6cabc00 r4:d2f900d4
[23509.083080] [<bf4eb194>] (cfg80211_event_work [cfg80211]) from [<c003de04>] (process_one_work+0x134/0x3f4)
[23509.083375]  r4:d2f900d4 r3:bf4eb194
[23509.083425] [<c003dcd0>] (process_one_work) from [<c003e418>] (worker_thread+0x34/0x540)
[23509.083453]  r10:d740d200 r9:00000088 r8:c0a35840 r7:d740d214 r6:d6cabc14 r5:d740d200
[23509.083468]  r4:d6cabc00
[23509.083501] [<c003e3e4>] (worker_thread) from [<c0043c40>] (kthread+0x11c/0x154)
[23509.083528]  r10:d6133018 r9:d74ebe88 r8:c003e3e4 r7:d6cabc00 r6:00000000 r5:d6d896a0
[23509.083545]  r4:d6133000
[23509.083573] [<c0043b24>] (kthread) from [<c00090ac>] (ret_from_fork+0x14/0x28)
[23509.083589] Exception stack(0xd6163fb0 to 0xd6163ff8)
[23509.083607] 3fa0:                                     00000000 00000000 00000000 00000000
[23509.083631] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[23509.083649] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[23509.083672]  r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:c0043b24
[23509.083688]  r4:d6d896a0 r3:ffffffff
[23509.083707] ---[ end trace 96501f2cffeb34cd ]---
The WiFi on that one stops dead. Can't get it back with rmmod/modprobe commands.

The dongle is an offical RPi BRCM dongle, which wasn't appearing on a lsusb command (and pulling it/re-inserting it causes a reboot due to the inrush current).

Bus 001 Device 004: ID 0a5c:bd1e Broadcom Corp. BCM43143 802.11bgn (1x1) Wireless Adapter

dmesg from the reboot has

Code: Select all

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.51+ (dom@buildbot) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1325 Mon Jul 13 13:35:44 BST 2020
[    0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] OF: fdt: Machine model: Raspberry Pi Model B Rev 2
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Reserved memory: created CMA memory pool at 0x17c00000, size 64 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] On node 0 totalpages: 114688
[    0.000000]   Normal zone: 896 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 114688 pages, LIFO batch:31
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 113792
[    0.000000] Kernel command line: coherent_pool=1M snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_headphones=1 bcm2708_fb.fbwidth=1824 bcm2708_fb.fbheight=984 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000  dwc_otg.lpm_enable=0 console=tty1 root=PARTUUID=1ed7e7e8-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 377108K/458752K available (7474K kernel code, 694K rwdata, 2384K rodata, 480K init, 799K bss, 16108K reserved, 65536K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] ftrace: allocating 26381 entries in 52 pages
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x2a8/0x4c4 with crng_init=0
[    0.000022] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483647500ns
[    0.000085] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns
[    0.000201] bcm2835: system timer (irq = 27)
[    0.000831] Console: colour dummy device 80x30
[    0.001392] printk: console [tty1] enabled
[    0.001486] Calibrating delay loop... 697.95 BogoMIPS (lpj=3489792)
[    0.050401] pid_max: default: 32768 minimum: 301
[    0.050906] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.050977] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.052617] CPU: Testing write buffer coherency: ok
[    0.054342] Setting up static identity map for 0x8200 - 0x8238
[    0.055474] devtmpfs: initialized
[    0.068541] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[    0.069055] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.069143] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.077962] pinctrl core: initialized pinctrl subsystem
[    0.079930] NET: Registered protocol family 16
[    0.084797] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[    0.092654] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[    0.092733] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.092938] Serial: AMBA PL011 UART driver
[    0.097108] bcm2835-mbox 2000b880.mailbox: mailbox enabled
[    0.120841] raspberrypi-firmware soc:firmware: Attached to firmware from 2020-07-13 13:57, variant start
[    0.130868] raspberrypi-firmware soc:firmware: Firmware hash is adcebbdb7b415c623931e80795ba3bae68dcc4fa
[    0.192668] bcm2835-dma 20007000.dma: DMA legacy API manager, dmachans=0x1
[    0.195933] SCSI subsystem initialized
[    0.196279] usbcore: registered new interface driver usbfs
[    0.196459] usbcore: registered new interface driver hub
[    0.196746] usbcore: registered new device driver usb
[    0.199554] clocksource: Switched to clocksource timer
[    1.458864] VFS: Disk quotas dquot_6.6.0
[    1.459056] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.459445] FS-Cache: Loaded
[    1.460010] CacheFiles: Loaded
[    1.480430] thermal_sys: Registered thermal governor 'step_wise'
[    1.481132] NET: Registered protocol family 2
[    1.482661] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    1.482779] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    1.482908] TCP bind hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    1.483036] TCP: Hash tables configured (established 4096 bind 4096)
[    1.483249] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    1.483326] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    1.483806] NET: Registered protocol family 1
[    1.485211] RPC: Registered named UNIX socket transport module.
[    1.485279] RPC: Registered udp transport module.
[    1.485315] RPC: Registered tcp transport module.
[    1.485348] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.486959] hw perfevents: no irqs for PMU, sampling events not supported
[    1.487088] hw perfevents: enabled with armv6_1176 PMU driver, 3 counters available
[    1.492210] Initialise system trusted keyrings
[    1.492825] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    1.507911] FS-Cache: Netfs 'nfs' registered for caching
[    1.509527] NFS: Registering the id_resolver key type
[    1.509761] Key type id_resolver registered
[    1.509803] Key type id_legacy registered
[    1.509864] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.512069] Key type asymmetric registered
[    1.512142] Asymmetric key parser 'x509' registered
[    1.512268] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    1.512324] io scheduler mq-deadline registered
[    1.512361] io scheduler kyber registered
[    1.515969] bcm2708_fb soc:fb: FB found 1 display(s)
[    1.579335] Console: switching to colour frame buffer device 228x61
[    1.613209] bcm2708_fb soc:fb: Registered framebuffer for display 0, size 1824x984
[    1.622980] bcm2835-rng 20104000.rng: hwrng registered
[    1.623896] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB)
[    1.625838] vc-sm: Videocore shared memory driver
[    1.627064] gpiomem-bcm2835 20200000.gpiomem: Initialised: Registers at 0x20200000
[    1.652438] brd: module loaded
[    1.670726] loop: module loaded
[    1.673338] Loading iSCSI transport class v2.0-870.
[    1.674643] usbcore: registered new interface driver smsc95xx
[    1.674943] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    2.404158] Core Release: 2.80a
[    2.404358] Setting default values for core params
[    2.404595] Finished setting default values for core params
[    2.509566] random: fast init done
[    2.605854] Using Buffer DMA mode
[    2.606009] Periodic Transfer Interrupt Enhancement - disabled
[    2.606212] Multiprocessor Interrupt Enhancement - disabled
[    2.606406] OTG VER PARAM: 0, OTG VER FLAG: 0
[    2.606678] Dedicated Tx FIFOs mode
[    2.607767] WARN::dwc_otg_hcd_init:1074: FIQ DMA bounce buffers: virt = d7d14000 dma = 0x57d14000 len=9024
[    2.608181] FIQ FSM acceleration enabled for :
               Non-periodic Split Transactions
               Periodic Split Transactions
               High-Speed Isochronous Endpoints
               Interrupt/Control Split Transaction hack enabled
[    2.608943] dwc_otg: Microframe scheduler enabled
[    2.609189] WARN::hcd_init_fiq:457: FIQ on core 0
[    2.618674] WARN::hcd_init_fiq:458: FIQ ASM at c05500b4 length 36
[    2.627607] WARN::hcd_init_fiq:497: MPHI regs_base at dc810000
[    2.636909] dwc_otg 20980000.usb: DWC OTG Controller
[    2.645873] dwc_otg 20980000.usb: new USB bus registered, assigned bus number 1
[    2.655274] dwc_otg 20980000.usb: irq 56, io mem 0x00000000
[    2.664185] Init: Port Power? op_state=1
[    2.673127] Init: Power Port (0)
[    2.682600] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[    2.691572] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.700809] usb usb1: Product: DWC OTG Controller
[    2.709771] usb usb1: Manufacturer: Linux 5.4.51+ dwc_otg_hcd
[    2.719014] usb usb1: SerialNumber: 20980000.usb
[    2.729428] hub 1-0:1.0: USB hub found
[    2.738951] hub 1-0:1.0: 1 port detected
[    2.749366] dwc_otg: FIQ enabled
[    2.749386] dwc_otg: NAK holdoff enabled
[    2.749400] dwc_otg: FIQ split-transaction FSM enabled
[    2.749427] Module dwc_common_port init
[    2.750254] usbcore: registered new interface driver usb-storage
[    2.760003] mousedev: PS/2 mouse device common for all mice
[    2.771793] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[    2.781348] bcm2835-cpufreq: min=700000 max=700000
[    2.792053] sdhci: Secure Digital Host Controller Interface driver
[    2.801470] sdhci: Copyright(c) Pierre Ossman
[    2.811843] sdhost-bcm2835 20202000.mmc: could not get clk, deferring probe
[    2.821774] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.831840] ledtrig-cpu: registered to indicate activity on CPUs
[    2.841143] hidraw: raw HID events driver (C) Jiri Kosina
[    2.851205] usbcore: registered new interface driver usbhid
[    2.860188] usbhid: USB HID core driver
[    2.871028] vchiq: vchiq_init_state: slot_zero = (ptrval)
[    2.882723] [vc_sm_connected_init]: start
[    2.896242] [vc_sm_connected_init]: end - returning 0
[    2.908416] Initializing XFRM netlink socket
[    2.917789] NET: Registered protocol family 17
[    2.926745] Key type dns_resolver registered
[    2.937228] registered taskstats version 1
[    2.945874] Loading compiled-in X.509 certificates
[    2.973323] uart-pl011 20201000.serial: cts_event_workaround enabled
[    2.982329] 20201000.serial: ttyAMA0 at MMIO 0x20201000 (irq = 81, base_baud = 0) is a PL011 rev2
[    2.994605] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[    3.006650] Indeed it is in host mode hprt0 = 00021501
[    3.076150] sdhost: log_buf @ (ptrval) (57d13000)
[    3.135697] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[    3.171429] of_cfs_init
[    3.180915] of_cfs_init: OK
[    3.193179] Waiting for root device PARTUUID=1ed7e7e8-02...
[    3.237789] mmc0: host does not support reading read-only switch, assuming write-enable
[    3.246996] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    3.256868] Indeed it is in host mode hprt0 = 00001101
[    3.327516] mmc0: new high speed SDHC card at address 59b4
[    3.338840] mmcblk0: mmc0:59b4 00000 7.35 GiB
[    3.352449]  mmcblk0: p1 p2
[    3.395743] EXT4-fs (mmcblk0p2): mounted filesystem without journal. Opts: (null)
[    3.405729] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    3.425522] devtmpfs: mounted
[    3.442918] Freeing unused kernel memory: 480K
[    3.452359] This architecture does not have kernel memory protection.
[    3.461421] Run /sbin/init as init process
[    3.500368] usb 1-1: New USB device found, idVendor=0424, idProduct=9514, bcdDevice= 2.00
[    3.510234] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.524137] hub 1-1:1.0: USB hub found
[    3.535087] hub 1-1:1.0: 5 ports detected
[    3.869717] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    4.010409] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00, bcdDevice= 2.00
[    4.020281] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    4.035314] smsc95xx v1.0.6
[    4.140242] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-20980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:93:06:91
[    4.249755] usb 1-1.2: new high-speed USB device number 4 using dwc_otg
[    4.394128] usb 1-1.2: New USB device found, idVendor=0a5c, idProduct=bd1e, bcdDevice= 0.01
[    4.404472] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    4.414307] usb 1-1.2: Product: Remote Download Wireless Adapter
[    4.424103] usb 1-1.2: Manufacturer: Broadcom
[    4.434089] usb 1-1.2: SerialNumber: 000000000001
[    4.566785] systemd[1]: System time before build time, advancing clock.
[    4.783824] NET: Registered protocol family 10
[    4.796932] Segment Routing with IPv6
[    4.884589] systemd[1]: systemd 241 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
[    4.908233] systemd[1]: Detected architecture arm.
[    4.983689] systemd[1]: Set hostname to <ranger>.
[    5.790032] random: systemd-crontab: uninitialized urandom read (24 bytes read)
[    9.732071] random: systemd: uninitialized urandom read (16 bytes read)
[   10.056473] systemd[1]: /lib/systemd/system/lighttpd.service:6: PIDFile= references path below legacy directory /var/run/, updating /var/run/lighttpd.pid → /run/lighttpd.pid; please update the unit file accordingly.
[   10.395653] random: systemd: uninitialized urandom read (16 bytes read)
[   10.414687] systemd[1]: Created slice system-postfix.slice.
[   10.440884] random: systemd: uninitialized urandom read (16 bytes read)
[   10.454758] systemd[1]: Listening on fsck to fsckd communication Socket.
[   10.483067] systemd[1]: Created slice User and Session Slice.
[   10.511006] systemd[1]: Listening on Journal Socket (/dev/log).
[   10.539753] systemd[1]: Created slice system-getty.slice.
[   10.625624] systemd[1]: Listening on RPCbind Server Activation Socket.
[   10.652486] systemd[1]: Reached target Slices.
[   10.681719] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[   10.762737] systemd[1]: Condition check resulted in Journal Audit Socket being skipped.
[   12.195437] i2c /dev entries driver
[   41.701415] random: crng init done
[   41.701450] random: 6 urandom warning(s) missed due to ratelimiting
[   55.743137] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[   56.485101] systemd-journald[77]: Received request to flush runtime journal from PID 1
[   59.607237] mc: Linux media interface: v0.10
[   59.713875] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[   59.717456] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[   59.717497] [vc_sm_connected_init]: start
[   59.778105] [vc_sm_connected_init]: installed successfully
[   59.859420] videodev: Linux video capture interface: v2.00
[   60.017987] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[   60.021747] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[   60.040650] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[   60.059869] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned.
[   60.072163] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[   60.113926] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[   60.115401] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13
[   60.139818] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14
[   60.140767] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15
[   60.144283] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16
[   60.144348] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[   60.144391] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[   60.144424] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[   60.144454] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[   60.145795] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp
[   60.193267] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[   60.203150] bcm2835_audio bcm2835_audio: card created with 4 channels
[   60.275443] bcm2835_audio bcm2835_audio: card created with 4 channels
[   60.301443] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[   60.301578] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[   60.340410] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[   60.340486] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[   60.376965] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[   60.377056] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[   61.046351] snd-rpi-cirrus soc:sound: ASoC: failed to init link WM5102: -517
[   65.133355] smsc95xx 1-1.1:1.0 enxb827eb930691: renamed from eth0
[   65.394502] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[   65.984140] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[   66.414789] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43143 for chip BCM43143/2
[   66.415178] usbcore: registered new interface driver brcmfmac
[   66.417959] snd-rpi-cirrus soc:sound: ASoC: failed to init link WM5102: -517
[   67.881342] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43143 for chip BCM43143/2
[   67.881585] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[   67.882568] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43143/2 wl0: Apr  3 2014 04:43:32 version 6.10.198.66 (r467479) FWID 01-32bd010e
[   72.851743] usb 1-1.2 wlxd47bb07a1fa2: renamed from wlan0
[   73.507263] arizona spi0.0: Failed to get mclk1: -2
[   73.507308] arizona spi0.0: Failed to get mclk2: -2
[   73.560598] arizona spi0.0: Failed to request DCVDD: -517
[   76.427471] 8021q: 802.1Q VLAN Support v1.8
[   76.813923] ieee80211 phy0: brcmf_inetaddr_changed: fail to get arp ip table err:-52
[   76.872027] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
[   76.914123] ieee80211 phy0: brcmf_inetaddr_changed: fail to get arp ip table err:-52
[   76.918505] ieee80211 phy0: brcmf_inetaddr_changed: fail to get arp ip table err:-52
[   77.037385] Adding 102396k swap on /var/swap.  Priority:-2 extents:10 across:153408k SSFS
[   77.898129] wm8804 1-003b: revision E
[   77.899498] snd-rpi-cirrus soc:sound: ASoC: failed to init link WM5102: -517
[   77.901692] arizona spi0.0: Failed to get mclk1: -2
[   77.901741] arizona spi0.0: Failed to get mclk2: -2
[   77.902761] LDO1: supplied by RPi-Cirrus 1v8
[   77.945881] arizona spi0.0: WM5102 revision C
[   77.980128] debugfs: File ':soc:spi@7e204000:wm5102@0' in directory 'domains' already present!
[   77.988662] Adding alias for supply MICVDD,(null) -> MICVDD,spi0.0
[   78.010333] Adding alias for supply MICVDD,(null) -> MICVDD,spi0.0
[   78.010364] Adding alias for supply DBVDD2,(null) -> DBVDD2,spi0.0
[   78.010381] Adding alias for supply DBVDD3,(null) -> DBVDD3,spi0.0
[   78.010396] Adding alias for supply CPVDD,(null) -> CPVDD,spi0.0
[   78.010409] Adding alias for supply SPKVDDL,(null) -> SPKVDDL,spi0.0
[   78.010426] Adding alias for supply SPKVDDR,(null) -> SPKVDDR,spi0.0
[   78.011869] snd-rpi-cirrus soc:sound: ASoC: failed to init link WM5102: -517
[   78.753212] MICVDD: supplied by RPi-Cirrus 1v8
[   78.756100] snd-rpi-cirrus soc:sound: ASoC: failed to init link WM5102: -517
[   78.801435] snd-rpi-cirrus soc:sound: ASoC: failed to init link WM5102: -517
[   80.657782] smsc95xx 1-1.1:1.0 enxb827eb930691: hardware isn't capable of remote wakeup
[   81.665461] IPv6: ADDRCONF(NETDEV_CHANGE): wlxd47bb07a1fa2: link becomes ready
[   81.708181] snd-rpi-cirrus soc:sound: wm5102-aif1 <-> 20203000.i2s mapping ok
[   81.724106] snd-rpi-cirrus soc:sound: wm8804-spdif <-> wm5102-aif2 mapping ok
[   82.379835] smsc95xx 1-1.1:1.0 enxb827eb930691: link up, 100Mbps, full-duplex, lpa 0x4DE1
[   84.312231] ieee80211 phy0: brcmf_inetaddr_changed: fail to get arp ip table err:-52
[   90.766377] ICMPv6: process `dhcpcd' is using deprecated sysctl (syscall) net.ipv6.neigh.enxb827eb930691.retrans_time - use net.ipv6.neigh.enxb827eb930691.retrans_time_ms instead
[  154.217774] nf_conntrack: default automatic helper assignment has been turned off for security reasons and CT-based  firewall rule not found. Use the iptables CT target to attach helpers instead.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All fake doctors are on my foes list.

alanbork
Posts: 93
Joined: Thu Apr 23, 2020 11:18 pm

Re: Moving Linux Kernel to 5.4

Wed Jul 15, 2020 3:50 pm

no video out on PI4 with 5.4.51-v7l+ #1325 SMP Mon Jul 13 13:47:17 BST 2020 armv7l GNU/Linux

I just tried rpi-update (as of 7/13) and I'm having problems with no output over HDMI. turns out it's an under voltage problem (not a big enough power supply) - I guess the power demands of the new firmware/kernel are just a bit higher and so what was marginal before is just not enough any longer. before rpi-update i would always have video but with the lightening bolt warning, after rpi-update I often don't get any video at all or it comes and goes intermittently. Interestingly, the HDMI link is still up and I can detect the display, it just doesn't get any video signal:

root@raspberrypi:~# tvservice -n
device_name=SNY-SONY_TV

root@raspberrypi:~# tvservice -m cea
Group CEA has 7 modes:
mode 1: 640x480 @ 60Hz 4:3, clock:25MHz progressive
mode 2: 720x480 @ 60Hz 4:3, clock:27MHz progressive
mode 3: 720x480 @ 60Hz 16:9, clock:27MHz progressive
(prefer) mode 4: 1280x720 @ 60Hz 16:9, clock:74MHz progressive
(native) mode 5: 1920x1080 @ 60Hz 16:9, clock:74MHz interlaced
mode 6: 720x480 @ 60Hz 4:3, clock:27MHz x2 interlaced
mode 7: 720x480 @ 60Hz 16:9, clock:27MHz x2 interlaced

but alternating between tvservice -o and -p repeatedly doesn't give any output on screen. I just checked the same tv/hdmi cable combo on my pizero and it's fine.

config.txt:

[pi4]
dtoverlay=vc4-fkms-v3d
max_framebuffers=1
hdmi_force_hotplug=1
hdmi_group=1
hdmi_mode=4

dmesg doesn't hint at any issues

[ 4.582683] vc4-drm gpu: bound fe600000.firmwarekms (ops vc4_fkms_ops [vc4])
[ 4.582707] checking generic (3e8f6000 2d1800) vs hw (0 ffffffffffffffff)
[ 4.582721] fb0: switching to vc4drmfb from simple
[ 4.583327] Console: switching to colour dummy device 80x30
[ 4.583557] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 4.583569] [drm] No driver support for vblank timestamp query.
[ 4.583581] [drm] Setting vblank_disable_immediate to false because get_vblank_timestamp == NULL
[ 4.584188] [drm] Initialized vc4 0.0.0 20140616 for gpu on minor 0
[ 4.713562] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 4.825308] Console: switching to colour frame buffer device 160x45
[ 4.837655] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 4.846462] vc4-drm gpu: fb0: vc4drmfb frame buffer device
[ 4.847557] [drm] Initialized v3d 1.0.0 20180419 for fec00000.v3d on minor 1
Last edited by alanbork on Thu Jul 16, 2020 5:44 pm, edited 1 time in total.

Return to “Advanced users”