[okl4-developer] build-system-problems with okl4 3.0 and gta01
Geoffrey Lee
glee at ok-labs.com
Thu Nov 20 14:29:49 EST 2008
On Wed, Nov 19, 2008 at 03:00:25PM +0100, Dennis Gessner wrote:
> 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).
>
Hi Dennis -
I tried to build the singlecell example with the SDK and it
generated a bootable image for me.
Here's what I did (after exporting the OKL4_SDK_ROOT to the
correct SDK path):
glee at bob2 /scratch/glee/singlecell $ make
make -C hello KERNEL=micro BUILD=debug
make[1]: Entering directory `/scratch/glee/singlecell/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/scratch/glee/releases/sdk/okl4/arm920t/micro-debug/include -c
src/hello.c -o build.micro-debug/src/hello.o
arm-unknown-linux-gnueabi-ld -o build.micro-debug/bin/hello
-Ttext=0x100000
-L/scratch/glee/releases/sdk/okl4/arm920t/micro-debug/libs
/scratch/glee/releases/sdk/okl4/arm920t/micro-debug/libs/crt0.o
build.micro-debug/src/hello.o --start-group
/scratch/glee/releases/sdk/okl4/arm920t/micro-debug/libs/libc.a
/scratch/glee/releases/sdk/okl4/arm920t/micro-debug/libs/libokl4.a
/nfshome/devtools/opt/okl/Linux-i386/arm/gcc-4.2.4-glibc-2.7/arm-unknown-linux-gnueabi/bin/../lib/gcc/arm-unknown-linux-gnueabi/4.2.4/libgcc.a
--end-group
make[1]: Leaving directory `/scratch/glee/singlecell/hello'
cp image.xml.in build.micro-debug/images/image.xml
sed -i -e
's%@ABS_MACHINE_XML_PATH@%/scratch/glee/releases/sdk/kernel/arm920t/micro-debug/object/machine.xml%'
build.micro-debug/images/image.xml
sed -i -e
's%@ABS_KERNEL_XML_PATH@%/scratch/glee/releases/sdk/kernel/arm920t/micro-debug/object/kernel.xml%'
build.micro-debug/images/image.xml
sed -i -e 's%@ABS_CELL_XML_PATHS@%<include
file=\"hello/build.micro-debug/bin/hello.xml\"/>\n %'
build.micro-debug/images/image.xml
/scratch/glee/releases/sdk/bin/elfweaver --traceback merge
-obuild.micro-debug/images/image.elf build.micro-debug/images/image.xml
For OK Linux I've been told that OK Linux is unfortunately not supported
on the 3.0 release for the gta01 platform at this time.
-gl
> 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
>
> _______________________________________________
> Developer mailing list
> Developer at okl4.org
> https://lists.okl4.org/mailman/listinfo/developer
>
--
More information about the Developer
mailing list