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.
503
questions
0
votes
0
answers
21
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
1
answer
334
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
0
answers
451
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, ...
5
votes
3
answers
1k
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
0
answers
714
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 ...
3
votes
2
answers
6k
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
0
answers
862
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
0
answers
123
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
2
answers
949
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
1
answer
2k
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 ...
3
votes
0
answers
533
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
1
answer
606
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
1
answer
95
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
1
answer
263
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 ...
3
votes
2
answers
2k
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
1
answer
453
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
0
answers
45
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
0
answers
2k
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
1
answer
686
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....
3
votes
0
answers
596
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 ...
2
votes
1
answer
667
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
0
answers
195
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 ...
5
votes
1
answer
2k
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 ...
0
votes
0
answers
545
views
Direct memory access to Cypress CYW43455 wireless LAN chip
Where can I find the direct memory addresses or GPIO pinouts for directly controlling the Cypress CYW43455 Wi-Fi chip on the Raspberry Pi Zero W from a custom unikernel, or a modified Raspbian?
My ...
0
votes
1
answer
284
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
3
answers
2k
views
Where does the Raspberry Pi Ethernet MAC get generated?
I read somewhere (in a few places, actually, can't seem to find the references to it now that I want them) that Raspbian on the Raspberry Pi generates the MAC address for the Ethernet interface based ...
0
votes
1
answer
126
views
Parallel compilation linux real time kernel
Within the framework of a lab I had to compile a kernel using several commands such as:
make zImage j-8
make modules j-8
make dtbs j-8
j-8 means I used parallel compilation but I am asked this ...
1
vote
1
answer
972
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.
...
2
votes
2
answers
933
views
raspbian stretch overrides cmdline.txt kernel.hostname parameter
i'm building an embedded prototyp with a raspberry pi 3b+ and its booting via pxe from the network read only.
Multiple devices share the same root file system and just the boot folders are customized ...
0
votes
1
answer
423
views
Kernel panic on shutdown/restart when relay board connected
I have a 3B+ with an added relay board.
It's running Rasbian Stretch Lite (Linux blinky-stockholm 4.14.69-v7+ #1141 SMP Mon Sep 10 15:26:29 BST 2018 armv7l GNU/Linux)
It seems like, if the relay-...
2
votes
2
answers
865
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
1
answer
121
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
votes
1
answer
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:...
5
votes
0
answers
3k
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 (...
1
vote
0
answers
254
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 ...
3
votes
1
answer
156
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
0
answers
911
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
0
answers
136
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
3
answers
556
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
1
answer
1k
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....
1
vote
1
answer
1k
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
1
answer
1k
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 ...
1
vote
0
answers
3k
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
1
answer
44
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
3
answers
315
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
0
answers
298
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
1
answer
72
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
0
answers
598
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
0
answers
482
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 -...
2
votes
4
answers
5k
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+...