Linux Kernel Compiler
来源:互联网 发布:office mac 迅雷下载 编辑:程序博客网 时间:2024/05/24 04:42
To compiler linux kernel , we can get and download full source from www.kernel.org , choose the same version kernel with your linux .
Check you own linux kernel version:
uname -r
3.0.XX..
In the commond line , can use curl to download the resource
cd ~
curl www.kernel.org/pub/linux/kernel/v3.0/linux-3.0.56.tar.bz2 > linux3.0.tar.bz2
Then uncompress the resource file:
tar -jxvf linux3.0.tar.bz
cd linux3.0.tar.bz
Delete the *.o file use commond below
make mrproper
Then we can choose which content or module can be compiler freely:
make menuconfig
If can't use the 'make menuconfig' it need to install a library ncruses-devel
apt-get install ncruses-dev
After config the content and module which will be compilered , it's time to compiler it:
make clean
make bzImage
make modules
The 'make bzImage' and 'make modules' will spend lots of time , please pay attention and wait for a minute .
Finish compiler kernel , move file to boot directory:
cp arch/i386/boot/bzImage /boot/linux3.0-56
cp System.map /boot/System.map3.0-56
Then add grub config to grub.cfg or menu.lst file
menuentry 'Ubuntu, with Linux 3.0.0-56-generic' --class ubuntu --class gnu-l inux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos10)'
search --no-floppy --fs-uuid --set=root c3a2f48c-75b5-45c8-aabe-1566 a89e1cb3
linux /boot/linux3.0-56 root=UUID=c3a2f48c-75b5-45c8-aabe-1566a89e 1cb3 ro quiet splash vt.handoff=7
}
reboot the system
- Linux Kernel Compiler
- Ubuntu14.04 Linux x86_64 Kernel Compiler
- linux kernel
- Linux Kernel
- Linux kernel
- Linux kernel
- linux kernel
- linux kernel
- Linux Kernel
- Linux Kernel
- Linux下编译MIPS compiler
- "android linux kernel" VS "standard linux kernel"
- "android linux kernel" VS "standard linux kernel"
- qemu linux kernel & vmware linux kernel
- compiler
- Compiler
- compiler
- Linux kernel management style
- Java学习笔记(IO流)
- .Net算法库 NMath应用介绍
- 把两张资源动态合并成一张bitmap
- 2012-12-11 11gR2 "2 Day + Performance Tuning Guide" page 1 - 51
- Linux Kernel SMP (Symmetric Multi-Processors) 開機流程解析 Part(3) Linux 多核心啟動流程從rest_init到kernel_init與CPU
- Linux Kernel Compiler
- ModSecurity for Nginx
- Linux Kernel SMP (Symmetric Multi-Processors) 開機流程解析 Part(4) Linux 多核心啟動流程-kthreadd 與相關的核心模組
- 安装GoldenGate 报找不到Libnnz10.so 文件
- jrtplib介绍
- iOS地图选址
- PYTHON如何判断一个字典或者列表为空
- Java的jdk环境变量最准确官方的配置方法及说明
- ubuntu resolve the host [user name]