[poky] Can we build sugarbay for 32bit

Bruce Ashfield bruce.ashfield at gmail.com
Mon Sep 5 08:22:29 PDT 2011


On Mon, Sep 5, 2011 at 10:51 AM, Akshat Saha <akshat.embedded at gmail.com> wrote:
> Hi Richard,
> I want to make core-image-minimal for 32-bit
>
> I have tried
>
> conf/machine/include/tune-core2.inc
>
> I also tried
>
> conf/machine/include/tune-1586.inc
>
> But I got error in kernel compilation, as the kernel was still building for
> 64-bit mode and hence the mismatch.
> I solved it by doing make ARCH=i386 menuconfig, and build again from there.
> Now, the live image seems to work fine, but after installing the image on
> SSD and booting it from GRUB, it prompts: bad file descriptor.
>
> Also, after changing the include file in machine conf as mentioned above,
> grub 0.97 is made instead of grub2(1.98).
> So, I modified conf/machine/include/tune-x86_64.inc
> #DEFAULTTUNE = "x86_64"  to,
> DEFAULTTUNE = "x86"
> But the problem still persists.
> Can you guide in finding :
>
> How can we make the kernel for 32-bit?

In your layer, create a config fragment that sets 32 bit. i.e:

% cat 32bit.cfg
# CONFIG_64BIT is not set
CONFIG_X86_32=y
# CONFIG_X86_64 is not set

and add 32bit.cfg to the SRC_URI (just like anything you'd add to the
SRC_URI).

Your configuration will be applied last and override the default 64
bit settings,
but inherit the rest.

Bruce


> Why is the grub legacy is built instead of grub2?
> And foremost, how to solve "bad file descriptor" error in grub, even though
> live image works.
>
>
>
> On Thu, Sep 1, 2011 at 12:51 AM, Richard Purdie
> <richard.purdie at linuxfoundation.org> wrote:
>>
>> On Wed, 2011-08-31 at 11:06 +0530, v sailaja wrote:
>> > Can anyone please tell me how to build the "sugarbay" for 32bit. By
>> > default sugarbay supports 64bit but is there anyway to change it to
>> > 32bit.
>> > My host machine is ubuntu 11.04 and 64bit.
>>
>> Change meta-intel/meta-sugarbay/conf/machine/sugarbay.conf
>>
>> to say
>>
>> conf/machine/include/tune-core2.inc
>>
>> instead of x86-64 and then it will build for 32 bit since that is the
>> default for core2.
>>
>> Cheers,
>>
>> Richard
>>
>>
>>
>>
>> _______________________________________________
>> poky mailing list
>> poky at yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/poky
>
>
>
> --
> Akshat
>
>
> _______________________________________________
> poky mailing list
> poky at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky
>
>



-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"



More information about the poky mailing list