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