Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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.

2
votes
1answer
15 views

Execution interruption while holding a kernel spin lock

I want to toggle an GPIO pin with a certain accuracy. (i.e. latency about 1 us). I have a Raspberry Pi 3 model. Therefore I wrote a simple test kernel module. The toggling loop does basically this: ...
0
votes
0answers
13 views

Kernel module can't be loaded - “invalid module format”

Headline: I've cross-compiled a kernel module for the Raspberry Pi, but on attempting to load it, I get the following error: insmod: ERROR: could not insert module testmod.ko: Invalid module format ...
1
vote
0answers
29 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 ...
0
votes
3answers
37 views

Using special pins as gpio

I would like to use I2C and SPI pins as a gpio on my raspberry pi zero w. To be more clear, BCM 3-5-7-11-13-14 pins on the link [1]. I want to disable I2C1, GPCLK0, SPI0, UART, PWM0. Is it possible ...
1
vote
1answer
17 views

Missing cpu.cfs_period_us cgroup subsystem in Raspbian Stretch on Raspberry Pi Zero

I'm dabbling about with cgroups on my Raspberry Pi Zero using the latest version of Raspbian Stretch and I was surprised to see only the following cpu cgroup subsystems available: cgroup....
0
votes
1answer
28 views

Cross Compiling ARM Kernel on 64bit machine

I've been trying to cross compile a kernel for my Pi 1 on my 64bit Desktop, following this guide: https://www.raspberrypi.org/documentation/linux/kernel/building.md At this command (in the last ...
0
votes
1answer
34 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
0answers
41 views

Kernel Bug with Compute module 3L

I am using a raspberry cM3L and a carrier PCB to record stereo video throughout the day and the device reboots itself at midnight everyday. About every 3 weeks the stereo recording fails and I get the ...
0
votes
0answers
37 views

Kernel panic - SMP: failed to stop secondary CPUs

I installed Raspbian 9 Stretch on my Raspberry Pi 2B board, I followed instructions at link https://robpol86.com/raspberry_pi_luks.html and randomly I get kernel panic message that ends: CPU2: ...
0
votes
1answer
18 views

wifi - WiFi sometimes does not work

When I powered the Raspberry Pi 3B on (I use Gentoo), WiFi was working. After reboot, it stopped working, both ip link list and ifconfig commands do not list it (they do if WiFi is working). I am ...
1
vote
2answers
25 views

RPi 3 kernel without VFAT support

I am building a very compact Linux kernel for my RPi 3. I have stripped a lot of features from the kernel. The current kernel size is around 4 MB. Currently I only have ext4 and vfat FS enabled. I ...
1
vote
0answers
17 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
1answer
27 views

latest raspbian kernel update broke bash

I just updated by raspbian box (stretch, upgraded raspbian-kernel, using it as console only) and somehow broke bash. Every time I try to log in (either by ssh or locally) I get the following error: ...
1
vote
0answers
45 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
77 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 -...
0
votes
1answer
360 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+...
0
votes
1answer
155 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
0answers
30 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,...
0
votes
0answers
28 views

Kernel Panic : VFS :Unable to mount root fs on unknown-block [duplicate]

I was having an issue with my Pi, and ended up having to refresh my SD card with a new copy of Raspbian. I followed the links and instructions on the Raspberry Pi site about cleaning the SD card. I ...
1
vote
1answer
309 views

Header files not being found (sys/stat.h)

I am trying to compile a device driver to control some LEDs connected via GPIO pins. First, I got errors that /lib/modules/4.14.31-v7+/build was not found, so I ran sudo apt-get install raspberrypi-...
1
vote
0answers
421 views

Pi 3B+ jack audio inputs

Related: Raspberry Pi 3 audio input? I need to be able to input several jack microphones (minimum 2, more could prove useful) to my raspberry, to do some audio processing (between all inputs), and ...
0
votes
1answer
2k views

boot hang on random: crng init dome

I have kernel 4.9.80 (arm64) installed on a Debian stable system. This is on a RPI 3b. When the kernel gets to the line random: crng init done, it stops and never continues. I have read other articles ...
0
votes
1answer
1k views

Kernel panic-not syncing: VFS: unable to mount root fs on unknown- block(179,6) running Raspbian NOT on top of NOOBS

I tried many fixes, but most of them are for NOOBS Raspbian installations, not for a clan Raspbian installation. I got the following Kernel Panic error: Kernel panic-not syncing: VFS: unable to ...
1
vote
1answer
66 views

Raspbian Kernel Cross Compiling Peripherals not working

I am having trouble compiling the Raspbian kernel from source. I used the instructions here: https://www.raspberrypi.org/documentation/linux/kernel/building.md. I am cross compiling on Ubuntu 16.04 ...
0
votes
1answer
227 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/...
0
votes
0answers
39 views

Optimizing linux filesystem and SD card for continuous video recording using Gstreamer

We are using raspberry pi3 and using omxh264enc with v4l2src fetching raw YUV 4:2:2 frames and encoding it to h264. use case: We have a write intensive gstreamer pipeline with two splitmux pipelines, ...
1
vote
2answers
508 views

Continuesly monitor GPIO input change/events in Bash

On a Raspberry Pi you can set the GPIO pins as an output or an input. An output or an input can be either high or low. For example, to monitor the input state (high or low) of GPIO pin 26 you can ...
1
vote
2answers
76 views

