Scientific Linux Forum.org



  Reply to this topicStart new topicStart Poll

> vanilla kernel 3.04 compiled to rpm and installed SL6, RHEL6, just for fun
helikaon
 Posted: Oct 20 2011, 08:36 PM
Quote Post


SLF Moderator
******

Group: Moderators
Posts: 577
Member No.: 4
Joined: 8-April 11









Hi,
since some people asked and i had finally bit of time to try, i recompiled vanilla kernel from kernel.org version 3.04. I did it on my testing kvm machine, so compilation itself took time - like 4 hours:-).
Please note i did it quick on my KVM machine, that i dont care about, and so i took liberty to '--force' install of built kernel rpm, because there were some conflicting files.
I could always uninstall old kernel ..
Your opinions and experiences are welcome..

PREREQUISITES:
- at least 9gb free space on FS where you compile

- as root:
CODE

[root@slvm01 lang]# yum list all | grep -i rpm
redhat-rpm-config.noarch                9.0.3-33.el6                @anaconda-ScientificLinux-201107272231.x86_64/6
rpm.x86_64                              4.8.0-16.el6_1.1            @sl-security
rpm-build.x86_64                        4.8.0-16.el6_1.1            @sl-security
rpm-devel.x86_64                        4.8.0-16.el6_1.1            @sl-security
rpm-libs.x86_64                         4.8.0-16.el6_1.1            @sl-security
rpm-python.x86_64                       4.8.0-16.el6_1.1            @sl-security
rpmdevtools.noarch                      7.5-1.el6                   @sl

yum install rpm-devel.x86_64 rpmdevtools.noarch (had to install these)


-as user:
CODE

cd ~
rpmdev-setuptree (to setup build env. - all folder structure in user home dir)
cd ~/Downloads
wget -c http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.0.4.tar.bz2 (download source)


INSTALL:
-as user:
CODE

cd Downloads/
tar -xjvf linux-3.0.4.tar.bz2
cd linux-3.0.4
make mrproper
make menuconfig (config any custom things related to your box)
make rpm


-results in:
Wrote: /home/testuser/rpmbuild/SRPMS/kernel-3.0.4-1.src.rpm
Wrote: /home/testuser/rpmbuild/RPMS/x86_64/kernel-3.0.4-1.x86_64.rpm
Wrote: /home/testuser/rpmbuild/RPMS/x86_64/kernel-headers-3.0.4-1.x86_64.rpm

- as root again:
pls note that i had to force it, there were some conflicting files with old kernel
CODE

rpm -ivh --force /home/testuser/rpmbuild/RPMS/x86_64/kernel-3.0.4-1.x86_64.rpm
rpm -ivh --force /home/testuser/rpmbuild/RPMS/x86_64/kernel-headers-3.0.4-1.x86_64.rpm



- as root again:
CODE

[root@slvm01 boot]# ls /lib/modules
2.6.32-131.0.15.el6.x86_64  3.0.4

[root@slvm01 boot]# mkinitrd initramfs-3.0.4.img 3.0.4 (buildin ramdisk)

[root@slvm01 boot]# ls
config-2.6.32-131.0.15.el6.x86_64         initramfs-3.0.4.img                    vmlinux-3.0.4.bz2
config-3.0.4                              lost+found                             vmlinuz-2.6.32-131.0.15.el6.x86_64
efi                                       symvers-2.6.32-131.0.15.el6.x86_64.gz  vmlinuz-3.0.4
grub                                      System.map-2.6.32-131.0.15.el6.x86_64
initramfs-2.6.32-131.0.15.el6.x86_64.img  System.map-3.0.4


- as root again:
CODE

[root@slvm01 boot]# vi /boot/grub/grub.conf (editation of grub.conf to add new kernel stanza)

title Scientific Linux (3.0.4.x86_64)
       root (hd0,0)
       kernel /vmlinuz-3.0.4 ro root=/dev/mapper/rootvg-rootlv rd_LVM_LV=rootvg/rootlv rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto rhgb quiet
       initrd /initramfs-3.0.4.img



