[opensuse-factory] A suse way to buil an rpm package from kernel source
Hi all, I think that we don't have such features, avaible in other distro. So I just filled an enhancement request to bugzilla (with some details..): https://bugzilla.novell.com/show_bug.cgi?id=463446 If you think that can be useful, add your opinion/ideas there :) Bye. -- *** Linux user # 198661 ---_ ICQ 33500725 *** *** Home http://www.kailed.net *** *** Powered by openSUSE *** -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Sun, Jan 04, 2009 at 03:54:14PM +0100, Daniele wrote:
Hi all, I think that we don't have such features, avaible in other distro. So I just filled an enhancement request to bugzilla (with some details..): https://bugzilla.novell.com/show_bug.cgi?id=463446
'make binrpm-pkg' should already provide the majority of this for you. But to do it all properly, you need to build the kernel using the spec file that is provided to you by the suse kernel engineers. good luck, greg k-h -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Il domenica 04 gennaio 2009, Greg KH scrisse:
On Sun, Jan 04, 2009 at 03:54:14PM +0100, Daniele wrote:
Hi all, I think that we don't have such features, avaible in other distro. So I just filled an enhancement request to bugzilla (with some details..): https://bugzilla.novell.com/show_bug.cgi?id=463446
'make binrpm-pkg' should already provide the majority of this for I'm trying but: make[1]: *** [binrpm-pkg] Error 1 make: *** [binrpm-pkg] Error 2
not a usefull error.. but make only goes fine... I didn't try but I'm quite sure that rpm generated in this way cannot be used to replace suse package without dependecies problems..
you. But to do it all properly, you need to build the kernel using the spec file that is provided to you by the suse kernel engineers. This is what I'm asking for: a "magic" but simple tool for building an rpm with a susefied spec file. At least with right "provide" and a call to mkinitrd and update-bootloader. This is enough for testing or for build a kernel on host A and then move to another host...
An enhanced version of mkspec should be enough.. http://www.howtoforge.com a lot of: how-to compile a kernel - $distro way The suse way is, IMHO, the worst one.. Bye. -- *** Linux user # 198661 ---_ ICQ 33500725 *** *** Home http://www.kailed.net *** *** Powered by openSUSE *** -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Mon, Jan 05, 2009 at 01:58:30AM +0100, Daniele wrote:
Il domenica 04 gennaio 2009, Greg KH scrisse:
On Sun, Jan 04, 2009 at 03:54:14PM +0100, Daniele wrote:
Hi all, I think that we don't have such features, avaible in other distro. So I just filled an enhancement request to bugzilla (with some details..): https://bugzilla.novell.com/show_bug.cgi?id=463446
'make binrpm-pkg' should already provide the majority of this for I'm trying but: make[1]: *** [binrpm-pkg] Error 1 make: *** [binrpm-pkg] Error 2
Try 'make binrpm-pkg V=1' to get a better idea what the error is.
not a usefull error.. but make only goes fine... I didn't try but I'm quite sure that rpm generated in this way cannot be used to replace suse package without dependecies problems..
That is exactly correct.
you. But to do it all properly, you need to build the kernel using the spec file that is provided to you by the suse kernel engineers. This is what I'm asking for: a "magic" but simple tool
Heh, gotta dream big :)
for building an rpm with a susefied spec file. At least with right "provide" and a call to mkinitrd and update-bootloader. This is enough for testing or for build a kernel on host A and then move to another host...
An enhanced version of mkspec should be enough..
http://www.howtoforge.com a lot of: how-to compile a kernel - $distro way The suse way is, IMHO, the worst one..
Have you tried the build service? thanks, greg k-h -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Il lunedì 05 gennaio 2009, Greg KH scrisse:
On Mon, Jan 05, 2009 at 01:58:30AM +0100, Daniele wrote:
Il domenica 04 gennaio 2009, Greg KH scrisse:
On Sun, Jan 04, 2009 at 03:54:14PM +0100, Daniele wrote:
Hi all, I think that we don't have such features, avaible in other distro. So I just filled an enhancement request to bugzilla (with some details..): https://bugzilla.novell.com/show_bug.cgi?id=463446
'make binrpm-pkg' should already provide the majority of this for
I'm trying but: make[1]: *** [binrpm-pkg] Error 1 make: *** [binrpm-pkg] Error 2
Try 'make binrpm-pkg V=1' to get a better idea what the error is. It's strange... no error under "original" kernel but failure under rebuilded kernel..
not a usefull error.. but make only goes fine... I didn't try but I'm quite sure that rpm generated in this way cannot be used to replace suse package without dependecies problems..
That is exactly correct.
you. But to do it all properly, you need to build the kernel using the spec file that is provided to you by the suse kernel engineers.
This is what I'm asking for: a "magic" but simple tool
Heh, gotta dream big :) I don't think it is so big..
for building an rpm with a susefied spec file. At least with right "provide" and a call to mkinitrd and update-bootloader. This is enough for testing or for build a kernel on host A and then move to another host...
An enhanced version of mkspec should be enough..
http://www.howtoforge.com a lot of: how-to compile a kernel - $distro way The suse way is, IMHO, the worst one..
Have you tried the build service? too much. It seems that nobody care about this, so ok for me..
Only a little question: I removed unused modules, all debug options, hz 250 -> 1000 and cpu 586 -> athlon/k7. After a quick test with ramspeed and glxgears the new kernel seems slower then original one. is this right ? opensuse-11.0, kernel-2.6.25.18-0.2-default Bye. -- *** Linux user # 198661 ---_ ICQ 33500725 *** *** Home http://www.kailed.net *** *** Powered by openSUSE *** -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday, 2009-01-05 at 10:01 +0100, Daniele wrote:
Have you tried the build service? too much. It seems that nobody care about this, so ok for me..
Only a little question: I removed unused modules, all debug options, hz 250 -> 1000 and cpu 586 -> athlon/k7. After a quick test with ramspeed and glxgears the new kernel seems slower then original one. is this right ?
opensuse-11.0, kernel-2.6.25.18-0.2-default
I don't know about making an rpm, but quite some people often re-compile the kernel. The typical route is "make cloneconfig", m. menuconfig, m., m. modules_install install. It usually works. Of course, if you want to redeploy on sevral machines, you need an rpm. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEUEARECAAYFAklh/EgACgkQtTMYHG2NR9XBOwCbBNx6d1NOvHglmiujxYKUXd4Z R9MAl17ibDEDYVUFZTX+OdvUmKVYLVU= =Y9/A -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Carlos E. R. pecked at the keyboard and wrote:
On Monday, 2009-01-05 at 10:01 +0100, Daniele wrote:
Have you tried the build service? too much. It seems that nobody care about this, so ok for me..
Only a little question: I removed unused modules, all debug options, hz 250 -> 1000 and cpu 586 -> athlon/k7. After a quick test with ramspeed and glxgears the new kernel seems slower then original one. is this right ?
opensuse-11.0, kernel-2.6.25.18-0.2-default
I don't know about making an rpm, but quite some people often re-compile the kernel. The typical route is "make cloneconfig", m. menuconfig, m., m. modules_install install. It usually works.
Of course, if you want to redeploy on sevral machines, you need an rpm.
-- Cheers, Carlos E. R.
/usr/src/linux # grep rpm Makefile # rpm target kept for backward compatibility rpm: include/config/kernel.release FORCE Perhaps this will create the rpm, I have never used it. -- Ken Schneider SuSe since Version 5.2, June 1998 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Il lunedì 05 gennaio 2009, Ken Schneider scrisse:
/usr/src/linux # grep rpm Makefile # rpm target kept for backward compatibility rpm: include/config/kernel.release FORCE
Perhaps this will create the rpm, I have never used it. Ken, building rpm it's easy, you simple need to call "make binrpm-pkg" or "make rpm-pkg". The problems is that rpm i very generic so with wrong "provide" and without mkinitr/update-bootloader calls.. Look at /usr/src/linux/scripts/package; mkspec is used to build rpm. I'll try to edit that script but I dont' know exactly what to do...
-- Ken Schneider SuSe since Version 5.2, June 1998 me since 6.0, ten years right now! (more or less) Bye.
-- *** Linux user # 198661 ---_ ICQ 33500725 *** *** Home http://www.kailed.net *** *** Powered by openSUSE *** -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Mon, Jan 05, 2009 at 03:19:28PM +0100, Daniele wrote:
Il lunedì 05 gennaio 2009, Ken Schneider scrisse:
/usr/src/linux # grep rpm Makefile # rpm target kept for backward compatibility rpm: include/config/kernel.release FORCE
Perhaps this will create the rpm, I have never used it. Ken, building rpm it's easy, you simple need to call "make binrpm-pkg" or "make rpm-pkg". The problems is that rpm i very generic so with wrong "provide" and without mkinitr/update-bootloader calls.. Look at /usr/src/linux/scripts/package; mkspec is used to build rpm. I'll try to edit that script but I dont' know exactly what to do...
So what do you actually want to do? Build your own kernel? Then check out the kernel-source SRPM and just add your changes that you need and rebuild the kernel-<flavour>.rpm from it. For repackaging an installed kernel above might be the way. Ciao, Marcus -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Il lunedì 05 gennaio 2009, Marcus Meissner scrisse:
So what do you actually want to do? An "rpm made easy" :)
Build your own kernel? Then check out the kernel-source SRPM and just add your changes that you need and rebuild the kernel-<flavour>.rpm from it.
For repackaging an installed kernel above might be the way. Well it is another way but a bit long and no so easy... http://www.howtoforge.com/kernel_compilation_suse http://www.howtoforge.com/howto_linux_kernel_2.6_compile_debian
maybe that this how-to are outdate but the difference is big... I'd like to see a better mkspec and I think that shold be easy for you (suse devs..) but not for me (but I'll try..). Bye. -- *** Linux user # 198661 ---_ ICQ 33500725 *** *** Home http://www.kailed.net *** *** Powered by openSUSE *** -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Mon, Jan 05, 2009 at 04:01:00PM +0100, Daniele wrote:
Il lunedì 05 gennaio 2009, Marcus Meissner scrisse:
So what do you actually want to do? An "rpm made easy" :)
Build your own kernel? Then check out the kernel-source SRPM and just add your changes that you need and rebuild the kernel-<flavour>.rpm from it.
For repackaging an installed kernel above might be the way. Well it is another way but a bit long and no so easy... http://www.howtoforge.com/kernel_compilation_suse http://www.howtoforge.com/howto_linux_kernel_2.6_compile_debian
maybe that this how-to are outdate but the difference is big...
It is out of date, and also the difference is big because more information is provided in the suse build instructions there than is really needed. thanks, greg k-h -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Hello, Marcus Meissner írta:
Build your own kernel? Then check out the kernel-source SRPM and just add your changes that you need and rebuild the kernel-<flavour>.rpm from it.
Is there a documentation for it anywhere? We would like to build a custom kernel for our PPC boards. Some patches became available only after release, which increase HDD performance, fix Ethernet. Also the 11.1 kernel sources have support for two interesting boards, but not enabled. With some ugly hacks, we have now an almost working kernel rpm, but the ultimate goal would be a perfectly working kernel rpm, and to generate an installer from this. Any pointers, how to do this? Bye, CzP -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Il lunedì 05 gennaio 2009, Carlos E. R. scrisse:
I don't know about making an rpm, but quite some people often re-compile the kernel. The typical route is "make cloneconfig", m. menuconfig, m., m. modules_install install. It usually works. Carlos, I'm not a linux guru but after ten years I know how to compile/install kernel..
Of course, if you want to redeploy on sevral machines, you need an rpm. This is point! With a rpm it is easy and fast to try/install/move/remove a kernel image...
Bye. -- *** Linux user # 198661 ---_ ICQ 33500725 *** *** Home http://www.kailed.net *** *** Powered by openSUSE *** -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Mon, Jan 05, 2009 at 10:01:46AM +0100, Daniele wrote:
Il lunedì 05 gennaio 2009, Greg KH scrisse:
On Mon, Jan 05, 2009 at 01:58:30AM +0100, Daniele wrote:
Il domenica 04 gennaio 2009, Greg KH scrisse:
On Sun, Jan 04, 2009 at 03:54:14PM +0100, Daniele wrote:
Hi all, I think that we don't have such features, avaible in other distro. So I just filled an enhancement request to bugzilla (with some details..): https://bugzilla.novell.com/show_bug.cgi?id=463446
'make binrpm-pkg' should already provide the majority of this for
I'm trying but: make[1]: *** [binrpm-pkg] Error 1 make: *** [binrpm-pkg] Error 2
Try 'make binrpm-pkg V=1' to get a better idea what the error is. It's strange... no error under "original" kernel but failure under rebuilded kernel..
Care to provide a list of that error?
This is what I'm asking for: a "magic" but simple tool
Heh, gotta dream big :) I don't think it is so big..
Great, care to create the patch to do this?
Only a little question: I removed unused modules, all debug options, hz 250 -> 1000 and cpu 586 -> athlon/k7. After a quick test with ramspeed and glxgears the new kernel seems slower then original one. is this right ?
Yes, increasing hz can decrease throughput. good luck, greg k-h -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Il lunedì 05 gennaio 2009, Greg KH scrisse:
On Mon, Jan 05, 2009 at 10:01:46AM +0100, Daniele wrote:
Il lunedì 05 gennaio 2009, Greg KH scrisse:
On Mon, Jan 05, 2009 at 01:58:30AM +0100, Daniele wrote:
Il domenica 04 gennaio 2009, Greg KH scrisse:
On Sun, Jan 04, 2009 at 03:54:14PM +0100, Daniele wrote:
Hi all, I think that we don't have such features, avaible in other distro. So I just filled an enhancement request to bugzilla (with some details..): https://bugzilla.novell.com/show_bug.cgi?id=463446
'make binrpm-pkg' should already provide the majority of this for
I'm trying but: make[1]: *** [binrpm-pkg] Error 1 make: *** [binrpm-pkg] Error 2
Try 'make binrpm-pkg V=1' to get a better idea what the error is.
It's strange... no error under "original" kernel but failure under rebuilded kernel..
Care to provide a list of that error? More strage, if possible.. now the same error with suse kernel :( V=1 didn't help:
<< cut - long list of modules and files.. >> /lib/modules/2.6.25.18-0.2-athlon2/modules.pcimap /lib/modules/2.6.25.18-0.2-athlon2/modules.seriomap /lib/modules/2.6.25.18-0.2-athlon2/modules.symbols /lib/modules/2.6.25.18-0.2-athlon2/modules.unsupported.blacklist /lib/modules/2.6.25.18-0.2-athlon2/modules.usbmap /lib/modules/2.6.25.18-0.2-athlon2/source make[1]: *** [binrpm-pkg] Error 1 make: *** [binrpm-pkg] Error 2 It seems a packaging error not a build failure... Do I need to redirect stderr to a file ?
This is what I'm asking for: a "magic" but simple tool
Heh, gotta dream big :)
I don't think it is so big..
Great, care to create the patch to do this?
If only I could.. but I'll look at it..
Yes, increasing hz can decrease throughput. Ok thanks.
Bye. -- *** Linux user # 198661 ---_ ICQ 33500725 *** *** Home http://www.kailed.net *** *** Powered by openSUSE *** -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
participants (6)
-
Carlos E. R.
-
Daniele
-
Greg KH
-
Ken Schneider
-
Marcus Meissner
-
Peter Czanik