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

Re: Compiling kernel (i386) using make-kpkg



Kushal Koolwal <kushalkoolwal@hotmail.com> writes:

> Thank you for following up, Goswin.
>
>>Do you have gcc-multilib installed?
> Yes I do:
> debian64# dpkg -l | grep multilib
> ii  gcc-4.3-multilib                      4.3.2-1.1                   The GNU C compiler (multilib files)
> ii  gcc-multilib                          4:4.3.2-2                   The GNU C compiler (multilib files)
>
> Here is  gcc version:
> # gcc --version
> gcc (GCC) 4.1.3 20080704 (prerelease) (Debian 4.1.2-25)
>
>>What error do you get?
> So I tried it and it didn't give me an error but it created a 64-bit package. I gave the command:
> debian64# make-kpkg --cross-compile - --arch i386 --append-to-version=-32bit kernel_image
>
> and it created a package:
>
> linux-image-2.6.30-8-bpo50-32bit_2.6.30-8-bpo50-32bit-10.00.Custom_amd64.deb
>
> which upon installing gave the following error:
> dpkg: error processing linux-image-2.6.30-8-bpo50-32bit_2.6.30-8-bpo50-32bit-10.00.Custom_amd64.deb (--install):
>  package architecture (amd64) does not match system (i386)
> Errors were encountered while processing:
>  linux-image-2.6.30-8-bpo50-32bit_2.6.30-8-bpo50-32bit-10.00.Custom_amd64.deb
> debian32:~# 

If you unpack the deb with dpkg -x does it contain a 32bit kernel?

MfG
        Goswin


Reply to: