[okl4-developer] build-system-problems with okl4 3.0 and gta01
Dennis Gessner
d.gessner at sirrix.com
Thu Nov 20 01:00:25 EST 2008
Hi,
because of an bug inside okl4 2.1.1, this morning I had to switch to
okl4 3.0. Now I have some problems with the build system/sdk.
Can anyone just try this out - maybe (I'm almost sure) this is my own
fault and I would like to know what I am doing wrong.
I would like to use okl4 3.0 with the gta01 device, which is based on
the ARM920 core (ARMv4).
I tried the following:
I've downloaded the precompiled cross-compiler
arm-linux-gnueabi-4.2.4.tar.gz and installed it into my system.
- Download the complete sourcecode of okl4.
- tools/build.py machine=gta01 project=iguana wombat=true debug_trace=5
-> caused an error:
./okl4_3.0/linux/rootfs-2.6.24-v2/SConscript:32 Error: name
'oklinux_tests' is not defined
so I changed the command to (regarding some posts on the mailinglist to
eliminate some other errors):
- tools/build.py machine=gta01 project=linux wombat=true
enable_fastpaths=False debug_trace=5 PYFREEZE=False
-> caused an error:
scons: Reading SConscript files ...
OK Linux library dependencies: ['mutex', 'l4e', 'l4', 'gcc',
'circular_buffer', 'oklinux', 'atomic_ops', 'okl4']
build okl4fs? False
mutex type user
disk_size is 5600
scons: done reading SConscript files.
scons: Building targets ...
[CXX ] build/pistachio/l4kernel/object/src/asid.o
Assembler messages:
Fatal error: Invalid -march= option: `armv4t'
scons: *** [build/pistachio/l4kernel/object/src/asid.o] Error 1
scons: building terminated because of errors.
so I thought... ok, maybe I should follow the mailinglist and really use
the sdk :-) ...
- Download ARM920t 3.0
- Followed the instructions inside the tutorials "SDK Tutorial: Hello
World" and some parts of the mailinglist
- copied ./examples/singlecell to my working directory
- export OKL4_SDK_ROOT=...
- make
-> caused an error:
make -C hello KERNEL=micro BUILD=debug
make[1]: Entering directory `./new/work/hello'
cp hello.xml.in build.micro-debug/bin/hello.xml
arm-unknown-linux-gnueabi-gcc -O2 --std=gnu99 -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wnested-externs -Wmissing-declarations
-Wredundant-decls -Wundef -Wpointer-arith -Wno-nonnull -Werror
-march=armv4t -mtune=arm920t -O2 -nostdlib -nostdinc -g -Iinclude
-I./new/sdk/okl4/arm920t/micro-debug/include -c src/hello.c -o
build.micro-debug/src/hello.o
Assembler messages:
Fatal error: Invalid -march= option: `armv4t'
make[1]: *** [build.micro-debug/src/hello.o] error 1
make[1]: Leaving directory `./new/work/hello'
make: *** [hello/build.micro-debug/bin/hello.xml] error 2
----
What else can I do to get okl4 3.0 working?
Another small question:
Why isn't there a linux/kernel-2.6.24-v2/l4linux_config_gta01_cell ? As
little workaround (because of he wants to have this file), I just copied
the l4linux_config_gta01 over it ...
Best regards,
Dennis
More information about the Developer
mailing list