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
0answers
37 views

Getting “eth0: kevent 0 may have been dropped” randomly whenever the home router restarts

I have seen similar questions but ALL of them are having issues when they using the Pi as a Wifi AP. My question is different. I don't use the Wifi functionality of the Pi at all. My home router ...
0
votes
0answers
15 views

When building a kernel from source, what is the KERNEL environment variable used for?

When building the Linux kernel from source for an RPi3, the official documentation recommends setting the KERNEL environment var to kernel7 (as opposed to kernel or kernel7l). What does this ...
0
votes
1answer
885 views

Unable to find raspberrypi-kernel-headers package

I'm trying to get Wireguard going on my RPi, just to mess around with it. I think I correctly followed the various directions I've seen about how to get up-and-running, but I can't find the ...
7
votes
4answers
8k 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....
0
votes
1answer
61 views

Images with Multiple kernel to share among Pi-B, Pi-3 and Pi-4

I have 3 models of Raspberry from ARM-v6 to ARM-v8 and would like to have SD cards that i can exchange among them. After testing my SD IO have realized that Retropie and RaspberrOS works well on Pi1 ...
0
votes
0answers
281 views

Using MCP2518 CAN controller and SocketCAN on CM4 with PiCore

Background I am planning on using a Raspberry Pi CM4 with PiCore (a version of TinyCore for the RPI) for an embedded project involving a MCP2518 CAN controller. There is an MCP251x driver already ...
21
votes
5answers
28k views

Emulating raspbian with QEMU

I'm trying to emulate raspbian on QEMU and there're plenty of guides available on internet. However, every guide points to download qemu-linux kernel from link https://xecdesign.com/downloads/linux-...
2
votes
1answer
2k views

Is it possible to run the raspbian based Kano OS in QEMU?

Kano is a real, real cool device for kids. I wonder if I can run Kano OS in an emulator like qemu. I'd really like to check it out before buying it. After all Kano OS is just a Raspbian based OS ...
0
votes
0answers
31 views

How does one get the interrupt number to pass into request_irq() for a DMA-complete

I'm trying^W failing to get a kernel module to respond to a DMA-done interrupt. I've been reading around for help, but most of what I can find is to do with GPIO interrupt management, and I think my ...
-2
votes
2answers
563 views

Kernel panic-not syncing: VFS: unable to mount root fs on unknown- block(179,2) running Raspbian Jessie

My RPi had power cut and after that didn't boot and this message comes on. I put a memory card in to PC and made changes in cmdline.txt file from /dev/mmcblk0p2 to /dev/mmcblk0p6 because I have seen ...
0
votes
0answers
80 views

Userspace and Kernel space graphics drivers for the pi 4

I recently bought a raspberry pi 4 to aid in my computer architecture studies. Also, one of my study projects is to build a kiosk application using buildroot (not raspbien). I have taken some time to ...
0
votes
1answer
249 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 ...
0
votes
0answers
31 views

USB detection problem after switching from raspbian stretch to buster

I have a device constructing from a raspberry pi 3 B and an AVR based usb device. The interconnection of these components is depicted in this picture. When RPI is on, data lines of keyboard will be ...
3
votes
0answers
103 views

Device drivers only working on boot

I am trying to connect some peripheral devices (test equipment) to a Raspberry Pi 4B+ running Raspbian and I am running into issues with device drivers for serial (using a pl2303 driver) and usb ...
0
votes
1answer
525 views

Failed to start Load Kernel Modules on boot

I have problems starting my raspberry running raspian. I get a [ 55.174742484] systemd[1]: Failed to insert module 'ipv6' [FAILED] Failed to start Load Kernel Modules. Sooo little bit of ...
3
votes
1answer
83 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 Raspian Stretch for years. 4 days ago both Pi's (!!!) had a Kernel Panic after trying to update to php7.4. Installs ...
0
votes
0answers
14 views

Problems re-building modules getting SPI working on a bcm2832(RPi ZERO W) [duplicate]

When I try to get SPI working on a bcm2832(RPi ZERO W) by re-building modules and solving the kernel bug, following this post, I am getting the following errors I could not get solved: pi@raspberrypi:~...
7
votes
3answers
10k 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 ...
7
votes
2answers
13k views

aarch64 or armv8 with Arch on a Raspberry Pi 4?

I installed arch on my raspberry pi 4 based on the instructions from the arch linux arm site, expecting to get an aarch64 install, or some variant of armv8. Instead what I got was an install of armv7 ...
1
vote
1answer
61 views

Which file in /boot is the initial RAM disk?

In order to emulate a Pi in the Qemu emulator, I will need to identify which (if any) of the files in /boot is the RAM disk, and which is the appropriate kernel. Booting Raspbian however, there is no ...
0
votes
1answer
192 views

WARNING: “__sanitizer_cov_trace_pc undefined” when compiling a kernel module in RPi 4

I recently bought a new RPi 4 and tried to install the module I ran on the old RPi 3B (which ran successfully). Now, when trying to install the same module on the RPi 4 I get 2 warnings when compiling ...
-1
votes
1answer
721 views

Can I modify an RPi2 image to boot on an RPi3 B+?

I have a Raspberry Pi 3 B+, and none of the operating systems that usually work on the RPi 3 will boot. I've done a small bit of research, and I think this has something to do with an outdated ...
0
votes
3answers
3k 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
764 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 ... »...
-1
votes
1answer
796 views

end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,6)

When I attempt to boot my Pi into a terminal I get this error, please tell me I can fix this somehow. [ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,6) ] I tried ...
1
vote
2answers
4k views

end kernel panic error during booting