reboot server and check kernel:
CODE

shutdown -r now

bash-4.1$ uname -a
Linux slvm01 3.0.4 #1 SMP Thu Oct 20 20:44:18 CEST 2011 x86_64 x86_64 x86_64 GNU/Linux




cheers,

This post has been edited by helikaon: Oct 20 2011, 08:41 PM


--------------------
PMEmail Poster
^
cr7ish
 Posted: Oct 22 2011, 04:05 PM
Quote Post


SLF Rookie
*

Group: Members
Posts: 15
Member No.: 280
Joined: 12-June 11









The kernel-ml from ELRepo is coming soon (with PAE & NONPAE versions for x86_32)! The maintainer is preparing everything for the first public/semi-public testing (current status update). I guess it will be announced in their mailinglist, but the stable kernel should still take some time (the first release should be based on Linux 3.1)!
PM
^
tux99
 Posted: Oct 22 2011, 05:45 PM
Quote Post


SLF Guru
********

Group: Members
Posts: 1294
Member No.: 224
Joined: 28-May 11









QUOTE (cr7ish @ Oct 22 2011, 05:05 PM)
The kernel-ml from ELRepo is coming soon (with PAE & NONPAE versions for x86_32)! The maintainer is preparing everything for the first public/semi-public testing (current status update). I guess it will be announced in their mailinglist, but the stable kernel should still take some time (the first release should be based on Linux 3.1)!


I appreciate the effort but other than "for fun" as helikaon did I don't see the point.
Surely the main reason for using a RHEL6 clone is to benefit from the stability and reliable updates handed down from Redhat for the core distro, and the kernel is surely a crucial part of the core distro?

I can understand replacing some peripheral packages with newer versions (like I have done myself for libvpx), but not the core packages.


--------------------
My personal SL6 repository, specialized in audio/video software: http://pkgrepo.linuxtech.net/el6/
(can be used together with EPEL and ELRepo repositories) - repository mirror: http://linuxsoft.cern.ch/linuxtech/el6/
PM
^
helikaon
 Posted: Oct 22 2011, 07:52 PM
Quote Post


SLF Moderator
******

Group: Moderators
Posts: 577
Member No.: 4
Joined: 8-April 11









QUOTE (tux99 @ Oct 22 2011, 05:45 PM)
QUOTE (cr7ish @ Oct 22 2011, 05:05 PM)
The kernel-ml from ELRepo is coming soon (with PAE & NONPAE versions for x86_32)! The maintainer is preparing everything for the first public/semi-public testing (current status update). I guess it will be announced in their mailinglist, but the stable kernel should still take some time (the first release should be based on Linux 3.1)!


I appreciate the effort but other than "for fun" as helikaon did I don't see the point.
Surely the main reason for using a RHEL6 clone is to benefit from the stability and reliable updates handed down from Redhat for the core distro, and the kernel is surely a crucial part of the core distro?

I can understand replacing some peripheral packages with newer versions (like I have done myself for libvpx), but not the core packages.


Well,
there is times, when you might need it, as the 2.6.32 will age with time. Yes, RH is adding new HW support etc, but the structure of kernel evolves too.
E.g. i'm using on one sl 5.x gateway custom vanilla patched with Layer 7 netfilter extensions and IPp2p to control torrents. Yes, it is specific. In 99% not necessary.
Best what you can do, if you want recompile, is to recompile *src.rpm kernel from SL ofc.

But anyway for curious minds, why not, it's good way to learn about what your kernel offers you, what drivers it has etc...
I'm conservative user, but i'm not afraid to sometimes 'bend' system my way. The unixes were built that way smile.gif


--------------------
PMEmail Poster
^
toracat
 Posted: Dec 10 2011, 10:46 PM
Quote Post


SLF Geek
****

Group: Members
Posts: 249
Member No.: 11
Joined: 10-April 11









