Questions tagged [kernel]

Everything about Unix kernels: development, configuration, compilation, design, etc.

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

How do you call a driver function from a user space program (assuming you have properly registered the driver)

I suppose my question must seem hopelessly amateur, but I only started using linux seriously recently, and I cannot find a clear answer to this, rather simple question. I also have some additional ...
0
votes
0answers
20 views

Virtualbox 64 bit guest

I'm running Ubuntu Server x86_64 20.04.1 LTS on 2x*(socket, not core count)*AMD Opteron 6128 cpus. I'm trying to install a Gentoo x86_64 guest on Virtualbox headless. However, every time I load the 64-...
-2
votes
0answers
22 views

output the lines that has 5 or more characters? [duplicate]

How can cat a dictionary file and only output the lines that has 5 or more characters Or specify a range of characters Thanks in advance.
0
votes
0answers
13 views

Is it possible to find the line of the binary that caused a Kernel OOPS?

I'm looking at the vmcore dump. I'm looking for the line of code in the "Command" that trigged the Kernel OOPs. In the below example, in the crash utility output of of vmcore, you can see ...
0
votes
2answers
20 views

Is there any feasible way to install a kernel-devel version that not in base repo anymore?

I have a server running CentOS 7.3.1611, kernel 3.10.0-514. Now when installing kernel-devel, the version in repo is 3.10.0-1160 which differ from kernel version. I know that I can get exact kernel-...
-2
votes
1answer
64 views

No bluetooth and

I know it's a duplicate of a duplicate of a duplicate... but I tried solutions that I found (about sudo groupadd rfkill and others) and it didn't work So I will begin with that $ bluetoothctl Agent ...
0
votes
0answers
27 views

Random freezes and reboots AMD Ryzen

I have an AMD Ryzen 7 3800x with a MSI x570 mobo. I suffer from random reboots and freezes on Linux. Windows works totally fine though. I've searched on several forums and stackexchange threads, and ...
0
votes
0answers
10 views

Fedora almost freezes delaying every mouse movement or keyboard keypress

Sometimes my system almost freezes delaying every mouse movement or keyboard key press. I said almost freezes because every about 5 seconds it wakes up for a second and I can see what I typed a few ...
0
votes
1answer
14 views

MY laptop msi gs73vr 7rf fans are not working!

I'm wondering why my laptop fans are not working. MODEL: MSI-GS73vr 7rf stealth pro I checked thermald I checked pwmconfig I checked sensors-lm I checked arch fan control page The fan rpm is not ...
1
vote
0answers
41 views

How to check if IP has MAC address and if MAC = NULL, reboot

I have a machine that is used for network storage, that's it. Not a daily use machine. It's using LAN for network connection. For some unknown reason my MAC address is dropping from a machine on my ...
3
votes
0answers
9 views

Automatically setting up a data connection on boot using qmicli and udhcpc (on linux: Raspberry Pi)

I am currently working on a project with a raspberry pi and a 4G hat (using SIM7600E-H). I managed to setup a connection (with APN) manually and then get a lease for an IP. (using this tutorial). ...
0
votes
0answers
14 views

Cannot install wifi driver and nvidia-driver simultaneously on Omen 17-cb0xxx (Debian 10)

I have a Omen 17-cb0xxx Laptop with: NVIDIA RTX 2070 (mobile) Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz Intel Wifi 6 AX200 160MHz (the wifi component, which will be relevant later) I recently wanted ...
0
votes
1answer
36 views

rhel + eth0: Detected Tx Unit Hang

Dear friends and college we have VM machines with rhel 7.2 version - 3.10.0-327.el7.x86_64 we noticed about the following messages ( from /var/log/messages ) e1000 0000:02:01.0 eth0: Detected Tx Unit ...
2
votes
1answer
40 views

sshd disconnects after unknown syscall

I'm working on an embedded system (based on a Cortex-A8 CPU) running Linux kernel 4.19, OpenSSH_8.3p1, OpenSSL 1.1.1h, glibc 2.32, compiled with GCC 10.2 using buildroot. When a client tries to ...
0
votes
0answers
7 views

Is there a way to make kdump dump its log onto the frame buffer?

I was wondering if there is a way to make kdump dump its log onto the frame buffer (the screen where the xserver is displayed) rather than into the system console. I know this isn't really possible ...
1
vote
0answers
23 views

Wifi card running hotter on Arch than other distros

So recently I've tried using arch because why not, and I really like my setup, the only thing that is bothering me, is the fact that the wireless card is running hotter than other distros (45°C on ...
0
votes
2answers
64 views

