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.

115 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7
votes
0answers
681 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 ...
5
votes
1answer
338 views

Kernel/Firmware as Debian package

It says on the official site that "the kernel and firmware are installed as a Debian package, and so will also get updates when using [apt-get upgrade]" I run apt-get update / apt-get dist-upgrade ...
4
votes
0answers
425 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 ...
3
votes
0answers
64 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 ...
3
votes
0answers
124 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 ...
3
votes
0answers
651 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-...
3
votes
0answers
83 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....
3
votes
0answers
438 views

How can I install the latest kernel from kernel.org to Arch Linux ARM for Raspberry Pi 3 model B?

I am using Arch Linux on Raspberry Pi 3 model B. I want to install a newer kernel (currently I have 4.14.94-1-ARCH kernel installed) I have downloaded and compiled the mainline kernel 5.0-rc5, which ...
3
votes
1answer
1k views

How do I add an i2c device to the device tree?

I am trying to add an mpu 9250 to the device tree of my RPi 3 A+ so that my custom driver's probe function will be called. I have followed this documentation about the Raspberry Pi device tree and ...
3
votes
0answers
1k views

Why doesn't extract-vmlinux work with Raspbian's /boot/kernel*.img?

To monitor if a reboot is necessary, I wanted to compare the version of /boot/kernel*img against the version of the running kernel. To get the kernel version of a compressed linux kernel image (...
3
votes
1answer
402 views

No USB with upstream kernel

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 ...
3
votes
0answers
139 views

Implementing a system call for CPU hotplug on RPI3/ModelB

My goal is to implement a system call in linux kernel that enables/disables a CPU core. First, I implemented a system call that disbales CPU3 in a 4-core system. The system call code is as follows: ...
3
votes
0answers
3k views

TFT Kernel module not loading on startup

I'm not able to load a driver for a TFT display permanently on a Raspberry with Raspbian OS like specified here: fbtft_device name=sainsmart18 verbose=0 in /etc/modules. Whenever I restart the ...
3
votes
1answer
234 views

linux-imag-?-dbg and linux-headers package missing

I'd like to make use of systemtap on my 2016-02-09-raspbian/jessie system. For that I need the kernel debug package and the kernel headers. The kernel in use is: root@raspberrypi:/home/pi# uname -r ...
2
votes
0answers
103 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 ...
2
votes
1answer
652 views

Failed to start Load Kernel Modules for installing Ubuntu 18.04 on Raspberry 4

I tried to install Ubuntu 18.04 on Pi4. I followed the link from ubuntu for pi. After inserting the SD card with Ubuntu image, the error appeared after few lines with [FAILED] Failed to start Load ...
2
votes
0answers
94 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
0answers
115 views

running kernel 3.x on R Pi 3 Model B?

I'm looking to run kernel 3.x (3.14 to be exact) on an R Pi 3 Model B hardware. I'm trying to do this by re-compiling the kernel using the instructions here: https://www.raspberrypi.org/documentation/...
2
votes
0answers
493 views

Raspberry pi 3 stuck on bootloader

Raspberry pi 3 is stuck in boot. When i was last using it i disabled the wlan0 for some hardware hack, after that when i rebooted it it stuck on the boot as shown below. I have even tried to flash ...
2
votes
0answers
81 views

Boot error when attempting to install Kinect driver

I am trying to install the kernel driver to use the xbox kinect with my Rpi model B. I have followed the commands found here https://github.com/xxorde/librekinect under example for Rpi with the ...
2
votes
0answers
713 views

Specify interrupt in devicetree overlay

I have created a devicetree overlay to add an MRF24J40 transceiver to Raspberry Pi. The interface of the transceiver is SPI and an interrupt request. After some trouble the device finally appears in ...
2
votes
0answers
454 views

Using kernel debug symbols on Raspberry pi

I see that I can install packages that contain the kernel debug symbols in Ubuntu as shown here. Is it possible to do the same for Raspberry pi? I'd really like to have kernel symbols for the raspbian ...
2
votes
0answers
3k views

Best approach for real time operating system on Raspberry Pi

I need to use Raspberry Pi with a real time operating system. Of course, I want the best solution. I've searched some options, including custom kernel compilation, ready to install RTOS. So, which ...
2
votes
0answers
2k views

eGalax Touchscreen support, without kernel recompile, raspbian OS

I have been using a custom compiled raspbian OS, with eGalax touchscreen support. The problem is every time there's some upgrade or a major version change in the OS or firmware, I have to recompile ...
1
vote
1answer
135 views

Issues running two PL2303 USB to Serial converters on a Raspberry Pi Zero W

I'm having a bit of a problem building a little network-connected UPS monitor. I have two USB to Serial adapters of the pl2303 kind. Latest Raspbian and I'm running them off a tiny powered USB hub ...
1
vote
1answer
572 views

Ubuntu 20.04 KVM kernel for Raspberry Pi 4

I would like to deploy a VM from KVM template on Raspberry Pi 4 running Ubuntu server 20.04. The VM will be configured with an emulated x86_64 CPU. Is there a precompiled KVM kernel for it? If not, ...
1
vote
0answers
169 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 ...
1
vote
0answers
667 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 ...
1
vote
0answers
124 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
66 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 ...
1
vote
0answers
411 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 ...
1
vote
0answers
28 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
0answers
303 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 ...
1
vote
0answers
110 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) ...
1
vote
0answers
228 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
57 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 ...
1
vote
0answers
398 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:...
1
vote
0answers
269 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, ...
1
vote
0answers
301 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
0answers
155 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 ...
1
vote
0answers
41 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 ...
1
vote
1answer
488 views

Raspbian compile single kernel module gfs2

I'm trying my best to get GFS2 mounted on top of a dual-primary DRDB /dev/drdb0 volume on Raspbian, but I'm hitting an issue. The DRBD volume has a working stonith/fencing cluster setup using ...
1
vote
0answers
74 views

iptables doesn't recognise REDIRECT as target

Trying to redirect traffic using iptables v1.6 and the following line: iptables -t nat -A PREROUTING -p udp --dport 67 -j REDIRECT --to-port 6767 which results in the following output: iptables: No ...
1
vote
0answers
137 views

How do I interface with the “cprman” clock manager from another kernel module?

It's relatively simple to control the clock manager registers. I've found a set of values, and have C code that writes the desired values to the clock manager registers. This works well; that part ...
1
vote
0answers
115 views

Kernel panic, real time clock (possibly), UPS Pico

Have a fresh install of KivyPie, which is some months old, with updates (have done apt update/upgrade). It crashes: and the reason seems to be these two lines enable_uart=1 dtoverlay=i2c-rtc,ds1307 ...
1
vote
0answers
230 views

ftrace + addr2line

I want to get kernel source code file name and line number of a kernel function from the function address that ftrace outputted on Raspberry Pi 3. I tried addr2line -e /boot/kernel8.img [function ...
1
vote
0answers
342 views

pyusb: scanner insufficient permissions

UPDATE: I added a symbolic link to my .rules file and it is being created every time I unplug/plug the scanner. I believe my issue is more of a permissions issue with my Python code and more ...
1
vote
0answers
361 views

How do I build a custom RPi kernel DEB package?

I've got a couple of patches to the kernel that I want to apply and use in Raspbian. If I follow the Kernel building guide, I can apply the patch and get my kernel image and modules working just fine -...
1
vote
1answer
855 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
vote
1answer
583 views

Kernel Development with Raspberry Pi

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 ...