QUOTE (tux99 @ Oct 22 2011, 09:45 AM)
QUOTE (cr7ish @ Oct 22 2011, 05:05 PM)
The kernel-ml from ELRepo is coming soon (with PAE & NONPAE versions for x86_32)! The maintainer is preparing everything for the first public/semi-public testing (current status update). I guess it will be announced in their mailinglist, but the stable kernel should still take some time (the first release should be based on Linux 3.1)!


I appreciate the effort but other than "for fun" as helikaon did I don't see the point.
Surely the main reason for using a RHEL6 clone is to benefit from the stability and reliable updates handed down from Redhat for the core distro, and the kernel is surely a crucial part of the core distro?

I can understand replacing some peripheral packages with newer versions (like I have done myself for libvpx), but not the core packages.


Alan Bartlett of ELRepo just announced the release of kernel-ml for EL6 (2.6.39-4.1.el6.elrepo). Main purpose of publishing kernel-ml is summarized in the release note [1]. Here's an excerpt:

"We provide these kernels for hardware testing in an effort to identify
new/updated drivers which can then be targeted for backporting as kmod
packages. Meanwhile, these kernels may provide interim relief to
people with non-functional hardware. We stress that we consider such
kernels as a last resort for those who are unable to get their
hardware working using the RHEL-6 kernel with supplementary kmod
packages."

[1] http://lists.elrepo.org/pipermail/elrepo/2011-December/000955.html


--------------------
ELRepo: repository specializing in hardware support for EL
PMUsers Website
^
helikaon
 Posted: Dec 11 2011, 08:39 PM
Quote Post


SLF Moderator
******

Group: Moderators
Posts: 577
Member No.: 4
Joined: 8-April 11









Hi toracat,
thanks for provided information, i'm sure some ppl will be happy about it smile.gif


--------------------
PMEmail Poster
^
toracat
 Posted: Dec 13 2011, 11:20 PM
Quote Post


SLF Geek
****

Group: Members
Posts: 249
Member No.: 11
Joined: 10-April 11









QUOTE (helikaon @ Dec 11 2011, 12:39 PM)
Hi toracat,
thanks for provided information, i'm sure some ppl will be happy about it  smile.gif

In fact, there's a post on the ELRepo mailing list [1] by a Scientific Linux user with a Subject line, "thank you, kernel-ml is a life saver for i5-2410M laptop user".

[1] http://lists.elrepo.org/pipermail/elrepo/2011-December/000957.html

biggrin.gif


--------------------
ELRepo: repository specializing in hardware support for EL
PMUsers Website
^
helikaon
 Posted: Dec 16 2011, 09:33 AM
Quote Post


SLF Moderator
******

Group: Moderators
Posts: 577
Member No.: 4
Joined: 8-April 11









QUOTE (toracat @ Dec 13 2011, 11:20 PM)
QUOTE (helikaon @ Dec 11 2011, 12:39 PM)
Hi toracat,
thanks for provided information, i'm sure some ppl will be happy about it  smile.gif

In fact, there's a post on the ELRepo mailing list [1] by a Scientific Linux user with a Subject line, "thank you, kernel-ml is a life saver for i5-2410M laptop user".

[1] http://lists.elrepo.org/pipermail/elrepo/2011-December/000957.html

biggrin.gif


I believe that - just recently this kernel helped greatly to solve elantech touchpad problem on laptop ... we couldn't get it working for christ sake with the standard tools available ...
So it is very appreciated to have this possibility! And you do great job guys smile.gif

cheers,


--------------------
PMEmail Poster
^
AndrewSerk
 Posted: Dec 27 2011, 01:23 AM
Quote Post


SLF Moderator
******

Group: Moderators
Posts: 518
Member No.: 54
Joined: 14-April 11









I was able to install 3.1.6 without the --force option from a relatively fresh install of 6.2 on a older laptop. I did it a little different (and probably wrong) than you so not sure why I could install without the --force unsure.gif . I had previously built and installed newt using fedpkg. I also downloaded the kernel .srpm with fedpkg and ran a yum-builddep against it. Then I downloaded and extracted the source tarball from kernel.org and :
CODE

