Skip to contentSkip to conversation

DISTRO minimal.conf for ARM architectures

DISCUSSION Javi Roman 5 participants 9 messages Aug 31, 2009

lore
Share & tools
lore

Javi Roman

author
#0 lore raw

Hello,

I've been unable to build minimal.conf distro for an ARM architecture (more precisely for Beagleboard platform), at this point I would like ask two questions:

1. Is it minimal.conf distro ready to build on ARM architectures right now?
2. If ARM is not a target for the minimal distribution, do you think is a huge task to study in depth? Otherwise is it not worthwhile?

Thanks.

Signature · 1 line
Javi Roman
#1 lore raw
Quoted 5 lines · Javi Roman

Hello,

I've been unable to build minimal.conf distro for an ARM architecture (more precisely for Beagleboard platform), at this point I would like ask two questions:

If you're targeting beagleboard then angstrom is your best bet.

regards,

Koen

#2 lore raw
In reply to Javi Roman
Quoted 5 lines · On Monday 31 August 2009 16:16:10 Javi Roman wrote:

I've been unable to build minimal.conf distro for an ARM architecture (more precisely for Beagleboard platform), at this point I would like ask two questions:

1. Is it minimal.conf distro ready to build on ARM architectures right now?

Yes. How exactly does it fail for you?

:M:

author
#3 lore raw
Quoted 8 lines · Michael 'Mickey' Lauer
Quoted 5 lines · On Monday 31 August 2009 16:16:10 Javi Roman wrote:

I've been unable to build minimal.conf distro for an ARM architecture (more precisely for Beagleboard platform), at this point I would like ask two questions:

1. Is it minimal.conf distro ready to build on ARM architectures right now?

Yes. How exactly does it fail for you?

/builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/gcc-cross-initial-4.2.4-r8.1/gcc-4.2.4/build.i686-linux.arm-oe-linux-gnueabi/./gcc/xgcc -B/builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/gcc-cross-initial-4.2.4-r8.1/gcc-4.2.4/build.i686-linux.arm-oe-linux-gnueabi/./gcc/ -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -isystem/builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/staging/armv7a-oe-linux-gnueabi/usr/include -B/builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/cross/armv7a/arm-oe-linux-gnueabi/bin/ -B/builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/cross/armv7a/arm-oe-linux-gnueabi/lib/
-isystem /builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/cross/armv7a/arm-oe-linux-gnueabi/include
-isystem /builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/cross/armv7a/arm-oe-linux-gnueabi/sys-include
-O2 -g -Os -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-isystem ./include -I. -I. -I/builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/gcc-cross-initial-4.2.4-r8.1/gcc-4.2.4/gcc -I/builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/gcc-cross-initial-4.2.4-r8.1/gcc-4.2.4/gcc/. -I/builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/gcc-cross-initial-4.2.4-r8.1/gcc-4.2.4/gcc/../include -I/builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/gcc-cross-initial-4.2.4-r8.1/gcc-4.2.4/gcc/../libcpp/include
-I/builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/gcc-cross-initial-4.2.4-r8.1/gcc-4.2.4/gcc/../libdecnumber
-I../libdecnumber -g0 -finhibit-size-directive -fno-inline-functions
-fno-exceptions -fno-zero-initialized-in-bss -fno-toplevel-reorder

-Dinhibit_libc  -fPIC \
          -c /builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/gcc-cross-initial-4.2.4-r8.1/gcc-4.2.4/gcc/crtstuff.c

