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

learn more… | top users | synonyms

4
votes
1answer
52 views

What causes /proc/<pid>/* resources to become owned by root, despite the procs being launched as a normal user?

I've noticed that some procs, such as bash, have their entire /proc/<pid>/ resources readable by the user who created that proc. However other procs, such as chrome or gnome-keyring-daemon, have ...
1
vote
0answers
24 views

Adding IPVS to the kernel

I am trying to setup keepalived on a pair of VPS load balancer servers. I have hit the road block of IPVS not being included with the kernal. IPVS: Can't initialize ipvs: Protocol not available I ...
2
votes
0answers
19 views

Intel Xeon stuck at 800mhz CPU Freq on RHEL 6.5 [duplicate]

Currently running into a headache trying to figure out why my CPU speed is stuck as such a low frequency. After doing some research, I found that cpuspeedutil does actually control the state of the ...
1
vote
2answers
43 views

How to find out the bad block table offset and how to change it in u-Boot

I am facing a similar problem as this: Kernel does not recognize nand bad blocks marked by u-boot I'm using a friendlyARM micro2440 board that contains the s3c2440 ARM processor. u-Boot has found ...
0
votes
2answers
90 views

Porting jvm into the kernel space?

Currently I am playing with the idea of a jvm running in the kernel space, as a (maybe linux) kernel module. I see a lot of advantage of the idea. Of course the biggest advantage of a such system ...
1
vote
0answers
34 views

Get log from kernel while loading

There is a arm/omap2-based device without ethernet, UART ports. It has usb connection with host, numeric keyaboard, LCD display. There is working U-Boot and kernel images for this. I'm trying to ...
3
votes
1answer
133 views

Library routines in linux kernel

In the linux kernel, there is a section "Library routines" with a snippet shown below: Library routines ---> <M> CRC-CCITT functions <M> CRC ITU-T V.41 functions <M> CRC7 ...
1
vote
0answers
42 views

How to check and set “rhash_entries” parameter?

I'm reading this article, and it says: rhash_entries is the size of the hash table. If you don't specify it on the kernel command line, it is computed dynamically based on the memory available on ...
0
votes
0answers
59 views

ftdi_sio not pre-installed

I have recently recompiled my Ubuntu's kernel to Linus' most recent one. After rebooting, I tried to connect my computer to a development board via an FTDI FT232 USB-to-Serial converter. It used to ...
0
votes
0answers
46 views

How to set sctp_nodelay to enable piggybacking while replying back

Problem: We are hosting a telecom application that receives traffic from the network at > 500 TPS. The packets are piggybacked so each sctp packet contains multiple application layer packets lets say ...
1
vote
1answer
81 views

custom kernel and firmware loading

After I have compiled my kernel, and when I type make modules_install, not only are the modules copied into /lib/modules/ but also firmware is copied into /lib/firmware/. The following is the end of ...
2
votes
2answers
238 views

Where does make defconfig get its configuration in OpenWrt?

I am compiling an image for wifi devices using OpenWrt. Following the instruction I copy a simple .config file to TOP-DIR. CONFIG_TARGET_ar71xx=y CONFIG_TARGET_ar71xx_generic=y ...
0
votes
0answers
30 views

Black screen when kernel boots with vga= parameter

Recently recompiled kernel refuses to do output on the screen if vga parameter was in the list. Without it kernel boots properly as usual, however, before that it changed resolution and RC log ...
1
vote
2answers
76 views

Compare two kernel config files from the menuconfig perspective?

I have a situation in which i have two kernel config files (for the same kernel source ). Both of them have a part of the functionality that i need (on one, USB works correctly, on other, the second ...
2
votes
1answer
50 views

What is the difference between all and default in kernel setting? [duplicate]

I want to enable reversed path filtering to prevent source ip spoofing on my server. I noticed that I have the following settings at current: net.ipv4.conf.all.rp_filter = 0 ...
-1
votes
1answer
69 views

MIC not working due to USB bandwidth

Using debian and centos, i get the same error when plugging my USB mic in. In Windows (xp thru 8.1) it works fine. [ 304.237543] usb 2-1.6.2: USB disconnect, device number 6 [ 305.220785] usb ...
1
vote
1answer
42 views

How to undo kernel settings?

While trying to read some kernel parameters, I think I have mistakenly set some instead: # sysctl --system -r ^net.*tcp * Applying /usr/lib/sysctl.d/00-system.conf ... * Applying ...
0
votes
0answers
44 views

How does one clean up a stale CIFS mount

I have a recurring problem where I need to mount a drive of a Win32 machine on my LAN so I can read and write files to it. But I have no control of said machine, and as such, said machine frequently ...
6
votes
1answer
175 views

Can you explain the entropy estimate used in random.c

/dev/random uses the timings of kernel interupts to add to the entropy pool. The amount of entropy in the pool is tracked in a variable named entropy_count. Here is the relevant snippet of code from ...
0
votes
1answer
38 views

How are the different kernel naming schemes relate?

I am running Ubuntu 13.10 with the Kernel 3.8.0-030800-generic downloaded from http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.8-raring/ When I want to run for example turbostat or cpupower ...
0
votes
1answer
28 views

Is there any alternative to genext2fs in RHEL?

I am tryting to make initrd file system following [this tutorial][1] My host system is RHEL 6 64 bit. I am unable to get the required command: genext2fs No rpm is available for it, neither ...
2
votes
1answer
281 views

What would happen if the amount of free memory (vm.min_free_kbytes) was too low?

I came across the following parameter in kernel settings (in sysctl): vm.min_free_kbytes This is the amount of free memory (RAM) that's always free no matter what. In my case, I have only 1 GiB of ...
0
votes
1answer
43 views

Is there a way to permanently exclude the kernel from updates?

I'm using Fedora and wonder if there is some way I can exclude kernel updates when I run yum update, until I specifically want to update the kernel. The reason why I am concerned about this is ...
1
vote
1answer
99 views

Linux kernel: task vs thread

When I was reading a book(Linux kernel programming), I got interesting/confusing paragraph about mm_segment_t addr_limit(one of the member in struct_task) as below: mm_segment_t addr_limit; ...
7
votes
4answers
100 views

Why does *BSD uses driver specific names for network interfaces? Does it imply limitations?

I notice that depending on the brand of the network card, interface names differ (driver dependent I suppose). Why does *BSD uses driver specific names for network interfaces? Does it mean there is ...
2
votes
3answers
96 views

how is page size determined in virtual address space?

Linux uses a virtual memory system where all of the addresses are virtual addresses and not physical addresses. These virtual addresses are converted into physical addresses by the processor. To ...
3
votes
1answer
43 views

OOM Killer value always one less than set

I am trying to set the oom_adj value for the out of memory killer, and each time I do (regardless of the process) I get back exactly one less than I set (at least for positive integers. I haven't ...
4
votes
4answers
373 views

Run command when temperature exceeds threshold, without daemon

I need to run a specific command if my laptop gets too hot (for example, send a STOP signal to Firefox or Virtualbox in order to prevent my laptop from shutting down violently and damaging my hard ...
3
votes
2answers
58 views

what is the difference between Device driver and kernel module

i know that driver is a software that can communicate with the hardware in order to control the device that attached to the computer.whereas kernel module is a small piece of code that can inserted ...
3
votes
1answer
29 views

filesystem that works under qemu and I can mount on my host

I'm using qemu for different kind of tasks, I would like to pick a filesystem that is both qemu-compatible and easy to mount under my host. I already discarded both qcow and qcow2 because apparently ...
1
vote
1answer
38 views

Getty instances in init process

Init typically will start multiple instances of "getty" which waits for console logins which spawn one's user shell process. Upon shutdown, init controls the sequence and processes for shutdown. The ...
2
votes
1answer
259 views

Kernel 3.12 or 3.10? which one has more features, newer and better?

Based on https://www.kernel.org/ kernel 3.12 is released in 2014-04-23 and kernel 3.10 is released in 2014-04-27. Based on release date, 3.12 is older and based on version number 3.10 is older. Which ...
1
vote
0answers
71 views

Some questions compiling linux kernel with make-kpkg

I'm doing my first steps compiling the linux kernel and adding a new system call. I've managed to do it, but I still have some questions. For this task, I has set up a Virtual Machine guesting debian ...
1
vote
1answer
21 views

Build kernel with multi_v7_defconfig setting

What is multi_v7_defconfig used for and how do I build the Linux kernel with this? I think I can write this into config file as: CONFIG_multi_v7_defconfig=y Please correct me if I'm wrong.
0
votes
1answer
107 views

set permission 0666 on /dev files at boot time

I have to load a few additionals modules. One of them generates /dev/knem file. I have to set the permission to 0666, so a basic chmod 0666 /dev/knem works, but I would like to assign it directly at ...
4
votes
1answer
230 views

kernel: disabling /dev/kmem and /dev/mem

I understand that /dev/kmem and /dev/mem provide access to the memory (i.e. raw RAM) of the system. I am also aware, that /dev/kmem can be completely disabled in kernel and that access can be ...
0
votes
1answer
99 views

How can I boot with a compressed rootfs?

My problem is: I cannot use compressed rootfs (the kernel crashes during boot) but uncompressed ones work fine. What I did: I'm using Buildroot 2013.11 to generate Images for my embedded Linux ...
1
vote
1answer
46 views

Should I upgrade Ubuntu 12.04 kernel [closed]

I am currently running the 3.5.0.48 kernel on my Ubuntu 12.04.4, and I was wondering whether I should upgrade to 3.8 or 3.11. This makes it seem easy enough. Though I will wait with throwing away my ...
1
vote
0answers
62 views

Debugging a “brutal” system hang (no longer responds to Alt+SysRq+B)

I've had a series of system hangs where I hoped to get a crash dump to at least get some clues but the normal "magic sysrq" functionality is broken too; not even the immediate reboot key works. The ...
3
votes
2answers
84 views

How to query EFI signature

It appears that Grub-EFI will only boot a "signed" Linux kernel. Is there some command that will allow me to query a given kernel image to find out what signatures (if any) are present on it?
0
votes
0answers
23 views

Can I use lldb to remotely debug the Linux kernel?

With GDB, I can remotely debug the Linux kernel. lldb, which promises to completely replace GDB, should be able to remotely debug the Linux kernel too. However, I cannot find any tutorial about this ...
4
votes
1answer
99 views

What does this dd command do exactly?

I have the an embedded device with this SD card: [root@(none) ~]# busybox fdisk -l Disk /dev/mmcblk0: 3965 MB, 3965190144 bytes 4 heads, 16 sectors/track, 121008 cylinders Units = cylinders of 64 * ...
2
votes
2answers
75 views

Ubuntu kernel source code package

Can somebody explain me the difference between the following files: drwxr-xr-x 28 root root 4096 Apr 22 12:04 linux-lts-raring-3.8.0 -rw-r--r-- 1 root root 15209788 Mar 14 03:38 ...
0
votes
1answer
254 views

modpost.h:12:23: fatal error: elfconfig.h: No such file or directory

I am running Ubuntu: #lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 12.04.4 LTS Release: 12.04 Codename: precise Kernel info: 3.8.0-38-generic ...
1
vote
2answers
127 views

FATAL: Module hello.ko not found

I'm using CentOS-6.5 and default kernel is 2.6.32-431.11.2.el6.x86_64. I downloaded 2.6.32 and built that kernel (under /lib/modules/2.6.32). I wrote a module for simple hello world program. This ...
1
vote
2answers
53 views

Block physical console access

I'd like to block physical console access to my linux. I'd like to find, which module is responsible for keyboard input (ps/2, usb, ...) and vga output (only physical), so I can remove them from my ...
0
votes
1answer
67 views

Do I have to compile the kernel every time, even for a small change?

In my project I configure the kernel (2.6.32) in block/ioctl.c. We all know that kernel compiling and building takes few hours. Even for a small change, I'm compiling from scratch. So is there any way ...
1
vote
0answers
51 views

Passing data from kernel space to user space in FreeBSD [closed]

I need some information regarding write requests from all applications on FreeBSD. I put a function inside the file system write call ffs_write() which collects the information into an array of ...
4
votes
1answer
60 views

What does “make install” do in the Makefile that comes with the kernel?

I'm trying to identify what does make install do with the kernel and what does the actual "install" of the kernel once it's been compiled means. The problem is I can't really identify the target ...
2
votes
3answers
89 views

Placement of kernel binary and sources for kernel module building?

I'm trying to setup an environment for kernel module development in Linux. I've built the kernel in the home folder and would like to place the sources and binaries to the correct place so include ...