[root@milan ~]# uname -a Linux milan 2.6.39-400.282.1.el6uek.x86_64 #1 SMP Thu Jun 30 18:38:25 PDT 2016 x86_64 x86_64 x86_64 GNU/Linux [root@milan ~]# rpm -qi kernel-uek-2.6.39-400.282.1.el6uek Name : kernel-uek Relocations: (not relocatable) Version : 2.6.39 Vendor: Oracle America Release : 400.282.1.el6uek Build Date: Thu 30 Jun 2016 07:02:38 PM PDT Install Date: Sun 03 Jul 2016 03:00:50 PM PDT Build Host: x86-ol6-builder-06.us.oracle.com Group : System Environment/Kernel Source RPM: kernel-uek-2.6.39-400.282.1.el6uek.src.rpm Size : 120045759 License: GPLv2 Signature : RSA/8, Thu 30 Jun 2016 07:13:49 PM PDT, Key ID 72f97b74ec551f03 URL : http://www.kernel.org/ Summary : The Linux kernel Description : The kernel package contains the Linux kernel (vmlinuz), the core of any Linux operating system. The kernel handles the basic functions of the operating system: memory allocation, process allocation, device input and output, etc. [root@milan ~]# cat /boot/grub/grub.conf | grep 2.6.39-400.282.1.el6uek title Oracle Linux Server Unbreakable Enterprise Kernel (2.6.39-400.282.1.el6uek.x86_64) kernel /vmlinuz-2.6.39-400.282.1.el6uek.x86_64 ro root=/dev/mapper/vg_milan-lv_root nomodeset rhgb quiet initrd /initramfs-2.6.39-400.282.1.el6uek.x86_64.img |
[root@milan yum.repos.d]# yum update kernel-uek Resolving Dependencies --> Running transaction check ---> Package kernel-uek.x86_64 0:2.6.39-400.283.1.el6uek will be installed --> Processing Dependency: kernel-uek-firmware = 2.6.39-400.283.1.el6uek for package: kernel-uek-2.6.39-400.283.1.el6uek.x86_6 4 --> Running transaction check ---> Package kernel-uek-firmware.noarch 0:2.6.39-400.283.1.el6uek will be installed --> Finished Dependency Resolution --> Running transaction check ---> Package kernel-uek.x86_64 0:2.6.39-400.264.5.el6uek will be erased ---> Package kernel-uek-firmware.noarch 0:2.6.39-400.264.5.el6uek will be erased --> Finished Dependency Resolution Dependencies Resolved ============================================================================================ Package Arch Version Repository ============================================================================================ Installing: kernel-uek x86_64 2.6.39-400.283.1.el6uek ol6_UEK_latest Removing: kernel-uek x86_64 2.6.39-400.264.5.el6uek @public_ol6_UEK_latest kernel-uek-firmware noarch 2.6.39-400.264.5.el6uek @public_ol6_UEK_latest Installing for dependencies: kernel-uek-firmware noarch 2.6.39-400.283.1.el6uek ol6_UEK_latest ============================ Is this ok [y/N]: ... shortened ... Removed: kernel-uek.x86_64 0:2.6.39-400.264.5.el6uek<--- Removed old "leftover" kernel kernel-uek-firmware.noarch 0:2.6.39-400.264.5.el6uek<--- Removed old "leftover" kernel Installed: kernel-uek.x86_64 0:2.6.39-400.283.1.el6uek <--- Installed new Kernel Dependency Installed: kernel-uek-firmware.noarch 0:2.6.39-400.283.1.el6uek Complete! [root@milan yum.repos.d]# cat /boot/grub/grub.conf | grep 283 title Oracle Linux Server Unbreakable Enterprise Kernel (2.6.39-400.283.1.el6uek.x86_64) kernel /vmlinuz-2.6.39-400.283.1.el6uek.x86_64 ro root=/dev/mapper/vg_milan-lv_root nomodeset rhgb quiet initrd /initramfs-2.6.39-400.283.1.el6uek.x86_64.img |
# rpm -e --test <kernel-old-version> or # yum remove <kernel-old-version> |
[root@milan ~]# uname -r 2.6.39-400.283.1.el6uek.x86_64 |
# unxz linux-3.2.81.tar.xz # tar -xvf linux-3.2.81.tar # cd /kernelbuild/linux-3.2.81 [root@milan linux-3.2.81]# make menuconfig HOSTCC scripts/kconfig/conf.o HOSTCC scripts/kconfig/lxdialog/checklist.o HOSTCC scripts/kconfig/lxdialog/inputbox.o HOSTCC scripts/kconfig/lxdialog/menubox.o HOSTCC scripts/kconfig/lxdialog/textbox.o HOSTCC scripts/kconfig/lxdialog/util.o HOSTCC scripts/kconfig/lxdialog/yesno.o HOSTCC scripts/kconfig/mconf.o SHIPPED scripts/kconfig/zconf.tab.c SHIPPED scripts/kconfig/zconf.lex.c SHIPPED scripts/kconfig/zconf.hash.c HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/mconf scripts/kconfig/mconf Kconfig # # using defaults found in /boot/config-2.6.39-400.283.1.el6uek.x86_64 # /boot/config-2.6.39-400.283.1.el6uek.x86_64:491:warning: symbol value 'm' invalid for ACPI_APEI_GHES .config - Linux/x86_64 3.2.81 Kernel Configuration |
[root@milan linux-3.2.81]# make dep HOSTLD scripts/kconfig/conf scripts/kconfig/conf --silentoldconfig Kconfig # # configuration written to .config # *** Warning: make dep is unnecessary now. [root@milan linux-3.2.81]# make clean .. it's okay if there is no output .. [root@milan linux-3.2.81]# make bzImage CHK include/linux/version.h UPD include/linux/version.h CHK include/linux/utsrelease.h UPD include/linux/utsrelease.h SYMLINK include/asm -> include/asm-x86 HOSTCC scripts/basic/fixdep .... shortened LD arch/x86/boot/setup.elf OBJCOPY arch/x86/boot/setup.bin OBJCOPY arch/x86/boot/vmlinux.bin HOSTCC arch/x86/boot/tools/build BUILD arch/x86/boot/bzImage Setup is 14892 bytes (padded to 15360 bytes). System is 3870 kB CRC f4cc0adf Kernel: arch/x86/boot/bzImage is ready (#1) |
# cp -p /kernelbuild/linux-3.2.81/arch/x86/boot/bzImage /boot/vmlinuz-3.2.81 |
# head /kernelbuild/linux-3.2.81/System.map 0000000000000000 A VDSO32_PRELINK 0000000000000000 D __per_cpu_start 0000000000000000 D irq_stack_union 0000000000000000 A xen_irq_disable_direct_reloc 0000000000000000 A xen_save_fl_direct_reloc 0000000000000040 A VDSO32_vsyscall_eh_frame_size 00000000000001e9 A kexec_control_code_size # cp -p /kernelbuild/linux-3.2.81/System.map /boot/System.map-3.2.81 |
[root@milan linux-3.2.81]# make modules make[1]: Nothing to be done for `relocs'. CHK include/linux/version.h CHK include/generated/utsrelease.h CALL scripts/checksyscalls.sh AS [M] arch/x86/crypto/aes-x86_64-asm_64.o CC [M] arch/x86/crypto/aes_glue.o AS [M] arch/x86/crypto/aesni-intel_asm.o -- shortened -- IHEX firmware/edgeport/down3.bin IHEX2FW firmware/whiteheat_loader.fw IHEX2FW firmware/whiteheat.fw IHEX2FW firmware/keyspan_pda/keyspan_pda.fw IHEX2FW firmware/keyspan_pda/xircom_pgs.fw |
# make modules_install -- shortened -- INSTALL /lib/firmware/edgeport/down2.fw INSTALL /lib/firmware/edgeport/down3.bin INSTALL /lib/firmware/whiteheat_loader.fw INSTALL /lib/firmware/whiteheat.fw INSTALL /lib/firmware/keyspan_pda/keyspan_pda.fw INSTALL /lib/firmware/keyspan_pda/xircom_pgs.fw DEPMOD 3.2.81 |
# ls -la /lib/modules/ total 20 dr-xr-xr-x. 5 root root 4096 Aug 2 07:05 . dr-xr-xr-x. 11 root root 4096 Aug 1 23:12 .. drwxr-xr-x. 7 root root 4096 Jul 3 15:03 2.6.39-400.282.1.el6uek.x86_64 drwxr-xr-x. 7 root root 4096 Aug 1 22:25 2.6.39-400.283.1.el6uek.x86_64 drwxr-xr-x. 3 root root 4096 Aug 2 07:08 3.2.81 [root@milan 3.2.81]# du -sh /lib/modules/3.2.81/ 1.3G /lib/modules/3.2.81/ [root@milan 3.2.81]# ls /lib/modules/3.2.81/ build modules.builtin modules.dep.bin modules.ofmap modules.softdep source kernel modules.builtin.bin modules.ieee1394map modules.order modules.symbols modules.alias modules.ccwmap modules.inputmap modules.pcimap modules.symbols.bin modules.alias.bin modules.dep modules.isapnpmap modules.seriomap modules.usbmap |
[root@milan tmp]# mkinitrd -v /boot/initrd-3.2.81.img 3.2.81 I: Executing /sbin/dracut -v /boot/initrd-3.2.81.img 3.2.81 I: Installing /lib64/libc-2.12.so I: Installing /lib64/ld-2.12.so I: Installing /bin/dash I: Installing /lib64/libdl-2.12.so I: Installing /lib64/libfreeblpriv3.so --- shortened I: Stripping '/tmp/initramfs.UGwlkN/lib/udev/edd_id' I: Stripping '/tmp/initramfs.UGwlkN/lib/dracut-lib.sh' I: Wrote /boot/initrd-3.2.81.img I: -rw-------. 1 root root 18227808 Aug 2 07:21 /boot/initrd-3.2.81.img |
title Kernel from kernel.org (3.2.81, built manually) root (hd0,0) kernel /vmlinuz-3.2.81 ro root=/dev/mapper/vg_milan-lv_root nomodeset rhgb initrd /initrd-3.2.81.img |
[root@milan ~]# uname -a Linux milan 3.2.81 #1 SMP Tue Aug 2 19:51:44 PDT 2016 x86_64 x86_64 x86_64 GNU/Linux [root@milan ~]# uname -r 3.2.81 |
# yum remove kernel-<version> |