Tagged Questions

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

learn more… | top users | synonyms

0
votes
0answers
898 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
0answers
2k 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 ...
1
vote
3answers
150 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
1answer
66 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 ...
1
vote
1answer
46 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?
1
vote
1answer
82 views

Kernel optimiziations for ioctl AF_INET operations

Our server solution handles many tunnel operation requests (add/update/delete) using the ioctl interface, and the AF_INET address family socket. Aprox. numbers are 100 operations/minute with over 8k ...
3
votes
2answers
285 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 ...
5
votes
1answer
256 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) ...
1
vote
1answer
54 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 ...
2
votes
1answer
683 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 ...
1
vote
1answer
199 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
96 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 ...
0
votes
1answer
97 views

How to verify that my uImage is good?

I had a zImage file and I used mkimage tool to convert it into a uImage format. When I am booting this file, it is not been found by u-boot: Wrong Image Format for bootm command ERROR: can't get ...
4
votes
1answer
246 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 ...
6
votes
3answers
545 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 ...
2
votes
1answer
275 views

Why isn't the -rt (RT-Preempt) kernel patch included by default in the mainline kernel?

According to https://rt.wiki.kernel.org/index.php/RT_PREEMPT_HOWTO , the RT-Preempt patch converts Linux into a fully preemptible kernel. The magic is done by: Making in-kernel locking-primitives ...
1
vote
1answer
113 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
373 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 ...
1
vote
0answers
26 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
377 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
52 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?
56
votes
3answers
5k 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?
5
votes
0answers
76 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 ...
3
votes
1answer
929 views

Linux-image-3.2.0.4-amd64 vs linux-image-amd64 [duplicate]

Installing Debian I have to choose between the kernels linux-image-3.2.0.4-amd64 linux-image-amd64 What's the difference?
0
votes
0answers
18 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 ...
3
votes
1answer
2k views

usb kernel module does not load on demand but works fine with insmod and modprobe from the shell

I have a USB Linux Kernel module that compiles and builds. Running insmod loads my module and dmseg and tail -f /var/log/debug shows me it works as expected. Running depmod -a then modprobe from the ...
1
vote
1answer
198 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 ...
10
votes
3answers
876 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 ...
3
votes
1answer
352 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
65 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. ...
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 ...
2
votes
1answer
350 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 ...
7
votes
2answers
866 views

How exactly does printk work internally?

I know printf needs help from the OS to do its job. I also know printf does not work in the Linux source code as there is no library. And so we have printk for debugging. How does printk work ...
-1
votes
1answer
38 views

Linking option while installing Linux [closed]

I have installed Linux kernel from source. The way I do this is that I first do make menuconfig and then make inside the root directory of the source code. As a result of this I get a an ...
3
votes
2answers
349 views

How does a bootloader and kernel interact after the kernel is loaded in memory?

I'm a little bit confused about the role of bootloader and its interaction with kernel, especially when talking wrt ARM Llnux. Once the Kernel is loaded into RAM, is there any job left for the ...
0
votes
1answer
299 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
0answers
119 views

Looking for a list of modules that are used during boot sequence

I'd like to use deferred init calls. This function allows to load modules in userland, that should actually be loaded during the boot sequence. Just for testing I'd like to modularize as many entries ...
2
votes
1answer
64 views

How does the kernel know which file descriptor to write data to after fork() in a concurrent server?

Basic concurrent client/server architecture: There's a main loop listening for requests on a port (for example 3000), after accepting the connection the server spawns a child process that ends up ...
5
votes
2answers
3k views

BSD Kernel Vs. Linux kernel? [closed]

I wanted to know in technical terms; what is the difference between BSD Kernel and Linux Kernel. In Linux, we can download the source kernel then patch it and make and make modules it. Even we have ...
12
votes
3answers
2k views

Why there are many BSD systems but only one Linux kernel?

Why there are many BSD systems but only one Linux kernel? I wonder why BSD was forked many times, but no such thing with Linux.
23
votes
4answers
1k 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 ...
3
votes
2answers
201 views

Using multiple layer of kernel modules for interfacing a hardware device?

I am trying to get a conceptual understanding of the purposes the kernel modules can have. The motivation for this question was a realization that interface to an actual hardware goes through multiple ...
4
votes
1answer
99 views

How to relate a kernel config setting to the source files?

Here is an example that will explain better: I have a selected the audio driver from the picture and i would like to browse through its source. How do i get to the path of the source files from ...
2
votes
1answer
901 views

How to get ondemand governor on fedora

In Ubuntu 13.10 on my (Dual Core i5 Lenovo G570) laptop, I recently discovered the wonders of indicator-cpufreq, so I can extend my battery life dramatically by setting it to 'ondemand' or 'powersave' ...
1
vote
0answers
235 views

How do I fix this boot-up error (attempt to read or write outside of partition)? [closed]

I just installed a version of ubuntu linux that I got from here, http://www.bauer-power.net/2013/06/bauer-puntu-1304-is-alive-download-it.html using vmware workstation. I have installed it before ...
1
vote
2answers
960 views

“select” vs “depends” in kernel Kconfig

What are the differences in dependencies between select and depends on in the kernels Kconfig files? config FB_CIRRUS tristate "Cirrus Logic support" depends on FB && (ZORRO || PCI) select ...
0
votes
1answer
105 views

How can I replace the default kernel with an earlier kernel?

I am working on petalinux, Linux for xilinx FPGAs. The source code is here This Linux is having 3.x kernel, and I have been asked to change the kernel to some earlier release version. What are the ...
1
vote
1answer
3k views

How to get back from “testing” to “stable” - Kernel downgrade

currently I am having lot's of fun with apt-get - and the bad thing is, it was my own fault. I had enabled the testing packages in /etc/apt/sources.list to install a certain package. And I told my ...
1
vote
2answers
866 views

running kernel on QEMU

I face this message: Failed to execute /initKernel panic - not syncing: no init found. Try passing init=option to kernel. I am using this command line: qemu-system-x86_64 -hda disk.img -kernel ...
4
votes
3answers
876 views

What distribution still supports the 2.6.x kernel?

I'm trying to use a Khepera III robot. The documentation says I need a Linux OS with kernel 2.6.x. An Ubuntu 8 image was provided at the website. When I created a virtual machine with that image, I ...