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

learn more… | top users | synonyms

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 ...
0
votes
0answers
16 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
60 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
161 views
-1
votes
1answer
74 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
32 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
119 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 ...
1
vote
1answer
48 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
157 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 ...
0
votes
1answer
48 views

How to use a built in driver in the kernel?

I am building the 3.14 kernel for a board that requires the intel e1000e driver. I would like this kernel to have the driver built in so that I can remove loadable module support. I have chosen the ...
0
votes
0answers
129 views

Ping IP works, nslookup fails. New Kernel

I am compiling my own 3.14 kernel. I fear I may have left out some important networking feature to get DNS working. I can't resolve domain names. I can ping my DNS server. I can resolve using that ...
1
vote
3answers
98 views

Enabling IP forwarding at kernel compile time

I am compiling a kernel for a router. I know a way to enable IP forwarding in an existing Linux system. At compile time, CONFIG_IP_FORWARD is said to do the same task. I am configuring version ...
0
votes
0answers
1k views

Kernel panic not syncing : Attempted to kill init

OEL 5.9 (Tikanga) 2.6.18-371.6.1.0.1.el5 On boot I get the following errors: ... exec of init (/sbin/init) failed!!!: No such file of directory Kernel panic - not syncing - Attempted to ...
3
votes
2answers
884 views

Skip all new device drivers in `make oldconfig` for Linux kernel

When using make oldconfig I usually look at new options briefly in case there's something important/useful. However, on an existing system I couldn't care less about new device drivers for some ...
1
vote
1answer
32 views

Where are the files created by “make modules” when building and compiling the Linux kernel?

To build the kernel, I do make menuconfig make make modules For step3, where do the files go? What's the location for modules? Can I change it by using any env variables?
0
votes
1answer
184 views

Linux distro with PREEMPT_RT patch

I want to know if there is any Linux distribution with PREEMPT_RT kernel patch? If not, is there any good tutorial on how to patch and compile a kernel with RT patch and how can I create kind of a ...
1
vote
1answer
46 views

Can a real-time process exist in the 'expired' queue of linux kernel?

In the Linux kernel 2.4: Real-time processes are given a priority of 0-99 and they co-exist in the ready queue along with the nice processes (who's priority goes between 100 and 139). But real-time ...
4
votes
1answer
180 views

Can the 25 years of development of the Linux kernel be qualified or abstracted in layman's terms? [closed]

The Linux kernel is almost 25 years old. If I had to come up with the short version on the development history of the Linux kernel since 1991(its inception date), and in partcular since 1994 (1.0.0) ...
2
votes
2answers
89 views

Newly compiled kernel not booting up (vanilla kernel 3.12.14)

I downloaded, configured and installed kernel downloaded from kernel.org. While booting up this new kernel for the first time, this error screen shows which is pointing towards a missing or wrongly ...
1
vote
1answer
153 views

Why is swap used when a lot of memory is still free? [duplicate]

In the below 2.6.18 Linux Kernel (Red Hat) server, there is a lot of free memory, but I see some swap is used. I always thought of swap as an overflow when memory has been depleted. Why would it ...
0
votes
1answer
135 views

Does an in-kernel firewall sit between the network access layer and Internet layer?

This question is a follow-up to my previous question. Logic for me to says that an in-kernel firewall sits between the network access layer and the Internet layer, because it needs to have access to ...
3
votes
1answer
80 views

How security programs like firewall, IPS and IDS have access to network data?

It is said that kernel responsible for the transport, internet and network access layers for a network data. Then, the network data is passed on the appropriate process based on port number. How ...
6
votes
3answers
185 views

How does one capture traffic on virtual interfaces?

I would like to capture traffic on Linux virtual interfaces, for debugging purposes. I have been experimenting with veth, tun and dummy interface types; on all three, I am having trouble getting ...
4
votes
1answer
195 views

How we can avoid rebooting the system after partition change with fdisk?

When modifying the partition table, fdisk usually returns the following error message: WARNING: Re-reading the partition table failed with error 16: Device or resource busy. The kernel still ...
1
vote
1answer
191 views

High performance routing with high churn ruleset. What approach is most likely to scale to C10K and beyond?

I've been asked to create a high throughput router using PC / server hardware. I'm modestly familiar with pf, iptables, and tc, but I've never had such high churn and so many rules. I hope you can ...
1
vote
1answer
51 views

How to automate configuration of the Linux kernel build

I'm compiling a flavor of the Linux kernel based on the default configuration (for an ODROID system), with some additional features enabled. I want to automate this process so that I don't have to ...
3
votes
2answers
109 views

Process in user mode switch to kernel mode. Then the process will have root privileges?

According to http://www.linfo.org/kernel_mode.html in paragraph 7: When a user process runs a portion of the kernel code via a system call, the process temporarily becomes a kernel process and is ...
51
votes
3answers
3k views

What happens when I run the command cat /proc/cpuinfo?

What happens when I write cat /proc/cpuinfo. Is that a named pipe (or something else) to the OS which reads the CPU info on the fly and generate that text each time I call it?
8
votes
3answers
2k views

How should I configure grub for booting linux kernel from a USB hard drive?

I have a laptop hard drive in an external enclosure which I use as a large pendrive. For an added twist, I have installed Linux on it, so I can boot any machine with my distribution of choice (e.g. ...
8
votes
4answers
1k views

GRUB on USB Drive — adding OSes

Some Background: Coming from a largely Windows background (though I'm familiar with Ubuntu, etc.) and using a Windows 7 machine to complete this task Have gotten GRUB installed successfully to the ...
2
votes
1answer
375 views

modules make: *** /lib/modules/3.7-trunk-amd64/build: No such file or directory

I need to install Kali Linux updates without Internet access on my laptop. I think I need to do this because I'm trying to install the WiFi driver but I get an error when I try to make: make ...
1
vote
0answers
23 views

How to correctly set kernel command parameter for sdboot

Thease are the kernel command line parameter Kernel command line (user set) root=/dev/mmcblk0p2 rw rootwait console=ttyPS0,115200 I am trying to run linux from sd card, and the file ...
3
votes
1answer
202 views

What is the relationship between root and kernel? [closed]

Based on part of the first answer of this questions: read from a file (the kernel must check that the permissions allow you to read from said file, and then the kernel carries out the actual ...
3
votes
1answer
48 views

Result from kernel returned to what process?

When a process requires actions that require kernel mode, it uses a system call. So, how are the results returned to the process?
5
votes
0answers
69 views

Is my understanding of kernels correct? [closed]

System: Application OS: Scheduler, VMM, IPC, FS Drivers, dispatchers, VFS The above would be a monolithic kernel. In a monolithic kernel all core OS functions are separate from user space. Functions ...
4
votes
4answers
3k views

Cannot create “Hello World” module (and NVIDIA, and VirtualBox)

First off, the details. BEFORE: kernel: 3.2.0-2-amd64, nvidia driver: 295.59 AFTER: kernel: 3.2.0-3-amd64, nvidia driver: 302.17-3 My Debian wheezy is kept recent at all times. Actually, doing ...
5
votes
1answer
283 views

Virtual kernel memory layout: negative values [closed]

i'm porting drivers for omap3-board to 3.5 kernel. When I start board I see it: Memory: 256MB = 256MB total Memory: 253564k/253564k available, 8580k reserved, 3226106074K highmem Virtual kernel ...
0
votes
2answers
900 views

critical section for linux

In linux or a library for linux, is there an equivalent to critical section in win32? I am aware of Mutex, but it is not the same as critical section since a critical section uses user-mode spinlock ...
0
votes
0answers
16 views

Does ksplice work with updates from repos?

If there is a kernel update from an upstream repository (such as debian or centos) does ksplice work with those updates? If not, how does one update the kernel without a reboot and without paying ...
7
votes
3answers
340 views

What defines the maximum size for a command single argument?

I was under the impression that the maximum length of a single argument was not the problem here so much as the total size of the overall argument array plus the size of the environment, which is ...
1
vote
0answers
443 views

Linux thin station

I have this pc that I just installed and set it up as Linux thin station. I did all the formatting procedures and copying of image to the HD. When I boot it up, I get these, which I think are driver ...
3
votes
1answer
148 views

What is the “kernel build”, and where do I get it?

I am trying to compile OpenOnload from Solarflare for my nic on a server that I'm building. It is saying something about not having a kernel build. root@server:/usr/src/openonload-201310-u2# ...
1
vote
1answer
45 views

Linux Web Kiosk [duplicate]

Hi I'm having a idea of develop a light weight Linux kernel which will boot and open a web browser in full screen and request data from pre define URL. Can any one give me some guides on this please. ...
16
votes
3answers
549 views

What are the responsibilities of each Pseudo-Terminal (PTY) component (software, master side, slave side)?

I am trying to figure out how a tty works1 (the work-flow and responsibilities of each elements). I have read several interesting articles about it, but there are still some blurry areas. This is ...
2
votes
0answers
180 views

Wireless constantly reconnecting on Ideapad running Arch

I just bought a new laptop, a Lenovo IdeaPad U330 touch, and after some struggle (with the Secure Boot stupidity) I have managed to install Arch Linux. I have configured my system, installed all the ...
4
votes
2answers
121 views

How do you get hardware info and select drivers to be kept in a kernel compiled from source?

I would like to create a minimal kernel for a web server. When you compile a kernel from source how do you get hardware info and then know what drivers need to be kept in the kernel so the rest can ...
4
votes
1answer
168 views

How are Linux kernel compile config's determined?

I am compiling my first Kernel (3.5 rc1) from source through menuconfig. Certain configuration options are pre-set. Who / what determines if they are pre-set? Does the make menuconfig somehow ...
1
vote
2answers
750 views

Automatic kernel configuration tool

Is there any developed automatic linux kernel configuration tool? I have found a method of make localmodconfig, but it is certainly very limited. I have searched the web but unfortunately have not ...
0
votes
1answer
118 views

Starting Bootlog daemon: bootlogd

Whenever I run linux on many ARM based systems, I see a message like this: Starting Bootlog daemon: bootlogd. As can be seen from the log messages below, it takes some finite time, close to 0.5 ...
1
vote
1answer
38 views

Different Kernel in /boot and the kernel built tree [closed]

I discovered after a binary comparision that my old kernel in /boot was different from the kernel that I had built and kept backed up in the kernel source tree. A while ago I also had a few ...