How i can install kernel 4.5 in to the Leap ?

AT this time Leap42.1 on the LapTop.

mylinuxkap:~> uname -a
Linux mylinuxkap.suse 4.1.20-11-default #1 SMP PREEMPT Fri Mar 18 14:42:07 UTC 2016 (0a392b2) x86_64 x86_64 x86_64 GNU/Linux


How i can install and use kernel-vanilla 4.5 in to this Leap ?

Why ?
I have read it an https://pf.natalenko.name/
it is interesting to try it: BFS, BFQ, TuxOnIce in my LapTop.

Serg

You can take your chances with a 4.6 vanilla kernel today

Add the Vanilla kernel repo

zypper ar -f http://download.opensuse.org/repositories/Kernel:/vanilla/standard/x86_64/ kernel:vanilla

Refresh your repos and either see your available repos

zypper se kernel --from kernel:vanilla

or install with

zypper up

HTH,
TSU

This is first step:

linux-dazx:/home/ksr # zypper ar -f http://download.opensuse.org/repositories/Kernel:/vanilla/standard/x86_64/ kernel:vanilla
Adding repository 'kernel:vanilla' .......................................[done]
Repository 'kernel:vanilla' successfully added
Enabled     : Yes                                                                       
Autorefresh : Yes                                                                       
GPG Check   : Yes                                                                       
Priority    : 99                                                                        
URI         : http://download.opensuse.org/repositories/Kernel:/vanilla/standard/x86_64/


And this is second step with error:

inux-dazx:/home/ksr # zypper ref
Repository 'Packman Repository' is up to date.                                  
Repository 'google-chrome' is up to date.                                       
Retrieving repository 'kernel:vanilla' metadata .........................[error]
Repository 'kernel:vanilla' is invalid.
[kernel:vanilla|http://download.opensuse.org/repositories/Kernel:/vanilla/standard/x86_64/] Valid metadata not found at specified URL
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'kernel:vanilla' because of the above error.
Repository 'openSUSE-42.1-0' is up to date.                                     
Repository 'openSUSE-Leap-42.1-Update' is up to date.                           
Repository 'openSUSE-Leap-42.1-Update-Non-Oss' is up to date.                   
Some of the repositories have not been refreshed because of an error.


After modify URI can add :


linux-dazx:/home/ksr # zypper ar -f http://download.opensuse.org/repositories/Kernel:/vanilla/standard/ kernel:vanilla
Adding repository 'kernel:vanilla' ....................................................................................[done]
Repository 'kernel:vanilla' successfully added
Enabled     : Yes                                                                
Autorefresh : Yes                                                                
GPG Check   : Yes                                                                
Priority    : 99                                                                 
URI         : http://download.opensuse.org/repositories/Kernel:/vanilla/standard/



linux-dazx:/home/ksr # zypper ref
Repository 'Packman Repository' is up to date.                                                                               
Repository 'google-chrome' is up to date.                                                                                    
Retrieving repository 'kernel:vanilla' metadata --------------------------------------------------------------------------|]

New repository or package signing key received:

  Repository:       kernel:vanilla                                
  Key Name:         Kernel OBS Project <Kernel@build.opensuse.org>
  Key Fingerprint:  4529410A B52F94C4 03BAB484 ECEEF210 03579C1D  
  Key Created:      Wed Apr 22 15:25:51 2015                      
  Key Expires:      Fri Jun 30 15:25:51 2017                      
  Rpm Name:         gpg-pubkey-03579c1d-5537934f                  


Do you want to reject the key, trust temporarily, or trust always? [r/t/a/? shows all options] (r): t
Retrieving repository 'kernel:vanilla' metadata .......................................................................[done]
Building repository 'kernel:vanilla' cache ............................................................................[done]
Repository 'openSUSE-42.1-0' is up to date.                                                                                  
Repository 'openSUSE-Leap-42.1-Update' is up to date.                                                                        
Repository 'openSUSE-Leap-42.1-Update-Non-Oss' is up to date.                                                                
All repositories have been refreshed.



at this time:

linux-dazx:/home/ksr # uname -a
Linux linux-dazx.suse 4.6.0-rc4-229-g4dfa573-1.g92580de-vanilla #1 SMP PREEMPT Sun Apr 24 10:02:50 UTC 2016 (92580de) x86_64 x86_64 x86_64 GNU/Linux


but this kernel without BFQ i/o scheduler :

linux-dazx:/home/ksr # cat /sys/block/sda/queue/scheduler 
noop deadline [cfq] 

well the only way that i know its to compile it your self with pf-kernel patch .

the URL is wrong it should be without the x86_64

sudo zypper ar -f http://download.opensuse.org/repositories/Kernel:/vanilla/standard/ kernel:vanilla

that repo has kernel 4.6rc not 4.5
do not use up but dup, up will not switch repo’s
if you already added the vanila repo do this

sudo zypper dup --from kernel:vanilla

or

sudo zypper in kernel-vanilla

if you want to install the 4.5 kernel the above is wrong!!!
the 4.5.2 is hosted in the hardware:/nvdimm repo so you need to add that repo and do a vendor change with it

zypper ar -f http://download.opensuse.org/repositories/hardware:/nvdimm/openSUSE_Leap_42.1/ hardware:nvdimm
zypper dup --from hardware:nvdimm

ps installing a development kernel on leap is a bad idea as it might break something, at least you will have to remove and reinstall nvidia and ati video drivers, something else might get broken too.

its not a bad thing if you know what you doing.

but why you tell him do install a kernel-vanilla ?

Maybe because the OP asked:

How i can install and use kernel-vanilla 4.5 in to this Leap ?

:wink:

I would rather recommend the “official” Kernel:stable repository though, and install kernel-default from there:
http://download.opensuse.org/repositories/Kernel:/stable/standard/

This does contain 4.5.2 at the moment.
I don’t know whether BFQ is enabled there though.

This is 4.5 kernel with BFQ i/o scheduler ?

Serg

I have no idea, it was the only 4.5 kernel I saw here
https://software.opensuse.org/package/kernel-default

maybe you should do as wolfi said and get the kernel from
http://download.opensuse.org/repositories/Kernel:/stable/standard/
but I’m not sure if that one is for leap as that repo does not have a separate leap url

I have made that wanted :slight_smile:
Thank you ALL for suggestions and Help !
Result at this time i have:

linux-i1rh:/home/ksr # uname -a
Linux linux-i1rh 4.5.0-pf1-11-default #1 SMP Fri Apr 22 11:49:34 MSK 2016 x86_64 x86_64 x86_64 GNU/Linux
linux-i1rh:/home/ksr # cat /sys/block/sda/queue/scheduler 
noop deadline cfq [bfq] 


Short How to:

  1. download from this https://pf.natalenko.name/sources/4.5/patch-4.5-pf1.xz
  2. download kernel-vanilla-4.5.0
  3. unpack kernel into the /usr/src
  4. cd /usr/src and ln -s linux-4.5.0 linux
  5. apply patch-4.5-pf1
  6. make menuconfig and Check BFQ
  7. build and install new kernel ( i read this https://www.suse.com/communities/blog/compiling-de-linux-kernel-suse-way/ and this ( Russian ) https://ru.opensuse.org/SDB:Сборка_ядра_Linux )

This is my kernel rpms with BFQ: https://drive.google.com/folderview?id=0B1V2SSlATCfNLW9XTENZN2JJcjA&usp=sharing

Serg

i never install with rpm but
i see in this link that he edit grub manually soo what about “grub2-mkconfig” command is it working after you install the rpm?

did you compile lioke this—> make -j[number of core*2] rpm ?

and last question is it stable until now (and don’t forget to enable the patch in the configuration)?

  1. without manual edit grub atall. after makeinitrd +reboot i can see from witch kernell boot ( press righ arrow and i see all kernels )
  2. make -j2 ( 1core )
  3. about stable or unstable - i dont know ( im not guru. ) … my steps was: download sorce kernel-vanill-4.5.0 + apply pf-patch. after this make menuconfig ( and Check for use BFQ ). After this make and makeinird and rpm -ivh kernel-…

Serg

just want to know when i compile manually the kernel myselft there is a special patch that opensuse team use that i don’t aware of ?

witout suse specific pathes.

Serg

i dont understand what you wrote but

i mean when you compile this way (like he wrote) :

Short How to:

  1. download from this https://pf.natalenko.name/sources/4.5/patch-4.5-pf1.xz
  2. download kernel-vanilla-4.5.0
  3. unpack kernel into the /usr/src
  4. cd /usr/src and ln -s linux-4.5.0 linux
  5. make menuconfig
  6. build and install new kernel ( i read this https://www.suse.com/communities/blo…rnel-suse-way/ and this ( Russian ) https://ru.opensuse.org/SDB:%D0%A1%D…80%D0%B0_Linux )

is it opensuse team apply patch that we dont aware of or opensuse uses all the features that already exists in the kernel source?

I have build from a vanilla kernel 4.5.0 with only one patch patch-4.5-pf1.xz ( add BFQ i/o scheduler ).