Skip to contentSkip to conversation

Building for i486 based non-FPU device

DISCUSSION Marco Cavallini 4 participants 8 messages Jan 26, 2009 – Jan 27, 2009

lore
Share & tools
lore
#0 lore raw

Hello,
This discussion was in thread "FOSDEM OE stand"
I'm trying to build for a machine I'd like to let at OE stand.
http://www.koala.it/it/nanopc.htm
It's a i486 based non-FPU device (Vortex86sx), so I tried to build

DISTRO = "angstrom-2008.1"

I created my new machine copying it from
conf/machine/i586-generic.conf
and changing the following settings:
TARGET_ARCH = "i486"
PACKAGE_EXTRA_ARCHS = "x86"
PREFERRED_VERSION_linux = "2.6.26"
(I also changed 2.6.26 recipe)

I found several problems:
i586-generic uses TARGET_ARCH = "i586" : ok but for 586
x86 uses TARGET_ARCH = "i586" : build broken
qemux86 uses TARGET_ARCH = "i586" : not used
i486-generic uses TARGET_ARCH = "i486" : build broken

No one of the previous tested build give a useful result, what could I change to get a running system?

Maybe do I have to specify TARGET_CC_ARCH = "-march=i486" ? Would be better to switch this discussion to IRC ? Any hint will be greatly appreciated.
TIA
--
Marco Cavallini

#1 lore raw
Quoted 1 line · Marco Cavallini

DISTRO = "angstrom-2008.1"

It might be worth trying with "minimal" to start with, just to eliminate any angstrom-related uncertainties.

Quoted 4 lines

i486-generic uses TARGET_ARCH = "i486" : build broken

No one of the previous tested build give a useful result, what could I change to get a running system?

It's hard to say what you need to change without knowing what exactly is going wrong. Can you give more details of the breakage that you encountered? What image were you trying to build, what package(s) failed, and what were the errors?

p.

#2 lore raw

Phil Blundell ha scritto:

Quoted 5 lines · Marco Cavallini
Quoted 1 line

DISTRO = "angstrom-2008.1"

It might be worth trying with "minimal" to start with, just to eliminate any angstrom-related uncertainties.

Ok, thanks
I tried with bitbake minimal-image too (see pastebin)

Quoted 9 lines
Quoted 4 lines

i486-generic uses TARGET_ARCH = "i486" : build broken

No one of the previous tested build give a useful result, what could I change to get a running system?

It's hard to say what you need to change without knowing what exactly is going wrong. Can you give more details of the breakage that you encountered? What image were you trying to build, what package(s) failed, and what were the errors?

http://debian.pastebin.com/m57df2ac9

TIA
--
Marco Cavallini

#3 lore raw
In reply to Phil Blundell
Quoted 5 lines · Phil Blundell
Quoted 1 line · Marco Cavallini

DISTRO = "angstrom-2008.1"

It might be worth trying with "minimal" to start with, just to eliminate any angstrom-related uncertainties.

Quite the reverse, minimal is perputually broken in OE, while angstrom has working x86 targets. Not i486sx targets, but it's straightforward to add such a target.

regards,

Koen

#4 lore raw

Koen Kooi ha scritto:

Quoted 10 lines · Phil Blundell
Quoted 5 lines · Marco Cavallini
Quoted 1 line

DISTRO = "angstrom-2008.1"

It might be worth trying with "minimal" to start with, just to eliminate any angstrom-related uncertainties.

Quite the reverse, minimal is perputually broken in OE, while angstrom has working x86 targets. Not i486sx targets, but it's straightforward to add such a target.

I also thought it was a straightforward task, but I was wrong. What's missing in what I did until now?

--
Marco Cavallini

#5 lore raw
In reply to Koen Kooi
Quoted 8 lines · Koen Kooi
Quoted 5 lines · Phil Blundell
Quoted 1 line · Marco Cavallini

DISTRO = "angstrom-2008.1"

It might be worth trying with "minimal" to start with, just to eliminate any angstrom-related uncertainties.

Quite the reverse, minimal is perputually broken in OE, while angstrom has working x86 targets. Not i486sx targets, but it's straightforward to add such a target.

One topic for a bug squashing weekend could be to de-break minimal.

On a related note, it seems like fakeroot is un-fetchable unless you get the copy from the Angstrom source mirror. Does this seem correct?

Philip

#6 lore raw
In reply to Marco Cavallini
Quoted 22 lines · Marco Cavallini

Hello,
This discussion was in thread "FOSDEM OE stand"
I'm trying to build for a machine I'd like to let at OE stand.
http://www.koala.it/it/nanopc.htm
It's a i486 based non-FPU device (Vortex86sx), so I tried to build

DISTRO = "angstrom-2008.1"

I created my new machine copying it from
conf/machine/i586-generic.conf
and changing the following settings:
TARGET_ARCH = "i486"
PACKAGE_EXTRA_ARCHS = "x86"
PREFERRED_VERSION_linux = "2.6.26"
(I also changed 2.6.26 recipe)

I found several problems:
i586-generic uses TARGET_ARCH = "i586" : ok but for 586
x86 uses TARGET_ARCH = "i586" : build broken
qemux86 uses TARGET_ARCH = "i586" : not used
i486-generic uses TARGET_ARCH = "i486" : build broken

Quoted 6 lines

No one of the previous tested build give a useful result, what could I change to get a running system?

Maybe do I have to specify TARGET_CC_ARCH = "-march=i486" ? Would be better to switch this discussion to IRC ? Any hint will be greatly appreciated.

'MACHINE=vortex86sx bitbake glibc' works for me with angstrom. It doesn't use softfloat yes, as gccs configure script doesn't like --with-float=soft, so we'll problably end up messing with TARGET_CC_ARCH.

regards,

Koen

#7 lore raw

Koen Kooi ha scritto:

Quoted 30 lines · Marco Cavallini
Quoted 22 lines

Hello,
This discussion was in thread "FOSDEM OE stand"
I'm trying to build for a machine I'd like to let at OE stand.
http://www.koala.it/it/nanopc.htm
It's a i486 based non-FPU device (Vortex86sx), so I tried to build

DISTRO = "angstrom-2008.1"

I created my new machine copying it from
conf/machine/i586-generic.conf
and changing the following settings:
TARGET_ARCH = "i486"
PACKAGE_EXTRA_ARCHS = "x86"
PREFERRED_VERSION_linux = "2.6.26"
(I also changed 2.6.26 recipe)

I found several problems:
i586-generic uses TARGET_ARCH = "i586" : ok but for 586
x86 uses TARGET_ARCH = "i586" : build broken
qemux86 uses TARGET_ARCH = "i586" : not used
i486-generic uses TARGET_ARCH = "i486" : build broken

Quoted 6 lines

No one of the previous tested build give a useful result, what could I change to get a running system?

Maybe do I have to specify TARGET_CC_ARCH = "-march=i486" ? Would be better to switch this discussion to IRC ? Any hint will be greatly appreciated.

Quoted 6 lines

'MACHINE=vortex86sx bitbake glibc' works for me with angstrom. It doesn't use softfloat yes, as gccs configure script doesn't like --with-float=soft, so we'll problably end up messing with TARGET_CC_ARCH.

regards,

Hi Koen,
built successfully minimal-image and x11-image with MACHINE=vortex86sx I'm testing it on target board.

Thank you
--
Marco Cavallini