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
9
votes
2answers
5k 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 ...
2
votes
1answer
143 views

where can I get the driver of imx219

I'm building kernel(xilinx) and rootfs(debain10) for Avnet96v2 board which has connetted a imx219 via mipi adapter, where can I get newest official driver for the camera, if it is existing. By the ...
-1
votes
1answer
2k views

dmi: Firmware registration failed

I have installed Gentoo kernel 4.14.y from https://github.com/raspberrypi/linux. dmesg shows the following errors ... ... [ 0.182547] dmi: Firmware registration failed. ... ... [ 2.224843] mmc1:...
4
votes
3answers
3k views

Multiplexing 4-digit 7-segment display is flickering

I connected a 4-digit 7-segment display to the GPIO-port. It uses 8 ports for the LEDs and 4 ports for multiplexing via PNP-transistors. It is running so far with a loop written in C program: while(1)...
0
votes
1answer
1k views

raspbian on RPi4: kernel panic - not syncing: Attempted to kill init! exitcode=0x00000007

For an unknown reason, my RPi4 (latest version of Raspbian) stopped last night during an unattended-upgrade. The most recent traces I found in /var/log are (sorry, in French): pi@raspberrypi:~ $ tail ...
0
votes
1answer
1k views

How can I install GRUB2 on a Raspberry Pi?

With a Raspberry Pi 4, I would like to run Ubuntu and GRUB2. This answer says that GRUB is a prerequisite for the generic Linux kernel, but does not explain how to install it.
7
votes
1answer
4k views

Pending kernel upgrade even after reboot my RPi4

Every time I update my Pi4, it runs needrestart which complains that I'm using an old kernel version and I should reboot, but rebooting doesn't change anything. First, I have to precise that: I ...
1
vote
0answers
196 views

Compile Linux kernel with toolchain built for aarch64 and uClibc

I am using RPI3 model B I have compiled toolchain using crosstool-ng with the following sample. ./ct-ng aarch64-rpi3-linux-gnu Using ./ct-ng menuconfig, I changed C library from glibc to uClibc. ...
1
vote
0answers
67 views

LIRC null values, Raspbian Buster

I tried to install an IR receiver on my Pi 3B under Raspbien Buster, kernel 4.19. I managed to install lirc, and when I use mode2 -d /dev/lirc0 I read pulses. The problem is the following : when I ...
5
votes
2answers
13k views

How does the pi know which kernel to load?

In the boot partition there are two kernels, kernel.img and kernel7.img (for the pi 1 vs 2/3). How does the system know which to load?
0
votes
1answer
516 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 ...
2
votes
2answers
822 views

is there an equivalent to the dkms tool in raspbian buster?

I am installing a wifi dongle on an RP2B and the only instructions I can find were for Linux Mint using: sudo dkms add ./rtl8188fu I get a command not found. How is this done in Raspian?
0
votes
2answers
2k views

Running x86 Windows app on a Raspberry Pi 3B

I followed this guide to install QEMU in a chroot and I'm able to execute x86 Linux binaries: https://stackoverflow.com/questions/51895452/qemu-debian-x86-on-raspberrypi Next, I tried installing WINE ...
2
votes
1answer
958 views

Rasberry Pi - how do I install TUN driver?

I want to install OpenVPN Server on my Raspberry Pi 2, following the same steps I used in a virtual machine running Ubuntu 19.10 Ubuntu works fine, but Raspberry goes on error during the installation ...
0
votes
1answer
186 views

Compiling modules for cross-compiled arm64 kernel fails with Syntax error

I successfully cross-compiled the current Raspi Kernel on my 64-bit machine to the target architecture arm64. I went through all the necessary steps for inserting the newly built kernel into my Dietpi ...
1
vote
0answers
496 views

Getting ftdi_sio ttyUSB0: failed to get modem status: -32

Iam using Raspberry pi 3b along with Xbee and Sixfab 3G/4G base sheild. getting ftdi_sio ttyUSB0: failed to get modem status: -32 usb usb1-port1: disabled by hub (EMI?), re-enabling... and also ...
3
votes
0answers
147 views

FIQ interrupt configuration

I have tried to write a driver (in the kernel) that interrupts every time the data received from the ADC is ready to be read (Analog to digital conversion is done). The problem is that sometimes the ...
0
votes
1answer
287 views

Why is ttyAMA0 initialization too long?

