Re: Time taken for each thread

2017-10-20 Thread Hui Yie Teh
Ok, thanks for the clarification! On 21 Oct 2017 18:24, "Chris Johns" wrote: > On 21/10/2017 16:15, Hui Yie Teh wrote: > > No, I am not. How do you apply the qemu patches? ​ > > Where did you get qemu from? > > > I tried following > > this https://docs.rtems.org/releases/rtemsdocs-4.10.2/ > shar

Re: Time taken for each thread

2017-10-20 Thread Chris Johns
On 21/10/2017 16:15, Hui Yie Teh wrote: > No, I am not. How do you apply the qemu patches? ​ Where did you get qemu from? > I tried following > this > https://docs.rtems.org/releases/rtemsdocs-4.10.2/share/rtems/html/started/started00036.html > but to no avail. That is an old release now and t

Re: Time taken for each thread

2017-10-20 Thread Hui Yie Teh
No, I am not. How do you apply the qemu patches? ​I tried following this https://docs.rtems.org/releases/rtemsdocs-4.10.2/share/rtems/html/started/started00036.html but to no avail. ___ users mailing list users@rtems.org http://lists.rtems.org/mailman/lis

Re: Filesystem in RTEMS

2017-10-20 Thread Chris Johns
On 21/10/2017 14:58, xuelin.t...@qkmtech.com wrote: >>> I also add this library - >>> "additional_flags += > ['-L/opt/rtems-4.11.1-release/4.11-bsp/arm-rtems4.11/xilinx_zynq_zedboard/lib > -ljffs2']" > >>Link order? > > Yeah, I google it, and it says that this kind of error is related to linking

Re: Re: Filesystem in RTEMS

2017-10-20 Thread xuelin.t...@qkmtech.com
> $ arm-rtems4.12-nm \ > /opt/rtems/4.12/arm-rtems4.12/xilinx_zynq_zc706/lib/libjffs2.a | \ > grep rtems_jffs2_compressor_zlib_compress > T rtems_jffs2_compressor_zlib_compress I checked the symbols, same result as yours. >> I also add this library - >> "additional_flags += >> ['

Re: Filesystem in RTEMS

2017-10-20 Thread Chris Johns
On 21/10/2017 13:13, xuelin.t...@qkmtech.com wrote: > All these three functions should be defined in libjffs2.a, right? Yeap ... $ arm-rtems4.12-nm \ /opt/rtems/4.12/arm-rtems4.12/xilinx_zynq_zc706/lib/libjffs2.a | \ grep rtems_jffs2_compressor_zlib_compress T rtems_jffs2_compresso

Re: Re: Filesystem in RTEMS

2017-10-20 Thread xuelin.t...@qkmtech.com
All these three functions should be defined in libjffs2.a, right? I also add this library - "additional_flags += ['-L/opt/rtems-4.11.1-release/4.11-bsp/arm-rtems4.11/xilinx_zynq_zedboard/lib -ljffs2']" - to my program, but same result... Best wishes, xuelin.t...@qkmtech.com From: xuelin.t.

Re: Re: Filesystem in RTEMS

2017-10-20 Thread xuelin.t...@qkmtech.com
Yeah, my code is mostly like yours. I have a handle of flash device, which can access flash hardware directly via QSPI. So, this means, my flash can work with jffs2 without being registered into rtems? And, I still get these error... [1136/1145] Linking build/arm-rtems4.11-xilinx_zynq_zedboard/

Re: Filesystem in RTEMS

2017-10-20 Thread Chris Johns
On 21/10/2017 11:17, xuelin.t...@qkmtech.com wrote: > I followed the example (testsuites/fstests/jffs2_support/fs_support.c), and > some > error came up, like > "undefined reference to rtems_jffs2_initialize", > "undefined reference to rtems_jffs2_compressor_zlib_compress", and > "undefined refe

Re: Re: Filesystem in RTEMS

2017-10-20 Thread xuelin.t...@qkmtech.com
I followed the example (testsuites/fstests/jffs2_support/fs_support.c), and some error came up, like "undefined reference to rtems_jffs2_initialize", "undefined reference to rtems_jffs2_compressor_zlib_compress", and "undefined reference to rtems_jffs2_compressor_zlib_decompress" I have no clue

Re: Time taken for each thread

2017-10-20 Thread Chris Johns
On 21/10/17 9:38 am, Hui Yie Teh wrote: > Sorry, I forgot to mention I am running on an arm board, lm3s6965 on qemu Are you using the qemu patches in the BSP's directory? Chris ___ users mailing list users@rtems.org http://lists.rtems.org/mailman/listin

Re: Time taken for each thread

2017-10-20 Thread Hui Yie Teh
Sorry, I forgot to mention I am running on an arm board, lm3s6965 on qemu On 21 Oct 2017 11:36, "Chris Johns" wrote: On 21/10/17 1:58 am, Hui Yie Teh wrote: > > How do I measure the time taken for a thread in RTEMS? I tried > using uint64_trtems_clock_get_uptime_nanoseconds(void); to get the sta

Re: Time taken for each thread

2017-10-20 Thread Chris Johns
On 21/10/17 1:58 am, Hui Yie Teh wrote: > > How do I measure the time taken for a thread in RTEMS? I tried > using uint64_trtems_clock_get_uptime_nanoseconds(void); to get the start and > end > time but it is giving me 0. > Which architecture and BSP? Chris

nsec.exe returning all 0's

2017-10-20 Thread Hui Yie Teh
Hi, I am getting all 0's when I execute the sample testsuite nsec.exe and I am running this on the LM3S6965 board on QEMU. Is there a reason why it is doing so and is there a way to fix it? Any help is much appreciated. Thanks. ___ users mailing list u

Time taken for each thread

2017-10-20 Thread Hui Yie Teh
Hi, How do I measure the time taken for a thread in RTEMS? I tried using uint64_t rtems_clock_get_uptime_nanoseconds(void); to get the start and end time but it is giving me 0. Any help would be very much appreciated. Thanks. ___ users mailing list user

Re: Size of RTEMS application

2017-10-20 Thread Hui Yie Teh
Thanks Joel! ___ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users

Re: Size of RTEMS application

2017-10-20 Thread Joel Sherrill
On Oct 20, 2017 7:58 AM, "Hui Yie Teh" wrote: Hi, How do I get the footprint (RAM and ROM size) of an RTEMS application? >From what I am seeing, the hello.exe from the testsuite is around 3.9MB. That sounds like it came from ls. That's the file size with debug info. Use the command TARGET-rte

Size of RTEMS application

2017-10-20 Thread Hui Yie Teh
Hi, How do I get the footprint (RAM and ROM size) of an RTEMS application? >From what I am seeing, the hello.exe from the testsuite is around 3.9MB. Is this the right footprint of an RTEMS application? Also is that the RAM size or the ROM size? Cheers, Yie __