$ make mrproper
$ make menuconfig
$ make
$ make modules_install install
$ make rpm
# rpm -ivh kernel-3.1.6-2.i386.rpm   kernel-headers-3.1.6-2.i386.rpm
# reboot


Everything seems to be working fine so far smile.gif
PM
^
helikaon
 Posted: Dec 28 2011, 11:04 AM
Quote Post


SLF Moderator
******

Group: Moderators
Posts: 577
Member No.: 4
Joined: 8-April 11









Hi Andrew,
thanks for contributing here, it is very appreciated and again, there is group of people, that will find it handy, i'm sure smile.gif

cheers,


--------------------
PMEmail Poster
^
AndrewSerk
 Posted: Dec 28 2011, 10:28 PM
Quote Post


SLF Moderator
******

Group: Moderators
Posts: 518
Member No.: 54
Joined: 14-April 11









QUOTE (helikaon @ Dec 28 2011, 06:04 AM)
Hi Andrew,
thanks for contributing here, it is very appreciated and again, there is group of people, that will find it handy, i'm sure  smile.gif

cheers,


Thanks helikaon,
I try to contribute when I can and it is good to know it is appreciated. I hope it helps someone smile.gif

Thanks again,
Andrew
PM
^
hdd
 Posted: Apr 10 2012, 03:38 PM
Quote Post


SLF Rookie
*

Group: Members
Posts: 21
Member No.: 1375
Joined: 14-March 12









Sorry for raising this thread ...
is the mentioned kernel version (2.6.39) still available somewhere ?
I can't see it in the ELRepo kernel -mt (http://elrepo.org/linux/kernel/el6/x86_64/RPMS/)
I'd like to check if my touchpad is been fixed as well ... smile.gif
Thanks!
L.
PM
^
toracat
 Posted: Apr 11 2012, 08:01 AM
Quote Post


SLF Geek
****

Group: Members
Posts: 249
Member No.: 11
Joined: 10-April 11









QUOTE (hdd @ Apr 10 2012, 07:38 AM)
Sorry for raising this thread ...
is the mentioned kernel version (2.6.39) still available somewhere ?
I can't see it in the ELRepo kernel -mt (http://elrepo.org/linux/kernel/el6/x86_64/RPMS/)
I'd like to check if my touchpad is been fixed as well ... smile.gif
Thanks!
L.

Currently, there are two versions available for EL6: 3.0.27 and 3.3.1. I suggest you try one (or both) of them. If neither works, do let me know.


--------------------
ELRepo: repository specializing in hardware support for EL
PMUsers Website
^
hdd
 Posted: Apr 11 2012, 08:59 AM
Quote Post


SLF Rookie
*

Group: Members
Posts: 21
Member No.: 1375
Joined: 14-March 12









Hi Toracat , 3.3.1 works like a charm,
I was just curious to check 2.6.39 version , to see if there was any improvement on the ALPS touchpad driver , which could make easier to backport them to the current (or next) kernel version.
I tried to look around for patches but are all for 3.X and seems not easy to backport them to 2.6.X because of all the changes happened on /input/mouse for the multitouch support.

I'll try to compile the latest vanilla version of 2.6 by my own to see smile.gif
Cheers.
L.
PM
^
burakkucat
 Posted: Apr 13 2012, 03:02 AM
Quote Post


SLF Member
***

Group: Members
Posts: 76
Member No.: 14
Joined: 10-April 11









QUOTE (hdd @ Apr 11 2012, 08:59 AM)

I'll try to compile the latest vanilla version of 2.6 by my own to see smile.gif
Cheers.
L.

You may find it easier to download the specification file for the kernel-ml-2.6.39 package [1] and then edit it for use with the 2.6 tarball you have obtained from the LKA.

[1] http://elrepo.org/linux/kernel/el6/SPECS/kernel-ml-2.6.39.spec


--------------------
user posted image 100% Linux and, previously, Unix. Co-founder of the ELRepo Project.
PMUsers Website
^
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll