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

compiling 64 bit kernel on 32 bit system



Hi,
     I am trying to compile a 64 bit kernel on my system. After having
created the .config from an old config file with:

make ARCH=x86_64 menuconfig

and simply using the .config thus generated, when I do:

fakeroot make-kpkg --arch amd64 --append-to-version custom-amd64
--initrd kernel_image

I get the following errors:

 fakeroot make-kpkg --arch amd64 --append-to-version custom-amd64
--initrd kernel_image
exec debian/rules  DEBIAN_REVISION=2.6.32.2-10.00.Custom
APPEND_TO_VERSION=custom-amd64  KPKG_ARCH=amd64  INITRD=YES
kernel_image
dpkg-architecture: warning: Specified GNU system type x86_64-linux-gnu
does not match gcc system type i486-linux-gnu.
dpkg-architecture: warning: Specified GNU system type x86_64-linux-gnu
does not match gcc system type i486-linux-gnu.
dpkg-architecture: warning: Specified GNU system type x86_64-linux-gnu
does not match gcc system type i486-linux-gnu.
dpkg-architecture: warning: Specified GNU system type x86_64-linux-gnu
does not match gcc system type i486-linux-gnu.
/usr/bin/make -f ./debian/rules
	debian/stamp/binary/pre-linux-image-2.6.32.2custom-amd64
dpkg-architecture: warning: Specified GNU system type x86_64-linux-gnu
does not match gcc system type i486-linux-gnu.
dpkg-architecture: warning: Specified GNU system type x86_64-linux-gnu
does not match gcc system type i486-linux-gnu.
dpkg-architecture: warning: Specified GNU system type x86_64-linux-gnu
does not match gcc system type i486-linux-gnu.
dpkg-architecture: warning: Specified GNU system type x86_64-linux-gnu
does not match gcc system type i486-linux-gnu.
make[1]: Entering directory `/home/data/downloads/linux/dev/linux-2.6.32.2'
====== making target
debian/stamp/install/linux-image-2.6.32.2custom-amd64 [new prereqs:
]======
This is kernel package version 11.015.
echo "The UTS Release version in include/linux/version.h"; echo "	
\"\" "; echo "does not match current version:"; echo "	
\"2.6.32.2custom-amd64\" "; echo "Please correct this."; exit 2
The UTS Release version in include/linux/version.h
	   ""
does not match current version:
	   "2.6.32.2custom-amd64"
Please correct this.
make[1]: *** [debian/stamp/install/linux-image-2.6.32.2custom-amd64] Error 2
make[1]: Leaving directory `/home/data/downloads/linux/dev/linux-2.6.32.2'
make: *** [kernel_image] Error 2


I have even tried doing:

fakeroot make-kpkg --cross-compile --arch amd64 --append-to-version
custom-amd64 --initrd kernel_image

But I get the following output.

Error: Unknown target amd64
use --targets to display help on valid targets.


Please suggest what do I need to do to compile x86_64 kernel on my x86
kernel and OS (with or without make-kpkg).

Thanks in advance,
-divkis


Reply to: