Skip to contentSkip to conversation

Angstrom, compulab-pxa270, and gpe-image

DISCUSSION Andrew Paulsen 2 participants 8 messages Nov 22, 2006 – Nov 28, 2006

lore
Share & tools
lore
#0 lore raw

I'm trying to "bitbake gpe-image" using the Angstrom distribution and the computlab-pxa270 machine.

The error I'm getting is:

NOTE: build 200611220923: started

OE Build Configuration:

BB_VERSION     = "1.6.3"
OE_REVISION    = "2735a1770517f8ac5497ef178efb990839a57508"
TARGET_ARCH    = "arm"
TARGET_OS      = "linux-gnueabi"
MACHINE        = "compulab-pxa270"
DISTRO         = "angstrom"

DISTRO_VERSION = "test-20061122"
TARGET_FPU = "soft"

<snip>

| make[2]: Entering directory `/home/packet/OpenEmbedded/build/tmp/work/compulab-pxa270-angstrom-linux-gnueabi/compulab-pxa270-2.6.16-r2/linux-2.6.16'

|   CC      drivers/block/rd.o
|   CC      drivers/block/loop.o
| make[3]: Entering directory

`/home/packet/OpenEmbedded/build/tmp/work/compulab-pxa270-angstrom-linux-gnueabi/compulab-pxa270-2.6.16-r2/linux-2.6.16'
| CC drivers/block/cl_flash/cl_nordev.o
| drivers/block/cl_flash/cl_nordev.c:359: warning: initialization from
incompatible pointer type
| drivers/block/cl_flash/cl_nordev.c:29: warning: 'major' defined but not used
| drivers/block/cl_flash/cl_nordev.c:163: warning: 'do_flash_request'
defined but not used
| drivers/block/cl_flash/cl_nordev.c:76: warning: 'flash_fops' defined
but not used
| drivers/block/cl_flash/cl_nordev.c:86: warning: 'flash_gendisk'
defined but not used
| drivers/block/cl_flash/cl_nordev.c:87: warning: 'flash_lock' defined
but not used
| drivers/block/cl_flash/cl_nordev.c:88: warning: 'flash_queue'
defined but not used

|   CC      drivers/block/cl_flash/cl_blkdev.o
| drivers/block/cl_flash/cl_blkdev.c: In function 'cl_nand_ioctl':
| drivers/block/cl_flash/cl_blkdev.c:529: warning: ISO C90 forbids
mixed declarations and code
|   CC      drivers/block/cl_flash/cl_nanddev_x270.o
|   LD      drivers/block/cl_flash/fdrv.o
| arm-angstrom-linux-gnueabi-ld: ERROR:

drivers/block/cl_flash/CL_FlashDrv uses FPA instructions, whereas
drivers/block/cl_flash/fdrv.o does not
| arm-angstrom-linux-gnueabi-ld: failed to merge target specific data
of file drivers/block/cl_flash/CL_FlashDrv
| make[3]: *** [drivers/block/cl_flash/fdrv.o] Error 1
| make[3]: Leaving directory `/home/packet/OpenEmbedded/build/tmp/work/compulab-pxa270-angstrom-linux-gnueabi/compulab-pxa270-2.6.16-r2/linux-2.6.16' | make[2]: *** [drivers/block/cl_flash] Error 2
| make[2]: Leaving directory `/home/packet/OpenEmbedded/build/tmp/work/compulab-pxa270-angstrom-linux-gnueabi/compulab-pxa270-2.6.16-r2/linux-2.6.16' | make[1]: *** [drivers/block] Error 2
| make[1]: Leaving directory `/home/packet/OpenEmbedded/build/tmp/work/compulab-pxa270-angstrom-linux-gnueabi/compulab-pxa270-2.6.16-r2/linux-2.6.16' | make: *** [drivers] Error 2
| FATAL: oe_runmake failed
NOTE: Task failed:
/home/packet/OpenEmbedded/build/tmp/work/compulab-pxa270-angstrom-linux-gnueabi/compulab-pxa270-2.6.16-r2/temp/log.do_compile.22708
NOTE: package compulab-pxa270-2.6.16-r2: task do_compile: failed

#1 lore raw
Quoted 56 lines · Andrew Paulsen

I'm trying to "bitbake gpe-image" using the Angstrom distribution and the computlab-pxa270 machine.

The error I'm getting is:

NOTE: build 200611220923: started

OE Build Configuration:

BB_VERSION     = "1.6.3"
OE_REVISION    = "2735a1770517f8ac5497ef178efb990839a57508"
TARGET_ARCH    = "arm"
TARGET_OS      = "linux-gnueabi"
MACHINE        = "compulab-pxa270"
DISTRO         = "angstrom"

DISTRO_VERSION = "test-20061122"
TARGET_FPU = "soft"

<snip>

| make[2]: Entering directory `/home/packet/OpenEmbedded/build/tmp/work/compulab-pxa270-angstrom-linux-gnueabi/compulab-pxa270-2.6.16-r2/linux-2.6.16'

|   CC      drivers/block/rd.o
|   CC      drivers/block/loop.o
| make[3]: Entering directory

`/home/packet/OpenEmbedded/build/tmp/work/compulab-pxa270-angstrom-linux-gnueabi/compulab-pxa270-2.6.16-r2/linux-2.6.16'
| CC drivers/block/cl_flash/cl_nordev.o
| drivers/block/cl_flash/cl_nordev.c:359: warning: initialization from
incompatible pointer type
| drivers/block/cl_flash/cl_nordev.c:29: warning: 'major' defined but not used
| drivers/block/cl_flash/cl_nordev.c:163: warning: 'do_flash_request'
defined but not used
| drivers/block/cl_flash/cl_nordev.c:76: warning: 'flash_fops' defined
but not used
| drivers/block/cl_flash/cl_nordev.c:86: warning: 'flash_gendisk'
defined but not used
| drivers/block/cl_flash/cl_nordev.c:87: warning: 'flash_lock' defined
but not used
| drivers/block/cl_flash/cl_nordev.c:88: warning: 'flash_queue'
defined but not used

|   CC      drivers/block/cl_flash/cl_blkdev.o
| drivers/block/cl_flash/cl_blkdev.c: In function 'cl_nand_ioctl':
| drivers/block/cl_flash/cl_blkdev.c:529: warning: ISO C90 forbids
mixed declarations and code
|   CC      drivers/block/cl_flash/cl_nanddev_x270.o
|   LD      drivers/block/cl_flash/fdrv.o
| arm-angstrom-linux-gnueabi-ld: ERROR:

drivers/block/cl_flash/CL_FlashDrv uses FPA instructions, whereas
drivers/block/cl_flash/fdrv.o does not
| arm-angstrom-linux-gnueabi-ld: failed to merge target specific data
of file drivers/block/cl_flash/CL_FlashDrv
| make[3]: *** [drivers/block/cl_flash/fdrv.o] Error 1
| make[3]: Leaving directory `/home/packet/OpenEmbedded/build/tmp/work/compulab-pxa270-angstrom-linux-gnueabi/compulab-pxa270-2.6.16-r2/linux-2.6.16' | make[2]: *** [drivers/block/cl_flash] Error 2
| make[2]: Leaving directory `/home/packet/OpenEmbedded/build/tmp/work/compulab-pxa270-angstrom-linux-gnueabi/compulab-pxa270-2.6.16-r2/linux-2.6.16'

Quoted 9 lines

| make[1]: *** [drivers/block] Error 2
| make[1]: Leaving directory `/home/packet/OpenEmbedded/build/tmp/work/compulab-pxa270-angstrom-linux-gnueabi/compulab-pxa270-2.6.16-r2/linux-2.6.16' | make: *** [drivers] Error 2
| FATAL: oe_runmake failed
NOTE: Task failed:
/home/packet/OpenEmbedded/build/tmp/work/compulab-pxa270-angstrom-linux-gnueabi/compulab-pxa270-2.6.16-r2/temp/log.do_compile.22708
NOTE: package compulab-pxa270-2.6.16-r2: task do_compile: failed

Upon further inspection, it appears that the distribution is built with attributes [VFP float format] [software FP], while the CL_FlashDrv binary from Compulab has attributes [FPA float format] [software FP], thus the error.

Is there a way around this?

#2 lore raw
Quoted 7 lines · Andrew Paulsen

Upon further inspection, it appears that the distribution is built with attributes [VFP float format] [software FP], while the CL_FlashDrv binary from Compulab has attributes [FPA float format] [software FP], thus the error.

Is there a way around this?

Things are working here with a non-EABI toolchain -- you may want to try that.

Cliff

Signature · 3 lines
=======================
Cliff Brake
http://bec-systems.com
#3 lore raw
Quoted 3 lines · Cliff Brake

Things are working here with a non-EABI toolchain -- you may want to try that.

Cliff

Can you tell me how to do this? Do I just make a change to the local.conf or is it more involved than that?

#4 lore raw
Quoted 6 lines · Andrew Paulsen
Quoted 2 lines · Cliff Brake

Things are working here with a non-EABI toolchain -- you may want to try that.

Can you tell me how to do this? Do I just make a change to the local.conf or is it more involved than that?

Try the generic distro. I have not updated my tree in probably 2 weeks, but it may work.

Cliff

Signature · 3 lines
=======================
Cliff Brake
http://bec-systems.com
#5 lore raw
Quoted 5 lines · Cliff Brake
Quoted 4 lines · Andrew Paulsen
Quoted 2 lines · Cliff Brake

Things are working here with a non-EABI toolchain -- you may want to try that.

Quoted 7 lines
Quoted 2 lines

Can you tell me how to do this? Do I just make a change to the local.conf or is it more involved than that?

Try the generic distro. I have not updated my tree in probably 2 weeks, but it may work.

Cliff

I just tried the "generic" distro and that fails to build in the same way that my original Familiar build failed:

NOTE: package dbus-glib-0.72-r0: task do_compile: started
NOTE: SITE files
/home/packet/OpenEmbedded/org.openembedded.dev/site/endian-little /home/packet/OpenEmbedded/org.openembedded.dev/site/arm-linux
ERROR: function do_compile failed
ERROR: log data follows (/home/packet/OpenEmbedded/build/tmp/work/armv5te-linux/dbus-glib-0.72-r0/temp/log.do_compile.27914)

| NOTE: make
| make  all-recursive
| make[1]: Entering directory

`/home/packet/OpenEmbedded/build/tmp/work/armv5te-linux/dbus-glib-0.72-r0/dbus-glib-0.72' | Making all in dbus
| make[2]: Entering directory `/home/packet/OpenEmbedded/build/tmp/work/armv5te-linux/dbus-glib-0.72-r0/dbus-glib-0.72/dbus' | make all-recursive
| make[3]: Entering directory `/home/packet/OpenEmbedded/build/tmp/work/armv5te-linux/dbus-glib-0.72-r0/dbus-glib-0.72/dbus' | Making all in .
| make[4]: Entering directory `/home/packet/OpenEmbedded/build/tmp/work/armv5te-linux/dbus-glib-0.72-r0/dbus-glib-0.72/dbus' | if /bin/sh ../arm-linux-libtool --tag=CC --mode=compile
arm-linux-gcc -march=armv5te -mtune=xscale -DHAVE_CONFIG_H -I. -I/home/packet/OpenEmbedded/build/tmp/work/armv5te-linux/dbus-glib-0.72-r0/dbus-glib-0.72/dbus -I.. -I/home/packet/OpenEmbedded/build/tmp/work/armv5te-linux/dbus-glib-0.72-r0/dbus-glib-0.72 -I.. -I/home/packet/OpenEmbedded/build/tmp/staging/arm-linux/include/dbus-1.0 -I/home/packet/OpenEmbedded/build/tmp/staging/arm-linux/lib/dbus-1.0/include -I/home/packet/OpenEmbedded/build/tmp/staging/arm-linux/include/glib-2.0 -I/home/packet/OpenEmbedded/build/tmp/staging/arm-linux/lib/glib-2.0/include
-DDBUS_COMPILATION=1 -DDBUS_LOCALEDIR=\"/usr/share/locale\"
-DDBUS_API_SUBJECT_TO_CHANGE=1 -isystem/home/packet/OpenEmbedded/build/tmp/staging/arm-linux/include -isystem/home/packet/OpenEmbedded/build/tmp/staging/arm-linux/include -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2
-Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wfloat-equal
-Wsign-compare -MT dbus-gobject.lo -MD -MP -MF
".deps/dbus-gobject.Tpo" -c -o dbus-gobject.lo dbus-gobject.c; \
| then mv -f ".deps/dbus-gobject.Tpo" ".deps/dbus-gobject.Plo";
else rm -f ".deps/dbus-gobject.Tpo"; exit 1; fi
| arm-linux-gcc -march=armv5te -mtune=xscale -DHAVE_CONFIG_H -I. -I/home/packet/OpenEmbedded/build/tmp/work/armv5te-linux/dbus-glib-0.72-r0/dbus-glib-0.72/dbus -I.. -I/home/packet/OpenEmbedded/build/tmp/work/armv5te-linux/dbus-glib-0.72-r0/dbus-glib-0.72 -I.. -I/home/packet/OpenEmbedded/build/tmp/staging/arm-linux/include/dbus-1.0 -I/home/packet/OpenEmbedded/build/tmp/staging/arm-linux/lib/dbus-1.0/include -I/home/packet/OpenEmbedded/build/tmp/staging/arm-linux/include/glib-2.0 -I/home/packet/OpenEmbedded/build/tmp/staging/arm-linux/lib/glib-2.0/include -DDBUS_COMPILATION=1 -DDBUS_LOCALEDIR=\"/usr/share/locale\" -DDBUS_API_SUBJECT_TO_CHANGE=1 -isystem/home/packet/OpenEmbedded/build/tmp/staging/arm-linux/include -isystem/home/packet/OpenEmbedded/build/tmp/staging/arm-linux/include -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2
-Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wfloat-equal
-Wsign-compare -MT dbus-gobject.lo -MD -MP -MF .deps/dbus-gobject.Tpo
-c dbus-gobject.c -fPIC -DPIC -o .libs/dbus-gobject.o

| dbus-gobject.c: In function 'invoke_object_method':
| dbus-gobject.c:997: warning: cast increases required alignment of target type
| dbus-gobject.c:1137: warning: cast increases required alignment of target type
| dbus-gobject.c:1230: warning: cast increases required alignment of target type
| In file included from dbus-gobject.c:1539:
| dbus-glib-error-switch.h: In function 'dbus_error_to_gerror_code':
| dbus-glib-error-switch.h:41: error: 'DBUS_ERROR_FILE_EXISTS'

undeclared (first use in this function)
| dbus-glib-error-switch.h:41: error: (Each undeclared identifier is reported only once
| dbus-glib-error-switch.h:41: error: for each function it appears in.) | dbus-glib-error-switch.h:65: error:
'DBUS_ERROR_INVALID_FILE_CONTENT' undeclared (first use in this function)

| dbus-gobject.c: In function 'dbus_g_object_register_marshaller':
| dbus-gobject.c:1907: warning: cast increases required alignment of target type
| dbus-gobject.c: In function 'dbus_g_method_return':
| dbus-gobject.c:2040: warning: cast increases required alignment of target type
| dbus-gobject.c: In function 'dbus_error_to_gerror_code':
| dbus-glib-error-switch.h:71: warning: control reaches end of non-void function
| make[4]: *** [dbus-gobject.lo] Error 1
| make[4]: Leaving directory

`/home/packet/OpenEmbedded/build/tmp/work/armv5te-linux/dbus-glib-0.72-r0/dbus-glib-0.72/dbus' | make[3]: *** [all-recursive] Error 1
| make[3]: Leaving directory `/home/packet/OpenEmbedded/build/tmp/work/armv5te-linux/dbus-glib-0.72-r0/dbus-glib-0.72/dbus' | make[2]: *** [all] Error 2
| make[2]: Leaving directory `/home/packet/OpenEmbedded/build/tmp/work/armv5te-linux/dbus-glib-0.72-r0/dbus-glib-0.72/dbus' | make[1]: *** [all-recursive] Error 1
| make[1]: Leaving directory `/home/packet/OpenEmbedded/build/tmp/work/armv5te-linux/dbus-glib-0.72-r0/dbus-glib-0.72' | make: *** [all] Error 2
| FATAL: oe_runmake failed
NOTE: Task failed:
/home/packet/OpenEmbedded/build/tmp/work/armv5te-linux/dbus-glib-0.72-r0/temp/log.do_compile.27914
NOTE: package dbus-glib-0.72-r0: task do_compile: failed
ERROR: TaskFailed event exception, aborting
NOTE: package dbus-glib-0.72: failed
ERROR: Build of gpe-image failed

Any advice on how to proceed from here? It seems like I need to make the distribution choose a recent version of dbus and use non-EABI. I don't know what to modify to accomplish these tasks.

#6 lore raw
Quoted 7 lines · Andrew Paulsen
Quoted 2 lines · Cliff Brake

Try the generic distro. I have not updated my tree in probably 2 weeks, but it may work.

I just tried the "generic" distro and that fails to build in the same way that my original Familiar build failed:

I added the following two lines to my /stuff/org.openembedded.dev/conf/distro/generic.conf file:
PREFERRED_VERSION_dbus ?= "1.0.1" PREFERRED_VERSION_dbus-glib ?= "0.71"
and it got past the dbus compilation errors. I don't see where the previous versions (dbus 0.92 and incompatible dbus-glib 0.72) were being set so I'm not sure what the procedure is to fix this correctly.

#7 lore raw
In reply to Andrew Paulsen
Quoted 5 lines · Andrew Paulsen

I'm trying to "bitbake gpe-image" using the Angstrom distribution and the computlab-pxa270 machine.

drivers/block/cl_flash/CL_FlashDrv uses FPA instructions, whereas drivers/block/cl_flash/fdrv.o does not

The compulab kernel includes a NAND driver that has a binary component -- downloaded from the compulab website. I suspect that this binary component was compiled with a non-eabi toolchain and can't be used with a EABI toolchain. Argh! I was planning to switch to Anstrom/EABI in the near future. Perhaps I can get them to rebuild this module with a EABI toolchain. The best solution would be to get the JFFS2/NAND patches integrated into OE.

Cliff

Signature · 3 lines
=======================
Cliff Brake
http://bec-systems.com