Tag Info

New answers tagged

0

If you can access the U-Boot command line console, you can enter printenv to see U-Boot's environment variables. Some of these variables define the commands that are run at boot time - beginning with bootcmd. Based on the output you've provided, it appears U-Boot is trying different load commands for different filesystems - for example, ext2load vs ...


1

It's in kernel space. This article from Linux Device Drivers is a bit dated but still should generally apply: https://lwn.net/images/pdf/LDD3/ch18.pdf However, there is some effort recently towards replacing the kernel driver with a userspace console called "KMSCON" -- see that project's site for more: http://cgit.freedesktop.org/~dvdhrm/kmscon/tree/README


-2

You need to include the drivers for the hardware that you've configured in your virtual machine. To keep things lightweight, put all the disks and CD devices on the same controller. Check the release notes for the list of drivers and the hardware they support. For example, if you choose a SATA AHCI controller (less hassle than IDE with its very limited ...


1

The Linux-based system I tried doesn't have a section 9 in its man page, but, looking online, one can find the NetBSD intro(9) man page: This section contains information related to the internal operation of the system kernel. It describes function interfaces and variables of use to the systems and device driver programmer. This appears to be about APIs ...


1

I tried as G-man suggested in the comments.The main Makefile will include the 'Makefile.inc1' and pass some parameters to it e.g: TARGET_ARCH=i386, that's where buildkernel is defined.


0

Please read this article http://www.linuxatemyram.com/ If you understand the risk then you can do free && sync && echo 3 > /proc/sys/vm/drop_caches && free


0

ulimit(2) is obsolete now as it updates only a part of rlimit structure (most likely rendering it useless). There is a ulimit command in the bash shell, which is documented in bash's man page. The functions, getrlimit and setrlimit are to be used when linux apps are written as they supercede ulimit function.


3

As a follow-up of my comment: Run the following command on one shell. You can make a shell script of it or demonize with the -d option. inotifywait -m -r -e open --format '%f' /kernel_sources/directory/in_use/ -o /home/user/kernel_build.log On other shell, execute make The log file /home/user/kernel_build.log will have a list of the files that have been ...


0

So after some tries, we managed to solve the problem. First, it is interesting to notice that two error messages were noticed that appeared during the linux boot: tps6507x 1-0048: Read from reg 0xd failed (...) tps6507x 1-0048: failed to register tps6507x-pmic regulator tps6507x is the touch-screen driver used. So what we noticed was that even the driver ...


0

I ran into the same problem! After googling around for a good while, it finally turned out (in my case) that the kernel build toolchain is very picky about some env options, as pointed out here. Here, in my ~/.bashrc I had export GREP_OPTIONS='--color=always' and that seems to be causing problem with the module script generation. So changing it to export ...


3

I would rather clone this git. And then do git diff --stat $ git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git` $ cd linux-stable/ $ git diff --stat v3.18.6 v3.18.7


0

You can compile a Linux kernel without MMU support on most processor architectures, including x86. However, because this is a rare configuration only for users who know what they are doing, the option is not included in the menu displayed by make menuconfig, make xconfig and the like, except on a few architectures for embedded devices where the lack of MMU ...


1

have a look at ELKS (embeddable linux kernel subset) or verison 1 of Minix


1

As indicated on the website the actual code is available via GitHub for you to look at. https://www.pfsense.org/get-involved/ https://github.com/pfsense/ The other choice is to examine the relevant web server configuration file to find the location the web front-end files so that you can track down other relevant files to modify for your project (I've ...


3

In Debian terminology, when you run apt-get source linux-image-3.19.0-trunk-amd64 (or the equivalent apt-get source linux), you're actually downloading and extracting the source package. This contains the upstream code (the kernel source code downloaded from kernel.org) and all the Debian packaging, including patches added to the kernel by the Debian ...


0

Not really an answer, but too long for a comment. Linux's memory management has been carefully tuned over its long lifetime by some very smart people and it normally does a pretty good job of making the right decision when choosing what to keep in memory and what to drop. Unfortunately, it looks like your workload isn't very compatible with its decisions ...


2

On Linux, you can find out which driver a network interface is using with this command: ls -l /sys/class/net/<interface name>/device/driver You can rmmod that unless it is statically linked into the running kernel (not likely for a distribution kernel and a wireless driver). Watch out for any other interfaces using the same driver which will be ...


0

I found myself in such a situation some time ago, and I wrote a little 'irqtop' tool to monitor easily what's going on. It's basically the same thing as doing a 'watch -n 1 cat /proc/interrupts', with a nicer output. Source code available here: https://gitlab.com/elboulangero/irqtop Hope this helps :)


1

According to documentation: http://tldp.org/LDP/lame/LAME/linux-admin-made-easy/kernel-custom.html When you do: make bzImage and then: cp bzImage vmlinuz to create the vmlinuz file. Ie, they are the same file :-).


1

One more thing to consider/try is that tcpdump may be spending a lot of time doing DNS queries to resolve IPs to domain names. If you don't need those, try throwing in the -n (no lookups) flag. e.g.: tcpdump -n port 80


0

To produce major page faults you need to force reads from disk. The following code maps the file given on the command-line, telling the kernel it doesn't need it; if the file is large enough (pick a large file in /usr/bin), you'll always get major page faults: #include <fcntl.h> #include <stdio.h> #include <sys/mman.h> #include ...


0

This C program causes the memory pressure graph on my Mac to spike PDQ: #include <stdlib.h> int main(void) { while (1) { char* p = malloc(1 * 1024 * 1024 * 1024); for (int i = 0; i < 1024; ++i) { p[i * 1024 * 1024] = 0; /* touch the pages */ } } return 0; } The inner loop is important. If you ...


0

As hinted by @MarkPlotnick, there is no /sys or /proc interface for this. You have to use a program like adjtimex to make the appropriate system calls to see it.


0

I found a solution: A program called kpartx, which is a userspace program that uses devmapper to create partitions from loopback devices, which works great: $ loop_device=`losetup --show -f /dev/sdg` $ kpartx -a $loop_device $ ls /dev/mapper total 0 crw------- 1 root root 10, 236 Mar 2 17:59 control brw-rw---- 1 root disk 252, 0 Mar 2 18:30 loop0p1 ...


0

I've a weird bug like that is quite specific to WD caviar blacks: see here for Kernel bug report: https://bugzilla.kernel.org/show_bug.cgi?id=91921 I need to git bisect it when I have the time as it seems to be caused by some commit in kernel 3.13. It worked in Kernel 3.12 and below. Try this: echo 0 > /sys/power/pm_async Then try s2ram


1

I think problem there df -H One of your disks is fully loaded. All you need is lsof | grep deleted | less This help you to understand what files were deleted and "keeps in memory" by processes. For solve your problem you should restart process that holds deleted files.


0

If you have a driver or module enabled that needs any of these routines they'll be automatically force-enabled for you. If you can disable any of these options it means nothing in your kernel requires them, which is why they're not getting loaded. Not all drivers come from the kernel though. There are external packages that also install kernel modules ...



Top 50 recent answers are included