Cron and atd jobs cant see manually mounted file systems (mounted while on ssh) [closed]

I recently upgraded to debian [/raspbian] buster. Ever since then, cron jobs creating directories using mkdir -p <directory name> will create the directory on the root file system / device ...
2
votes
1answer
971 views

What repository to add for apt to find raspberrypi-kernel?

In the default Raspbian image I find *raspberrypi* kernel, bootloader, firmware etc. Using a bootstraped Installation I don't find them but using the same entries in /etc/apt/sources.list. In ...
1
vote
1answer
672 views

Trying to apply real time patch to kernel 4.9.76

Raspberry Pi 3 model B OS: Raspbian 9.3 stretch Kernel: armv7l Linux 4.9.76-v7+ CPU: ARMv7 rev 4 (v7l) @ 1.2GHz RAM: 1GB I'm trying to apply the real-time patch (it's highly desirable for my ...
1
vote
1answer
440 views

dtoverlay=gpio-poweroff not working on raspberry pi 3 B

Problem: I have a Raspi 3B rev: a02082 (Q1 2016 3 Model B 1.2 1 GB (Mfg by Sony)) running raspbian jessie kernel 4.9.35-v7 I want to signal to a power management circuit that filesystems ...
0
votes
0answers
114 views

/boot/upgrade not found on Ubuntu 16.10 with Berryboot

Hi! I am using Berryboot on my Raspberry PI 3 to boot between Raspbian, OPENElec, RetroPie & Ubuntu Server 16.10, Everything works smoothly except for one thing; When using the Apt-get command ...
1
vote
1answer
368 views

Kernel panic when running Raspberry Pi 3 version of CentOS

I'm new to Raspberry Pi and Linux. I'm a university student and I'm a little stuck. I had the idea that if I formatted the SD card that come with the Raspberry Pi and put CentOS (that's the OS we use ...
1
vote
1answer
214 views

Raspbian on RPi2 random total freeze since upgrade to stretch

I purchased a Raspberry PI 2 two years ago and installed Raspbian Jessie at the time. I configured several services including nginx/ssh/... with very specific settings so complete OS re-install is ...
1
vote
1answer
129 views

Systemwide Hotkey that runs a script

I know its possible to assign a Hotkey to run a Python script by configuring the openbox/lxde-pi-rc.xml. However this Hotkey then only works under X11 GUI. What I would need is a hotkey that works ...
0
votes
0answers
219 views

Linux SPIDEV clock timing issue

I am using a Linux board called NanoPi Neo based on the H3 chipset. I got the spidev driver working and it appears as /dev/spidev0.0 I am trying to use a SPI module called RF24L01. However, I was not ...
0
votes
0answers
212 views

Raspberry Pi Zero W - Kernel Errors on dist-upgrade

I'm really looking for any help I can find here. I've recently purchased a Raspberry Pi Zero W (I also have a RPi1 and a RPi3). And I keep coming up against multiple issues, no matter what I try, so I ...
4
votes
1answer
131 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 ...
0
votes
0answers
161 views

Unable to Update CentOS 7 Kernel on Pi 2

My Pi 2 is running CentOS 7. I am unable to update its kernel to the latest edition. Commands and outputs are as follows: # yum install kernel Loaded plugins: fastestmirror Loading mirror speeds from ...
0
votes
2answers
274 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 ...
0
votes
0answers
55 views

To compile AODV-UU, getting error (modversions.h: No such file or directory)

I'm using Raspberry pi 3 (Raspbian_ARMv7_4.9.67-V7+) to compile AODV-UU. When I am trying to do make then getting below error: cc1: fatal error: /lib/modules/4.9.67-v7+/build/include/linux/...
1
vote
1answer
106 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 ...
0
votes
3answers
2k views

Get the current Raspbian kernel version without installing

Is there a way to get the current version of the kernel for the Raspbian distribution, without installing it? I don't really want only the number, I really would like a procedure to get it next year.
4
votes
2answers
487 views

How can I troubleshoot kernel panics?

My Raspberry Pi 3 has been working stably for a year now as a headless server. In the last month, it's started crashing frequently (every two days). I can attach a monitor and see that there has been ...
0
votes
0answers
500 views

Using the tl wn722n v2 wifi adapter in monitor mode with raspberry pi 3

I recently bought a tl wn722n wifi adapter v2 (rtl8188eu chipset) to use with my raspberry pi .But, it has absolutely no linux driver support. So, I am trying to install the drivers provided by mfruba ...
1
vote
1answer
1k 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 ...
1
vote
0answers
399 views

Build a custom Android ROM for the Raspberry Pi? [closed]

How to create a custom Android ROM for the Raspberry Pi from scratch? It can be from any source, it does not matter (like aosp, lineage os, resurrection remix, etc), but the system apps must be ...
3
votes
1answer
3k views

End Kernel panic - not syncing: Attempted to kill init

I have a problem when starting my Raspberry Pi (Rasberry Pi 3 Model B). Everything worked fine. After the last reboot I've got this error. Any help would be appreciated.
0
votes
0answers
121 views

Compiling kernel module - netfilter ipset ip_hash_mac

I'm using raspbian-lite latest with RPi 3 B. I need ipset hash:mac functionality that is not built with the stock kernel. Got the kernel source and headers for current kernel. They have ip_hash_mac....
0
votes
1answer
51 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 =...