Подготовка:
# cat /proc/cpuinfo
# cat /proc/filesystem
# free
# lspci
# ethtool -i eth0
Build-а:
# make menuconfig
# make -jX
-- X should be the number of CPUs *2
# make modules_install
# depmod -a KERNEL_VERSION
# mv arch/x86/boot/bzImage /boot/bzImage-2.X.XX
-- check the arch directory (x86 or x86_64)
-- on 64bit machines x86 or x86_64 should be link to the other
# mkinitrd /boot/initrd-2.X.XX.img 2.X.XX
# fix grub conf
# savedefault --default=NUM --once
# reboot
http://www.kernel.org
make options:
config - configure the kernel option by option
oldconfig - configure the kernel with the supplied old configuration
xconfig - configure the kernel using the X GUI
menuconfig - configure the kernel using ncurses GUI
modules - build the modules
modules_install - install the modules in /lib/modules/KERNEL_VERSION
make (without option) build the kernel image and its modules
make bzImage - build bzipped kernel image
make vmlinuz - build gzipped kernel image
Kernel configuration file: .config
Documentation - Kernel_DIR/Documentation
Sysctl docs - Documentation/sysctl
Boot parameters: Documentation/kernel-parameters.txt
Network: Documentation/networking
# cat /proc/cpuinfo
# cat /proc/filesystem
# free
# lspci
# ethtool -i eth0
Build-а:
# make menuconfig
# make -jX
-- X should be the number of CPUs *2
# make modules_install
# depmod -a KERNEL_VERSION
# mv arch/x86/boot/bzImage /boot/bzImage-2.X.XX
-- check the arch directory (x86 or x86_64)
-- on 64bit machines x86 or x86_64 should be link to the other
# mkinitrd /boot/initrd-2.X.XX.img 2.X.XX
# fix grub conf
# savedefault --default=NUM --once
# reboot
http://www.kernel.org
make options:
config - configure the kernel option by option
oldconfig - configure the kernel with the supplied old configuration
xconfig - configure the kernel using the X GUI
menuconfig - configure the kernel using ncurses GUI
modules - build the modules
modules_install - install the modules in /lib/modules/KERNEL_VERSION
make (without option) build the kernel image and its modules
make bzImage - build bzipped kernel image
make vmlinuz - build gzipped kernel image
Kernel configuration file: .config
Documentation - Kernel_DIR/Documentation
Sysctl docs - Documentation/sysctl
Boot parameters: Documentation/kernel-parameters.txt
Network: Documentation/networking
Последна модификация: Tuesday, 22 January 2013, 09:14 PM