Questions tagged [linux-kernel]

Questions about Linux kernel and Linux kernel related topics eg. implementation details such as system calls, kernel customization, etc. For Linux user space topics which do not involve kernel details, [linux] or distribution tag are more suitable.

Filter by
Sorted by
Tagged with
1 vote
0 answers
12 views

How do we configure musb-hdrc driver?

I would like to use a USB gadget device (phone) as a host via configfs. After setting up configfs, no gadget is being set up on the host peripheral (phone). The init script executes with the following ...
Bret Joseph's user avatar
0 votes
0 answers
11 views

ath11k_pci: failed to connect to HTT: -110

I have Qualcomm QCNFA765 wifi card. I am using custom-compiled kernel 6.1.55 and I have ath11k_pci in the kernel, and all firmware files are loaded successfully. Yet, when booting, I see on the ...
Martin Vegter's user avatar
0 votes
0 answers
14 views

What needs to be done, based on the following in order to successfully boot into the system?

Ran this command: sudo fsck -fvy /dev/mapper/root_vg-home Here's the output: fsck from util-linux 2.30 e2fsck 1.46.5 (30Dec-2021) fsck.ext2: No such file or directory while trying to open /dev/mapper/...
Alfredm's user avatar
0 votes
0 answers
16 views

lilo: Fatal: raid_setup: stat("/dev/nvme0n1")

I have booted Debian Live CD, and I am trying to create lilo boot record on my disk The disk partition is mounted as /mnt/root and has the linux kernel and /etc/lilo.conf: boot=/dev/nvme0n1 root=/dev/...
Martin Vegter's user avatar
0 votes
0 answers
12 views

Hibernation does not find enough memory despite nearly zero swap usage

I'm trying to diagnose an issue related to hibernation. I'm on a Lenovo Ideapad (AMD) running Manjaro and kernel 6.1.53-1-MANJARO. When I attempt a hibernate, I'm constantly getting errors about not ...
ryoung10's user avatar
1 vote
0 answers
18 views

eBPF vs verified Linux Kernel Modules

In what way is eBPF superior to a kernel module verified on the user-side? I'm not disputing the value of verified code; both approaches would be fully statically verified. Both approaches require ...
charmoniumQ's user avatar
2 votes
0 answers
24 views

Linux reboots with no panic when booting SMP configuration from kexec

I'm working on a project involving kexec. I have it working on some of our hardware platforms. On one platform, I'm getting sudden reboots with no panic dump during SMP setup: [ 25.219028] smpboot: ...
Sarvadi's user avatar
  • 121
0 votes
1 answer
22 views

Linux: Getting the kernel buffer size for a socket

I have a C application which receives a lot of data over a TCP socket. Is it somehow possible to get the kernel buffer size for that file descriptor / socket? I would like to know how much data is ...
Kevin Meier's user avatar
0 votes
1 answer
20 views

CentOS Stream 9 image has predictable interface naming disabled

I'm using a qcow2 image from here. Note the net.ifnames=0 cat /proc/cmdline BOOT_IMAGE=(hd0,msdos1)/boot/vmlinuz-5.14.0-366.el9.x86_64 root=UUID=<uuid> ro console=ttyS0,115200n8 no_timer_check ...
user avatar
0 votes
1 answer
156 views

When and where are the standard in, out, and error file descriptors first opened in linux?

Where are stdin, stdout, and stderr (the fds) first opened? Is it the kernel that does it? And when and where are the symlinks /dev/std{in,out,err} made? Where is the code that does it? I assume it is ...
Elfen Dew's user avatar
0 votes
0 answers
22 views

Network bridge between Termux and Alpine Linux QEMU

I have an Android phone with Termux. Using Termux I downloaded Alpine Linux x86 QEMU. The problem: Other devices on the network cannot ping and communicate with the Alpine Linux QEMU. So that's why I ...
Praveesh Ramroop's user avatar
-2 votes
0 answers
112 views

Possible missing firmware nvidia while installing in kali linux

