[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Building amd64/k8 kernel from 32-bit userspace



On Wednesday, 26.10.2005 at 12:18 +0100, Dave Ewart wrote:

> > > [...]
> > >
> > > However, when I try to install this for the host system, this error
> > > occurs:
> > >
> > >     # dpkg -i kernel-image-2.6.12_+davee.1.0_amd64.deb 
> > >
> > >     dpkg: error processing kernel-image-2.6.12_+davee.1.0_amd64.deb (--install):
> > >      package architecture (amd64) does not match system (i386)
> > >     Errors were encountered while processing:
> > >      kernel-image-2.6.12_+davee.1.0_amd64.deb
> > 
> > That is correct. You compiled on amd64 and for amd64. Try mount --bind
> > /boot /chroot/boot and install the kernel inside the chroot.
> > 
> > Alternatively dpkg --force-architecture.
> > 
> > Or you can change the architecture of the deb with (from memory)
> > 
> > echo '#!/bin/sh' >/tmp/foo.sh
> > echo "sed -i 's/Architecture: amd64/Architecture: i386/' DEBIAN/control" >>/tmp/foo.sh
> > chmod a+x /tmp/foo.sh
> > fakeroot dpkg-reversion -k /tmp/foo.sh kernel-image-2.6.12_+davee.1.0_amd64.deb "change arch to i386"
> 
> OK, will try those methods.  As a result of your second post here, I
> will dispute your remark above which says "That way it all just
> magically works." :-)

Hmmm, the kernels can be installed as above, but don't seem to behave
very well.  Perhaps I'll give up on this for now and try to seek out
some other precompiled kernel images for amd64 ...

Thanks for your help, anyway.

Dave.
-- 
Dave Ewart
davee@ceu.ox.ac.uk
Computing Manager, Cancer Epidemiology Unit
Cancer Research UK / Oxford University
PGP: CC70 1883 BD92 E665 B840 118B 6E94 2CFD 694D E370
Get key from http://www.ceu.ox.ac.uk/~davee/davee-ceu-ox-ac-uk.asc
N 51.7518, W 1.2016

Attachment: signature.asc
Description: Digital signature


Reply to: