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
0 votes
0 answers
26 views

Raspberry Pi 3B QEMU doesn't boot but without an error message

I am trying to boot a Raspberry Pi 3B in QEMU using Manjaro ARM and a custom kernel (forked from mainline). The problem is that it doesn't show any error, it just stops printing new messages. The last ...
  • 1
0 votes
1 answer
31 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 ...
0 votes
0 answers
32 views

embeded CM3+ with UI application freezing up

System information OS: Custom build linux with Yocto (version Dunfell) GPU: VideoCoreIV on a RaspberryPi CM3+ Kernel: Linux some-hostname 4.19.126-v7 #1 SMP Tue Apr 5 15:43:00 UTC 2022 armv7l GNU/...
2 votes
2 answers
166 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
33 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 &...
  • 111
1 vote
1 answer
51 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:...
  • 11
0 votes
0 answers
20 views

Wifi Direct: Intermittent Issue with Wifi Device

I'm working on making a "Wifi Direct" RPi device (Raspberry Pi 4). Generally, if I run wpa_cli p2p_group_add, it creates the device p2p-wlan0-0 which shows up in ifconfig. However, about 1 ...
  • 101
0 votes
0 answers
38 views

spi driver fails to load sometimes

I am getting an error when I try to load a driver for a spi device, but only about 50% of the time. I was hoping all I would have to do is hook up the devices reset pin, but I'm not sure that does ...
0 votes
0 answers
27 views

Install custom kernel(musl)

I have cross compiled custom kernel with ARCH=arm64 CROSS_COMPILE=aarch64-linux-musl- argument, virtualization support(kvm, xen) and somehow hardened(selinux, tomoyo, apparmor) now i want to install ...
0 votes
0 answers
35 views

Raspberry Pi Zero W libcamera kernel error

I want to use Rpi Zero W to send the live video stream using libcamera-video as described on the Rpi documentation page. However, after ~5-10 min camera stream breaks and kernel error pops up: ...
  • 123
0 votes
0 answers
77 views

Problems with three USB cameras using OpenCV

I am currently working on a project with a Raspberry PI 3 b+. The idea is to film a surface with 3 USB cameras to locate objects. To test if my setup works, I wanted to stream their content to three ...
1 vote
1 answer
41 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
294 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
159 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 ...
  • 1
0 votes
1 answer
42 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 ...
0 votes
0 answers
89 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
26 views

Building all kernel modules make the right ko file for KS8851 but not when make separately

I am trying to build the KS8851 spi module, when i use make -j4 -C linux ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- modules the KS8851_spi.ko and KS8851_common.ko are successfully built. But when I ...
0 votes
0 answers
78 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: ...
0 votes
1 answer
87 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 ...
-1 votes
2 answers
157 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=...
  • 157
0 votes
1 answer
225 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 ...
0 votes
0 answers
23 views

Kernel configure custom module

I am trying to load a custom/modified module to kernel using this. I modified driver/misc/c2port module source code and add it to .config file(checked also with menuconfig) # # C2PORT # ...
2 votes
1 answer
127 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 ...
  • 21
0 votes
0 answers
23 views

How I can configure the pins for the linux's kernel mx35lfxge4ab driver, so I can use the pins offered by rpi?

As I can see linux kernel has a driver for mx35lfxge4ab Flash NAND SPI chip: https://github.com/torvalds/linux/blob/master/drivers/mtd/nand/spi/macronix.c Furthermore, I have a device that also uses ...
0 votes
1 answer
425 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
0 answers
22 views

Hello World Kernel does not load if I change the defaul load address(kernel_address)

I am trying to learn systems programming. I have create a simple kernel, which prints Hello World to the UART on Raspberry Pi 4 Model B. Source code can be found here. It works perfectly when kernel ...
0 votes
1 answer
446 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 ...
  • 101
-1 votes
1 answer
94 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
903 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 ...
  • 3
0 votes
0 answers
51 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 ...
0 votes
1 answer
440 views

Can't install packages anymore because of raspberrypi-kernel failure: bad dkms conf file

I somehow messed something up with my Raspbian; it's a fairly new install on a RPi 3B+. When I run sudo apt update and the sudo apt upgrade I get this error: Reading package lists... Done Building ...
  • 111
0 votes
2 answers
208 views

SPI not getting enabled in Raspberry Pi 4 with custom-built Linux kernel

I have built Linux Kernel 5.10.36-v8 using Buildroot and using it into my Raspberry Pi 4B for the past few weeks. I recently wanted to enable SPI ports on the Raspberry Pi and followed the ...
0 votes
1 answer
397 views

Kernel panic when using apt on RPi Zero, RPi OS Buster

I’m getting ’kernel panic’ when I try to use apt (or apt-get) to install a package or update/upgrade; I’m using a Raspberry Zero W with the latest version of Raspberry Pi OS available on their website ...
2 votes
2 answers
2k 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 ...
1 vote
3 answers
1k views

Can I use the mainline kernel in my rasp? if not, why?

I noticed that when we compile a new kernel following the official documentation we use the linux fork from the raspberry foundation. Could I use the mainline kernel maintained by linus? Or is there ...
0 votes
0 answers
184 views

Incorrect kernel header downloaded

I need to install a tool in Raspberry pi 3B+ that needs kernel version 4.14. To install the tool, I need to install some kernel patches and need the headers for the installed kernel. On running uname ...
  • 13
0 votes
1 answer
406 views

How to disable kernel upgrade on Ubuntu Server 21 64 Bit on Raspberry Pi 4b?

How can I disable kernel upgrades on a fresh installation of Ubuntu Server 21 64-bit OS for arm64 architectures on a Raspberry Pi 4b with 4gb? Based on this source, I tried: sudo apt-mark hold 5.11.0-...
  • 151
0 votes
1 answer
90 views

RPi 4 wrote 23GB of Log Files “urb status -32”

Raspberry Pi 4 with Raspbian 10 and kernel 4.19.71-rt24-v7l+ kern.log 12G syslog 6.6G sylog.1 4.5G The log files are filled with usb 1-1.2: urb status -32. I just removed the log files yesterday and ...
  • 101
0 votes
0 answers
222 views

How to extract aarch64 vmlinuz gzip image?

I am trying to PXE boot Ubuntu 20.04 aarch64 on the pi 4b but I am stuck at the point where I need to extract the kernel image vmlinuz-5.4.0-1028-raspi. I tried to zcat and pipe it out but I ended up ...
  • 1
2 votes
3 answers
465 views

syslog and kern.log filling with: rc rc0: IR event FIFO is full!

I have a Pi that has recently developed a habit of maxing the SD card with syslog messages (somewhere in the hundreds per second) of the message: "Date/Time user kernel: [ 2257.432445] rc rc0: IR ...
  • 105
0 votes
1 answer
4k views

The following signatures couldn't be verified because the public key is not available / Resolving raspberrypi-kernel failed: Name or service not known

I would like to virtualize debian bullseye for raspberry on top of my jetson nano using qemu and kvm because it is necessary to install this repo : https://www.hackster.io/stanton/smart-snoring-...
  • 101
0 votes
1 answer
762 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 ...
's user avatar
0 votes
1 answer
196 views

How to update/change the kernel without removing the SD card?

I have seen posts and tutorials dealing with updating the kernel, such as this one, but they all expect you to remove the SD card, rewrite it outside with a card reader and then plug it back in. Is it ...
2 votes
1 answer
1k views

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

Raspberry Pi 4 8GB Ubuntu 20.04.2 LTS Before this happened, I was able to run a bunch of Docker containers without an issue. However, my Pi suddenly stopped working (wasn't able to SSH into it, wasn'...
3 votes
0 answers
203 views

How to write a Kernel module using SPI properly?

I have no experience writing kernel modules. I build some examples with gpio interrupts and they worked prety well. Now I want to use SPI from my kernel module and I will explain why I need it. I am ...
1 vote
1 answer
293 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?
  • 111
4 votes
0 answers
680 views

raspi ubuntu 20 - apt-get update problem - linux firmware / linux-raspi / linux-image-raspi

Hy my raspi has this fstab: UUID=7d298733-8450-4adb-b654-6de49954db5c / btrfs defaults 0 0 UUID=AD5E-0725 /boot/firmware vfat defaults 0 1 Then the ...
3 votes
1 answer
2k views

Disable USB 3 (use ehci instead of xhci) on Raspberry pi 4

I'm trying to disable USB3 entirely on my raspberry pi 4 running Ubuntu server but I can't find a way to do it. Some things that I've tried are: Blacklisting xhci - doesn't work because it's a ...
  • 133
1 vote
1 answer
519 views

RPi 4B 4GB: Excessive Shut Down time using the GUI shutdown

I have 5 - 4B-4GB's and 1-8GB systems. One of the 4GB systems is experiencing an excessive shutdown (power off) time of 4.5 minutes. All the other systems take about 15-20 seconds, all my systems ...

1
2 3 4 5
10