[opensuse-kernel] where is -factory's kernel-xen *source* ?
i've installed/updated to latest -factory. i've installed latest kernel & xen, rpm -qa kernel\* xen\* xen-doc-pdf-3.2.1_16881_01-11 xen-3.2.1_16881_01-11 kernel-source-2.6.25.4-2 xen-libs-3.2.1_16881_01-11 kernel-xen-2.6.25.4-2 xen-tools-3.2.1_16881_01-11 xen-doc-html-3.2.1_16881_01-11 xen-devel-3.2.1_16881_01-11 kernel-default-2.6.25.4-2 trying to find/get the source for kernel-xen, zypper install kernel-xen-source Reading installed packages... 'kernel-xen-source' not found. Nothing to do. zypper source-install kernel-xen Reading installed packages... Problem: nothing provides requested srcpackage:kernel-xen = 2.6.25.4-2 Have you enabled all requested repositories ? Solution 1: do not ask to install a solvable providing srcpackage:kernel-xen = 2.6.25.4-2 Choose the above solution using '1' or cancel using 'c' [1/C]: where are the kernel-xen sources? thanks. -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
Am Dienstag, 20. Mai 2008 schrieb snowcrash+opensuse:
i've installed/updated to latest -factory.
i've installed latest kernel & xen,
rpm -qa kernel\* xen\* xen-doc-pdf-3.2.1_16881_01-11 xen-3.2.1_16881_01-11 kernel-source-2.6.25.4-2 xen-libs-3.2.1_16881_01-11 kernel-xen-2.6.25.4-2 xen-tools-3.2.1_16881_01-11 xen-doc-html-3.2.1_16881_01-11 xen-devel-3.2.1_16881_01-11 kernel-default-2.6.25.4-2
trying to find/get the source for kernel-xen,
zypper install kernel-xen-source There is no kernel-xen-source. xen ist just a configuration option of kernel-source. You will find the used configuration in /usr/src/linux/arch/i386/defconfig.xen ( for 32bit kernels) or /usr/src/linux/arch/x86_64/defconfig.xen ( for 64bit kernels )
-- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
hi markus,
There is no kernel-xen-source. xen ist just a configuration option of kernel-source.
understood now. thanks!
You will find the used configuration in /usr/src/linux/arch/i386/defconfig.xen ( for 32bit kernels) or /usr/src/linux/arch/x86_64/defconfig.xen ( for 64bit kernels )
hm, then something's missing here. i'm on x86_64 ... uname -a Linux server 2.6.25.4-2-default #1 SMP 2008-05-16 20:46:39 +0200 x86_64 x86_64 x86_64 GNU/Linux but, ls -al /usr/src/linux/arch/x86_64/defconfig.xen /bin/ls: cannot access /usr/src/linux/arch/x86_64/defconfig.xen: No such file or directory checking further, ls -ald /usr/src/linux/arch/*64* drwxr-xr-x 14 root root 4096 2008-05-20 06:20 /usr/src/linux/arch/ia64/ drwxr-xr-x 10 root root 4096 2008-05-20 06:20 /usr/src/linux/arch/sparc64/ but, looking in /boot, ls -al /boot/config* -rw-r--r-- 1 root root 83017 2008-05-17 13:26 /boot/config-2.6.25.4-2-default -rw-r--r-- 1 root root 81838 2008-05-17 13:26 /boot/config-2.6.25.4-2-xen what needs to be re-installed here? thanks! -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 snowcrash+opensuse wrote:
hi markus,
There is no kernel-xen-source. xen ist just a configuration option of kernel-source.
understood now. thanks!
You will find the used configuration in /usr/src/linux/arch/i386/defconfig.xen ( for 32bit kernels) or /usr/src/linux/arch/x86_64/defconfig.xen ( for 64bit kernels )
hm, then something's missing here. i'm on x86_64 ...
uname -a Linux server 2.6.25.4-2-default #1 SMP 2008-05-16 20:46:39 +0200 x86_64 x86_64 x86_64 GNU/Linux
but,
ls -al /usr/src/linux/arch/x86_64/defconfig.xen /bin/ls: cannot access /usr/src/linux/arch/x86_64/defconfig.xen: No such file or directory
checking further,
ls -ald /usr/src/linux/arch/*64* drwxr-xr-x 14 root root 4096 2008-05-20 06:20 /usr/src/linux/arch/ia64/ drwxr-xr-x 10 root root 4096 2008-05-20 06:20 /usr/src/linux/arch/sparc64/
but, looking in /boot,
ls -al /boot/config* -rw-r--r-- 1 root root 83017 2008-05-17 13:26 /boot/config-2.6.25.4-2-default -rw-r--r-- 1 root root 81838 2008-05-17 13:26 /boot/config-2.6.25.4-2-xen
what needs to be re-installed here?
There is, unfortunately, no kernel-xen-source package. It's kind of a sore spot. All the flavors, except Xen, are built from the same source tree. There are additional patches that we apply to the Xen tree, and then build it. As a result, they're not included in the kernel-source package. We do have a kernel-source.src.rpm that can be used to build the appropriate source tree, though. - -Jeff - -- Jeff Mahoney SUSE Labs -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAkg0blIACgkQLPWxlyuTD7J+LwCdHSDik8Bd3ouzAEPc+aae9/n7 6NgAn3SGDY7k+zIRJ+rdlEESSevA3oPv =LuDj -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
hi jeff,
There is, unfortunately, no kernel-xen-source package. It's kind of a sore spot. All the flavors, except Xen, are built from the same source tree. There are additional patches that we apply to the Xen tree, and then build it. As a result, they're not included in the kernel-source package.
We do have a kernel-source.src.rpm that can be used to build the appropriate source tree, though.
are those patches & process available/documented somewhere? currently, trying to do a build, i'm failing ... https://bugzilla.novell.com/show_bug.cgi?id=393142 and now, given your comments, wonder if the missing "patches" are part of the cause ... thanks! -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Markus Koßmann wrote:
Am Dienstag, 20. Mai 2008 schrieb snowcrash+opensuse:
i've installed/updated to latest -factory.
i've installed latest kernel & xen,
rpm -qa kernel\* xen\* xen-doc-pdf-3.2.1_16881_01-11 xen-3.2.1_16881_01-11 kernel-source-2.6.25.4-2 xen-libs-3.2.1_16881_01-11 kernel-xen-2.6.25.4-2 xen-tools-3.2.1_16881_01-11 xen-doc-html-3.2.1_16881_01-11 xen-devel-3.2.1_16881_01-11 kernel-default-2.6.25.4-2
trying to find/get the source for kernel-xen,
zypper install kernel-xen-source There is no kernel-xen-source. xen ist just a configuration option of kernel-source. You will find the used configuration in /usr/src/linux/arch/i386/defconfig.xen ( for 32bit kernels) or /usr/src/linux/arch/x86_64/defconfig.xen ( for 64bit kernels )
That's true of all flavors except for -xen and -rt. Those two flavors have additional patches that aren't installed as part of kernel-source. I'm writing up a different email to explain how to get the kernel source for the xen flavor. - -Jeff - -- Jeff Mahoney SUSE Labs -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAkg0epEACgkQLPWxlyuTD7LiUgCfQlUPiKtJOD2c/tMTDm9mAC8+ 3SgAoIpUDsKY89N3yEm1BTBVz867uECG =EAmF -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
jeff,
There is no kernel-xen-source. xen ist just a configuration option of kernel-source. You will find the used configuration in /usr/src/linux/arch/i386/defconfig.xen ( for 32bit kernels) or /usr/src/linux/arch/x86_64/defconfig.xen ( for 64bit kernels )
That's true of all flavors except for -xen and -rt.
argh.
Those two flavors have additional patches that aren't installed as part of kernel-source.
that, then, is useful to know.
I'm writing up a different email to explain how to get the kernel source for the xen flavor.
thanks. that's appreciated (& i also note your 'assign' @ the bug, thx!). i'll keep an eye out, apply what you suggest, and report back. cheers. -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 snowcrash+opensuse wrote:
hi jeff,
There is, unfortunately, no kernel-xen-source package. It's kind of a sore spot. All the flavors, except Xen, are built from the same source tree. There are additional patches that we apply to the Xen tree, and then build it. As a result, they're not included in the kernel-source package.
We do have a kernel-source.src.rpm that can be used to build the appropriate source tree, though.
are those patches & process available/documented somewhere?
currently, trying to do a build, i'm failing ...
https://bugzilla.novell.com/show_bug.cgi?id=393142
and now, given your comments, wonder if the missing "patches" are part of the cause ...
The patches are, yes. You can build the packages by grabbing the kernel-source SRPM, then cd'ing to %_sourcedir (/usr/src/packages/SOURCES, unless you've changed it) and doing rpmbuild - -bb kernel-xen.spec. That will apply the right set of patches and you'll end up with a xen kernel. To build a xen kernel-source, do this: echo "xen" > extra-symbols rpmbuild -bb kernel-source.spec To verify it's building the correct tree, make sure there's something like "Architecture symbol(s): x86_64 xen" in the first 10 lines of output. This will create a kernel-source package, but it will be fundamentally incompatible with the shipping kernel-source package. It's *definitely* a goal of ours to eliminate the need for multiple source packages for this very reason. - -Jeff - -- Jeff Mahoney SUSE Labs -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAkg0hi0ACgkQLPWxlyuTD7L8vACfcu8PQLj0rrpUpW6+237FxSEC 0yEAoKcljtN6188+DC1A8K0lZdrhd2lV =2oTP -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
On Wednesday 21 May 2008 20:47:46 Jeff Mahoney wrote:
There is, unfortunately, no kernel-xen-source package. It's kind of a sore spot. All the flavors, except Xen, are built from the same source tree.
This was the case for a while in older distributions. Meanwhile, kernel-xen is based on the same patches as all the other kernels, with the notable exception of the real-time kernel (kernel-rt and kernel-rt_debug). For all kernels except the real-time ones, kernel-source is the appropriate source package (and kernel-syms contains the modversions for building KMPs, if this is what you are after).
There are additional patches that we apply to the Xen tree, and then build it. As a result, they're not included in the kernel-source package.
Not anymore, luckily.
We do have a kernel-source.src.rpm that can be used to build the appropriate source tree, though.
Yes, the kernel-source.src.rpm package contains all the patches for creating any of our kernel source trees, even the real-time one. Andreas -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
hi jeff,
The patches are, yes. You can build the packages by grabbing the kernel-source SRPM, then cd'ing to %_sourcedir (/usr/src/packages/SOURCES, unless you've changed it) and doing rpmbuild - -bb kernel-xen.spec. That will apply the right set of patches and you'll end up with a xen kernel.
that will give me a kernel-xen config'd as in the distro/release, yes? if so, i need to make config changes. so, i presume, i need to start with kernel-xen 'source',
To build a xen kernel-source, do this: echo "xen" > extra-symbols rpmbuild -bb kernel-source.spec
but, checking, rpm -ivh .../kernel-source-2.6.25.4-2.src.rpm ls /usr/src/packages/SOURCES/kernel-source.spec /bin/ls: No match. where's *that* .spec? thanks! -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Andreas Gruenbacher wrote:
On Wednesday 21 May 2008 20:47:46 Jeff Mahoney wrote:
There is, unfortunately, no kernel-xen-source package. It's kind of a sore spot. All the flavors, except Xen, are built from the same source tree.
This was the case for a while in older distributions. Meanwhile, kernel-xen is based on the same patches as all the other kernels, with the notable exception of the real-time kernel (kernel-rt and kernel-rt_debug). For all kernels except the real-time ones, kernel-source is the appropriate source package (and kernel-syms contains the modversions for building KMPs, if this is what you are after).
There are additional patches that we apply to the Xen tree, and then build it. As a result, they're not included in the kernel-source package.
Not anymore, luckily.
Oh. Right. Duh! I've been staring at the SLES10 tree for too long lately. Sorry for the confusion. - -Jeff - -- Jeff Mahoney SUSE Labs -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAkg0i50ACgkQLPWxlyuTD7LwHQCcCbtQfz2ZNdR+mLWGwYZOEI4U OFIAnjFrctIvqzExIh4IFUMtaw+UpV35 =Lw0j -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
andreas, ok. iiuc (& i may not), you're contradicting jeff. now i'm confused(er!). my goal is: rebuild of single kernel-xen instance (vmlinuz & initrd), with custom .config, good for use as both/either Dom0/Domu kernel. what's the right procedure? -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
On Tuesday 20 May 2008 18:31:37 snowcrash+opensuse wrote:
hm, then something's missing here. i'm on x86_64 ...
uname -a Linux server 2.6.25.4-2-default #1 SMP 2008-05-16 20:46:39 +0200 x86_64 x86_64 x86_64 GNU/Linux
but,
ls -al /usr/src/linux/arch/x86_64/defconfig.xen /bin/ls: cannot access /usr/src/linux/arch/x86_64/defconfig.xen: No such file or directory
That's strange, because the kernel-source package does contain the x86_64 kernel-xen config at that place, e.g., /usr/src/linux-2.6.25.4-2/arch/x86_64/defconfig.xen Where does the /usr/src/linux symlink point to, does it point to linux-2.6.25.4-2 (the running kernel)?
what needs to be re-installed here?
Please make sure that the appropriate kernel-source package is installed (and that you are looking in the right /usr/src/linux-* directory). Andreas -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 snowcrash+opensuse wrote:
andreas,
ok. iiuc (& i may not), you're contradicting jeff. now i'm confused(er!).
my goal is:
rebuild of single kernel-xen instance (vmlinuz & initrd), with custom .config, good for use as both/either Dom0/Domu kernel.
what's the right procedure?
Andreas is right. I got confused. The current tree is unified again. It wasn't for older releases, which is what I was describing. I'll start at the top and figure out what's wrong with your build. - -Jeff - -- Jeff Mahoney SUSE Labs -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAkg0jCMACgkQLPWxlyuTD7IYWQCdFi8OjcoFRFEpHhcQ2Yad8Uwp A5AAoIo3BvWehNz5ocJN1QHeoEG/GUAG =tubp -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
hi,
Where does the /usr/src/linux symlink point to, does it point to linux-2.6.25.4-2 (the running kernel)?
yes. ls -ald /usr/src/linux lrwxrwxrwx 1 root root 16 2008-05-20 06:20 /usr/src/linux -> linux-2.6.25.4-2/
what needs to be re-installed here?
Please make sure that the appropriate kernel-source package is installed (and that you are looking in the right /usr/src/linux-* directory).
well, cd /usr/src/packages/SRPMS wget http://download.opensuse.org/distribution/SL-OSS-factory/inst-source/suse/sr... rpm -ivh kernel-source-2.6.25.4-2.src.rpm is what i did. then, ls -al /usr/src/linux/arch/x86_64/defconfig.xen /bin/ls: cannot access /usr/src/linux/arch/x86_64/defconfig.xen: No such file or directory cd / updatedb locate defconfig.xen (empty) :-/ -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
Andreas is right. I got confused. The current tree is unified again. It wasn't for older releases, which is what I was describing. I'll start at the top and figure out what's wrong with your build.
heh. ok, then. (getting a coffee ...) ;-) -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
On Wednesday 21 May 2008 22:52:45 Jeff Mahoney wrote:
Oh. Right. Duh! I've been staring at the SLES10 tree for too long lately.
Hehe, I wonder why ;-) Andreas -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
There are additional patches that we apply to the Xen tree, and then build it. As a result, they're not included in the kernel-source package.
Not anymore, luckily.
Oh. Right. Duh! I've been staring at the SLES10 tree for too long lately.
Even there it's all the same source (and always was). It is SLES9 where the patches are guarded... Jan -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
participants (5)
-
Andreas Gruenbacher
-
Jan Beulich
-
Jeff Mahoney
-
Markus Koßmann
-
snowcrash+opensuse