FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 12-09-2008, 11:53 AM
Stefan Goebel
 
Default Xen kernel and make-kpkg

Hi,

I'm trying to build a custom Xen (DomU for now) kernel using the Debian
sources (i.e. linux-source-2.6.26 (2.6.26-11) with Debian's Xen patches
from linux-patch-debian-2.6.26 (2.6.26-11)) and kernel-package (11.015),
on an i386 system running Lenny.

Applying the Xen patches with "../kernel-patches/all/2.6.26/apply/debian
-a i386 -f xen" works, running "make-kpkg --revision='1.0'
--append-to-version='-foo' kernel_image" does not work, apparently
make-kpkg tries to run "make bzImage" on the kernel sources and there is
"Nothing to be done for 'bzImage'". A "make deb-pkg" on the sources
works, however, I would prefer make-kpkg. Any hints?

Regards,
Stefan Goebel


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 12-09-2008, 12:28 PM
François Cerbelle
 
Default Xen kernel and make-kpkg

Le Mar 9 décembre 2008 13:53, Stefan Goebel a écrit :
> Applying the Xen patches with "../kernel-patches/all/2.6.26/apply/debian
> -a i386 -f xen" works, running "make-kpkg --revision='1.0'
> --append-to-version='-foo' kernel_image" does not work, apparently
> make-kpkg tries to run "make bzImage" on the kernel sources and there is
> "Nothing to be done for 'bzImage'". A "make deb-pkg" on the sources
> works, however, I would prefer make-kpkg. Any hints?

You should try to use "make-kpkg ... clean", and then use either the
environnement variable or the command line option to ask make-kpkg to
patch the kernel (with the patch you want), to ask you for the menuconfig
instead of silentoldconfig and to compile the package as you want.

The exact options and environnement variables are in the make-kpkg man
page, if I'm right.

Fanfan
--
http://www.cerbelle.net - http://www.afdm-idf.org


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 12-09-2008, 02:31 PM
Stefan Goebel
 
Default Xen kernel and make-kpkg

François Cerbelle wrote:
> Le Mar 9 décembre 2008 13:53, Stefan Goebel a écrit :
>> Applying the Xen patches with "../kernel-patches/all/2.6.26/apply/debian
>> -a i386 -f xen" works, running "make-kpkg --revision='1.0'
>> --append-to-version='-foo' kernel_image" does not work [...]
>
> You should try to use "make-kpkg ... clean", and then use either the
> environnement variable or the command line option to ask make-kpkg to
> patch the kernel (with the patch you want), to ask you for the menuconfig
> instead of silentoldconfig and to compile the package as you want.

You are thinking of make-kpkg's "--added-patches" option, which does not
work - neither for Xen nor, for example, the vserver patches. Using this
option results in a "Could not find patch for xen" error. Though I do
think that manually patching the kernel with Debian's Xen patches and
then running make-kpkg did work some time ago.

> The exact options and environnement variables are in the make-kpkg man
> page, if I'm right.

You are, but it doesn't work

> Fanfan


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 12-09-2008, 04:51 PM
Manoj Srivastava
 
Default Xen kernel and make-kpkg

On Tue, Dec 09 2008, Stefan Goebel wrote:

> Hi,
>
> I'm trying to build a custom Xen (DomU for now) kernel using the Debian
> sources (i.e. linux-source-2.6.26 (2.6.26-11) with Debian's Xen patches
> from linux-patch-debian-2.6.26 (2.6.26-11)) and kernel-package (11.015),
> on an i386 system running Lenny.
>
> Applying the Xen patches with "../kernel-patches/all/2.6.26/apply/debian
> -a i386 -f xen" works, running "make-kpkg --revision='1.0'
> --append-to-version='-foo' kernel_image" does not work, apparently
> make-kpkg tries to run "make bzImage" on the kernel sources and there is
> "Nothing to be done for 'bzImage'". A "make deb-pkg" on the sources
> works, however, I would prefer make-kpkg. Any hints?

Try rm -rf ./debian; and then run make-kpkg again.

manoj

--
No one can feel as helpless as the owner of a sick goldfish.
Manoj Srivastava <srivasta@acm.org> <http://www.golden-gryphon.com/>
1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 12-09-2008, 06:00 PM
Stefan Goebel
 
Default Xen kernel and make-kpkg

Manoj Srivastava wrote:
> On Tue, Dec 09 2008, Stefan Goebel wrote:
>
>> Hi,
>>
>> I'm trying to build a custom Xen (DomU for now) kernel using the Debian
>> sources (i.e. linux-source-2.6.26 (2.6.26-11) with Debian's Xen patches
>> from linux-patch-debian-2.6.26 (2.6.26-11)) and kernel-package (11.015),
>> on an i386 system running Lenny.
>>
>> Applying the Xen patches with "../kernel-patches/all/2.6.26/apply/debian
>> -a i386 -f xen" works, running "make-kpkg --revision='1.0'
>> --append-to-version='-foo' kernel_image" does not work, apparently
>> make-kpkg tries to run "make bzImage" on the kernel sources and there is
>> "Nothing to be done for 'bzImage'". A "make deb-pkg" on the sources
>> works, however, I would prefer make-kpkg. Any hints?
>
> Try rm -rf ./debian; and then run make-kpkg again.

No luck, I already tried it dozens of times with different options,
always from a clean source tree (i.e. freshly untarred and then patched,
so there is no debian/ directory). The problem seems to be that once Xen
is enabled the bzImage target doesn't work (and neither does zImage when
using the --zimage option), but this target is called by make-kpkg. I
also tried using the --arch=xen option (it was mentioned on the Xen
mailing list IIRC), but this results in some "unary operator expected"
messages, similar to those in bug #446879 (which is closed). I tried
setting --arch and --subarch to different values, IIRC this solved some
problems with Xen kernels some time ago. Well, it doesn't anymore

Manoj, should I file a bug report for this or is there something else I
can try first?

Regards,
Stefan Goebel


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 12-09-2008, 08:50 PM
Tzafrir Cohen
 
Default Xen kernel and make-kpkg

On Tue, Dec 09, 2008 at 01:53:58PM +0100, Stefan Goebel wrote:
> Hi,
>
> I'm trying to build a custom Xen (DomU for now) kernel using the Debian
> sources (i.e. linux-source-2.6.26 (2.6.26-11) with Debian's Xen patches
> from linux-patch-debian-2.6.26 (2.6.26-11)) and kernel-package (11.015),
> on an i386 system running Lenny.

Aren't there pre-built kernel packages with those Xen patches?

--
Tzafrir Cohen | tzafrir@jabber.org | VIM is
http://tzafrir.org.il | | a Mutt's
tzafrir@cohens.org.il | | best
ICQ# 16849754 | | friend


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 12-12-2008, 04:46 AM
Manoj Srivastava
 
Default Xen kernel and make-kpkg

On Tue, Dec 09 2008, Stefan Goebel wrote:

> Manoj, should I file a bug report for this or is there something else I
> can try first?

Thankd for the bug-report and patch; it is always appropriate to
file a bug on kernel-package when you are experiencing difficulties. At
worst, you'll be told there is a work-around; :-)

manoj
--
win-nt from the people who invented edlin. MaDsen Wikholm,
mwikholm@at8.abo.fi
Manoj Srivastava <srivasta@acm.org> <http://www.golden-gryphon.com/>
1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 12-12-2008, 02:16 PM
Stefan Goebel
 
Default Xen kernel and make-kpkg

Manoj Srivastava wrote:
> On Tue, Dec 09 2008, Stefan Goebel wrote:
>
>> Manoj, should I file a bug report for this or is there something else I
>> can try first?
>
> Thankd for the bug-report and patch; it is always appropriate to
> file a bug on kernel-package when you are experiencing difficulties. At
> worst, you'll be told there is a work-around; :-)

Thanks for kernel-package I wasn't quite sure if I'm supposed to use
some special --arch or --subarch options, all these makefiles got me a
bit confused. I will test the generated kernel packages this weekend,
but as I mentioned in the bug report the contents of the *.debs look fine.

Regards,
Stefan Goebel


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 11:59 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org