Configuration Linux Kernel [closed] - c

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I need to compile kernel linux 3.4.4. I use "make menuconfig" to have a user-friendly interface to choose configuration.
I haven't understood an aspect of the kernel configuration: what is the difference between i choose to include an option during the configuration and i choose to include, as a module, an option during the configuration?
Thanks

When compiled as a module, the code of that feature/component is built as a separate file, as know as kernel module, separating from the kernel's main image. To use the feature, you have to load it into the kernel with commands like modprobe or insmod. Of course you can later unload this module, to remove the feature/component. The kernel modules are normally placed at /lib/modules/{uname -r} on your system.
While compiled as 'y' means the code will be compiled into the main kernel image, which will be always available when the kernel is loaded and running.

Related

which is the Linux command to install a module into the kernel Space? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I compile my Dependent Kernel module for raspberry Pi OS using The build-root 2017. I want to insert my kernel.ko Device driver module into my customized OS (size of this OS less than 100MB).
I tried to insmod but its getting error than first insert dependency module. I know about the modprod command to insert it but how to use is I don't know?
After Lot's of Research i have found the two command to install the module into kernel space
insmode module_name
-> it is simply install the module into kernel space and not checking any dependency for
other module .
modprobe module_name
-> it is install module into kernel space before that its check the dependency for other
module.

changes required in u-boot for lz4 compression? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I am using 3.12 Kernel and u-boot. I have selected lz4 compression in "make menuconfig" for kernel.
any changes required in u-bbot side to support lz4 compression?
I have done following steps.
1. Built u-boot image.
2. built device tree.
3. Selected lz4 compression in "make menuconfig" for kernel and built uImage.
4. Flashed u-boot image , device tree binary and uImage. after power up board is booting fine.
I have checked the kernel build logs, I could see "piggy.lz4.o" was created.
LZ4 arch/arm/boot/compressed/piggy.lz4
AS arch/arm/boot/compressed/piggy.lz4.o
my doubht here is whether lz4 compression is used while creating uImage and lz4 un-compression is used during uncompressing the kernel.

Run application program after linux bootup on ARM [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I have loaded bootloader and ported linux on my ARM processor Am3892. Now i need to run one application program, but i don't have any console interface to run it after booting linux. Is there any possibility that my program will execute as soon as the linux will bootup? Please reply.
Thank you
Pass the path and application name to the kernel as a boot parameter for init, the kernel will only start the init process itself (see: http://en.wikipedia.org/wiki/Linux_startup_process). Traditionally this application then handles starting daemons, geTTYs, etc.
Most boot loaders allow you to specify a path for the init app as part of the configuration for where to find the kernel.
e.g. /boot/vmlinuz-n.n.n init=/path/to/theapp
If you let us know what boot loader you're using then perhaps we could more specific. Otherwise look up how to pass linux kernel arguments to your boot loader.

Which Linux distro uses Linux kernel as is with no modification [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm trying to do some learning with Linux kernel and as you all know there is nothing better than playing with the code itself, Can you please let me know which one of the Linux distros is the easiest to work with? In other words, As far as I know Ubuntu for example modify the kernel for their distro, so the question again, which distro is using the Linux kernel as is with no modification?
Appreciate your guidance.
When it comes to no-frills (no external patches to the kernel) have a look at Slackware. Or follow "Linux from Scratch", that's as bare-bones as it gets.
If you want to start playing with the Linux kernel, I'd recommend a distribution which makes it particularily easy to compile the kernel yourself. Although I cannot provide detailed guidance, Gentoo seems to do so (although gentoo has other drawbacks, I don't know a single person in real life who actually used gentoo for more than two years).
I would not try and look for distributions not modifying the kernel, it's probably not worth the effort. Patches will probably be minor compared to the overall size of the kernel.
You can easily run Ubuntu for example with a vanilla kernel by following https://wiki.ubuntu.com/KernelTeam/GitKernelBuild.

Trimming down freebsd [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I am trying to trim down FreeBSD to understand/learn how things work. I have a few questions if someone can help me with that:
1) when we say kernel, can I separate code wise from the rest of the FreeBSD code? What I mean is, I want to know what all files/dirs come under kernel.
2) I know a book called Linux from scratch. Is there any related book for FreeBSD?
Any pointers are most welcome.
Thank you.
FreeBSD is one cohesive system. Whereas Linux is a kernel plus a bunch of packages, all of FreeBSD core is built together (everything but the ports tree). The FreeBSD Handbook is the best resource to start from for learning FreeBSD. There is also a Developer's handbook that can be found on the FreeBSD website. As for what the kernel is in terms of source files, anything under /usr/src/sys is kernel source code. If you want to know about the workings of the kernel, the book "The Design and Implementation of the FreeBSD Operating System" is the definitive guide to the details of the kernel.

Resources