I'm using raspberry pi model B.i have write the raspberry-stretch 2017 image to sd card. but when i put it on my pi, pi show the following error end Kernel panic-not syncing: VFS: unable to mount ...
2
votes
0answers
140 views

Schedule for Raspi OS upgrades to 5.5 kernel & libgpiod 1.5

Several months ago, this blog post appeared in a search. In summary, this post outlines the new char device-based GPIO interfaces. It further states that a full complement of features will be ...
0
votes
1answer
948 views

Kernel panic - not syncing : out of memory and no killable processes when booting after setting GPU memory to 256 MB in raspi-config

I tried booting in recovery mode (holding down shift from a USB keyboard attached to the Pi2) and still can't boot to fix. Any solutions? Thanks
21
votes
3answers
36k views

How compile a loadable kernel module without recompiling kernel

I have read quite a bit about how to compile a kernel module on (and for) the Raspberry Pi, but I'm still not quite able to figure out why it's not working. I have been able to build the module, but ...
3
votes
1answer
303 views

Editing heartbeat LED trigger

I am trying to edit the timer of heartbeat trigger on RPi Zero. I have found original .c file of kernel driver here https://github.com/raspberrypi/linux/blob/rpi-5.4.y/drivers/leds/trigger/ledtrig-...
12
votes
1answer
15k views

How to boot raspberry pi very quickly into Linux?

I would like my pi zero to boot quickly (under 1 second) using Linux. In that case we can pretend it is embedded controller and not standard full blown (but slow) computer. Do you have any (...
1
vote
0answers
246 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 ...
0
votes
0answers
33 views

I custom build rpi kernel that I misconfigured as the time specific syscalls return bad values. What steps should I take to debug this?

Jump down to edit 2 to see the most current information I have on this question. I am leaving everything else as a preamble explaining the situation. I am setting up my first RPi to be a home DNS ...
0
votes
1answer
1k views

Raspberry Pi 4 unable to run aarch64 binary with aarch64 kernel

I followed this instruction to enable 64 bit kernel. https://www.raspberrypi.org/forums/viewtopic.php?t=250730 And I am pretty sure now my kernel is 64 bit. $ uname -a Linux RPi4 5.4.51-v8+ #1327 SMP ...
0
votes
1answer
24 views

Booting of RPi 3A+ fails for the Raspbian stretch 2018-03-13 and even for 2017-08-16

I have a 16GB micro SD card, on which raspbian strecth 2018-03-13 is installed (via win32diskimager, earlier formatted via SD card formatter). It works perfectly for my RPi zero model, but doesn't ...
1
vote
4answers
4k 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+...
3
votes
2answers
3k 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 ...
5
votes
2answers
1k views

rpi 2: Unable to change irq affinity

I am trying to optimise getting GPIO interrupts into userspace. On the single core rpi 1 I couldn't get rid of quite some timing jitter, which makes sense as there's a lot of stuff going on on the cpu....
-1
votes
1answer
256 views

Cannot emulate Raspberry on QEMU

I have a problem when I want to emulate a Raspberry on QEMU. I created a "start.bat" where I put: qemu-system-arm -kernel kernel-qemu-4.19.50-buster -cpu arm1176 -m 256 -M versatilepb -no-reboot -...
1
vote
2answers
264 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 wifi module I use from this repo: https://github.com/LairdCP/Sterling-60-...
1
vote
0answers
916 views

ZFS and USB boot on Pi4b 8Gb

I'm trying to make myself a NAS appliance with a Pi4b 8Gb. I would like to use ZFS for my storage but I'm having some trouble with installing it on pi OS. I'm trying to use USB boot (No SD) so I can ...
0
votes
0answers
141 views

Graphics Tablet for Raspberry Pi - MyPaint

I've a Huion New1060Plus graphics tablet which works on Paint 3D Win 10, but I want to use it with MyPaint on the Raspberry. I've tried loading the digimend kernel headers but I'm not sure they are ...
1
vote
1answer
863 views

Raspberry Pi Zero as webcam [duplicate]

I read some case, like using dwc2 and g_webcam in /boot/config and cmdline. but hard to understand and doesn't work. and can't find a tutorial, there are some tutorials only about serial and ethernet. ...
1
vote
1answer
3k views

Kernel throwing up all kinds of errors over night

I am developing a system that uses OpenCV with Python to access the csi camera, and PyGame for the GUI. Due to the nature of the system (security program) it needs to be left unattended pretty much ...
0
votes
2answers
133 views

How do I know that a Dual-Band USB WiFi dongle will work on Raspbian or other Linux distrobution?

How do I know if a Dual band USB WiFi dongle will work on a Raspberry Pi running Linux? I know that Linux must have a driver that supports the wifi chipset used in the dongle. But with the number of ...
0
votes
0answers
14 views

Which one is sensor from IIO?

I am looking for list of sensors from the kernel drivers. I am not sure which one is sensor and which one is not. Are all of them sensors? If not then how can I get those I mean is there any API ...
7
votes
1answer
8k 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
126 views

Can't compile kernel

I'm trying to compile the kernel on a brand new install (pi4) using the following steps: apt install raspberrypi-kernel-headers build-essential bc git wget bison flex libssl-dev make libncurses-dev ...
2
votes
1answer
390 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 problems with v5.6.y on my RPI4, so I used tried v5.4.y and it works fine. However, I ...
1
vote
0answers
33 views

Problem in initiating i2c driver module for bmp180 i2c based sensor at kernel level

For leaning purpose i am writing a i2c client kernel module for bmp180 pressure sensor. My kernel code is -> #include <linux/version.h> #include <linux/module.h> #include <linux/init....

1
2
3 4 5
10