The kernel of operating systems popularly known as Linux, or sometimes GNU/Linux.

learn more… | top users | synonyms

0
votes
1answer
85 views

How to write a Patch for VyOS kernel

I am new to VyOS development. I have written a patch which will fetch info from the VyOS kernel module and write it on a netlink socket. But the problem is I am not sure if I should edit the kernel ...
0
votes
1answer
116 views

Centos 6.5 will not boot

The error below happens when booting up in to my distro of Centos 6.5. This happened after changing my paths in my fstab to UUID's. Server has two drives in RAID1 for the file system. I have access to ...
1
vote
1answer
345 views

How do I add CPU frequency governors to the Linux kernel?

CPU frequency scaling in Linux is by default performed via a governor, which as far as I know is included in the kernel. So far, on PC/server Linux kernels I've only seen the userspace, powersave, ...
1
vote
1answer
138 views

Linux/Embedded Linux - Understanding the Kernel and additional BSP specific components [closed]

*tldr; I would like to generally understand how the world of linux / embedded linux works. What do I need to do to take the Linux mainline and compile/deploy it on a board with different processors ...
2
votes
0answers
33 views

Microkernel (e.g. GNU Hurd) more secure than monolithic kernel (Linux)? [duplicate]

I would like to understand (in relatively layman's terms) if and how a microkernel such as the Mach-based GNU Hurd is more secure than a monolithic kernel such a Linux. Additionally, does a ...
1
vote
0answers
22 views

How can I benchmark or audit an embedded kernel?

Is there a reliable or industry standard way to benchmark or audit embedded kernel performance? The target of the audit is to determine the time that the kernel spends in certain critical section, ...
0
votes
1answer
76 views

Iptables: does dropping UDP packets take place in the user-space or kernel-space?

I know that Iptables is a user-space module, I also read it "configures" kernel modules to do big part of the filtering. So my question is, if I add a rule to allow only TCP:443 packets, would this be ...
0
votes
0answers
31 views

What's the code coverage of the Linux kernel when running a webserver in userspace?

I have a handful of Apache webservers serving up static files off disk. The files are too large to all fit in RAM. There's very little (if any) practical use to knowing this, but I'm wondering out of ...
0
votes
0answers
86 views

IPtables Test/Simulator/WhatIf/Dry run

I am currently debugging a rather strange network phenomenon and still believe my Linux netfilter firewall is the problem. These automagically generated rules and chains give me quite a headache and I ...
0
votes
0answers
20 views

Copying Driver Module files for manual install in another installation

Is it possible to extract the driver module files(including firmware files) from an installation(say i0) and place them manually in the same directory in another installation(say i1), and maybe edit ...
2
votes
1answer
27 views

porting kernel config to different architecture

I have a good Kernel .config setup for x86 that I'm happy with. Now I have a few different ARM-based devices (some without video output) that all come with their default pre-configured settings. I'd ...
3
votes
1answer
93 views

Hairpinning in linux

I have a router in which I installed a Linux system. I want my router supports NAT hairpinning Does a such feature exists in Kernel Linux? If yes how to activate it? Are there a patch to apply it on ...
2
votes
1answer
65 views

Is it safe to delete unused Linux kernels?

I don't want to use the 4.2.5-x kernel, I can't even boot with the proprietary Nvidia drivers. 3.16.7-24 kernel works fine. Is it safe to remove all 4.2.5-x kernels and how to do so? openSUSE ...
3
votes
0answers
29 views

Enumerate valid values for mknod

I have access to an embedded device which has a bunch of block/char files under /dev. However, this is not a satisfying description of the hardware, because since the firmware is shared with small ...
1
vote
0answers
24 views

udev rules official docs

I am looking official UDEV rules, documents, I have noticed there are changes in udev rules in RHEL 7. But could not find any documents some thing like 'request for changes'. Please help Thanks,
0
votes
1answer
43 views

How are GNU system utilities compatible with Linux?

According to GNU Hurd Architecture the GNU operating system was originally designed to be used with the GNU Hurd kernel which is a microkernel architecture. How is it that hobbyists were able to ...
1
vote
0answers
42 views

code generating /proc file system

In my assignment, I have added "casper" flag to task descriptor and it takes only 0, 1, 2 and 3 (default 0). I asked to "modify the code that generates the /proc filesystem so that its behavior is ...
1
vote
1answer
363 views

How can I get “RHEL 7.0 vmlinux” file?

I want to use crash on RHEL 7.0. Since crash needs vmlinux file, but I can't find it on /boot folder, only vmlinuxz: ...... vmlinuz-0-rescue-7c50639231494746b5dffc0a1ff84727 ...
1
vote
1answer
33 views

How do I store the data in disk directly in kernel module? [closed]

I capture the TCP packet in function of netif_receive_skb , I want to store the playload of TCP packet. we can't read/write the file in kernel module, so store in disk directly maybe a way? ...
2
votes
1answer
279 views

debian jessie backports wifi and bluetooth

I am running debian 8 and I need to update bluez and the debian kernel. Bluez needs to be above 5.23 to get a bluetooth with LE or smart bluetooth device to work. I am on a mac and I need to install ...
5
votes
2answers
144 views

Under what circumstances, if any, will the result of reading /proc/cpuinfo change?

What I understand so far is that when a program opens and reads any file under /proc/, the kernel will generate the information on the fly. In the specific case of cpuinfo most of that data is ...
2
votes
0answers
233 views

Installed libncurses5-dev, but can't make menuconfig! [closed]

I'm new to Linux, I found some links in Internet to Build and install Kernel(Just want to play :-P). I installed required libraries(ncurses libraries), kernel headers(sudo apt-get install ...
0
votes
0answers
16 views

Linux start_kernel - trap_init()

Some of these tasks that cpu_init() (which is called from trap_init) does I cannot really grasp: Call cpu_init() to do: 1 initialize per-CPU state 2 reload the GDT and IDT 3 mask off the eflags NT ...
0
votes
1answer
46 views

ALSA sounds card volume range numbers, and Difference between Control Names

I'm developing my first sound card driver in Ubuntu with ALSA. Implementing a volume control for the sound card I stumbled upon a few questions. 1) For the function that is assigned to ...
1
vote
1answer
136 views

Tuning Linux I/O Scheduler

I need a little help with properly tuning the Linux I/O Scheduler for spinning drives. I have a process that writes data to a huge (4-16TB) memory mapped file and is using SHED_FIFO. The kernel then ...
2
votes
2answers
1k views

What's the difference between ioremap and file operation mmap?

I'm currently working on a PCI device driver for Ubuntu. I have some example code about PCI driver, but I have difficult on understanding the ioremap and file_operation.mmap. The description of file ...
1
vote
0answers
40 views

file integrity between mount and mount point [closed]

Sub-tree rooted at /some_dir/B is mounted at /A/mount_point. If B contains foo.c, deleting /A/mount_point/foo.c will remove file from /some_dir/B/foo.c also. Is this correct? And what if I change only ...
0
votes
0answers
73 views

Pre-built Linux kernel with CONFIG_AEABI for Raspberry Pi emulation in qemu

I'm trying to run a RaspberryPi emulation on QEMU following the instructions from: http://cubik-tech.blogspot.com/2013/02/raspberry-pi-emulation-on-windows.html (and many similar posts) But I'm ...
1
vote
0answers
38 views

What challenges do people normally face using Arch Linux? [closed]

I'm setting up my Raspberry Pi 2 and deciding what linux distro to use. I'm leaning towards Raspbian and Arch Linux. Although Raspbian is definitely the safest option... Arch Linux seems like a more ...
2
votes
0answers
38 views

Does Linux still use rootfs?

In the kernel documentation file "ramfs, rootfs, and initramfs" it says Rootfs is a special instance of ramfs (or tmpfs, if that's enabled), which is always present in 2.6 systems. I have not ...
0
votes
0answers
25 views

Driver Module Backup from a Running Installation

Is it theoretically possible to make a backup of all the driver modules (especially the ones that are not merged into the original kernel) from a running installation of LinuxMint? The source of the ...
7
votes
1answer
166 views

How to understand the modinfo output?

I'm just trying to understand the modinfo output that describes a kernel module. For instance, in the case of the module i915, the output looks like this: $ modinfo i915 filename: ...
0
votes
0answers
49 views

USB device keeps disconnecting on boot

When booting a linux kernel off a usb device, via a usb hub, a light panel attached to my board (via the hub) disconnects during the kernel boot. Once the system is booted I unplug the panel and ...
0
votes
0answers
41 views

how to enable 1MB dma-kmalloc

I'm running a ubuntu 15.10 VM and testing code that will allocate 1MB dma buffers. However, from the /proc/slabinfo, the max that can be allocated is 8K dma-kmalloc-8192 0 0 8192 4 ...
1
vote
0answers
67 views

uncompression error, no file system could mount root, kernel panic not syncing

I am using Linux Mint maya on vbox (Windows XP host), it's working fine without issues. Now I would like to install it with XP(dual boot) so I made a bootable DVD with same iso which I used for vbox, ...
2
votes
2answers
55 views

What's the use of this empty function declaration in exec.c kernel source?

I see some empty functions in the Linux kernel file exec.c here: http://lxr.free-electrons.com/source/fs/exec.c#L235 But, some functions like free_arg_pages is again declared below here (with same ...
0
votes
0answers
38 views

There is possible to read 1-wire (ds18b20) without waiting for conversion?

I want to read temperature value from ds18b20 by 1-wire interface without blocking. There is any way to do that? I tried fnctl(fd, F_SETFL, O_NONBLOCK) but its not working. Actually I have a loop ...
1
vote
0answers
43 views

Backlight control configuration misbehaves on an Ideapad.

I did a clean Ubuntu install on a Lenovo Ideapad P500. The backlight started okay, but after pressing the keyboard light function once, it got reset to a very dark state. The brightness setting ...
3
votes
1answer
119 views

Two compiles of the same kernel version: one boots, one unable to find root device

I have two compiles of the same kernel version (4.0.5+gentoo patches). One boots, correctly, but lacks several kernel CONFIG flags. Adding those flags and running make all && make install ...
0
votes
0answers
56 views

Negative dentry

When we do rm foo.bar, kernel decrements inode ref count and checks if it's become zero. In case of 0, inode is removed and foo.bar dentry becomes negative. This negative dentry continues to stay in ...
2
votes
0answers
51 views

What hardware support is needed for linux to do `gettimeofday` / `clock_gettime` in userspace using `hped`?

On reasonably modern systems Linux can service "system" calls like gettimeofday and clock_gettime entirely in userspace through the linux-vdso.so (or linux-gate.so) virtual library, so it does not ...
0
votes
0answers
1k views

Kernel panic : Kernel offset disabled

I was trying to install the linux-next kernel in my system with the following steps. Copied the existing configuration file from /boot to the root of source directory Updated the .config file with ...
1
vote
0answers
162 views

Disk benchmark IO depth clear out

When I'm manipulating over some benchmark tool I/O depth, what exactly am I changing? Let's say I have SATA disk on /dev/sda. If I run hdparm: root@linaro-gnome:~# hdparm -I /dev/sda | grep Queue ...
0
votes
0answers
19 views

what do I need to activate in my kernel to get dm-crypt

I am on an armv7, kernel 3.15.0 I have enabled device mapper and crypt target support. but I cannot find anything that specifically references dm-crypt in my kernel menu, would someone please be able ...
2
votes
1answer
213 views

Which distro uses a Kernel 3.19 or above

I am looking for a distro that supports Intel HD 6000 , i believe kernel 3.19 and above is needed. So does anyone know of a beginner friendly distro Many thanks
2
votes
2answers
113 views

ACPI wakeup 4-letters code meaning?

I have to disable some event to avoid an immediate wakeup after suspend in my desktop machine, and I made it by trial and error (works well, so that is not a problem). But I wonder... for example in ...
2
votes
0answers
220 views

Errors cross-compiling with distcc

I'm currently attempting a build of the Raspbian kernel using both a cross-compiler (for the Raspberry Pi 2's ARM processor) and distcc, based on the instructions posted at the Raspberry Pi website. I ...
3
votes
1answer
196 views

What is the usual Allocation unit for a process on Linux?

I'm currently studying memory management in Operating Systems. Allocation Unit is the smallest unit of memory the OS will give to any process. I've read in this page, in the 'Memory allocation ...
2
votes
1answer
54 views

Qemu - debug new syscall

as a school project I have to add a syscall to the latest stable linux kernel. I did and recompiled the kernel using make defconfig and make. After going through several tutorials to boot the kernel ...
2
votes
1answer
175 views

Error compiling kernel using guide provided on Raspberry Pi website

I'm encountering errors while trying to compile the kernel from source. I've looked around but I'm not finding anything that deals with the error I'm seeing specifically. I am using the guide on the ...