Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [kernel]

The kernel is the central component of the operating system and manages hardware, process scheduling, file systems, virtual memory paging, inter-process and network communication, etc.

Filter by
Sorted by
Tagged with
1 vote
1 answer
200 views

Linux headers missing from a custom kernel built through cross-compilation

Helo, I have followed the instructions given at https://www.raspberrypi.org/documentation/linux/kernel/building.md to build a custom kernel. (I have cross-compiled it on an x86 box.) The custom ...
1 vote
1 answer
189 views

Should the lxpanel Updater be used for the kernel and bootloader?

TL;DR: As of this writing, the lxpanel Updater applet somehow only updates the kernel modules without changing the system release. I want to know why, and point out that apt resolves issues. Backstory:...
0 votes
0 answers
9 views

"Invalid module format" when running a cross-compiled linux kernel module

I'm trying to cross compile the ad7192 linux driver for a raspberry pi 4 running the latest 64 bit raspberry pi OS(kernel 6.6.20). pi@raspberrypi:~/projects$ uname -a Linux raspberrypi 6.6.20+rpt-rpi-...
0 votes
1 answer
1k views

Raspberry Pi Zero W, berryboot would not boot

I am having difficulty installing berryboot on my pi zero. I followed countless guides and none seem to work. most guides tell me to download berryboot from here however the site does not have a ...
2 votes
1 answer
753 views

Issues running two PL2303 USB to Serial converters on a Raspberry Pi Zero W

I'm having a bit of a problem building a little network-connected UPS monitor. I have two USB to Serial adapters of the pl2303 kind. Latest Raspbian and I'm running them off a tiny powered USB hub ...
-1 votes
1 answer
275 views

Ubuntu Server 20.04 on Raspberry Pi 4 error: "kernel: ieee80211 phy0: brcmf_cfg80211_get_station: GET STA INFO failed, -52" How to fix?

I am running Ubuntu Server 20.04 on a Raspberry Pi 4. In my system logs I am getting the followng error: kernel: ieee80211 phy0: brcmf_cfg80211_get_station: GET STA INFO failed, -52 What does this ...
7 votes
1 answer
33k views

End Kernel panic - not syncing: Attempted to kill init

I have a problem when starting my Raspberry Pi (Rasberry Pi 3 Model B). Everything worked fine. After the last reboot I've got this error. Any help would be appreciated.
0 votes
1 answer
80 views

Kernel in use does not match headers after manual update