Does fork() also copy the file descriptor for the executable binary that the calling process is currently executing?

I've read the man pages on fork(), and they say something along the lines of "all file descriptors open in the calling process are copied". It is not 100% clear to me if the file descriptor ...
2
votes
0answers
30 views

Trying to run linux kernel using QEMU, having trouble with boot process

For a project, I need to be able to run an uncompressed linux kernel. It was recommended to me to try emulating this using QEMU, since that's less involved than booting it straight on the machine. ...
1
vote
0answers
42 views

Root volume fs (ext4) is kernel-remounted at every boot

[Arch system on UEFI / GPT boot] Every time I boot, my box' root volume (located in its own ext4 partition) is re-mounted, something that (I think) never occurred before my last update (kernel 5.8.5 -&...
1
vote
0answers
25 views

Kernel loop,system freezes,tainted module

Using Fedora 32, kernel 5.8.15-201.fc32.x86_64, and keep getting system freeze, with the error below. I noticed it usually appears after a period of inactivity(after sleep occurs). I use a Dell ...
0
votes
1answer
63 views

No sound device in kernel 5.7 failed to load sof firmware

I am using parrot os (based on Debian unstable). My audio controller is Intel audio. Here is the lspci: Multimedia audio controller: Intel Corporation Device 02c8 Flags: bus master, fast devsel, ...
1
vote
0answers
20 views

System gradually freezes on USB device resetting

I'm using a serial terminal to interact with a micro-controller (bluepill-STM32F103-genuine) over USB ACM. It works fine upon powering up. But upon resetting the board, it hangs my system in a way ...
1
vote
0answers
32 views

Read kernel messages during boot before crash

I am trying to debug a boot loop issue. The issue disappear if I add acpi=off to my kernel parameters with Grub, and I am trying to understand why. However, when I boot the computer without this ...
-1
votes
0answers
26 views

dirent and dentry

I am working on an OS-Transplant project. I am trying to compare the data structure used for storing directory entries in FreeBSD (dirent) and Linux (dentry). As far as I can see from the linux kernel ...
0
votes
1answer
48 views

Is there a way to specify in a table which executables (via locations & hashes) are allowed to run on Debian?

I'd like to have a table of executables that are allowed to be run on the machine with everything else not getting executed even when the executable flag is set. For instance via a config file like ...
0
votes
1answer
13 views

get pids/locks for lvm - source for opencount on dmsetup info

# dmsetup info Name: ubuntu--vg-root State: ACTIVE Read Ahead: 256 <---- cat /sys/dev/block/253:0/bdi/read_ahead_kb gives 128 not 256 Tables present: LIVE Open ...
0
votes
0answers
246 views

bcmwl-kernel-source not supported on kernel package linux-headers-5.8.0-7625-generic

is there any solution for this issue? I've tried sudo apt-get --reinstall install bcmwl-kernel-source but it give me this result : Reading package lists... Done Building dependency tree Reading ...
0
votes
0answers
40 views

Pop OS 20.04 LTS | initramfs-tools error on apt

I was upgrading my python3 from 3.8.5 to 3.9, so I (probably shouldn't have) ended up apt removing python-apt. After that, I tried reinstalling it but this error came up: $ sudo apt-get install ...
0
votes
0answers
10 views

Can you provide btrfs subvolume UUIDs as kernel parameters?

When configuring kernel for hibernation, RESUME boot option has to be provided with UUID for the swap partition. If you're using a sawpfile instead of a swap partition, you have to go through a lot of ...
1
vote
2answers
49 views

What is the behaviour of a file-backed memory map when reading from or writing to an address larger than the length of the file?

I'm trying to figure out whether it would be undefined behaviour to open a memory map to a file with a very large length. My use-case is that I want to be able to see new data when the file is ...
1
vote
2answers
41 views

Real-time patch on Linux 5.9.1 does not show fully-preemptible option for arm64 option

I am trying to get my own custom Real-time Linux on a Raspberry Pi 4B. My status is this: I built the Linux 5.9.1 version, and have my own version of U-Boot, RFS with which I am able to successfully ...
2
votes
1answer
42 views

Why does compiling a kernel module with `SUBDIRS=…` fail on newer kernels?

I am compiling a kernel module with a build script including the following command: make -C /lib/modules/$(uname -r)/build SUBDIRS=$PWD modules This used to work... but now it fails with this error: ...
1
vote
1answer
57 views

Why the hdmi output doesn't work on orange pi one?

I made a small linux distro to use on my projects involving an orange pi one H3, but the HDMI output never works To know if the device was supported by the linux kernel, i tested another distro (...
-2
votes
1answer
71 views

What executes instructions for a process: the kernel or the cpu?

Computer Systems: a Programmer's Perspective says: Figure 8.14 shows an example of context switching between a pair of processes A and B. In this example, initially process A is running in user mode ...
2
votes
2answers
89 views

change order of SATA and RAID controller when booting linux kernel

I have onboard SATA controller, and also an additional RAID controller card: 00:17.0 SATA controller: Intel Corporation Device a282 ... 04:00.0 RAID bus controller: LSI Logic / Symbios Logic MegaRAID ...
0
votes
2answers
34 views

Do distros not compile the kernel, and if so how?

Heyo! I'm a regular Gentoo user, who manually builds everything. Hence, this is a stupid question, but a question nonetheless - do distros like Ubuntu not compile the kernel while installing? Like, ...
0
votes
0answers
39 views

Hibernate to separate partition or file from system swap to prevent failure

Having done a fair bit of reading and searching for this I don't believe what I am hoping for is possible, but wondered if anyone knows differently. The issue is my laptop keeps failing to hibernate ...
-1
votes
1answer
44 views

why free command say different from the real consuming memory

from our linux VM rhel 7.5 server with 126G memory we have strange memory behavior that consume all available memory as the following free -g total used free shared ...
0
votes
0answers
8 views

v4l2 Eroor : “Error : Internal Data Stream Error”

I have a camera (Theta V) and wanted to use it as a device camera using v4l2, I downloaded a script that uses v4l2 to do a stream, it worked for everyone but I got this erroe Error : Internal Data ...
0
votes
1answer
15 views

Analyze the programs/commands frequency since boot up (command vs. PID histogram)

I would like to see which program got a PID most frequently and second frequently in my system since the last reboot. If I run top now, I can see the PID column and the COMMAND column but only for ...
0
votes
0answers
27 views

How to enter the root PID namespace from a distribution installed on WSL?

I've been experimenting with the Windows Subsystem for Linux v2 (WSL 2) and read in their FAQ that all distributions are installed on the same virtual machine (VM), isolated using namespaces, in Hyper-...
1
vote
1answer
32 views

How can I disable a kernel driver for a specific USB device? (re: driver is not compiled as a module)

Is it possible to prevent a kernel driver from loading for a specific USB device? One approach is to use modprobe.conf and assign the USB device to a dummy module but this doesn't appear to work. The ...
0
votes
0answers
42 views

Explain the output of uname(1)

I am a FreeBSD user, and in the latest numberic release of FreeBSD, the output of uname -v is this: FreeBSD 12.1-RELEASE-p10 GENERIC Which according to the manual page, Writes the version level of ...
-1
votes
3answers
43 views

rhel 7.x machines unexpected failure and message file

we have today strange behavior with our Linux server rhel 7.6 from some reason server goes down and from the messages file we can see that server stop be available on Oct 16 18:17:22 after some ...
0
votes
1answer
36 views

Is there any way to force the Linux kernel to ignore O_DIRECT?

Without going into a lot of detail about why I want to do this ... is there any way to force modern Linux kernels to ignore the O_DIRECT flag when opening a file? Basically, I want O_DIRECT treated ...
0
votes
0answers
16 views

where to load vmlinux image on arm64? and how to set the load address?

For arm64, when we compile the kernel, we get vmlinux file. The entry point seems to be 0xffff800010080000 (virtual address ) but where should I load the vmlinux file (I mean physical address) and ...
0
votes
1answer
86 views

Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00 - Not able to resolve

I am facing a Kernel panic from which I am not able to solve my way out. I saw some posts regarding the same but none seems to be conclusive. I am trying on a Raspberry Pi 4B hardware to build and use ...
0
votes
1answer
56 views

How do install the Debian package manager (dpk and apt) in my custom Linux distribution? [closed]

I've been already made a bootable Linux-based OS using the kernel, busybox only, and testing it in the QEMU emulator is successful. The next step I need is to install dpkg and APT (Debian package ...
0
votes
1answer
16 views

nvmem device tree naming pattern

In the nvmem.yml there is properties: $nodename: pattern: "^(eeprom|efuse|nvram)(@.*|-[0-9a-f])*$" I have a hard time finding the pattern in the source code itself. Where can I find ...
2
votes
0answers
30 views

Program to read the full RAM chip

I am trying to find a clever and simple way to read every address of memory. I am new to kernel development, but I presume this program will need to run in kernel space to have access to the whole ...

1
2 3 4 5
58