so i skimmed through Google but couldn't understand whats happening this keeps giving me error, somebody please help W: Possible missing firmware /lib/firmware/nvidia/ga107/acr/ucode_ahesasc.bin ...
boom's user avatar
  • 1
4 votes
1 answer
247 views

Why does my system heavily use swap when there are 86 GB of RAM still usable?

This is not so much a performance problem as it is a desire to understand what is happening and how it works. I have a system with lots of resources, including 128 GB of RAM. What I have discovered (...
Freedom_Ben's user avatar
  • 4,354
2 votes
0 answers
49 views

How to debug a USB audio event that happens during boot?

I have a Topping D30Pro USB DAC which works (mostly) fine once logged in, but during boot (systemd), right around "Reached Target Sound Card", it starts outputting, what I'd have to guess, a ...
akay's user avatar
  • 21
0 votes
0 answers
21 views

My Laptops internal mic is not Detected

I have tried the gnome version of both Fedora 38 and ubuntu 23.04 on my Acer Aspire 315-24p laptop with AMD Ryzen 5 7520u processor. Non of the OSes detect my laptops internal mic. My mic is nowhere ...
Zeesan's user avatar
  • 1
0 votes
0 answers
226 views

Package linux-headers-6.1.0-12-amd64 is not configured yet

I'm running proxmox host 8.0.4 on debian 12 - 6.2.16-10-pve One of my LXC running debian 12 6.2.16-10-pve, cant do any apt use If I try to install any package I got this error dkms: running auto ...
seserize's user avatar
0 votes
0 answers
45 views

OpenSuse Tumbleweed: Booting to TTY1 console (no GUI)

After running updates or installations with Zypper, I sometimes reboot to find myself stuck in a console (tty1). The first time, it was directly after I installed VirtualBox. That time, I managed to ...
BenSH's user avatar
  • 1
0 votes
1 answer
42 views

Virtual COM port using only USB cable

I have seen that it is possible to connect two computers by USB cable and make a virtual ethernet bridge or something like that. My question is, can we do something similar but configure the ...
DEKKER's user avatar
  • 846
0 votes
0 answers
68 views

Linux kernel build fails with sed: can't read modules.order: No such file or directory

I am trying to build Linux Kernel for the first time and I am facing below issue while trying to make modules_install sed: can't read modules.order: No such file or directory make: *** [Makefile:1483: ...
Devansh Jani's user avatar
1 vote
1 answer
36 views

Why does Linux needs both pid_max and threads-max?

I understand the difference between /proc/sys/kernel/pid_max and /proc/sys/kernel/threads-max. There's a good explanation at the answer to Understanding the differences between pid_max, ulimit -u and ...
aviro's user avatar
  • 3,905
0 votes
0 answers
30 views

What does it take to update kernel from 3.x to 5.X on qualcomm fsm99XX small cells platform

As of now qualcomm fsm99xx is on 3.10.84. 3.10.84 is given by qualcomm after a lot of extensive changes. we are trying to update it to 5.10 without support of qualcomm (as they don't support any more)....
Pavana varanasi's user avatar
1 vote
1 answer
35 views

Can (or could theoretically) a recent Linux OS handle the case of an old defective SSD drive only accessible in read-only? If that one holds the OS?

You've surely heard the warning: after some years of use, or a lot of data written to it, an SSD drive might be become defective. One of its symptoms: it might become only available for read-only ...
Marc Le Bihan's user avatar
0 votes
1 answer
63 views

Linux Ubuntu Kernel crash: python: Corrupted page table

My system configuration: Processor: 12th gen Core i7 12700K x 20 16 GB RAM Not installed external GPU (No Graphics Card). All the GPU is from the processor itself (on chip) Motherboard: Gigabyte ...
Syed Waris's user avatar
0 votes
1 answer
42 views

unable to boot kernel on A53 (devicetree?)

I am trying to boot a Linux kernel on an A53 cpu (inside a ZU5 from xilinx). I have two hard. The first is a custom PCB with a ZU5. The second is the ZCU102 SDK with the zu9eg. Here the boot log : [ ...
rBeal's user avatar
  • 61
1 vote
1 answer
47 views

What is the console setting for kernel early_printk in Linux?

I am working on an embedded Linux (kernel-5.10.24), and I enabled the early_printk in kernel configuration to help my debugging kernel. Normally, the kernel command line has set console=ttyS0,115200 .....
wangt13's user avatar
  • 327
0 votes
1 answer
56 views

To create a Linux RT real-time system, which functions in the kernel should be cropped out?

I am customizing a Linux real-time system using the Linux 6.4.0 kernel and patch-6.4.6-rt8 patch. When running make menuconfig, which configurations should be turned off to improve real-time ...
ABeginner's user avatar
  • 101
1 vote
0 answers
28 views

Why can't you compile Linux kernel with GCC -O0 flag? (HugeTLB breaks?)

# CC kernel/fork.o gcc -Wp,-MMD,kernel/.fork.o.d -nostdinc -I./arch/um/include -I./arch/um/include/generated -I./include -I./arch/um/include/uapi -I./arch/um/include/generated/uapi -I./include/...
Brandon Ros's user avatar
0 votes
0 answers
55 views

AMDGPU doesn't work with hashcat

AMDGPU doesn't work with hashcat, anyone knows how to fix this problem? $ ~ hashcat -I hashcat (v6.2.6) starting in backend information mode clCreateCommandQueue(): CL_OUT_OF_HOST_MEMORY OpenCL Info:...
0x786d's user avatar
  • 1
0 votes
0 answers
15 views

Unable to use blktrace

Trying to run below command: blktrace -d /dev/sda -o -|blkparse -i - Below error is seen: BLKTRACESETUP(2) /dev/sda failed: 25/Inappropriate ioctl for device Thread 0 failed open /sys/kernel/debug/...
Ravi's user avatar
  • 749
0 votes
1 answer
38 views

uname -r showing linux-image version that is unsigned

My boot menu was full and then I tried to purge some older version of linux kernel with sudo dpkg --purge linux-image-... command. As initram-fs wasn't throwing error again and again I also tried some ...
nishat's user avatar
  • 1
0 votes
0 answers
15 views

Unable to mount from a script using shebang (kernel hardening related ?)

I stumbled across a really weird issue with mount. I'm unable to make sense out of it. For some context, I wrote a Python script that aims to automount hot-pluggable USB devices, but this is not ...
ShellCode's user avatar
  • 225
1 vote
1 answer
70 views

How to drop the contents of the block cache of a partition/drive in Linux?

(Moved from Stack Overflow.) I have a simple backup process that copies a bunch of files to a USB flash drive. I want to verify that copying was successful by re-reading the flash drive and comparing ...
user2864482's user avatar
0 votes
2 answers
51 views

Why can't keyboards be used in customized linux?

I am customizing a Linux system using a Linux kernel of 6.4.0. After booting, why is the keyboard not working? # 1. The disk is externally connected through a USB interface. If I enter the Linux live ...
ABeginner's user avatar
  • 101
0 votes
0 answers
64 views

Why do_exit() undefined?

I was building a kernel module for trying kthreads. A thread function after doing its works exits by calling do_exit(0). But when I am trying to compile the module, it is showing the error that ...
arka's user avatar
  • 193
0 votes
0 answers
27 views

What is wrong with the recognition of this HID device?

I have a Panasonic CF-31RECAXDR Toughbook with 6.3.0-kali1-amd64. (https://linux-hardware.org/?probe=2c021f93de) Kali does not recognize the HID device Fujitsu Component Limited USB Touch Panel, no ...
angel meneses's user avatar
1 vote
2 answers
39 views

Leftover kernel directories with files

Why there are Kernel leftovers and can I get rid of them automatically? There are so many kernel directories after a few months, that I get annoyed with it. I just carefully inspected the /usr/lib/...
Vlastimil Burián's user avatar
0 votes
0 answers
46 views

How do I write a kernel driver for a custom partition table format?

I have a number of hard disks that use a proprietary partitioning system. The disks don't contain partition tables themselves, but each have a known number of partitions at fixed positions with fixed ...
User's user avatar
  • 101
0 votes
0 answers
46 views

Memory protection keys: Exception handler crashes if pkey0 is write-disabled

Background: in-process isolation based on memory protection domains in x86/linux using memory protection keys (MPK) and the protection key register PKRU. Setup: The program first executes ...
Robert Kueffner's user avatar
0 votes
2 answers
42 views

Why does ftruncate with a shared memory object not use memory?

I've observed that I can create a shared memory object and give it ostensibly any size with ftruncate, regardless of the resource limits on my system. The code below sets the size to 262 TB, and ...
bgfvdu3w's user avatar
  • 115
0 votes
0 answers
25 views

Stopping all sounds before freezing, restarting after wake up

In the last few days I took the habit to leave alsaplayer looping. On freezing, it stopped; on waking up, it resumed... for a few times. The last time it didn't resume. dmesg was showing ...
Ale's user avatar
  • 157
5 votes
1 answer
388 views

Can loop devices be automatically cleaned up when a process exits?

I'm trying to figure out a clean and safe way to use loop devices inside of a build script. To the best of my knowledge loop devices are required if you want to (GPT) partition and (FAT32, EXT3) ...
Philip Couling's user avatar
0 votes
1 answer
108 views

Removing old kernels seemingly removed graphics driver, is it safe to reboot?

Removing old kernels seemingly removed graphics driver, is it safe to reboot? While doing a routine sudo apt upgrade, I received a No space left on device error. It turned out that kernels kept ...
yx0209's user avatar
  • 1
0 votes
1 answer
62 views

Linux OS bootup sequence with systemd - what are the exact correct steps?

It would be really great if someone can confirm that the below steps are correct. I would like to know the exact correct steps. Power ON the computer. Basic I/O system (BIOS/UEFI). The first program ...
Md Abbas Ali's user avatar
0 votes
1 answer
71 views

No rule to make target `scripts/extract-cert' when building Linux Kernel - Centos 7, devtoolset-9

I'm trying to debug my build environment for compiling a linux kernel with some patch sets. I installed devtoolset-9 in my CentOS 7 environment to satisfy the minimum gcc version requirement of the 5....
merlin's user avatar
  • 1
0 votes
1 answer
105 views

modprobe: ERROR: could not insert 'efivarfs': No such device

when I run efibootmgr command: efibootmgr --create --disk /dev/sdb --part 1 --loader /EFI/syslinux/syslinux.efi --label "Syslinux" --unicode I get this error: EFI variables are not ...
Martin Vegter's user avatar
0 votes
0 answers
74 views

How to install and update specific Ubuntu kernel version

I have a 22.04 LTS Ubuntu server with 5.15.0-60-generic kernel version. I want to update my kernel version to 5.19.0-38 using CLI. Most of the people online use mainline repository for their usage. ...
Antenna_'s user avatar
1 vote
1 answer
99 views

make menuconfig hangs when trying to compile linux kernel 6.1.44

I am trying to compile linux kernel 6.1 on Debian 12. I have installed the build environment: apt-get install build-essential bc libncurses-dev libssl-dev libelf-dev bison flex Now when I run make ...
Martin Vegter's user avatar
0 votes
1 answer
27 views

Building Kernel for Debian on another Machine: GRUB: Out of Memory

I to an evalboard for Intel Elkhartlake. The problem is the Plattform is not really a productive one. It tends to get hot, has only a 16GB CFast Storage Card and 1 GB of RAM. I installed a debian ...
maxbit89's user avatar
  • 103
1 vote
0 answers
105 views

Building a Debian install image with a custom kernel using a Debian Live Build

I am trying to create a debian install image using a live-build tool. But during installation, the custom kernel I added is not used. I am trying to create a debian install image using a debian live ...
Kill_Real99's user avatar
0 votes
0 answers
64 views

Unable to disable the "INFO: task kworker/u8:3:116 blocked for more than 120 seconds" when booting Ubuntu on QEMU

I have a emulation hardware device which can take more than 120 seconds to run when booting. I always got the following messages: [ 242.914490] INFO: task kworker/u8:0:9 blocked for more than 120 ...
cuonghl's user avatar

1
2 3 4 5
70