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

learn more… | top users | synonyms

2
votes
0answers
18 views

Linux kernel module to read out GPS device via USB

I'm writing a Linux kernel module to read out a GPS device (a u-blox NEO-7) via USB by using the book Linux Device Drivers. I already can probe and read out data from the device successfully. But, ...
0
votes
0answers
7 views

Communication between two kernel drivers [migrated]

I have custom embedded hardware i'm working on which runs linux. I've implemented a spi kernel driver to handle spi access to a eeprom which is exposed to userspace. Now i have another kernel driver ...
0
votes
0answers
18 views

Custom kernel for Intel z2760 CPU [on hold]

A friend of mine wants to install Linux on his tablet with a z2760 CPU from Intel, Googling it gives some forum topics of people saying there Kernel freezes during boot. Is there someone who managed ...
-2
votes
0answers
35 views

Developing Linux Kernel From Scratch - Step by Step [on hold]

I would like to develop my own Linux Kernel. I am pursuing my Final Year in my Bachelor's Degree. I have undergone 2 courses based on this (Operating Systems, reference book is Silberschatz and Unix ...
0
votes
1answer
23 views

CentOS ELRepo Kernel installing VMware

Already installed VMware Workstation 9 on my Linux CentOS 6.5 Final with 3.10.40-1.el6.elrepo.x86_64 running kernel. When I open VMware Workstation, it asks me to locate the Kernel Headers ...
2
votes
1answer
23 views

How do you patch a kernel? [duplicate]

I got diff text from lkml how do I patch it into a kernel source? I am very new to compiling kernels, and I couldn't find decent sources online I am using debian if it is relevant
3
votes
0answers
25 views

Kernel bisect: when a patch is failing for a reason other than original bisect purpose, what do you do?

Let's say you're trying to find the cause of a bug between 3.11.0 and 3.12.0. The bug is really difficult to catch, because it may or may not manifest itself over several days of regular workload ...
0
votes
0answers
29 views

nfsd fails to start: modprobe: FATAL: Could not load /lib/modules/2.6.18-238.1.1.el5/modules.dep: No such file or directory

Before asking, here are some system specs: [root@SERVER ~]# cat /etc/*release **##############CARS build log for cars20-rhel-x86_64############## Date: Mon Feb 28 20:06:05 PST 2011 Builder: ...
1
vote
0answers
21 views

CPUFreq Kernel module

I would like to try the CPUFreq module on my board (Marvell Soc based on ARMv7 running a v3.15 linux kernel). My architecture is obviously not supported by the default source code (located in the ...
-2
votes
0answers
21 views

how to edit usb driver and compile it again in kernel? [duplicate]

I want to add and compile my custom application code into my kernel. How should I add my .c and .o files into my kernel 'bin' directory and compile them? I made a hello.c and hello.o file and I want ...
1
vote
1answer
17 views

Which kernel module name is currently correct “usb-storage” or “usb_storage”?

I have found a number of examples how to prevent a kernel module from being loaded. One of them is about USB storage module. The next code has been provided: echo "blacklist usb-storage" | sudo tee ...
4
votes
2answers
43 views

Why would the kernel drop packets?

I interrupted tcpdump with Ctrl+C and got this total summary: 579204 packets captured 579346 packets received by filter 142 packets dropped by kernel What are the "packets dropped by kernel"? Why ...
1
vote
1answer
26 views

Built new kernel, LVM won't mount from initrd

I need to upgrade my kernel on a RHEL 5 system to build with some experimental drivers. I have configured the kernel with module loading for LVM (dm_* modules). Once the initrd runs the /init ...
3
votes
0answers
28 views

Output shutdown messages to multiple consoles

I have configured my system to direct console output on boot to serial and vga using kernel parameters. Serial is the last argument in the kernel parameters and will be the default used for ...
0
votes
0answers
18 views

psmouse sync issues!

I have Compaq CQ61-420US (64-bit AMD) laptop with Synaptics touchpad checked using $ egrep -i 'synap' /proc/bus/input/devices N: Name="SynPS/2 Synaptics TouchPad" But recently after Arch Linux ...
3
votes
1answer
48 views

Is there a man section or other doc repository for data structure definitions?

For the millionth time or so I had to look in /usr/include/foo.h to find the members of a struct foo or foo_t or whatever. There's a man section for library and kernel calls, some of which include ...
0
votes
0answers
17 views

SLES 10 SP4 - how to get specific kernel source?

I want to look at the kernel source for some specific kernel versions on SLES 10 SP4. I don't want to see just the Linux kernel source, but the one SLES is actually running. Suppose I wanted to get ...
4
votes
0answers
40 views

Linux kernel dropping custom keyboard scan codes

I have a vintage IBM 122 key model M keyboard that I am adapting for use on a modern computer. I am using a Teensy 2.0 to do the encoding and to handle the USB side of things. I borrowed the firmware ...
0
votes
0answers
13 views

looking for a kernel hack [migrated]

I have am Samsung g4 with borked code and for forensics and repair reasons, I need to extract/pull a copy of the running kernel from the /boot sector which is only accessible via Odin. I have the ...
0
votes
1answer
36 views

ncurses-devel problems in SuSE Linux Enterprise Desktop 11

Searching on the WEB, I found this tutorial (the only one that has convinced me) for installing a new kernel and I followed the steps provided. But, I got these problems: In the first step I tried ...
0
votes
0answers
19 views

Calling speaker-test from usermode-helper API

I needed to call come audio-producing applications from kernel in a toy module. In order to test that, I thought of calling speaker-test from a simpler module, but no sound would ever come from it. I ...
2
votes
3answers
46 views

Un-mount active partition

Is it possible to umount the partition, whose files/directories are in use? The underlying files and directories are in memory so un-mounting the partition is technically safe (I guess). But umount ...
1
vote
0answers
39 views

cross compile embedded arm

I have the android 4.2.2 code in directory /home/sghPhone2 which compiles normal with make menuconfig but I need to compile a 4.4 kernel and possibly patch it but when I download the source from ...
1
vote
3answers
47 views

Could it cause any problem if I not reboot after a kernel upgrade?

I know there are solution for not rebooting after kernel update: https://en.wikipedia.org/wiki/Ksplice But If Ksplice isn't installed, and the user doesn't reboots it's notebook after even several ...
3
votes
1answer
146 views

YUM won't update KERNEL

... ... ... --> Running transaction check ---> Package db4-devel.x86_64 0:4.7.25-18.el6_4 will be installed --> Processing Dependency: db4-cxx = 4.7.25-18.el6_4 for package: ...
4
votes
1answer
365 views

get kernel source code

I need a specific kernel version to compile it with some additional modules. When I typing: uname -r I get 3.8.0-29-generic I need this one. uname -a Linux "..." 3.8.0-29-generic ...
1
vote
1answer
41 views

How not to write kernel warnings into /var/log/messages?

I keep getting these log warnings due to a bug in kvm. Jun 30 19:12:31 server kernel: kvm: 28882: cpu0 ignored rdmsr: 0x345 Jun 30 21:12:31 server kernel: kvm: 31191: cpu0 ignored rdmsr: 0x345 Jun ...
1
vote
1answer
23 views

How to modify huge patch file properly?

I have this patch. I want to disable patching of Makefile and drivers/video/logo/logo_linux. What is best way of doing this? Do I edit it, and delete that specific entries? If so, is there a tool ...
1
vote
1answer
197 views

Upgrading kernel 2.6.18 to 2.6.32 on CentOS 5.10

I've been looking on Google for 4 hours and I can't find a solution to my problem. I have a computer running CentOS 5.10 using Kernel 2.6.18-371.9.1.el5 and I would like to upgrade my kernel to ...
0
votes
1answer
25 views

The meaning of Linux Kernel bug output

I have a quick, (maybe naive),question about Linux kernel's output. When I issue a command, the system (Ubuntu 12.04) freezes, the serial port output of this system is as follows: [ 373.805067] BUG: ...
1
vote
1answer
104 views

Debian + Linux kernel 3.12.22: “Kernel module loader” option is not available

The Debian guide for compiling a kernel says: Do not forget to select “Kernel module loader” in “Loadable module support” (it is not selected by default). If not included, your Debian installation ...
0
votes
1answer
41 views

Common code for kernel and userspace [closed]

I'm working on a linux project. I want to have some code (to be specific, a struct) and a header file (my own implementation) common to both the kernel and the userspace. Can someone tell me how to ...
0
votes
1answer
30 views

Debian: GPG cannot fetch Linux Kernel key

I am in the process of recompiling the kernel on Debian. Following the instructions on kernel.org, the first step is to verify the signature. But GPG complains that it cannot find the public key: # ...
2
votes
1answer
35 views

Automatized kernel upgrade

I am writing a BASH script that automatically configures, builds and installs the most recent kernel image. The generated kernel should include the grsecurity patchset. It would use the previous ...
2
votes
0answers
51 views

kernel build: why does 'make install' complain about missing modules?

I'm building a 3.2.x kernel on a RedHat Enterpise system. During 'make install' it takes a very long time and is complaining : ERROR: modinfo: could not find module xxx I assume its probing ...
3
votes
1answer
31 views

Open Character Device without creating a Device Node

I'm having an issue where a 3rd party application is opening a device node it shouldn't. I wrote a SPI Slave device driver that does some processing of messages. When the driver loads its in ...
1
vote
0answers
41 views

What does this “general protection fault” in my console mean, and how do I interpret it?

I had a couple of consoles open for other work and when I came back to them they both contained the following: Message from syslogd@Stacey-Windows at Jun 19 09:43:28 ... kernel:[ 4375.127165] ...
24
votes
7answers
1k views

What's the difference of the Userland vs the Kernel?

I am trying to understand exactly what is userland? everyone that I ask says: "Anything that is not kernel". but it is not tangible for me. When I am reading that kernel can run that driver on the ...
2
votes
2answers
48 views

Debian: get package name for installed file

I'm connected via SSH to a PC running Linux kernel 3.11.1: root@alix:~# uname -r 3.11.1 how can I find out which package installed this specific file or kernel version respectively? I tried ...
1
vote
2answers
267 views

Linux freezing guess: keyboard & mouse (Archlinux and Ubuntu)

Linux on my PC is freezing a few seconds after startup. I am unable to use the mouse / keyboard. Neither Ubuntu nor Arch do anything after a few seconds. Windows has been running fine for years now. ...
16
votes
5answers
844 views

Where does uname get its information from?

Where does uname really get its information from? I figure this is something that should be straightforward. Unfortunately, I can't find any header containing just that information. Say someone ...
1
vote
0answers
28 views

Do kernel threads seem to interfere with full tickless mode?

I'm trying to disable local timer interrupts for low latency. I have full tickless mode enabled in the kernel config and I have the boot parameter nohz_full set for the cores in question. However ...
4
votes
1answer
57 views

Find out if CPU supports dynamic speed setting

I need to find out in my script if a (potentially legacy) CPU supports dynamic speed setting, and eventually get value of maximum and current speed. What makes it more complicated is that I need to ...
2
votes
1answer
117 views

Realtek RTS5209 PCI-E Card Reader only work if card is inserted before boot

Hardware Info Laptop Model: Sony Vaio Pro 13 Problematic Hardware: Bulti-in Realtek Semiconductor Co., Ltd. RTS5209 PCI Express Card Reader Problem description Here is the problem, if I boot with ...
2
votes
0answers
51 views

Kernel crash on Fedora distribution but no sign of kernel panic

I am running kernel 3.14.4 on Fedora 18. I am experimenting with a kernel module I am making. The module has a bug (at least one) and crashes the kernel. Sometimes I see a stack trace on my frozen ...
3
votes
0answers
398 views

After installing a new Kernel in Ubuntu 14.04, rebooting takes me to busybox initramfs. How do I mount a filesystem after that?

I have a virtual machine with Ubuntu 14.04 in it. I recently built and installed linux-3.14.5 kernel on it, and tried to boot into it, but it drops me to BusyBox v1.21.1 built-in shell. Here's what I ...
0
votes
0answers
67 views

Updating kernel on a Chromebook to prep for Chrubuntu

Pretty simple question: I have read that by setting my Chromebook to the dev channel, it will install a later kernel. Currently it's 3.4.0, and it'd install 3.8.0 (64-bit, no less). However, after ...
0
votes
1answer
74 views

Kernel 3.14.1 compilation errors

I installed the kernel 3.14.1 and there seem to be no issues. uname -r 3.14.1-031401-generic However, when I try to go to the folder and try to do a make it fails. I see that multiple files are ...
3
votes
1answer
75 views

When is swap triggered or how to calculate swap_tendency?

I'm trying to use Redis for production services and trying to avoiding swapping, which is bad for performance. I had learn that swap is triggered by swap_tendency which is depending on ...
2
votes
1answer
37 views

kernel event listener

I wonder if there is something similar to an event listener in UNIX that a program can subscribe to? Specifically I want to know: Start and end times of a user session Start and end of the ...