Mailing List Archive

make-kpkg
can someone help me out with using make-kpkg to make a debian package of
the kernel install, I can't get the command right, always thinks wrong
arch. make ARCH=xen compiles fine, but i can't get

"make-kpkg --arch=xen --append-to-version=.xen.kernel kernel_image" or
anything like it to compile, any help?

thanks


_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
Re: make-kpkg [ In reply to ]
> "make-kpkg --arch=xen --append-to-version=.xen.kernel kernel_image" or
> anything like it to compile, any help?

Are you sure the equal signs are correct? Regarding to man page the command
should be "make-kpkg --arch xen --append-to-version xyz kernel_image".

Regards
Michael

--
It's an insane world, but i'm proud to be a part of it. -- Bill Hicks

_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
Re: make-kpkg [ In reply to ]
i get this in either case :

unknown Debian architecture xen, you must specify GNU system type, too at
/usr/bin/dpkg-architecture line 198.
/usr/share/kernel-package/rules:1291: *** Error. I do not know where the
kernel image goes to [kimagedest undefined] The usual case for this is
that I could not determine which arch or subarch tihs machine belongs to.
Please specify a subarch, and try again.. Stop.

and if i do --subarch=xen or --subarch=i386 (or without spaces) same
result ...

On Tue, 17 May 2005, Michael Holzt wrote:

>> "make-kpkg --arch=xen --append-to-version=.xen.kernel kernel_image" or
>> anything like it to compile, any help?
>
> Are you sure the equal signs are correct? Regarding to man page the command
> should be "make-kpkg --arch xen --append-to-version xyz kernel_image".
>
> Regards
> Michael
>
> --
> It's an insane world, but i'm proud to be a part of it. -- Bill Hicks
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@lists.xensource.com
> http://lists.xensource.com/xen-users
>

_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
Re: make-kpkg [ In reply to ]
> unknown Debian architecture xen, you must specify GNU system type, too at
> /usr/bin/dpkg-architecture line 198.

Ok, now the problem is clear. /usr/bin/dpkg-architecture does not know about
the xen architecture. At line 50 of that file change the code that it reads:

%archtable=('i386', 'i386-linux',
'xen', 'xen-linux',
'sparc', 'sparc-linux',
[...]

However make-kpkg will still not work after that (for the xenU kernel),
because it does not allow a kernel-version which has a uppercase
character. So for the xenU kernel in the Makefile EXTRAVERSION must be
changed from 'xenU' to 'xenu'.

Regards
Michael

--
It's an insane world, but i'm proud to be a part of it. -- Bill Hicks

_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
Re: make-kpkg [ In reply to ]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

andrew mathes wrote:
> can someone help me out with using make-kpkg to make a debian package of
> the kernel install, I can't get the command right, always thinks wrong
> arch. make ARCH=xen compiles fine, but i can't get
>
> "make-kpkg --arch=xen --append-to-version=.xen.kernel kernel_image" or
> anything like it to compile, any help?
>
> thanks
>

This is directlly from my compile scripts, and it works (kernel-package
version 8.135):

fakeroot make-kpkg --append-to-version=.$DATE-xen0 --revision=1
- --arch=xen kernel_image

Make sure you are running this for a "xenified" kernel. Did you execute
xen's mkbuildtree?

Ovidiu
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFCixY8A+ofbGByDd0RAqE0AJ4q926I9x1YG2UoQqTBiJIv/33NRgCdHcTq
cbaSvo8HaRFfjXInHaegXm0=
=SwUb
-----END PGP SIGNATURE-----


--
This message was scanned for spam and viruses by BitDefender.
For more information please visit http://linux.bitdefender.com/


_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
Re: make-kpkg [ In reply to ]
For the archives:

I was just encountering this problem. Specifically, executing the command:

export PATCH_THE_KERNEL=YES && \
fakeroot make-kpkg --config=menuconfig --arch=xen \
--revision=1 --append-to-version=xen0 kernel_image

was giving me the error regarding "unknown Debian architecture xen,
you must specify GNU system type". The solution was to blow away my
kernel tree (saving a backup of .config, of course), and then
decompress a clean tree, move .config back into place, and then run
the command.

Unsure what the problem was, exactly, but if the same issue occurs to
anyone else, the first thing to try is cleaning your kernel tree and
starting with a pristine one. Hope this e-mail saves someone a little
time down the road somewhere. ;-)

On 5/17/05, andrew mathes <amathes@backnine.org> wrote:
> can someone help me out with using make-kpkg to make a debian package of
> the kernel install, I can't get the command right, always thinks wrong
> arch. make ARCH=xen compiles fine, but i can't get
>
> "make-kpkg --arch=xen --append-to-version=.xen.kernel kernel_image" or
> anything like it to compile, any help?
>
> thanks

_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users