Thank you,Josh:
these problems have been sovled, with you help.
here is some details confirmed:
- The arm-linux-gnueabi-4.2.4 toolchain; and
- The Skyeye 1.2.1n simulator
but 2 other problems:
1, build.micro-debug/bin/pingpong is the result, how to run it on skyeye,
what does the skyeye.conf look like?
2, i found that (KERNEL=micro BUILD=debug) is OK, but (KENEL=nano,
BUILD=benchmark) goes wrong.
it seems thant SOME FIELS NOT FOUND.
make -C pingpong KERNEL=nano BUILD=benchmark
make[1]: Entering directory
`/mnt/share/sdk/s3c2410/okl4/arm920t/examples/pingpong/pingpong'
cp pingpong.xml.in build.nano-benchmark/bin/pingpong.xml
sed -i -e 's%spaces="[0-9]*"%spaces="1"%'
build.nano-benchmark/bin/pingpong.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/mnt/share/sdk/s3c2410/okl4/arm920t/nano-benchmark/include -DNANOKERNEL
-c src/pingpong.c -o build.nano-benchmark/src/pingpong.o
src/pingpong.c:9:19: error: no include path in which to search for stdio.h
src/pingpong.c:10:20: error: no include path in which to search for stdlib.h
src/pingpong.c:12:23: error: no include path in which to search for
okl4/init.h
src/pingpong.c:13:25: error: no include path in which to search for
okl4/kernel.h
src/pingpong.c:14:26: error: no include path in which to search for
okl4/kthread.h
src/pingpong.c:15:26: error: no include path in which to search for
okl4/message.h
src/pingpong.c:32: error: expected specifier-qualifier-list before
'okl4_word_t'
src/pingpong.c: In function 'main':
src/pingpong.c:43: error: 'okl4_word_t' undeclared (first use in this
function)
src/pingpong.c:43: error: (Each undeclared identifier is reported only once
src/pingpong.c:43: error: for each function it appears in.)
src/pingpong.c:43: error: expected ';' before 'i'
src/pingpong.c:44: error: expected ';' before 'pings'
src/pingpong.c:46: error: 'okl4_kthread_t' undeclared (first use in this
function)
src/pingpong.c:46: error: expected ';' before 'threads'
src/pingpong.c:47: error: 'okl4_kcap_t' undeclared (first use in this
function)
src/pingpong.c:47: error: expected ';' before 'caps'
src/pingpong.c:48: error: 'root_thread' undeclared (first use in this
function)
cc1: warnings being treated as errors
src/pingpong.c:57: warning: implicit declaration of function
'okl4_init_thread'
src/pingpong.c:57: warning: nested extern declaration of 'okl4_init_thread'
src/pingpong.c:61: error: expected ';' before '_root_thread'
src/pingpong.c:62: error: '_root_thread' undeclared (first use in this
function)
src/pingpong.c:62: warning: implicit declaration of function
'okn_syscall_thread_myself'
src/pingpong.c:62: warning: nested extern declaration of
'okn_syscall_thread_myself'
src/pingpong.c:75: error: 'pings' undeclared (first use in this function)
src/pingpong.c:75: warning: implicit declaration of function 'atoi'
src/pingpong.c:75: warning: nested extern declaration of 'atoi'
src/pingpong.c:78: warning: implicit declaration of function 'printf'
src/pingpong.c:78: warning: incompatible implicit declaration of built-in
function 'printf'
src/pingpong.c:80: error: 'i' undeclared (first use in this function)
src/pingpong.c:82: error: 'okl4_kthread_attr_t' undeclared (first use in
this function)
src/pingpong.c:82: error: expected ';' before 'kthread_attr'
src/pingpong.c:101: warning: implicit declaration of function 'malloc'
src/pingpong.c:101: warning: incompatible implicit declaration of built-in
function 'malloc'
src/pingpong.c:102: warning: implicit declaration of function 'assert'
src/pingpong.c:102: warning: nested extern declaration of 'assert'
src/pingpong.c:104: warning: implicit declaration of function
'okl4_kthread_attr_init'
src/pingpong.c:104: warning: nested extern declaration of
'okl4_kthread_attr_init'
src/pingpong.c:104: error: 'kthread_attr' undeclared (first use in this
function)
src/pingpong.c:105: warning: implicit declaration of function
'okl4_kthread_attr_setspip'
src/pingpong.c:105: warning: nested extern declaration of
'okl4_kthread_attr_setspip'
src/pingpong.c:106: error: expected ')' before 'stacks'
src/pingpong.c:113: warning: implicit declaration of function
'okl4_kthread_create'
src/pingpong.c:113: warning: nested extern declaration of
'okl4_kthread_create'
src/pingpong.c:113: error: 'threads' undeclared (first use in this function)
src/pingpong.c:115: error: 'caps' undeclared (first use in this function)
src/pingpong.c:115: warning: implicit declaration of function
'okl4_kthread_getkcap'
src/pingpong.c:115: warning: nested extern declaration of
'okl4_kthread_getkcap'
src/pingpong.c:116: warning: implicit declaration of function
'okl4_kthread_start'
src/pingpong.c:116: warning: nested extern declaration of
'okl4_kthread_start'
src/pingpong.c:123: error: 'struct args' has no member named 'id'
src/pingpong.c:124: error: 'struct args' has no member named 'parent'
src/pingpong.c:125: error: 'struct args' has no member named 'peers'
src/pingpong.c:126: error: 'struct args' has no member named 'pings'
src/pingpong.c:127: warning: implicit declaration of function
'okl4_message_send'
src/pingpong.c:127: warning: nested extern declaration of
'okl4_message_send'
src/pingpong.c:134: error: expected ';' before 'pings_done'
src/pingpong.c:135: warning: implicit declaration of function
'okl4_message_wait'
src/pingpong.c:135: warning: nested extern declaration of
'okl4_message_wait'
src/pingpong.c:135: error: 'pings_done' undeclared (first use in this
function)
src/pingpong.c:135: error: 'NULL' undeclared (first use in this function)
src/pingpong.c:151: warning: implicit declaration of function
'okl4_kthread_join'
src/pingpong.c:151: warning: nested extern declaration of
'okl4_kthread_join'
src/pingpong.c:153: warning: implicit declaration of function 'free'
src/pingpong.c:153: warning: nested extern declaration of 'free'
src/pingpong.c:159: warning: implicit declaration of function
'okl4_kthread_exit'
src/pingpong.c:159: warning: nested extern declaration of
'okl4_kthread_exit'
src/pingpong.c: In function 'pingpong':
src/pingpong.c:171: error: 'okl4_word_t' undeclared (first use in this
function)
src/pingpong.c:171: error: expected ';' before 'bytes'
src/pingpong.c:172: error: 'okl4_kcap_t' undeclared (first use in this
function)
src/pingpong.c:172: error: expected ';' before 'peer'
src/pingpong.c:177: error: 'bytes' undeclared (first use in this function)
src/pingpong.c:177: error: 'NULL' undeclared (first use in this function)
src/pingpong.c:180: warning: incompatible implicit declaration of built-in
function 'printf'
src/pingpong.c:180: error: 'struct args' has no member named 'id'
src/pingpong.c:183: error: 'struct args' has no member named 'id'
src/pingpong.c:184: error: 'peer' undeclared (first use in this function)
src/pingpong.c:184: error: 'struct args' has no member named 'peers'
src/pingpong.c:186: error: 'struct args' has no member named 'peers'
src/pingpong.c:188: error: 'struct args' has no member named 'pings'
src/pingpong.c:190: error: expected ';' before 'recv'
src/pingpong.c:191: error: 'struct args' has no member named 'id'
src/pingpong.c:195: warning: implicit declaration of function
'okl4_message_call'
src/pingpong.c:195: warning: nested extern declaration of
'okl4_message_call'
src/pingpong.c:196: error: 'recv' undeclared (first use in this function)
src/pingpong.c:213: error: 'struct args' has no member named 'id'
src/pingpong.c:214: error: 'struct args' has no member named 'id'
src/pingpong.c:216: error: 'struct args' has no member named 'parent'
make[1]: *** [build.nano-benchmark/src/pingpong.o] Error 1
make[1]: Leaving directory
`/mnt/share/sdk/s3c2410/okl4/arm920t/examples/pingpong/pingpong'
make: *** [pingpong/build.nano-benchmark/bin/pingpong.xml] Error 2
----- Original Message -----
From: Josh Matthews (via Nabble)
To: zhhwu
Sent: Wednesday, April 15, 2009 2:11 AM
Subject: Re: [okl4-developer] how to run PINGPONG sample on Skyeye
Hi Zhhwu,
On Sat, April 11, 2009 9:43 am, zhhwu wrote:
> i follow the steps in README.
>
> $ export OKL4_SDK_ROOT=<path/to/sdk>
> $ cd okl4/<arch>/examples/<example>
> $ make
>
> then, when i run command:
> skeye -c skeye.conf -e build.micro-debug\images\image.elf
>
> skyeye give errors:
> Bus read error, can not find corresponding bank for addr 0x????, pc=0x????
> ...
> Bus read error, can not find corresponding bank for addr 0x20bd0,
> pc=0x20bd0
>
Could you please confirm that you are using:
- The Gumstix / XScale SDK;
- The arm-linux-gnueabi-4.2.4 toolchain; and
- The Skyeye 1.2.1n simulator
all downloaded from wiki.ok-labs.com? If any of those tools are different
(e.g. you have built your own SDK, or are using a different toolchain or
different version of Skyeye) please let me know and I'll try to assist
further.
Best regards,
Josh
_______________________________________________
Developer mailing list
Developer@...
https://lists.okl4.org/mailman/listinfo/developerThis email is a reply to your post @
http://n2.nabble.com/how-to-run-PINGPONG-sample-on-Skyeye-tp2620614p2634507.htmlYou can reply by email or by visting the link above.