Goal: configuring my RPi 4 to act as a bridge/router between the cafe wifi downstairs and my private network while also using Pi-hole for my local network. Effectively, my wlan0 connects to the cafe (...
12 votes
3 answers
26k views

How to build custom OS for Raspberry pi from scratch?

I am new to kernel and embedded Linux. I have recently bought a Raspberry Pi and booted it using the Raspbian. I was fascinated by the Pi, to learn more on Embedded I have decided to make an home ...
0 votes
0 answers
27 views

How to find IRQ numbers on Pi5?

I want to write a custom PWM kernel module, I want to write a handler which is called when the PWM interrupt is triggered. What IRQ number do I use when attaching the handler?
0 votes
1 answer
86 views

Detect eject by host when using g_mass_storage and dwc2

how can I detect on the Pi when my mass storage device was ejected by the host? I am using a Raspberry Pi 4 as a mass storage device with the dwc2 module. I am "inserting" the mass storage ...
1 vote
1 answer
399 views

/dev/i2c is not showing Raspberry Pi4 running on Android

I am using AOSP android 11 in the RPi4. I have enabled the i2c in config.txt using the param dtparam=i2c_arm=on. The i2c is showing in the /sys/bus/i2c/devices/i2c-1 but /dev/i2c is not listing in the ...
0 votes
0 answers
11 views

Initiating camera capture from kernel module

I'm using global shutter cameras, is there a way to initiate a camera capture from within a kernel module? In particular from within an interrupt handler triggered by a GPIO?
0 votes
2 answers
35 views

MAX31586 configuraiton using overlay

I want to read three MAX31586s using a Raspberry pi 3B. Two are connected on the spi0 and I can configure the maxtherm on config.txt to work. For the third one, maxtherm doesn't work with spi1, at the ...
5 votes
1 answer
2k views

How do I add an i2c device to the device tree?

I am trying to add an mpu 9250 to the device tree of my RPi 3 A+ so that my custom driver's probe function will be called. I have followed this documentation about the Raspberry Pi device tree and ...
0 votes
0 answers
24 views

e4crypt Operation not supported?

I am running Raspbian GNU/Linux 11 with 6.1.21+ kernel. I am trying to use EXT4 encryption with it, as such: sudo tune2fs -O encrypt /dev/mmcblk0p3 sudo mount /dev/mmcblk0p3 /mnt sudo mkdir /mnt/enc ...
0 votes
1 answer
123 views

BME280 via DTOverlay Fails, But using 100% python query works!

BME280 via DTOverlay Fails, But using 100% python query works! Enable DTOverLay for BME280 in /boot/config.txt...** dtparam=i2c_arm=on dtoverlay=i2c-sensor,bme280,addr=0x77 # i2cdetect -y 1 0 1 ...
1 vote
1 answer
533 views

Stuck on Rainbow Screen after kernel upgrade on CentOS7

I ran 'yum update' on my Raspberry Pi3 running Centos7, and now it will not boot. Both LED's are solid (no flashing) and it does not get past the 'Rainbow Screen'. The following packages were ...
0 votes
1 answer
825 views

How is spidev and the spi-bcm2835 module related?

Removing either one deletes the SPI devices from /dev/ What's the difference between the two modules and how do they relate?
1 vote
1 answer
1k views

Failed to start Load Kernel Modules for installing Ubuntu 18.04 on Raspberry 4

I tried to install Ubuntu 18.04 on Pi4. I followed the link from ubuntu for pi. After inserting the SD card with Ubuntu image, the error appeared after few lines with [FAILED] Failed to start Load ...
4 votes
5 answers
1k views

Raspberry Pi 3b+ - Turning off power LED from /boot/config.txt no longer works with kernal 5.15.56-v7+

I successfully turned off all my LEDs on my Raspberry Pi 3B+ according to this guide, by adding these lines in the /boot/config.txt: [all] # Turn off Power LED dtparam=pwr_led_trigger=none dtparam=...
2 votes
1 answer
670 views

Raspbian compile single kernel module gfs2

I'm trying my best to get GFS2 mounted on top of a dual-primary DRDB /dev/drdb0 volume on Raspbian, but I'm hitting an issue. The DRBD volume has a working stonith/fencing cluster setup using ...
0 votes
0 answers
33 views

How to build rpi 4 linux kernel,can't find target "bcm2711_defconfig"?

There is rpi linux kernel: https://github.com/raspberrypi/linux as https://www.raspberrypi.com/documentation/computers/linux_kernel.html said,should use cd linux KERNEL=kernel7l make ...
4 votes
2 answers
424 views

Kernel/Firmware as Debian package

It says on the official site that "the kernel and firmware are installed as a Debian package, and so will also get updates when using [apt-get upgrade]" I run apt-get update / apt-get dist-upgrade ...
0 votes
0 answers
41 views

Learn "rust raspberrypi os tutorials" got error "rust-objcopy:no file or folder",make error 127

I am learning https://github.com/rust-embedded/rust-raspberrypi-OS-tutorials by an new ubuntu 22.04 in virtualbox 1 install some tools:gcc,make,curl... 2 follow the readme said,install docker and &...
0 votes
0 answers
106 views

Using an i2C OLED display with lgpio and a kernel newer than 5.11

I'm on Ubuntu 23.10 on a RPI 4 and the kernel used here is not compatible with RPI.GPIO because -- as far as I understand -- RPI.GPIO cannot see if multiple processes are trying to use the same pins. ...
0 votes
0 answers
37 views

Kernel Driver Problems

Background I have a KVM that works with a custom Gaming PC, the last generation of Intel 16-inch MacBook Pro, a Pi4 B 8GB and an empty port for whatever I can think of next. The wireless in my house ...
0 votes
2 answers
428 views

Unable to locate package raspberrypi-kernel-headers [closed]

Running on a Raspberry Pi 4 Model B, Raspberry Pi OS 64 Lite Error: $ sudo apt-get install raspberrypi-kernel-headers Reading package lists... Done Building dependency tree... Done Reading state ...
0 votes
0 answers
739 views

Pi 3B (without +) regularly losing Ethernet connection (smsc95xx)

I have a problem with some of my PIs losing Ethernet connection. This happens between every few days to a month. After the Ethernet connection is lost, it does not come back up. Besides the Ethernet ...
0 votes
1 answer
50 views

How to Access corrupted Raspberry Pi SD card using Ethernet Connection

I have Raspberry PI with Corrupted SD card, showing Kernel Panic Message, is there any way i can access it without removing SD card from SD card SLOT, raspberry pi is connected with Ethernet, which is ...
0 votes
0 answers
96 views

Ubuntu 20.04 Raspberry Pi error "vc_sm_cma: module verification failed: signature and/or required key missing - tainting kernel" How to fix?

I am running Ubuntu Server 20.04 on Raspberry Pi 4. In my /var/log/kern.log file I am getting the following messages: vc_sm_cma: module verification failed: signature and/or required key missing - ...
0 votes
0 answers
61 views

HCIUART not working after Kernel Upgrade

For some experiments with BLE I did manually a kernel upgrade of a Raspberry Pi 3B+ by using (example; I tried a few versions of the official GitHub repository): https://github.com/raspberrypi/linux/...
0 votes
0 answers
116 views

How to solve "E: Sub-process /usr/bin/dpkg returned an error code (1)"?

I am working on a Raspberry Pi 3 with Ubuntu. When I try to execute the following command: sudo apt install raspberrypi-kernel-headers I receive the following error: Paketlisten werden gelesen... ...
1 vote
1 answer
144 views

Can an older kernel version be loaded

The background is, we have 2 Raspberry Pi 3b boards, one in a fixed station and the second in a moveable station that can be any distance from 1m to 70m apart. The fixed station is connected to a TP-...
1 vote
3 answers
4k views

Raspberry Pi kernel configuration for USB mouse and keyboard

I've been trying cross compile kernel using this guide. http://elinux.org/Rpi_kernel_compilation#2._Cross_compiling_from_Linux. However, all my kernel doesn't support USB mouse and keyboard. In the ...
7 votes
2 answers
6k views

raspberry pi 4B no /dev/spidev0.0

As it says in the title my raspberry pi 4B is missing /dev/spidev0.0 I'm trying to use an adxl372 accelerometer with a raspberry pi 4B. I built a kernel with industrial io drivers and the proper ...
0 votes
0 answers
625 views

Kernel and header Version not the same

So i wanted to build the driver for my wifi adapter for my raspberry pi 400: https://github.com/morrownr/88x2bu-20210702 And i did everything what was said and then got the error: Your kernel files ...
0 votes
0 answers
76 views

make: *** [Makefile:30: modules] Error 2 while installing seeed-linux-usbdisp

So I was trying to use WIO Terminal as a small display for my raspberry pi 4. And I was following the official setup from here. And during the making of the display driver I'm encountering an error. ...
3 votes
1 answer
4k views

How to boot from a different kernel based on RPI version?

Background: I successfully compiled kernel versions 5.4.y and 5.6.y from source. It turns out I have some keyboard related problems with v5.6.y on my RPI4, so I used v5.4.y and it works fine. However,...
1 vote
1 answer
3k views

Switching between kernel versions in raspberry pi 4

My rpi4 is currently loading kernel 6.1.14-v7l+ at boot, while I have more installed: $ ls /lib/modules 5.15.84+ 5.15.84-v7+ 5.15.84-v7l+ 5.15.84-v8+ 6.1.14+ 6.1.14-v7+ 6.1.14-v7l+ 6.1.14-v8+ ...
3 votes
1 answer
347 views

Uninterrupted, endless SPI transfer - is it possible?

I wrote a linux driver for SPI protocol so RaspberryPi could communicate with my device that's using serial data transfer (the device has clock input and data output). It almost works, the problem is ...
2 votes
4 answers
5k views

Linux modules mismatch version

I have a very unusual condition, perhaps a partial update or unknown condition. #>uname -a Linux sip02 4.14.30-v7+ #1102 SMP Mon Mar 26 16:45:49 BST 2018 armv7l GNU/Linux #>uname -r 4.14.30-v7+...
5 votes
0 answers
3k views

Why doesn't extract-vmlinux work with Raspbian's /boot/kernel*.img?

To monitor if a reboot is necessary, I wanted to compare the version of /boot/kernel*img against the version of the running kernel. To get the kernel version of a compressed linux kernel image (...
2 votes
1 answer
501 views

Which blacklist.conf file version should I use to block the loading of the nouveau module?

I want to block the loading of the nouveau kernel module but in my /usr/lib/modprobe.d directory I have 2 blacklist.conf files: blacklist_linux-raspi_5.15.0-1023-raspi.conf blacklist_linux-raspi_5.15....
3 votes
2 answers
1k views

Why does `apt install linux-headers-generic` install old headers for the newest stable kernel?

I can boot a vanilla pi-4 with kernel8.img (Feb 15, 2023) to release 5.15.84-v8+ ... the pi-4 runs admirably. # ls -ltr /boot/*.img -rwxr-xr-x 1 root root 8194604 Feb 15 18:02 /boot/kernel8.img # ...
18 votes
7 answers
62k views

How to change the default governor?

I want to change the default governor on my pi from ondemand to performance. Is there a way of doing this?
8 votes
5 answers
12k views

How to use the perf utility on raspbian?

I'd like to use the perf tool on my 2016-02-09 Raspbian Jessie operating system. For that, I have installed the linux-tools package (which contains perf). The kernel version in use on that image is 4....
5 votes
2 answers
7k views

Cross-compile x86-64 code on Raspberry Pi 2

I'm doing experiments regarding compilation of the Linux kernel on various platforms, but mainly on the RPi and on x86-64 machines. There's no shortage to the links on Google describing how to compile ...
2 votes
2 answers
912 views

Compiling linux kernel from source with external module

So, actually I am using Raspberry Pi with OS version Stretch and kernel version 4.14.98-v7+. I need to add kernel module for Wi-Fi module I use from this repo: https://github.com/LairdCP/Sterling-60-...
0 votes
1 answer
1k views

Building kernel for raspberry pi 4 b on a host machine(ubuntu 18.04)

I am new to linux and I really need your help. I am working on project for my end of studies internship : controlling sensors and displaying the result on an LCD screen. For that I will use Raspberry ...

1
2 3 4 5
11