Where are kernel sources ?

Hi all,
I am compiling my kernel driver on top of SLES12 X86-64 3.12.28-4 (more at the bottom).
I am using #include in my source code for couple of .h files that located in btrfs filesystem folder.
for this i need kernel sources…

Where do I find the kernel source package ? I saw
http://kernel.opensuse.org/packages/SLE12
and http://download.opensuse.org/repositories/Kernel:/SLE12/ is empty :frowning:

and when i want to search the package with: “zypper search kernel”
I get:
Refreshing service ‘SUSE_Linux_Enterprise_Server_12_x86_64’.
Problem retrieving the repository index file for service ‘SUSE_Linux_Enterprise_Server_12_x86_64’:
Download (curl) error for ‘https://scc.suse.com/access/services/1106/repo/repoindex.xml?cookies=0&credentials=SUSE_Linux_Enterprise_Server_12_x86_64’:
Error code: Connection failed
Error message: Failed to connect to scc.suse.com port 443: Connection refused

Where do i download the package for kernel source ?

Linux SLES12X86-64 3.12.28-4-default
SLES12X86-64:/home/builder # cat /etc/*release
SUSE Linux Enterprise Server 12 (x86_64)
VERSION = 12
PATCHLEVEL = 0

This file is deprecated and will be removed in a future service pack or release.

Please check /etc/os-release for details about this release.

NAME=“SLES”
VERSION=“12”
VERSION_ID=“12”
PRETTY_NAME=“SUSE Linux Enterprise Server 12”
ID=“sles”
ANSI_COLOR=“0;32”
CPE_NAME=“cpe:/o:suse:sles:12”

Hi.

Am 26.03.2017 um 09:04 schrieb ilansch:[color=blue]

and when i want to search the package with: “zypper search kernel”
I get:
Refreshing service ‘SUSE_Linux_Enterprise_Server_12_x86_64’.
Problem retrieving the repository index file for service
‘SUSE_Linux_Enterprise_Server_12_x86_64’:
Download (curl) error for
https://scc.suse.com/access/services/1106/repo/repoindex.xml?cookies=0&credentials=SUSE_Linux_Enterprise_Server_12_x86_64’:
Error code: Connection failed
Error message: Failed to connect to scc.suse.com port 443: Connection
refused[/color]

I recommend you fix this. While there are other ways, getting the
matching sources vie the online repos is the easiest and proper way. Not
to mention it also seems you should be able to pacth your system once in
a while. :wink:

CU,

Massimo Rosen
Micro Focus Knowledge Partner
No emails please!
http://www.cfc-it.de

Hi,

I am working on it, I solved the 443 issue (SSL FW permissions) and now I re-subscribe my partnership.
This specific machine is used only to compile my kernel driver.
It is not the used to something else - just for compilation and then the driver is used on other places (customers)

Where are the online repos that contains the kernel sources ? are they in suse site ?

Thanks

On 27/03/17 06:44, ilansch wrote:
[color=blue]

I am working on it, I solved the 443 issue (SSL FW permissions) and now
I re-subscribe my partnership.
This specific machine is used only to compile my kernel driver.
It is not the used to something else - just for compilation and then the
driver is used on other places (customers)

Where are the online repos that contains the kernel sources ? are they
in suse site ?[/color]

Source packages exist in the same repository which contains the compiled
package.

If you are looking for a source package you can use “zypper search -t
srcpackage ” i.e. “zypper search -t srcpackage kernel”.

If you then want to install it use “zypper install -t srcpackage ”.

HTH.

Simon
SUSE Knowledge Partner


If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below. Thanks.

Hi,
When trying to run the zypper search, I receive the following:
SLES12X86-64:~ # zypper search -t srcpackage kernel
Refreshing service ‘SUSE_Linux_Enterprise_Server_12_x86_64’.
Permission to access ‘https://updates.suse.com/SUSE/Products/SLE-SERVER/12/x86_64/product_debug/repodata/repomd.xml?c5dbgsODQ-Pe_bnW_ntVpx16WdgRkOQrclnrZmB8xHE6R6R8snpHmvl1NExGUpy-DcMeLdzk3S0N-LihkGpANmPAq_xJ0-66jGCDe8Q7musVyT3T4SGAX2pPsZCt383za6vUtNRuNg5UfKAzbGo8’ denied.

Abort, retry, ignore? [a/r/i/? shows all options] (a):

Why is that ?

On 27/03/17 12:44, ilansch wrote:
[color=blue]

When trying to run the zypper search, I receive the following:
SLES12X86-64:~ # zypper search -t srcpackage kernel
Refreshing service ‘SUSE_Linux_Enterprise_Server_12_x86_64’.
Permission to access
https://updates.suse.com/SUSE/Products/SLE-SERVER/12/x86_64/product_debug/repodata/repomd.xml?c5dbgsODQ-Pe_bnW_ntVpx16WdgRkOQrclnrZmB8xHE6R6R8snpHmvl1NExGUpy-DcMeLdzk3S0N-LihkGpANmPAq_xJ0-66jGCDe8Q7musVyT3T4SGAX2pPsZCt383za6vUtNRuNg5UfKAzbGo8
denied.

Abort, retry, ignore? [a/r/i/? shows all options] (a):[/color]

There can be a few reasons either at your end or SUSE’s.

Is your server registered with SUSE Customer Center (SCC) or a local
SUSE Manager/SMT server?

Which repositories does your server have configured? What is the output
from “zypper lr -u”

You should be aware that general support for SLES12 (SP0) ended in June
2016 and ends in May (2017) for SP1 with the current and latest release
being SP2.

Given your earlier curl error I suspect it’s a server issue.

HTH.

Simon
SUSE Knowledge Partner


If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below. Thanks.

Hi,
output of repository is:
1 | SUSE-Linux-Enterprise-Server-11-SP4 11.4.4-1.109 | SUSE-Linux-Enterprise-Server-11-SP4 11.4.4-1.109 | Yes | No | cd:///?devices=/dev/sr0

Anyway, i have successfully downloaded the packages manually via the website - via the patches url - kernel security patches…

But isnt there a possibility to add a repository of old kernels and install via there ? like there is in other distros

thanks