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

learn more… | top users | synonyms

2
votes
2answers
734 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
40 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 ...
3
votes
3answers
176 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
68 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
91 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
52 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
64 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
186 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
66 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
31 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
670 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
53 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
158 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; ...
8
votes
4answers
127 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
281 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
57 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
405 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
71 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
48 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
50 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
346 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
144 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
38 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
167 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
501 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
148 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
53 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
86 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
111 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
54 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
119 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
87 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
423 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
205 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
60 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
76 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
83 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 ...
5
votes
1answer
77 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
109 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 ...
4
votes
1answer
817 views

Setting up HDMI output from Linux console

I am currently running Debian Wheezy on a HP Microserver N54L with an AMD Radeon 5450 video card. I would like to be able to play audio from the console through the HDMI port of my video card and ...
9
votes
5answers
1k views

What is meant by “a system call” if not the implementation in the programing language?

I would like to understand the term "system call". I am familiar that system calls are used to get kernel services from a userspace application. The part i need clarification with is the difference ...
0
votes
0answers
21 views

how get net switch info in soc?

I have a router device. cpu is mtk7620n. mtk7620n have a switch. How can i get information of the switch . swconfig show nothing. i think the switch have no driver. Anybody give me some ...
1
vote
1answer
87 views

Starting my own application at the startup

I am working on zc702 board having ARM Cortex A 9 processor. I have a binary that I got after cross-compilation for ARM (LED blinking). Now I want that this file should execute as soon as the the ...
2
votes
2answers
193 views

Are system calls the only way to interact with the Linux kernel from user land?

Are there any other interfaces, e.g. the /proc filesystem?
-1
votes
1answer
77 views

How to create a custom Linux distribution? [closed]

Can any one tell me the easiest way to create a system with live cd with installing function. Which can install backtrack all tools?? I need to create a custom boot animation and everything!
2
votes
1answer
78 views

What is the difference/relation between kernel name and OS name?

What is the difference/relation between kernel name and OS name? Are they always the same thing? For example, I am puzzled at the outputs: -bash-4.1$ uname -s Linux -bash-4.1$ uname -o GNU/Linux ...
2
votes
2answers
182 views

What is the difference of kernel/distribution's release and version?

I use the following command to see the name, release and version of a kernel. -bash-4.1$ uname -s Linux -bash-4.1$ uname -r 2.6.32-279.el6.x86_64 -bash-4.1$ uname -v #1 SMP Wed Jun 13 18:24:36 EDT ...
2
votes
3answers
192 views

Why is kernel boot starting too late

Log message from ARM Cortex A9 based board. Running linux. [Sat Apr 12 19:33:50.207 2014] [Sat Apr 12 19:33:50.207 2014] [Sat Apr 12 19:33:50.207 2014] U-Boot 2013.07 (Apr 09 2014 - 12:31:52) ...
1
vote
1answer
89 views

Correct location of initramfs.cpio file when compiling kernel

I am following this article and generated an initramfs.cpio file. Now the tutorial mentiones that I have to put this file in build directory: Finally, you have to rebuild the kernel again: # 0. ...
3
votes
1answer
202 views

Why isn't “REISUB” working on Debian?

I'm using Debian 'Jessie'. Sometimes my computer freezes, and then I can't use Ctrl+Alt+Supr to reboot, Ctrl+Alt+Backspace to kill the X Window System nor Ctrl+Alt+F1 to open a new shell. I've read ...