[opensuse] question about kernel sources
Hello: I would like to build a 2.6.37 kernel for my opensuse 11.2 which has 2.6.31 kernel by default. I thought that I could use kernel sources from the 11.4 repository. But I don't see clearly what is the difference between kernel-source-*.src.rpm and kernel-source-*.noarch.rpm packages, eg: http://download.opensuse.org/update/11.4/rpm/src/kernel-source-2.6.37.6-0.9.... and http://download.opensuse.org/update/11.4/rpm/noarch/kernel-source-2.6.37.6-0.... I would also thank for links where I can find description/explanation of the above and how to build a kernel for a different system. Thanks, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Wed, Dec 28, 2011 at 11:37 AM, Istvan Gabor <suseuser04@lajt.hu> wrote:
Hello:
I would like to build a 2.6.37 kernel for my opensuse 11.2 which has 2.6.31 kernel by default. I thought that I could use kernel sources from the 11.4 repository. But I don't see clearly what is the difference between kernel-source-*.src.rpm and kernel-source-*.noarch.rpm packages, eg: http://download.opensuse.org/update/11.4/rpm/src/kernel-source-2.6.37.6-0.9.... and http://download.opensuse.org/update/11.4/rpm/noarch/kernel-source-2.6.37.6-0....
I would also thank for links where I can find description/explanation of the above and how to build a kernel for a different system.
Thanks,
Istvan
You're going to have better luck I believe looking at OBS and using the same methodology the developers actually use. I'm not sure anyone tests the source rpms any more.. For instance the project for the 11.4 update desktop kernel is here: https://build.opensuse.org/package/files?package=kernel-desktop&project=openSUSE%3A11.4%3AUpdate If you branch that to your OBS home project (or a sub-project of that), you can add the DISCONTINUED:openSUSE_11.2 repository and that kernel will rebuild against 11.2. fyi: I just tried a local build, but I their is an issue with the 11.2 repo from what I can see. If you try the below and have the same issues, I'd recommend you follow up on the Evergreen mailinglist. (that is where 11.2 is supported now that it is past official EOL). =========== If you prefer to build it locally, I think these steps will work: # osc is the command line interface to OBS. Get it and setup a working area. zypper in osc mkdir working_dir cd working_dir # makes a local copy of the sources osc co openSUSE:11.4:Update kernel-desktop cd openSUSE:11.4:Update/kernel-desktop #actually build it osc build --alternative-project=DISCONTINUED:openSUSE:11.2:Update At the end of the build, you should see a rpm being built. You can install it with: zypper in <path-to-your-new-rpm> Hope that helps Greg -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Wed, Dec 28, 2011 at 12:08 PM, Greg Freemyer <greg.freemyer@gmail.com> wrote:
On Wed, Dec 28, 2011 at 11:37 AM, Istvan Gabor <suseuser04@lajt.hu> wrote:
Hello:
I would like to build a 2.6.37 kernel for my opensuse 11.2 which has 2.6.31 kernel by default. I thought that I could use kernel sources from the 11.4 repository. But I don't see clearly what is the difference between kernel-source-*.src.rpm and kernel-source-*.noarch.rpm packages, eg: http://download.opensuse.org/update/11.4/rpm/src/kernel-source-2.6.37.6-0.9.... and http://download.opensuse.org/update/11.4/rpm/noarch/kernel-source-2.6.37.6-0....
I would also thank for links where I can find description/explanation of the above and how to build a kernel for a different system.
Thanks,
Istvan
You're going to have better luck I believe looking at OBS and using the same methodology the developers actually use. I'm not sure anyone tests the source rpms any more..
For instance the project for the 11.4 update desktop kernel is here:
https://build.opensuse.org/package/files?package=kernel-desktop&project=openSUSE%3A11.4%3AUpdate
If you branch that to your OBS home project (or a sub-project of that), you can add the DISCONTINUED:openSUSE_11.2 repository and that kernel will rebuild against 11.2.
FYI: I did the above as a test: You can find my test project here: https://build.opensuse.org/package/show?package=kernel-desktop&project=home%3Agregfreemyer%3Abranches%3AopenSUSE%3A11.4%3AUpdate But the build failed. The claim is some kernel ABI changes occurred between the 11.2 release and the 11.4 based kernel, so the automated build scripts aborted. The full build log of the failure is here: https://build.opensuse.org/package/rawlog?arch=x86_64&package=kernel-desktop&project=home%3Agregfreemyer%3Abranches%3AopenSUSE%3A11.4%3AUpdate&repository=openSUSE_Evergreen_11.2_standard I'm afraid I don't have time to help you track that down, but I suggest the easiest fix is try to find out what part of the kernel has that change in it and simply remove it from the config if you can. Greg -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Thu, 29 Dec 2011 03:07:47 Istvan Gabor wrote:
Hello:
I would like to build a 2.6.37 kernel for my opensuse 11.2 which has 2.6.31 kernel by default. I thought that I could use kernel sources from the 11.4 repository. But I don't see clearly what is the difference between kernel-source-*.src.rpm and kernel-source-*.noarch.rpm packages, eg: http://download.opensuse.org/update/11.4/rpm/src/kernel-source-2.6.37.6-0.9 .1.src.rpm and http://download.opensuse.org/update/11.4/rpm/noarch/kernel-source-2.6.37.6- 0.9.1.noarch.rpm.
I would also thank for links where I can find description/explanation of the above and how to build a kernel for a different system.
Thanks,
Istvan
On my system I apparently have the noarch package installed. I'm not sure of the exact difference - I was hoping that YaST2 may have told me in the description, but no such luck."noarch" makes sense for unconfigured source, anyway, because the target architecture is configured during installation. When I build my kernels, I simply download/install the updated sources via YaST2, copy the kernel config from the running kernel from its source directory (or from /boot), run "make oldconfig" to configure what's changed between old and new, then "make xconfig" to check and adjust anything that I need to modify futher. After that the usual, "make, make modules_install, make install" sequence. If I was building for another system and didn't want to copy the entire /usr/src/linux-<version> tree across prior to make install I'd use rpmbuild, but you need a spec file for that and I've never figured out how to write one. Just make sure you set the target architecture appropriately for the target system if you're building on another machine. It would help to get the config for the running config off the target machine and copy it to /usr/src/linux- <version> on the build machine before running "make oldconfig". I've been building kernels like this since prior to 2.6.3x - the last one was 3.1.0. HTH. Regards, Rodney. PS Thanks for your work on getting the xc4000 dvb-t support into the mainline kernel. :-) -- =================================================== Rodney Baker VK5ZTV rodney.baker@iinet.net.au =================================================== -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
2011. december 29. 0:15 napon Rodney Baker <rodney.baker@iinet.net.au> írta:
On Thu, 29 Dec 2011 03:07:47 Istvan Gabor wrote:
Hello:
I would like to build a 2.6.37 kernel for my opensuse 11.2 which has 2.6.31 kernel by default. I thought that I could use kernel sources from the 11.4 repository. But I don't see clearly what is the difference between kernel-source-*.src.rpm and kernel-source-*.noarch.rpm packages, eg: http://download.opensuse.org/update/11.4/rpm/src/kernel-source-2.6.37.6-0.9 .1.src.rpm and http://download.opensuse.org/update/11.4/rpm/noarch/kernel-source-2.6.37.6- 0.9.1.noarch.rpm.
I would also thank for links where I can find description/explanation of the above and how to build a kernel for a different system.
Thanks,
Istvan
On my system I apparently have the noarch package installed. I'm not sure of the exact difference - I was hoping that YaST2 may have told me in the description, but no such luck."noarch" makes sense for unconfigured source, anyway, because the target architecture is configured during installation.
When I build my kernels, I simply download/install the updated sources via YaST2, copy the kernel config from the running kernel from its source directory (or from /boot), run "make oldconfig" to configure what's changed between old and new, then "make xconfig" to check and adjust anything that I need to modify futher. After that the usual, "make, make modules_install, make install" sequence. If I was building for another system and didn't want to copy the entire /usr/src/linux-<version> tree across prior to make install I'd use rpmbuild, but you need a spec file for that and I've never figured out how to write one.
Just make sure you set the target architecture appropriately for the target system if you're building on another machine. It would help to get the config for the running config off the target machine and copy it to /usr/src/linux- <version> on the build machine before running "make oldconfig".
I've been building kernels like this since prior to 2.6.3x - the last one was 3.1.0.
Rodney, Greg: Thank you both for your suggestions. I will try these methods and will report back. Thanks again! Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (3)
-
Greg Freemyer
-
Istvan Gabor
-
Rodney Baker