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.
504
questions
0
votes
1
answer
61
views
Only 1 PWM pin working when controlling via sysfs
I’m using sysfs to control my rpi5’s pwm andI’m having an issue where only one of my pwm pins is outputting a value (The pin that is working is gpio 18/physical pin 12/pwm2). In the pinout.xyz page, ...
2
votes
3
answers
237
views
Setting internal pull ups from the command line
I’m learning how to control the gpio via the Linux kernel and have been working with inputs (specifically switches.) Recently I've been exploring pull up resistors. I’m wondering how I can initiate ...
0
votes
1
answer
87
views
Gpio chips via the linux kernel
I recently used the Linux kernel to control the gpio pins of my raspberry pi 5. In doing so, I noticed that I didn’t need to specify the specific gpio chip that I wanted to initiate. Due to the new ...
-1
votes
1
answer
35
views
Problem trying to build 32bit kernel with Pi OS Lite 32 on Pi4B hardware
I'm experimental to make some modification that request to rebuild the kernel, and I'm using Pi4B with Pi OS Lite 32bit. After get the kernel source (https://github.com/raspberrypi/linux/releases/tag/...
1
vote
2
answers
39
views
Document history?
I'm new here, and looking for where can I find some older version of the official document on raspberrypi.com, or where to get the document history?
Specifically, for this document, at around May of ...
1
vote
0
answers
39
views
When trying to unload i2c-bcm2835 module dynamically in raspberry pi I'm always getting the "rmmod: ERROR: Module i2c_bcm2835 is in use"
I made some changes in the i2c_bcm2835.c file and now I want to dynamically load this module, i2c-bcm2835.ko which I got from below,
obj-m += i2c-bcm2835.o
all:
make -C /lib/modules/$(shell uname -...
0
votes
1
answer
28
views
#include files for https://www.kernel.org/doc/html/v4.14/driver-api/spi.html Pi5 C/C++ development
Referring to https://www.kernel.org/doc/html/v4.14/driver-api/spi.html
Writing code to use the SPI API's on a Pi5(RP1). The spec shows the basic Structs for each SPI API. Those structs contain ...
0
votes
0
answers
40
views
Manjaro runs into disk problems: Pi problem or SD card problem?
I have a Raspberry Pi 3 B v2 running Manjaro with a Nextcloud server. The Nextcloud data directory (and pretty much only that) lies on an external hard disk attached by USB, nearly everything else (...
0
votes
0
answers
15
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
351
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 (...
0
votes
0
answers
37
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
0
answers
18
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
0
answers
35
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
0
answers
84
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 ...
0
votes
0
answers
60
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
124
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
67
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
640
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
1
answer
52
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 ...
-1
votes
1
answer
414
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 ...
0
votes
0
answers
153
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... ...
0
votes
2
answers
39
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 ...
1
vote
1
answer
221
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-...
0
votes
0
answers
691
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
87
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.
...
1
vote
1
answer
4k
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
435
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
1
answer
639
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
# ...
-2
votes
1
answer
126
views
Unable to 'make' basic kernel module
I'm trying to write a basic kernel module for my Raspberry Pi V4 Model B.
I tried to follow the steps at puddleofcode.com and How compile a loadable kernel module without recompiling kernel.
obj-m := ...
3
votes
0
answers
311
views
Improving file system performance on emulated Raspberry Pi
I am emulating a Raspberry Pi 3B running the latest Raspberry Pi OS Lite on qemu-system-arch64 but the file I/O speed is woefully slow.
This is my QEMU command, for starting my virtual machine.
sudo ...
1
vote
0
answers
58
views
No FIQ.h on Raspberry PI3B+
I was exploring the FQI routine for ARM processors. I noticed that most Linux kernels provide a fiq.h header file yet my RPi does not seem to have it. Using find does not return anything. My Linux ...
1
vote
1
answer
658
views
Hardware reference manual for ethernet mac in bcm2711
I recently bought a RPi4 model B for learning the Linux device drivers particularly the Ethernet MAC. I was looking for a documentation, something similar to this one which is for AM335x from TI, but ...
4
votes
5
answers
2k
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=...
1
vote
0
answers
385
views
On Raspberry Pi 4 with Ubuntu 22.04 don't work ioctl
I have Raspberry Pi 4 (aarch64 Cortex-A72) with OS Ubuntu 22.04 LTS 64-bit installed. I try read frame from webcam.
When I run this code:
if (ioctl(fd, VIDIOC_DQBUF, &buf) < 0) {
std::cout &...
1
vote
1
answer
207
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:...
1
vote
1
answer
72
views
Error after simple packages update of raspbian bulleyes: /etc/kernel/postinst.d/apt-auto-removal: 15: mv: not found
After did as usually commands sudo apt update and sudo apt upgrade I am facing the following issue:
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 5.10.103+ /boot/kernel.img
/etc/kernel/...
0
votes
1
answer
1k
views
Direct Access RPI-4 GPIO Interrupt
I am working on the RPI-CM4 board with raspbian buster OS.
I am building an application to get interrupt events from the GPIO pin, fluctuating its state @20usec.
I have tried the following things...
...
0
votes
0
answers
389
views
Kali Linux end Kernel Panic exitcode=0x0000000b
when I start my Raspberry Pi 4 with 4GB Ram comes the following:
{1.174936} ---{ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000000 }---
Can anyone help me?
Thank you in ...
0
votes
0
answers
235
views
Building the Kernel error
I was following the steps defined here
https://www.raspberrypi.com/documentation/computers/linux_kernel.html#updating-your-kernel
and when executing this command, I get the next errors:
pi@...
0
votes
0
answers
173
views
sysfs blocks gpio pins after one minute from restart
I am using Raspberry pi 4b with Linux raspberrypi 5.10.63-v7l+. I am writing simple userspace program for control one GPIO by ioctl() (in my case GPIO 13 for example). However program responses: ...
-1
votes
2
answers
785
views
Executing sh script on (first) startup using systemd.run causes black screen/shutdown
I'd like to execute a shell script for some pre-configuration tasks on the first boot. I found systemd.run like this in the cmdline.txt on the boot partition:
console=serial0,115200 console=tty1 root=...
0
votes
1
answer
761
views
CM4 USB connection issues
We have rolled our own board for the CM4 and the problem occours when connecting an UMTS stick (Huawei E3531 HiLink) to USB. The CM4 starts to disconnect and reconnect the stick continuously.
This ...
0
votes
0
answers
22
views
Not booting after shutdown [duplicate]
We are putting rpis in one of our products and we have a few dozens of units already in use. We currently observe a very annoying problem - whenever it shuts down or is issued reboot it won't boot ...
2
votes
1
answer
393
views
Delay booting devices or booting the kernel
BLUF: I'd like to see if there's a solid way to delay the boot-up of the kernel to keep a Pi from sucking up a lot of juice out of the gate, or the USB bus to delay the devices' boot-up until after ...
0
votes
1
answer
2k
views
Kernel can't load modules on Raspberry Pi 3B+
I have a Raspberry Pi 3B+ that boots from its SD card but reads its root filesystem from an external hard drive connected by USB. Everything has been working well since I set that up until I tried to ...
0
votes
1
answer
1k
views
Ubuntu: upgraded kernel is not selected in the next boot
My Raspberry Pi 4 was originally loaded with Ubuntu 21.04, but after yesterday's release of 21.10, I upgraded using the do-release-upgrade command.
Among the other upgraded packages, there was a new ...
-1
votes
1
answer
124
views
What are the reasons for kernel taint on OpenWRT 21.02 fresh install on Raspberry Pi 4?
I'm currently running a stock build of OpenWRT 21.02, on a fresh install in Raspberry Pi 4 and I'm getting a tainted kernel error 1024.
Anyone else experiencing this and any idea what may be causing ...
0
votes
1
answer
2k
views
Compile RPi 3B+ Kernel 5.10 with preempt_rt patch
I'd like to change the default RPi 3B+ kernel to use the version 5.10 with the rt_preempt patch. To accomplish this, I'm trying to follow this guide and the official Raspberry guide, adapting some ...
0
votes
0
answers
82
views
Kernel not updating with atp-get update/upgrade - Ubuntu 21.04 - TFTP boot NFS root
I am gradually getting a Pi 4 cluster up and running, and have hit an issue I have not been able to resolve with google. It is my understanding of the Ubuntu boot process that is lacking really.
I ...