build a rpm kernel package[reference]
2011-03-30 21:12
232 查看
1. install the essential tools
command: su -c 'yum install rpmdevtools yum-utils'
2. Downloading the Kernel
command: wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.38.2.tar.bz2
3. Unpacking the file.
command: tar -xjvf linux-2.6.38.2.tar.bz2
4. change in to work directory.
command: cd linux-2.6.38.2
5. Preparing the Kernel
command: make mrproper
4.Configuring the Kernel
command: make config|make menuconfig|make xconfig|make gconfig select one from previous.
5.Creating a RPM
command: make help | grep rpm
The output should be something like : rpm - Build a kernel as an RPM package
If the output contains rpm , then type: make rpm
If the output contains rpm-pkg or rpm and rpm-pkg, then type: make rpm-pkg
When it is ready it returns you something like:
Wrote: /usr/src/redhat/SRPMS/kernel-2.6.38.2.src.rpm
Wrote: /usr/src/redhat/RPMS/i386/kernel-2.6.38.2.i386.rpm
6.Installing the kernel
command: rpm -ihv /usr/src/redhat/RPMS/i386/kernel-2.6.38.2.i386.rpm
7. Configuring GRUB
command: new-kernel-pkg --mkinitrd --depmod --install 2.6.38.2
can be used to configure Grub
8.Final step
reboot your system and choose the new kernel in the grub menu.
write at home Thu Mar31,00:07 AM by Haria
command: su -c 'yum install rpmdevtools yum-utils'
2. Downloading the Kernel
command: wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.38.2.tar.bz2
3. Unpacking the file.
command: tar -xjvf linux-2.6.38.2.tar.bz2
4. change in to work directory.
command: cd linux-2.6.38.2
5. Preparing the Kernel
command: make mrproper
4.Configuring the Kernel
command: make config|make menuconfig|make xconfig|make gconfig select one from previous.
5.Creating a RPM
command: make help | grep rpm
The output should be something like : rpm - Build a kernel as an RPM package
If the output contains rpm , then type: make rpm
If the output contains rpm-pkg or rpm and rpm-pkg, then type: make rpm-pkg
When it is ready it returns you something like:
Wrote: /usr/src/redhat/SRPMS/kernel-2.6.38.2.src.rpm
Wrote: /usr/src/redhat/RPMS/i386/kernel-2.6.38.2.i386.rpm
6.Installing the kernel
command: rpm -ihv /usr/src/redhat/RPMS/i386/kernel-2.6.38.2.i386.rpm
7. Configuring GRUB
command: new-kernel-pkg --mkinitrd --depmod --install 2.6.38.2
can be used to configure Grub
8.Final step
reboot your system and choose the new kernel in the grub menu.
write at home Thu Mar31,00:07 AM by Haria
相关文章推荐
- 安装kernel...src.rpm错误:warning: user mockbuild does not exist - using root
- rpmbuild更改BuildArch后碰到错误(error: Arch dependent binaries in noarch package)
- example how to build RPM package from source package
- KernelBuildpackageHowto
- Build RPM package from source code
- RHEL6.2下使用rpmbuild编译taobao-kernel手札
- rh401 - rpmbuild更改BuildArch后碰到错误(error: Arch dependent binaries in noarch package)
- Build Your Own Kernel
- centos6中rpmbuild如何用/usr/src/redhat替换/root/rpmbuild
- Microsoft Windows CE 5.0 Board Support Package, Boot Loader, and Kernel Startup Sequence
- Build patched kernel
- rpmbuild .spec
- 線上 Android/Linux Kernel Source Code瀏覽 - Android/Linux Source Code Cross Reference
- Build Linux Kernel
- Howto: Build Linux Kernel Module Against Installed Kernel w/o Full Kernel Source Tree
- How to build kernel for Beaglebone for custom cape support
- RPM Package Manager (RPM) 使用详解
- Android Studio报错:Ignoring unknown package filter 'build-tools-23.0.0-preview'Warning:
- Build Virtualbox kernel module after manual upgrade system kernel to latest
- SA - Redhat Package Manager - rpm命令使用