Skip to contentSkip to conversation

kexec-tools-static build failue for zaurus collie

DISCUSSION Chris Sykes 4 participants 5 messages Apr 15, 2009

lore
Share & tools
lore
#0 lore raw

Hi,

I'm currently failing in my attempts to get OE built for my Zaurus collie. I'm using an up-to-date git checkout on the stable 2009 branch.

OE Build Configuration:
BB_VERSION = "1.8.12"
METADATA_BRANCH = "stable2009"
METADATA_REVISION = "272ae318b03bcd062f8b43258ce54a2cd96b9f45"

TARGET_ARCH       = "arm"
TARGET_OS         = "linux"
MACHINE           = "collie"
DISTRO            = "angstrom"
DISTRO_VERSION    = "2009.X-test-20090415"
TARGET_FPU        = "soft"

Interestingly (or perhaps not), the kexec-tools build seems to go just fine, it's just kexec-tools-static that has a problem.

It seems to be an include path problem as 'mach/memory.h' is not found.
Here's the start of the failed build log:
| arm-angstrom-linux-klcc -Wall -g -fno-strict-aliasing -I./include
-I./util_lib/include -DVERSION='"1.101"' -DRELEASE_DATE='"15 February
2005"' -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -Ikexec/arch/arm/include
-o /home/csykes/projects/cappuccino/zaurus/build/tmp/work/arm-oabi-angstrom-linux/kexec-tools-static-1.101-r4/kexec-tools-1.101/objdir-arm-angstrom-linux/kexec/arch/arm/kexec-zImage-arm.o -c kexec/arch/arm/kexec-zImage-arm.c | In file included
from /home/csykes/projects/cappuccino/zaurus/build/tmp/staging/arm-oabi-angstrom-linux/lib/klibc/include/asm/page.h:183,

|                  from kexec/arch/arm/kexec-zImage-arm.c:18:
| /home/csykes/projects/cappuccino/zaurus/build/tmp/staging/arm-oabi-angstrom-linux/lib/klibc/include/asm/memory.h:18:25: error: mach/memory.h: No such file or directory
| In file included
from /home/csykes/projects/cappuccino/zaurus/build/tmp/staging/arm-oabi-angstrom-linux/lib/klibc/include/asm/page.h:183,
|                  from kexec/arch/arm/kexec-zImage-arm.c:18:
| /home/csykes/projects/cappuccino/zaurus/build/tmp/staging/arm-oabi-angstrom-linux/lib/klibc/include/asm/memory.h: In function 'virt_to_phys':
| /home/csykes/projects/cappuccino/zaurus/build/tmp/staging/arm-oabi-angstrom-linux/lib/klibc/include/asm/memory.h:162: error: 'CONFIG_DRAM_BASE' undeclared (first use in this function)
Signature · 5 lines
Chris Sykes

Next Step Solutions Limited
Email: [email protected]
Tel: 0870 3146413
#1 lore raw
Quoted 16 lines · Chris Sykes

Hi,

I'm currently failing in my attempts to get OE built for my Zaurus collie. I'm using an up-to-date git checkout on the stable 2009 branch.

OE Build Configuration:
BB_VERSION = "1.8.12"
METADATA_BRANCH = "stable2009"
METADATA_REVISION = "272ae318b03bcd062f8b43258ce54a2cd96b9f45"

TARGET_ARCH       = "arm"
TARGET_OS         = "linux"
MACHINE           = "collie"
DISTRO            = "angstrom"
DISTRO_VERSION    = "2009.X-test-20090415"
TARGET_FPU        = "soft"
Quoted 4 lines

Interestingly (or perhaps not), the kexec-tools build seems to go just fine, it's just kexec-tools-static that has a problem.

It seems to be an include path problem as 'mach/memory.h' is not found.

Looks like kexectools-static doesn't account for the big arm header move in the kernel yet.

regards,

Koen

#3 lore raw
Quoted 4 lines · Andrea Adami

Yes, problem with recent kernels (>2.6.28 ?) and klibc.
See http://lists.linuxtogo.org/pipermail/openembedded-devel/2009-April/009377.html

As workaround you can build kexecboot against an older kernel.

Ah, many thanks for the pointers. I had done a quick search of the archives but was looking for kexec issues rather than klibc.

Signature · 5 lines
Chris Sykes

Next Step Solutions Limited
Email: [email protected]
Tel: 0870 3146413
#4 lore raw
In reply to Koen Kooi
Quoted 17 lines · Koen Kooi
Quoted 16 lines · Chris Sykes

Hi,

I'm currently failing in my attempts to get OE built for my Zaurus collie. I'm using an up-to-date git checkout on the stable 2009 branch.

OE Build Configuration:
BB_VERSION = "1.8.12"
METADATA_BRANCH = "stable2009"
METADATA_REVISION = "272ae318b03bcd062f8b43258ce54a2cd96b9f45"

TARGET_ARCH       = "arm"
TARGET_OS         = "linux"
MACHINE           = "collie"
DISTRO            = "angstrom"
DISTRO_VERSION    = "2009.X-test-20090415"
TARGET_FPU        = "soft"
Quoted 7 lines
Quoted 4 lines

Interestingly (or perhaps not), the kexec-tools build seems to go just fine, it's just kexec-tools-static that has a problem.

It seems to be an include path problem as 'mach/memory.h' is not found.

Looks like kexectools-static doesn't account for the big arm header move in the kernel yet.

Its actually klibc which is broken, this was discussed a couple of weeks ago.

Graeme