-DCRT_END -DCRTSTUFFS_O \
-o crtendS.o
/builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/gcc-cross-initial-4.2.4-r8.1/gcc-4.2.4/gcc/crtstuff.c:1:
error: bad value (cortex-a8) for -mtune= switch /builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/gcc-cross-initial-4.2.4-r8.1/gcc-4.2.4/gcc/crtstuff.c:1:
error: bad value (armv7-a) for -march= switch /builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/gcc-cross-initial-4.2.4-r8.1/gcc-4.2.4/gcc/crtstuff.c:1:
error: invalid floating point option:
-mfpu=neon/builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/gcc-cross-initial-4.2.4-r8.1/gcc-4.2.4/gcc/crtstuff.c:1:
error: bad value (cortex-a8) for -mtune= switch /builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/gcc-cross-initial-4.2.4-r8.1/gcc-4.2.4/gcc/crtstuff.c:1:
error: bad value (armv7-a) for -march= switch /builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/gcc-cross-initial-4.2.4-r8.1/gcc-4.2.4/gcc/crtstuff.c:1:
error: invalid floating point option: -mfpu=neon
make[2]: *** [crtbeginT.o] Error 1
make[2]: *** [crtendS.o] Error 1
make[2]: *** [crtbeginS.o] Error 1
make[2]: Leaving directory `/builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/gcc-cross-initial-4.2.4-r8.1/gcc-4.2.4/build.i686-linux.arm-oe-linux-gnueabi/gcc' make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/gcc-cross-initial-4.2.4-r8.1/gcc-4.2.4/build.i686-linux.arm-oe-linux-gnueabi'
make: *** [all] Error 2
FATAL: oe_runmake failed

I've thought, before to try to find out the problem, if the tuning of minimal distro for ARM architecutes would be the Angstrom distribution.

By the way, I'm trying to use the minimal distro for Beagleboard, instead of Angstron, because of I have thought minimal distro is a good point of start a fresh (o vanilla) basic distribution, and Angstron is a more complete and cutting edge distribution for Beagleboard platform (as Koen has told me).

Thanks.

Signature · 1 line
Javi Roman
#4 lore raw
Quoted 7 lines · Javi Roman

On Mon, Aug 31, 2009 at 5:22 PM, Michael 'Mickey' Lauer<[email protected]> wrote:
By the way, I'm trying to use the minimal distro for Beagleboard, instead of Angstron, because of I have thought minimal distro is a good point of start a fresh (o vanilla) basic distribution, and Angstron is a more complete and cutting edge distribution for Beagleboard platform (as Koen has told me).

I think you are confusing choice of DISTRO and choice of image.You can create vanilla images with Angstrom.

We really need to put something on the wiki explaining what DISTRO means in the OE context.

Philip

author
#5 lore raw
Quoted 10 lines · Philip Balister
Quoted 8 lines · Javi Roman

On Mon, Aug 31, 2009 at 5:22 PM, Michael 'Mickey' Lauer<[email protected]> wrote:
By the way, I'm trying to use the minimal distro for Beagleboard, instead of Angstron, because of I have thought minimal distro is a good point of start a fresh (o vanilla) basic distribution, and Angstron is a more complete and cutting edge distribution for Beagleboard platform (as Koen has told me).

Quoted 6 lines

I think you are confusing choice of DISTRO and choice of image.You can create vanilla images with Angstrom.

We really need to put something on the wiki explaining what DISTRO means in the OE context.

Oh, no, I understand the meaning of a DISTRO (I guess). The point here is I was looking for a DISTRO, a base DISTRO (or generic distro, better than "minimal") for a set of different boards that I have (ARM, PPC, MIPS, x86) .

I have built a minimal.conf distro for ALIX board, and I would like to build the same distro (I'm not talking about the final image) for a Beagle board (for example), with the same eglibc, gcc, ... and so forth. I'm talking about a base line distro.

It is possible that minimal.conf distro is not for I am using, I mean is not a generic distro at all. I'm a little bit confused about it.

Signature · 2 lines
Javi Roman
Sent from Madrid, Spain
#6 lore raw
In reply to Javi Roman

Hmm, bails out somewhere in the toolchain. I'm afraid I can't help you there. Anyone else?

(Unfortunately interest in codifying toolchain specifics in a distribution- independant way has only started recently, so there might still be configurations where we are missing sane defaults. I consider this being a bug in the OE metadata, so if you find the culprit, please inform us)

:M:

#7 lore raw
In reply to Javi Roman
Quoted 57 lines · Javi Roman
Quoted 8 lines · Michael 'Mickey' Lauer
Quoted 5 lines · On Monday 31 August 2009 16:16:10 Javi Roman wrote:

I've been unable to build minimal.conf distro for an ARM architecture (more precisely for Beagleboard platform), at this point I would like ask two questions:

1. Is it minimal.conf distro ready to build on ARM architectures right now?

Yes. How exactly does it fail for you?

/builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/gcc-cross-initial-4.2.4-r8.1/gcc-4.2.4/build.i686-linux.arm-oe-linux-gnueabi/./gcc/xgcc

(quoted diff) +0 -14
-B/builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/gcc-cross-initial-4.2.4-r8.1/gcc-4.2.4/build.i686-linux.arm-oe-linux-gnueabi/./gcc/
-march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp
-isystem/builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/staging/armv7a-oe-linux-gnueabi/usr/include
-B/builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/cross/armv7a/arm-oe-linux-gnueabi/bin/
-B/builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/cross/armv7a/arm-oe-linux-gnueabi/lib/
-isystem /builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/cross/armv7a/arm-oe-linux-gnueabi/include
-isystem /builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/cross/armv7a/arm-oe-linux-gnueabi/sys-include
-O2 -g -Os -DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-isystem ./include  -I. -I.
-I/builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/gcc-cross-initial-4.2.4-r8.1/gcc-4.2.4/gcc
-I/builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/gcc-cross-initial-4.2.4-r8.1/gcc-4.2.4/gcc/.
-I/builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/gcc-cross-initial-4.2.4-r8.1/gcc-4.2.4/gcc/../include
-I/builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/gcc-cross-initial-4.2.4-r8.1/gcc-4.2.4/gcc/../libcpp/include

 -I/builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/gcc-cross-initial-4.2.4-r8.1/gcc-4.2.4/gcc/../libdecnumber

(quoted diff) +0 -3
-I../libdecnumber  -g0 -finhibit-size-directive -fno-inline-functions
-fno-exceptions -fno-zero-initialized-in-bss -fno-toplevel-reorder
-Dinhibit_libc  -fPIC \

         -c /builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/gcc-cross-initial-4.2.4-r8.1/gcc-4.2.4/gcc/crtstuff.c -DCRT_END -DCRTSTUFFS_O \
         -o crtendS.o /builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/gcc-cross-initial-4.2.4-r8.1/gcc-4.2.4/gcc/crtstuff.c:1:
error: bad value (cortex-a8) for -mtune= switch /builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/gcc-cross-initial-4.2.4-r8.1/gcc-4.2.4/gcc/crtstuff.c:1:
error: bad value (armv7-a) for -march= switch /builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/gcc-cross-initial-4.2.4-r8.1/gcc-4.2.4/gcc/crtstuff.c:1:
error: invalid floating point option:
-mfpu=neon/builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/gcc-cross-initial-4.2.4-r8.1/gcc-4.2.4/gcc/crtstuff.c:1:
error: bad value (cortex-a8) for -mtune= switch /builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/gcc-cross-initial-4.2.4-r8.1/gcc-4.2.4/gcc/crtstuff.c:1:
error: bad value (armv7-a) for -march= switch /builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/gcc-cross-initial-4.2.4-r8.1/gcc-4.2.4/gcc/crtstuff.c:1:
error: invalid floating point option: -mfpu=neon
make[2]: *** [crtbeginT.o] Error 1
make[2]: *** [crtendS.o] Error 1
make[2]: *** [crtbeginS.o] Error 1
make[2]: Leaving directory `/builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/gcc-cross-initial-4.2.4-r8.1/gcc-4.2.4/build.i686-linux.arm-oe-linux-gnueabi/gcc' make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/gcc-cross-initial-4.2.4-r8.1/gcc-4.2.4/build.i686-linux.arm-oe-linux-gnueabi'
make: *** [all] Error 2
FATAL: oe_runmake failed

Quoted 3 lines

I've thought, before to try to find out the problem, if the tuning of minimal distro for ARM architecutes would be the Angstrom distribution.

the problem is that the compiler being used it old for armv7 support. Try using gcc 4.4.1
something like

PREFERRED_GCC_VERSION_local = "4.4.1"

in your loca.conf file would do it for you.
and once done do a complete rebuild.

Quoted 14 lines

good point of start a fresh (o vanilla) basic distribution, and Angstron is a more complete and cutting edge distribution for Beagleboard platform (as Koen has told me).

Thanks.

--
Javi Roman

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#8 lore raw
Quoted 1 line · On Monday 31 August 2009 20:52:03 Khem Raj wrote:

On Mon, Aug 31, 2009 at 10:41 AM, Javi Roman<[email protected]>

Quoted 90 lines · wrote:
Quoted 82 lines

On Mon, Aug 31, 2009 at 5:22 PM, Michael 'Mickey'

Quoted 9 lines · Lauer
Quoted 6 lines · On Monday 31 August 2009 16:16:10 Javi Roman wrote:

I've been unable to build minimal.conf distro for an ARM architecture (more precisely for Beagleboard platform), at this point I would like ask two questions:

1. Is it minimal.conf distro ready to build on ARM architectures right now?

Yes. How exactly does it fail for you?

/builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/gcc -cross-initial-4.2.4-r8.1/gcc-4.2.4/build.i686-linux.arm-oe-linux-gnueabi/ ./gcc/xgcc -B/builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/g cc-cross-initial-4.2.4-r8.1/gcc-4.2.4/build.i686-linux.arm-oe-linux-gnueab i/./gcc/ -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -isystem/builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/staging/armv7a-oe-linux- gnueabi/usr/include -B/builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/cross/armv7a/arm-oe-linux-gnue abi/bin/ -B/builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/cross/armv7a/arm-oe-linux-gnue abi/lib/ -isystem /builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/cross/armv7a/arm-oe-linux-gnueab i/include -isystem /builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/cross/armv7a/arm-oe-linux-gnueab
i/sys-include -O2 -g -Os -DIN_GCC -DCROSS_COMPILE -W -Wall

(quoted diff) +0 -4
-Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-isystem ./include  -I. -I.
-I/builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/g

cc-cross-initial-4.2.4-r8.1/gcc-4.2.4/gcc -I/builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/g cc-cross-initial-4.2.4-r8.1/gcc-4.2.4/gcc/. -I/builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/g cc-cross-initial-4.2.4-r8.1/gcc-4.2.4/gcc/../include -I/builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/g cc-cross-initial-4.2.4-r8.1/gcc-4.2.4/gcc/../libcpp/include -I/builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/g cc-cross-initial-4.2.4-r8.1/gcc-4.2.4/gcc/../libdecnumber

(quoted diff) +0 -3
-I../libdecnumber  -g0 -finhibit-size-directive -fno-inline-functions
-fno-exceptions -fno-zero-initialized-in-bss -fno-toplevel-reorder
-Dinhibit_libc  -fPIC \
         -c

/builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/gcc -cross-initial-4.2.4-r8.1/gcc-4.2.4/gcc/crtstuff.c -DCRT_END -DCRTSTUFFS_O \
-o crtendS.o
/builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/gcc -cross-initial-4.2.4-r8.1/gcc-4.2.4/gcc/crtstuff.c:1: error: bad value (cortex-a8) for -mtune= switch /builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/gcc -cross-initial-4.2.4-r8.1/gcc-4.2.4/gcc/crtstuff.c:1: error: bad value (armv7-a) for -march= switch /builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/gcc -cross-initial-4.2.4-r8.1/gcc-4.2.4/gcc/crtstuff.c:1: error: invalid floating point option:
-mfpu=neon/builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-g nueabi/gcc-cross-initial-4.2.4-r8.1/gcc-4.2.4/gcc/crtstuff.c:1: error: bad value (cortex-a8) for -mtune= switch /builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/gcc -cross-initial-4.2.4-r8.1/gcc-4.2.4/gcc/crtstuff.c:1: error: bad value (armv7-a) for -march= switch /builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/gcc -cross-initial-4.2.4-r8.1/gcc-4.2.4/gcc/crtstuff.c:1: error: invalid floating point option: -mfpu=neon
make[2]: *** [crtbeginT.o] Error 1
make[2]: *** [crtendS.o] Error 1
make[2]: *** [crtbeginS.o] Error 1
make[2]: Leaving directory `/builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/gc c-cross-initial-4.2.4-r8.1/gcc-4.2.4/build.i686-linux.arm-oe-linux-gnueabi /gcc' make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/builds/ASV1-BEAGLEBOARD.REVB6/build/tmp/work/armv7a-oe-linux-gnueabi/gc c-cross-initial-4.2.4-r8.1/gcc-4.2.4/build.i686-linux.arm-oe-linux-gnueabi ' make: *** [all] Error 2
FATAL: oe_runmake failed

Quoted 3 lines

I've thought, before to try to find out the problem, if the tuning of minimal distro for ARM architecutes would be the Angstrom distribution.

the problem is that the compiler being used it old for armv7 support. Try using gcc 4.4.1
something like

Quoted 1 line

PREFERRED_GCC_VERSION_local = "4.4.1"

Ah, cool. If it's just that, then we should bump a couple of toolchain versions.

Thanks,

:M: