The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
2
votes
1answer
15 views

kernel types in Raspbian 10 - Buster

In the /boot directory I've found the following kernel files: kernel.img: Kernel For ARMv6 - rpi 1 and rpi zero kernel7.img: Kernel For ARMv7 - rpi 2 & 3 kernel7l.img: Used In rpi 4 but I don't ...
0
votes
0answers
12 views

Ubuntu 18.04 LTS - Cross-compiling Raspberry Pi Kernel - modules_install doesn't create files

I am trying to build a Raspberry Pi kernel by cross-compiling on an Ubuntu 18.04 LTS instance. The compilation of zImage, modules, and dtbs all complete as expected. However, when I run the make ...
0
votes
1answer
34 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
2answers
54 views

LIRC Tutorial For Rpi2B+ Buster Too Old Problem

I'm trying to set up lirc on a Pi2 B+ running the latest Raspbian buster and latest kernel / firmware set by rpi-update. I've started from this HOW-TO. All I get from sudo modprobe lirc_rpi is: ...
1
vote
0answers
61 views

new raspbian image doesn't detect usb cdc device

I have a usb cdc device that works fine in raspbian stretch. But when I change the image to new raspbian buster, my usb device isn't recognized. lsusb doesn't list my device at all! I've enabled cdc-...
0
votes
0answers
19 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 ...
0
votes
0answers
30 views

kernel warning in dmesg

I've bought a new 3B+ and when I add dtdebug=1 to config.txt in /boot the following shows up in dmesg. I'm also having a problem where a GPIO extension board isn't being picked up at all, is this ...
0
votes
1answer
57 views

New RPi OS kernel panics with VFS: Unable to mount root fs on unknown-block(179,2) not using NOOBS

Hi I have 6 Raspberry Pis and none of them have encountered this error when using this EXACT setup. I boot up. Get a bunch of messages telling me that my CPU swapper is not tainted (not official ...
0
votes
1answer
64 views

Raspbian: dpkg hangs during raspberrypi-kernel package upgrade

while doing an apt upgrade on my Raspberry Pi 4 (Raspbian 10 - Buster), dpkg was interrupted during setup of the raspberrypi-kernel package: raspberrypi-kernel (1.20190819-1) wird eingerichtet ... »...
0
votes
1answer
49 views

My RPi0 W crashes

My RasPi 0 W Crashes while updating and upgrading after i newly flashed the SD card with 2019-07-10-raspbian-buster-lite.img my putty console: login as: pi pi@192.168.2.119's password: Linux ...
0
votes
0answers
52 views

Does the time setting function screw with the programs during startup?

I have been here before with the freezing pi0s. I am running pikrellcam in several pi's with the aim to connect several cameras in network to take wildlife videos but have got stuck with recurring ...
1
vote
1answer
43 views

How to verify the correctness of a kernel upgrade before performing the final reboot

I remotely manage a couple of raspberry-pi's as vpn servers using ssl over openvpn. One of these pi's is becoming problematic: it recently somehow gets misconfigured after almost every raspberrypi-...
0
votes
1answer
209 views

How to revert from rpi-update to stable build

I have been using a RPi3 for the last year without any issues. I have had rpi-update as part of a regular update process (cron job). Lately I have been experiencing crashes. I started to investigate, ...
0
votes
0answers
43 views

How to make a program run on boot in the RPi kernel

I'm currently working on a fork on the raspi kernel for streaming cable channels (I have that ready. That's not what I need help with). What I need to know is how to get a program to run on boot (This ...
10
votes
1answer
1k views

Control GPIO pins from C

Most of the libraries, in multiple languages, interact with the GPIO pins via /sys/class/gpio/export, /sys/class/gpio/import, /sys/class/gpio/gpio10/value, etc. However the linux kernel docs clearly ...
0
votes
0answers
27 views

“Native” armhf/armv7/aarch64 Raspbian environment on x86 pc/virtualbox?

I am very encouraged in development of some specific software to run on RPi 3B or higher, BUT it is quite a pain to test it in qemu with max of 256m ram and single core "verstatilepb" setup while ...
2
votes
2answers
64 views

Raspberry PI boot FAT32 arrangement

I recently thought about tinkering with Raspbian by adding an initramfs. But I have still some unresolved questions about the boot (FAT32) partition. Does the partition have to be on a specific ...
1
vote
0answers
23 views

Error in configuration for I2S microphone

I follow these directions to set up the Raspberry Pi for an Adafruit I2S microphone. The line to compile the module fails with a missing script: $ make -C /lib/modules/$(uname -r )/build M=$(pwd) ...
0
votes
0answers
72 views

How to force compilation of kernel with rpi-source for I2S microphone

I followed these directions to configure the Raspberry Pi for the Adafruit I2S microphone. I skipped the step that installed git bc libncurses5-dev bison flex libssl-dev and got this error when ...
3
votes
0answers
35 views

How do I build just some in-tree modules for the Raspbian kernel?

I would like to cross-build some in-tree modules (capi, gigaset) that are included in the kernel source but not in the standard Raspbian kernel. My toolchain is using the tools from https://github....
0
votes
0answers
32 views

RPi Zero W kernel shoots messages

I want to update my RPi 0 and i can't because the kernel is writing Messages with hex code that it failed but i can't fix that or even now whats going on. only using "sudo apt-get update" https://...
2
votes
1answer
93 views

How to Package Custom RPI Kernel into *.deb?

I have compiled a custom Raspbian kernel from source because i need to enable the CONFIG_AUDIT flags for installing SELinux & Auditd. Following the Official Kernel Documentation i was able to do ...
3
votes
1answer
268 views

Is the Raspberry Pi 4 vulnerable to the Spectre exploits?

Now the new Raspberry 4 has moved to ARM A72 cores, it's vulnerable to the spectre issues according to ARM. Processor Variant 1 Variant 2 Variant 3 Variant 3a Variant 4 Cortex-A72 Yes Yes**...
0
votes
0answers
296 views

Raspberry Pi 4 - Not booting custom kernel

I am running the latest Raspbian build (Buster). I have compiled a kernel with audit/apparmor support and am trying to boot my Raspberry Pi 4 from it. The kernel is compiled from the latest branch ...
1
vote
0answers
102 views

Facing issue in loading Ethernet Interface for Raspberry Pi 3 B+ buildroot

I am building a Custom OS using Buildroot. I am following this article to build the custom os. Author of that article gave a sample image of the os that will be created after the build is completed. ...
1
vote
0answers
17 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 ...
0
votes
1answer
62 views

Kernel panic - not syncing - What are some hypothesis for the root cause?

Kernel: Linux 4.19.42+ #1219 Tue May 14 21:16:38 BST 2019 armv6l GNU/Linux Hardware: Rasppery Pi Zero W cat /etc/issue Raspbian GNU/Linux 9 Kernel panics happen after a day of running with no issues....
1
vote
0answers
212 views

LIRC receiver problem after kernel update

I recently updated my raspberry pi 3 using sudo apt update && sudo apt upgrade . During the process rpi kernel got updated. uname -a Linux raspberrypi 4.19.42-v7+ #1219 SMP Tue May 14 21:20:...
7
votes
0answers
181 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 ...
-2
votes
2answers
119 views

SPI driver for communication

I want to load my kernel module which communicates with my device over spi interface. I have tried loading my modules but it's showing spidev is already installed. I see 2 modules named spidev and ...
0
votes
0answers
15 views

Kernel Panic - not Syncing: VFS: unknown-block 179,2 [duplicate]

I'm running raperberry pi 3 with noobs. I've seen people have this issue in the past, however my keyboard isnt working at all when i try to turn the raspberry pi on. Nothing wrong with the keyboard, ...
1
vote
1answer
34 views

Pi3 freezes on boot when display_rotate=1

I've been struggling with an issue with my Pi. I have a 2560 x 1440p HDMI screen that i've been trying to get to work. After getting the HDMI timings and settings from the manufacturer it shows the ...
1
vote
0answers
95 views

How to get maximum GPIO output speed in Kernel module?

I'm writing a Linux kernel module on RPi2 to push an array to RGB Led matrix, so I want to have maximum speed of GPIO to reduce the 'flick' when it run Bit Angle Modulation. According to this site, ...
2
votes
3answers
139 views

Stuck with the old kernel

I did recently an updated (sudo apt-get updated && sudo apt-get dist-upgrade) on my 3 raspberies. Two RPI 3B, and one RPI Zero W. The strange thing is that the raspberries that I installed ...
1
vote
0answers
69 views

Configure SPI from Kernel Space by writing to the SPI Registers

I'd like to write my own SPI driver to configure the SPI interface by means of writing to the CS, FIFO, and CLK SPI registers. I have disabled the SPI interface in raspi-config. I followed the ...
1
vote
1answer
514 views

Run a script when wifi is connected to a particular wifi network?

My Raspberry pi is connected to my home wifi network. This wifi network have a captive portal and hence each time I need to sign in the captive portal to use the internet. Now I am trying to automate ...
4
votes
0answers
155 views

Custom camera driver

Is it possible to write a driver, say for a OV camera, based on the existing drivers at the RPI git repo? As is I understand, with a datasheet for a sensor it should be possible to write a similar ...
0
votes
0answers
122 views

SPH0645LM4H Adafruit I2S MEMS Microphone Kernel Error

I'm trying to configure the i2s kernel following this website: https://learn.adafruit.com/adafruit-i2s-mems-microphone-breakout/raspberry-pi-wiring-and-test but when I run the following code rpi-...
0
votes
0answers
39 views

Creating device driver which feeds GPS Co-ordinates from phone to raspberry pi

I don't have GPS module, so I was thinking whether I can feed GPS coordinates from my android/ios phone to raspberry pi over wireless protocol like bluetooth/TCPIP. Can I create a virtual device ...
0
votes
2answers
44 views

How do I identify the boot time in the logs?

Sometimes when my headless Pi Zero W hangs or goes offline without coming back, I hard reset it by disconnecting the power cable and reconnecting it. I'm trying to look for clues in /var/log/syslog ...
1
vote
1answer
402 views

Upgrading the kernel fails

I currently have kernel version: 4.14.79-v7+ (and I am using Raspbian Stretch) pi@pi:~ $ uname -a Linux pi 4.14.79-v7+ #1159 SMP Sun Nov 4 17:50:20 GMT 2018 armv7l GNU/Linux When I try to update and ...
1
vote
0answers
61 views

Kernel error : [drm] Resetting GPU

I am using an app which is using the vc4-drivers. Sometimes videos freeze for an instant, and I see a kernel message saying : [drm] Resetting GPU After that, some font are no more displayed but the ...
0
votes
1answer
237 views

End kernel panic problem

I'm a newbie, trying to connect a gps to my raspberry pi 3 bit. After rebooting I can't get any further, and receive the message End Kernel panic - not syncing: VFS: Unable to mount roof fs on ...
1
vote
1answer
30 views

custom kernel fails to boot - 'task init:1 blocked for more than 120 seconds'

I'm trying to build a custom kernel for my 3B+ (following this guide: https://www.raspberrypi.org/documentation/linux/kernel/building.md). It seems to boot without any error messages until it ...
2
votes
1answer
51 views

Building an old kernel is not possible because the arch/arm/boot/dts/overlays/ directory does not exist

I've been trying to build a kernel from the 4.14.85 version. I followed the instructions from the official documentation but instead of using the latest version you can find in the repository I ...
2
votes
2answers
509 views

How to find a specific kernel version in the Github repository?

I'm trying to get the Linux 4.14.85 kernel, for a problem I've posted before, related to Xenomai. I see here that there is a branch for 4.14.y, but there are no tags to find which commit corresponds ...
0
votes
1answer
164 views

raspi-config is not working after installing Xenomai on Raspberry Pi 3

I followed the instructions given here to install Xenomai on a Raspberry Pi 3. After installing the kernel (now the RPi uses the kernel-xenomai.img during boot) I couldn't access my network, neither ...
1
vote
0answers
32 views

Sd card gets corrupted on some monitors?

When connected to Monitor DELL e2218hn, SD card with NOOBS installed is getting corrupted within 2-3 hours of use. This is not the case with other monitors as it works really smooth. ISSUE: When Pi ...
0
votes
0answers
479 views

Can't build DKMS kernel module

I'm on Raspian Stretch and an RPi2. I'm trying to install xtables-addons-dkms. This was the output of apt-get on my first attempt: Setting up xtables-addons-dkms (2.12-0.1) ... Loading new xtables-...
1
vote
1answer
319 views

Patching and Compiling Kernel 4.14.97-v7+ with Realtime Preemption

I need to patch and compile (not cross-compiling) the Kernel 4.14.97-v7+ (Raspbian Stretch) to support realtime operations. However, I did not find the corresponding patch. The folder https://mirrors....