If I understand the dmesg output correctly, there is something happening for almost one second around the UART console initialization: [ 1.090771] 20201000.serial: ttyAMA0 at MMIO 0x20201000 (irq =...
15
votes
2answers
18k views

Enable monitoring mode for RTL8188CUS via USB on Raspbian

I am trying to enable monitoring mode for a USB wifi dongle with the RTL8188CUS chipset on a raspberry pi model b+ (or any raspberry pi for that matter). $ lsusb Bus 001 Device 005: ID 0bda:8176 ...
2
votes
0answers
138 views

help getting ble-mesh (bluetooth mesh) working

I was hoping to get some help. I have been working on getting bluetooth mesh working on my raspberry pi 4 for a few days and feel I am hitting a brick wall. I am referring to this pdf that was ...
2
votes
2answers
569 views

vcgencmd in buildroot

I am using buildroot to create a custom os for my raspberry pi. I would like to use the vcgencmd command, but I am unable to find the package that includes these tools. I have tried searching the ...
0
votes
1answer
83 views

Clearing edge detect registers (GPEDS0/GPEDS1) crashes Raspbian Stretch

I've been working on a PHP library for Raspberry Pi for a few years now, and since (not sure specifically which) a version of Raspbian Stretch, the Pi becomes completely unresponsive when clearing the ...
1
vote
0answers
34 views

If I want to program I2S by bit-setting the PCM registers manually, do I need to disable any kernel settings (eg snd_bcm2835)?

(I'm not with my board at the moment - if I need to share my code, I'll have to edit this post or post a new one at a later time) I didn't realize how complicated I2S setup on the Pi is. I've been ...
1
vote
1answer
246 views

How to install custom mainline kernel in Ubuntu snappy core?

I have cloned latest Torvalds kernel, compiled it for the Raspberry Pi 2 model B and generated deb packages as well. When I install them using dpkg -i *.deb the files under /boot/firmware are not ...
0
votes
1answer
340 views

g_mass_storage issues in 4.9 kernel

I previously had the Mass Storage gadget mainly working with the April version of Jessie (kernel 4.4.50+). Unfortunately it wasn't working on all systems so I thought it would be worth updating to see ...
0
votes
1answer
525 views

Raspberry not booting up after trying kernel compilation

I had placed fresh noobs on SD card and booted Raspberry Pi many times in the past. To install a custom kernel, I went with the follwing steps: git clone --depth=1 https://github.com/raspberrypi/...
2
votes
2answers
5k views

Build a customized Linux kernel for the Raspberry Pi

I downloaded a Linux kernel "linux-4.1.13.tar.xz" from kernel.org that I want to compile it for Raspberry Pi. Is it possible?
1
vote
1answer
278 views

Running Docker on Raspbian — need to install raspberrypi-kernel-headers

I am running an image that's running on several amd64 servers and on a brand new RPI4. One of the things that's needed are the kernel headers. The image is being pulled is FROM debian:stable-slim. ...
1
vote
0answers
129 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
463 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 ...
1
vote
0answers
349 views

Raspberry Pi 4 becomes unresponsive after Chromium idle

I am building a kiosk application on my Raspberry Pi 4 (4GB RAM Version) that requires that Chromium continuously idles as a service. I created a supervisorctl service that will keep it alive and give ...
3
votes
1answer
154 views

Oh no! GPIO again!

I'm working at this source: https://github.com/ozw1z5rd/ninepin/blob/master/iec/iec.c int iec_init(void) { int result; int minor; if ( request_mem_region(GPIO_BASE, 4096, LABEL_DEVICE) == NULL ...
1
vote
2answers
2k 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: ...
1
vote
1answer
558 views

Installation of kernel module for I2S Mic fails

I have a I2S mems microphone from adafruit. Now I am following the guide at https://github.com/nejohnson2/rpi-i2s#compile-the-i2s-module Now after I have mounted the debugfs I attempt to look for the ...
0
votes
2answers
291 views

Help Patching a driver

I've been tasked with updating a driver on a Raspberry Pi 4 running Raspbian. I'm told I need to apply this patch https://lkml.org/lkml/2019/4/1/1050 in order to get my USB modem to work. When I run ...
0
votes
1answer
91 views

make -j4 zImage fail missing kdb_cmds reference

I'm trying to recompile kernel on my RPi3A+. Excecuting the following commands on clean Raspbian 9 (stretch): sudo apt-get install openssl-dev sudo apt-get install git sudo apt-get install bc sudo ...
1
vote
1answer
1k views

Touchscreen LCD USB (HannsG and elo) behaving unexpected on raspi 3

I tried to connect a Hanns­G 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. ...
6
votes
4answers
16k views

Linux headers generic package not found

I need to compile this driver, however I'm missing my kernel headers. I've tried installing them the normal way: sudo apt-get install linux-headers-generic Package 'linux-headers-generic' has no ...
0
votes
1answer
108 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-...
5
votes
1answer
1k 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 ...
1
vote
2answers
2k 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: ...
2
votes
4answers
2k views

Which kernel source is required to compile for Raspberry Pi?

I am trying to compile and build a kernel image for Raspberry Pi. I build my customized cross compiler tool-chain for Raspberry Pi using Buildroot. Successfully I got all tools which I needed. I ...
3
votes
0answers
769 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
1answer
136 views

Embedded Xinu for RPi

I have completed with setting up the cross compiler but stuck with the compiling part. I have build all the gnu binutils and the gcc successfully in the directory: /home/admin/xinu/opt. But while ...
0
votes
0answers
103 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 ...
8
votes
3answers
3k views

Is it possible to run Raspberry Pi 3 with a 64-bit kernel and 32-bit user space?

I just got my hands on a Raspberry Pi 3 and I would like to start experimenting on it, specially regarding the 64-bit instruction set. I'm well aware of the pros and cons of the 32-bit versus the 64-...
0
votes
0answers
70 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 ...
3
votes
2answers
704 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
1answer
883 views

Kernel panic not syncing with keyboard plugged in [closed]

My Raspberry Pi won't boot with a keyboard plugged in. It is a wireless Logitech two-in-one keyboard, and it says: end Kernel panic - not syncing: Fatal exception in interrupt. How can I fix this ...
3
votes
0answers
95 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....

1 2
3
4 5
10