LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 07-26-2007, 10:13 AM   #1
ravime
LQ Newbie
 
Registered: Jul 2007
Posts: 24

Rep: Reputation: 15
Kernel compilation: Is it posiible to change built-in[] option to module<>


Hello Everbody,

Regarding kernel compilation, As we know while configuring kernel,
[*] built-in and <*> module capable options.

I would like to change one[*] built in option to module capable option.

Is it possible to do? If so how can we do that?

Particularly with example

In the kernel version 2.6.20[*] v41 compat[*]v4l2-common, made it built-in

In the previous kernel 2.6.14.7 <*> v4l compat <*> v4l2-common module capable.

Now I am switching from 2.6.14.7 to 2.6.20.

I dont want that v4l compat and v4l2 common as built in and integral part of kernel.

I would like to have these as module capable to use as per my requirement.

Can anybody tell me how can I do this ? Any suggestion in this respect greatly appreciated .

Thanks in advance
Regards
ravime
.
 
Old 07-27-2007, 07:28 PM   #2
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 54
What distro?
Quote:
Regarding kernel compilation, As we know while configuring kernel,[*] built-in and <*> module capable options.
Where did you get that?
Quote:

Particularly with example

In the kernel version 2.6.20[*] v41 compat[*]v4l2-common, made it built-in

In the previous kernel 2.6.14.7 <*> v4l compat <*> v4l2-common module capable.
and where did you get this example?

To change your kernel if you have the sources installed it is easy but if this is a kernel image that came with your distro and you use an initrd that is something else.

Last edited by comprookie2000; 07-27-2007 at 07:29 PM.
 
Old 07-28-2007, 11:04 PM   #3
ravime
LQ Newbie
 
Registered: Jul 2007
Posts: 24

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by comprookie2000
What distro?

Where did you get that?

I am using Fedora 6 core, I am compiled new kernel version 2.6.20.15 and installed.

and where did you get this example?

the written options belongs

at kernel source directory make menuconfig goto

Device drivers
Multimedia Devices
<M> vidoedev[*] v4l1-compat .....
[*} ..........

To change your kernel if you have the sources installed it is easy but if this is a kernel image that came with your distro and you use an initrd that is something else.
Source is not came with distro .

I am downloaded from kernel.org and installed on FC6, working fine also

now I would like to change those
 
Old 07-29-2007, 03:38 AM   #4
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 54
To change them from built in to modules just do
cd /usr/src/linux
make menuconfig <--- change it from built in "*" to "m" by pressing m
make && make modules_install
mount /boot <--- if it is not mounted
make install <-- the new kernel will be vmlinuz
add an entry in /boot/grub/grub.conf
 
Old 07-30-2007, 08:12 AM   #5
ravime
LQ Newbie
 
Registered: Jul 2007
Posts: 24

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by comprookie2000
To change them from built in to modules just do
cd /usr/src/linux
make menuconfig <--- change it from built in "*" to "m" by pressing m
make && make modules_install
mount /boot <--- if it is not mounted
make install <-- the new kernel will be vmlinuz
add an entry in /boot/grub/grub.conf

Thank you very much.

I have I already tried like whatever you said. But after compilation it itself changed from "m" to "*" . It happened many times.

AT this time I also came to know that,some built in options <*> cant be converted to [m] modules because of dependency.

if you know any other ideas to change please let me know.

Regards
Ravime
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Will rfs change when kernel image is built(for a target board) LN85 Linux - Kernel 3 07-04-2007 03:34 PM
module compilation in kernel hovnatan Ubuntu 0 02-10-2007 04:33 AM
Slackware 10- Please confirm my steps used to remove a module from a pre-built kernel jtp51 Slackware 7 11-03-2004 05:02 PM
kernel module compilation zbrox Linux - Software 1 01-28-2004 03:31 PM
iptables - module, or built into kernel? dunkyb Linux - General 3 02-16-2003 06:04 PM


All times are GMT -5. The time now is 02:02 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration