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.
503
questions
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 ...
-2
votes
1
answer
111
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
262
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
55
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
0
answers
613
views
Device Tree for DSA with KSZ9897
I have a custom board with a KSZ9897 switch chip and a LAN7801 upstream. The KSZ9897 is connected to the Compute Module via i2c, and I can see it at 0x5f using i2cdetect. Everything appears to be ...
3
votes
1
answer
490
views
Bug in PHP & Buster? 4x Kernel panic - not syncing: Attempted to kill init! exitcode 0x00000004
I have 2 exact the same Pi's: both are Raspberry Pi Model B Rev 2.
Both were running Raspbian Stretch for years. 4 days ago both Pi's (!!!) had a Kernel Panic after trying to update to php7.4. ...
1
vote
1
answer
512
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 ...
1
vote
0
answers
342
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 &...
8
votes
4
answers
23k
views
Wireguard "Unknown device type" "Protocol not supported"
I recently installed Raspberry Pi OS on my Pi 3b. After some basic configuration and running raspi-config, I installed wireguard using apt and the debian backport repos, according to a tutorial.
I ...
0
votes
1
answer
631
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-...
1
vote
1
answer
492
views
Can't unlock LUKS twofish-xts-plain encrypted HDD after upgrading to Raspbian Stretch
I have an external HDD connected with my Pi 3 running Raspbian Jessie which I had encrypted with LUKS using the cipher twofish-xts-plain. But after upgrading to Raspbian Strech running Linux kernel 4....
1
vote
3
answers
3k
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 ...
1
vote
1
answer
70
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/...
-1
votes
1
answer
2k
views
Error compiling and loading driver on the Raspberry Pi
I bought a temperature sensor with a usb adapter and needed to install a driver for it, but I could not compile the driver provided by the manufacturer.
pi@raspberrypi:~/CH341SER_LINUX $ make
make -...
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
1
answer
153
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 ...
-1
votes
2
answers
673
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=...
1
vote
1
answer
1k
views
Touchscreen LCD USB (HannsG and elo) behaving unexpected on raspi 3
I tried to connect a HannsG HT225HPB 21.5'' touchscreen or an Elo ET1502L to my Raspberry Pi 3. Both connect via HDMI and USB for touch.
Both seem to work at first glance but are not really usable. ...
0
votes
0
answers
355
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
1
answer
961
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 ...
0
votes
0
answers
226
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
157
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
1k
views
USB/Bridge using MAX3421
Please, could someone help me, I am trying to use the module (max3421-hcb) with the raspberry pi 3, but I really don't know how to load this module, with the parameters, like wich GPIO will act as INT ...
0
votes
1
answer
694
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
363
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 ...
1
vote
1
answer
392
views
Trouble adding a gpio device to the device tree
I'm trying to connect an hx711 to GPIO23 and GPIO24 pins on an RPI3 A+, and I need to specify this in the device tree to have the hx711.ko driver be probed. I've been stuck on this problem for some ...
2
votes
0
answers
3k
views
Why I cannot read the temperature / humidity sensor SHT20?
I use a temperature and humidity sensor sht20. According to this link: http://www.sensirion.com/en/products/humidity-temperature/humidity-temperature-sensor-sht2x/ It is compatible with sht21, which ...
0
votes
1
answer
1k
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 ...
1
vote
3
answers
6k
views
Cannot boot Raspberry pi into recovery mode
I am getting an error with my Raspberry Pi on boot:
Kernel panic-not syncing: VFS: unable to mount root fs on unknown-block(179,2)
I have been trying to follow this answer: Kernel panic-not syncing: ...
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
111
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
76
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
1k
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 ...
0
votes
2
answers
2k
views
How to enable console via uart1 in yocto for raspberrypi3 image
I'm using Yocto-dunfell for getting custom my Raspberrypi3 image. Here I want to enable serial-console via uart1. for that I have given change in my files-
local.conf:
ENABLE_UART = "1"
...
10
votes
0
answers
2k
views
Cannot Use SPI frequency above 500 kHz
I am running Arch Linux ARM on a Raspberry Pi 2 Model B, and I am attempting to communicate with a TFT display. I am writing a kernel module to interface with the display using SPI, and it works, but ...
3
votes
1
answer
546
views
No USB with upstream kernel [closed]
I have built a kernel for Raspberry Pi 2 using the latest upstream kernel (version 4.15-rc5):
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
I configured it with ...
0
votes
2
answers
840
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
3
answers
1k
views
GCC version for compiling a loadable kernel module
I am not very familiar with Linux, so may be my question is a little bit foolish.
I would like to compile kernel module without recompiling the kernel (USB Wi-Fi stick driver for MT7106U chip). I ...
9
votes
3
answers
6k
views
How to make Raspberry Pi suspend to RAM?
My application only uses Pi very occassionally and only a few seconds each time. It would be ideal if Pi supports suspend to RAM feature to save maximum energy. (I am thinking of the next step of ...
1
vote
1
answer
1k
views
Problems with compiling drivers for rtl8192cu
I'm trying to use realtek 8188cu module in concurrent mode(both station and AP mode simultaneously). I downloaded the driver source files from here: https://github.com/raspberrypi/linux/tree/...
-1
votes
1
answer
3k
views
raspbian does not boot on QEMU
I am trying to emulate raspbian on windows 10 64 bit. My start.bat is
qemu-system-arm -kernel kernel-qemu-4.4.34-jessie -cpu arm1176 -m 256 -M versatilepb -no-reboot -serial stdio -append "root=/dev/...
1
vote
1
answer
806
views
Kernel Development with Raspberry Pi [closed]
I want to start working and playing with linux kernel. Instead of trying on my own system, I want to do the same on raspberry pi.
I want to compile my own kernel and start working on my first kernel ...
0
votes
0
answers
668
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 ...
-1
votes
1
answer
234
views
Patch a RPI image to get a root shell
I'm trying to reverse engineer an appliance based on RPI2, and I would like to get a root shell on the system.
After dumping the SD I noticed that there's no rootfs partition (it exists but it's ...
2
votes
1
answer
409
views
Kernel Parameters in AArch64
My Raspberry Pi 3B runs fine with the standard installation of ArchLinuxARM-rpi-3-latest.tar.gz. However I cannot set kernel parameters anywhere for a custom TFT. Formerly there was a file cmdline.txt,...
5
votes
1
answer
5k
views
End kernel panic not syncing cannot allocate swiotlb buffer and cannot provide with dma bouncer buffer
I am using raspberry pi 4b after successfully installation of raspbian os i connected the pi with raspberry display (official raspberry pi 7 inch display) then error msg appears as kernel panic cant ...
1
vote
2
answers
1k
views
Raspberry Pi 3 Freezing / Crashing
A project I'm working on uses Raspberry Pi 3 boards to power a display which simply runs chromium in kiosk mode to display a webpage (a web app I've built for this project). Alongside this is a small ...
0
votes
0
answers
572
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 ...