Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rpi*-kernel: update to 5.10.92. #34962

Merged
merged 4 commits into from
Feb 1, 2022

Conversation

JamiKettunen
Copy link
Contributor

@JamiKettunen JamiKettunen commented Jan 9, 2022

This enables support for the Raspberry Pi Zero 2 W (adds /boot/bcm2710-rpi-zero-2.dtb) as well as brings the kernels up to the latest stable merge commit on raspberrypi/linux @ rpi-5.10.y.

Testing the changes

  • I tested the changes in this PR: NO (I'd like help here, I don't own any rpis)

[ci skip] since everything already built successfully

@JamiKettunen
Copy link
Contributor Author

JamiKettunen commented Jan 9, 2022

There's 2 ways we could fix rpi2-kernel build:

  1. We disable CONFIG_GCC_PLUGINS
  2. We add gmp-devel libmpc-devel to hostmakedepends, but it doesn't look like any of the other rpi*-kernel packages do this?

Which one do I go for?

I didn't happen to catch this one locally since I just verified /boot/bcm2710-rpi-zero-2.dtb got added to the rpi3-kernel package.

@ahesford
Copy link
Member

ahesford commented Jan 9, 2022

What is the perceived benefit of GCC plugins in the kernel?

@JamiKettunen
Copy link
Contributor Author

What is the perceived benefit of GCC plugins in the kernel?

No idea, I'm certainly in favor of disabling them as they don't appear to be enabled in basically any of the other kernels either.

@Duncaen
Copy link
Member

Duncaen commented Jan 9, 2022

This should be one commit per template, its policy and makes reverts simpler.

Problem with GCC plugins is that they would also be required for building dkms modules and depend on the specific gcc version when building external modules with them iirc.

@JamiKettunen
Copy link
Contributor Author

This should be one commit per template, its policy and makes reverts simpler.

Will fix!

@JamiKettunen JamiKettunen force-pushed the rpi-zero-2-w-support branch 2 times, most recently from 6f13947 to e8959d8 Compare January 9, 2022 19:40
@JamiKettunen
Copy link
Contributor Author

JamiKettunen commented Jan 9, 2022

Updated rpi3-kernel to mention the Zero 2 in short_desc

@marmeladema
Copy link
Contributor

@ahesford the GCC plugins are required to enable certain hardening options: https://www.kernel.org/doc/html/latest/kbuild/gcc-plugins.html

@JamiKettunen JamiKettunen changed the title rpi*-kernel: update to 5.10.90. rpi*-kernel: update to 5.10.92. Jan 21, 2022
@classabbyamp
Copy link
Member

classabbyamp commented Jan 22, 2022

Tested with:

  • 1 B+
  • zero
  • 2 B
  • 3 B
  • zero 2 W

on glibc and musl. all boot but did not do extensive testing. Unfortunately I do not have any rpi 4s so I can't test that one.

on the zero 2 W, there was a message that popped up in dmesg during boot, but it did not seem to cause any issues:

[7.024198] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50

@karlgrose
Copy link
Contributor

karlgrose commented Jan 27, 2022

Tested with a (native!) glibc build for this [1] machine; no issues so far after about an hour running standard apps (Chromium browser, Telegram Desktop chat, Konversation IRC, qterminal). Sound and video (Youtube) seem OK, CPU load does zoom to 2 or more in top while streaming YT in Chromium (probably expected) but otherwise the system seems responsive.

[1]

OS: Void Linux aarch64
Host: Raspberry Pi 4 Model B Rev 1.4
Kernel: 5.10.92_1
Uptime: 1 hour, 36 mins
Packages: 636 (xbps-query)
Shell: bash 5.1.16
Resolution: 1920x1080
DE: Lumina 1.6.2
Theme: gnome [GTK2], Adwaita [GTK3]
Icons: Adwaita [GTK2/3]
Terminal: qterminal
Terminal Font: Monospace 12
CPU: BCM2835 (4) @ 1.500GHz
Memory: 2075MiB / 3793MiB

@leahneukirchen leahneukirchen merged commit 528ac09 into void-linux:master Feb 1, 2022
@JamiKettunen JamiKettunen deleted the rpi-zero-2-w-support branch June 18, 2022 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants