Lisää ajan kulua.....
Rough Guide to DIY Kernels
Have to hand (or accessable) the following :-
lspci output
lsmod output
large pot of strong coffee
clean unconfigured kernel tree
cd to the tree, and run one of the configuration tools, in decreasing order of preference
make xconfig
make gconfig
make menuconfig
make config
Work you way through the list of options, reading the help and drinking the coffee, applying the following rules of thumb:-
1. If you need an option to boot, build it into the kernel. Thats (Y) (*) or a tick depending on your make tool.
2. If you need an option after booting, make it a module. Thes (M) (M) or a dot depending on your make tool.
3. If you don't need an option, don't make it at all. Thats (N) ( ) or a blank box depending on your make tool.
4. If you don't understand the help, leave the default alone
We are building a kernel that will not need an initrd file so some examples in ach category are
1. Your root filesystem driver. If root (/) is on an ext3 fs then the kernel needs to be able to read ext3 to load any modules. Your SATA / SCSI or IDE chipset driver for the chipset controlling the drive where the root filesystem lives.
2. Things like sound, networking, usb and filesystem types you don't use often
3. ISA bus (if you don't have ISA) The old IDE disk driver, Non IDE CD-ROMS attached to sound cards etc
Good use of the 'No' option can save you a lot of reading, because some Y/N dont actually do anything except show/hide other options. You can save and come back to it where you left off. there is no need to do it in one sitting.
Save your configuration, then build and install the kernel with the following seperate commands
make
make modules_install
make install
Komento make config on melkoista itsensä kiduttamista.... helpommalla pääsee jos tekee cp jokuconfig .config
ja sen jälkeen make oldconfig... Ubuntun käyttäjillä update-grub lisää kernelin valikkoon.
Nvidian ajurin käyttäjät - ajuri pitää kääntää, jotta kone käynnistyy grafiikkatilaan.