LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 01-06-2011, 01:30 AM   #1
LinuxAdmire
LQ Newbie
 
Registered: Feb 2010
Posts: 8

Rep: Reputation: 0
Ubuntu monolithic kernel


Is it possible to make ubuntu live kernel monolithic?
 
Old 01-06-2011, 02:52 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,153

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
Is it possible not to ?.
 
Old 01-11-2011, 03:34 AM   #3
LinuxAdmire
LQ Newbie
 
Registered: Feb 2010
Posts: 8

Original Poster
Rep: Reputation: 0
Well I tried to compile it without modules support (Just took original config and disabled module support) and it won't work on the live cd after I replaced the kernels. I get black screen after syslinux.

How can I solve it? Maybe Ubuntu depends on modules as a fact..?
 
Old 01-11-2011, 04:44 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,153

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
Linux is a monolithic kernel. End of story.
The presence (or absence) of loadable kernel modules is irrelevant to that state of affairs. My question was rhetorical.
 
Old 01-11-2011, 05:04 AM   #5
cepheus11
Member
 
Registered: Nov 2010
Location: Germany
Distribution: Gentoo
Posts: 286

Rep: Reputation: 91
Quote:
Originally Posted by LinuxAdmire View Post
Just took original config and disabled module support
I have never done this, but did you check what happened to all the config "m" settings? Were they automatically changed to "y"? Were they compiled in the kernel, or not compiled at all? You need the functionality, so if this is not automatic, you need to change every "m" in your config to "y", like "CONFIG_I2C_DEV=y" (just an example).

Some programs don't work too well when the functionality they need is not compiled as modules: alsa-conf or sensors_detect can get confused if they cannot load a module. You also need to check startup scripts - the boot may fail just because some script wants to modprobe something.

A live CD is supposed to run on many systems, so every harddisc controller is supported, every graphics chip... You never need all this functionality at the same time, that's a good reason to spread it all in modules and let the kernel/udev check at runtime what is needed. Some modules may even be mutually exclusive.

But if you manage to compile a working kernel with "everything in", I would be interested in how large the image file is, just curious.

The term "monolithic" in an OS kernel means something else: All device drivers run in privileged "ring 0" of the cpu. Easier to program, but a crappy driver can crash the whole system. In Linux, module code runs privileged too, so even loaded modules are part of the monolithic kernel.

Last edited by cepheus11; 01-11-2011 at 05:06 AM. Reason: typo
 
Old 01-11-2011, 05:18 AM   #6
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,302
Blog Entries: 61

Rep: Reputation: Disabled
I've never used it and don't know whether it's wise to do so, but there is this option:
Quote:
"make allyesconfig"
Create a ./.config file by setting symbol
values to 'y' as much as possible.
from the README, in the kernel source.
 
Old 01-11-2011, 05:20 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,153

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
There is no need to compile "everything in" - just what you need.
Some years ago I did try and build a no-module Ubuntu based on what they had at the time. I got bored with their (Debian-based) build system, and went and spent my time more productively elsewhere. I suggest the OP does likewise.
 
Old 01-12-2011, 12:57 AM   #8
LinuxAdmire
LQ Newbie
 
Registered: Feb 2010
Posts: 8

Original Poster
Rep: Reputation: 0
Question

Quote:
Originally Posted by syg00 View Post
There is no need to compile "everything in" - just what you need.
Some years ago I did try and build a no-module Ubuntu based on what they had at the time. I got bored with their (Debian-based) build system, and went and spent my time more productively elsewhere. I suggest the OP does likewise.
What do you mean? Did you succeeded?
Where did you stuck?
 
Old 01-12-2011, 03:02 AM   #9
LinuxAdmire
LQ Newbie
 
Registered: Feb 2010
Posts: 8

Original Poster
Rep: Reputation: 0
I'll try to compile very big kernel... Be back with the results
 
Old 01-13-2011, 01:36 AM   #10
LinuxAdmire
LQ Newbie
 
Registered: Feb 2010
Posts: 8

Original Poster
Rep: Reputation: 0
Got 18M kernel. Now I have another problem:

Quote:
Kernel panic - not syncing: Attempt to kill init
How can I solve it?
 
  


Reply



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
Sound card error using monolithic kernel ph73nt Linux From Scratch 2 01-29-2008 04:02 PM
Is the Linux kernel a monolithic one? LinuxSeeker Linux - General 4 10-27-2004 07:58 PM
Any Drawbacks for building Monolithic Kernel linuxboy69 Linux - Software 5 08-26-2004 02:41 PM
building a monolithic kernel corbis_demon Linux - Newbie 1 07-14-2004 12:35 PM
monolithic kernel, avoiding lkms? m00 Linux - Security 3 11-11-2003 02:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration