L4Linux on Xscale
adam at os.inf.tu-dresden.de
Sun Oct 1 02:08:43 CEST 2006
On Sat Sep 30, 2006 at 19:19:42 +0900, Wan-Keun Jo wrote:
> I tried to install Fiasco-L4Linux on Xscale-PXA255.
> I saw a "hello message" with fiasco kernel, sigma0, roottask, hello programs yesterday.
> When I start to compile L4linux, I got the following errors...
> /l4linux-2.6$ make
> CHK include/linux/version.h
> CC arch/l4/kernel/asm-offsets.s
> cc1: error: invalid option `abi=apcs-gnu' (1)
> cc1: error: bad value (armv4) for -march= switch (2)
> cc1: error: bad value (armv4) for -mcpu= switch
> make: *** [arch/l4/kernel/asm-offsets.s] Error 1
> make: *** [prepare0] Error 2
> >> Question 01:
> Error (1): I solved by fixing the following code
> CFLAGS_ABI :=$(call cc-option,-mapcs-32,-mabi=apcs-gnu) $(call cc-option,-mno-thumb-
Which version of L4Linux is that?
> [change to]
> CFLAGS += $(call cc-option,-mapcs-32,$(call cc-option,-mabi=apcs-gnu),) $(call cc-option,
> Error (1) is solved, but what is the difference between them?? (I just fix it, I don't know why...)
> >> Question 02:
> Error (2): I read what "-march" option is on gcc manual, and found the permissible values for it are
> armv2, armv2a, armv3, armv3m, armv4, armv4t, armv5, armv5t, armv5te, armv6, armv6j, iwmmxt, ep9312
> In the file "arch/l4/Makefile:82 CFLAGS += -D__LINUX_ARM_ARCH__=4 -march=armv4"
> I just tried each values one by one for -march option, but all failed.
On Sat Sep 30, 2006 at 19:26:37 +0900, Á¶¿Ï±Ù wrote:
> Sorry, I forgot to say that I tried arm-linux-gcc version 2.95.3, 3.3.1,
> but all the results are same...
To me, this looks like you're compiling with some x86 target compiler.
Are you compiling with 'make L4ARCH=arm CROSS_COMPILE=arm-linux-' ?
Check by adding V=1 to make. And make sure, to use gcc version 3.4, at
Adam adam at os.inf.tu-dresden.de
More information about the l4-hackers