Re: problemslinking Zlib

2019-07-10 Thread Chris Johns
On 11/7/19 4:53 pm, Sebastian Huber wrote: > On 11/07/2019 08:45, Chris Johns wrote: >> On 11/7/19 4:39 pm, Sebastian Huber wrote: >>> >>> I sent a GCC patch doing this a couple of year ago and it was rejected. The >>> alternative was to add a separate libjffs2.a. >>> >> >> I could not find anythin

Re: problemslinking Zlib

2019-07-10 Thread Sebastian Huber
On 11/07/2019 08:45, Chris Johns wrote: On 11/7/19 4:39 pm, Sebastian Huber wrote: I sent a GCC patch doing this a couple of year ago and it was rejected. The alternative was to add a separate libjffs2.a. I could not find anything about this with google to see why. https://lists.rtems.org/

Re: GSoC Project | Basic support for Trace Compass

2019-07-10 Thread Sebastian Huber
On 11/07/2019 08:43, Ravindra Kumar Meena wrote: I am pretty sure this is error is caused by something else. How many files do you open, how many do you close properly? I did it in the end. Isn't it correct? for( i = 0; i < RTEMS_RECORD_CLIENT_MAXIMUM_CPU_COUNT ; i++ ){     fclose( eve

Re: problemslinking Zlib

2019-07-10 Thread Chris Johns
On 11/7/19 4:39 pm, Sebastian Huber wrote: > > I sent a GCC patch doing this a couple of year ago and it was rejected. The > alternative was to add a separate libjffs2.a. > I could not find anything about this with google to see why. Chris ___ devel m

Re: GSoC Project | Basic support for Trace Compass

2019-07-10 Thread Ravindra Kumar Meena
> > I am pretty sure this is error is caused by something else. How many > files do you open, how many do you close properly? > I did it in the end. Isn't it correct? for( i = 0; i < RTEMS_RECORD_CLIENT_MAXIMUM_CPU_COUNT ; i++ ){ fclose( event_streams[ i ] ); } -- *Ravindra Kumar Meena*,

Re: problemslinking Zlib

2019-07-10 Thread Sebastian Huber
On 11/07/2019 02:12, Chris Johns wrote: On 11/7/19 2:20 am, Sebastian Huber wrote: - Am 10. Jul 2019 um 15:14 schrieb joelj...@rtems.org: On Wed, Jul 10, 2019 at 6:39 AM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: On 10/07/2019 13:33, Nils Hölscher wrote: I am currently

Event Recording/CTF: Get closer to LTTNG output

2019-07-10 Thread Sebastian Huber
Hello Ravindra, the basic structure is now similar to the LTTNG output. The next step is to produce a packet header identical to LTTNG: trace { major = 1; minor = 8; uuid = "6a7715d0-b502-4c65-8678-6777ac7f755a"; byte_order = le; packet.header := struct

Event Recording/CTF: Unexpected end of packet

2019-07-10 Thread Sebastian Huber
Hello Ravindra, please fix this error reported by babeltrace: [error] Unexpected end of packet. Either the trace data stream is corrupted or metadata description does not match data layout. [error] Reading event failed. Error printing trace. I think this has something to do with not properly

Re: GSoC Project | Basic support for Trace Compass

2019-07-10 Thread Sebastian Huber
On 11/07/2019 07:52, Ravindra Kumar Meena wrote: > 0 RTEMS_RECORDING_EVENT: { cpu_id = 4 }, { ns = 954631069457, events = ( > "RTEMS_RECORD_THREAD_STACK_CURRENT" : container = 209 ), data = > 134621454958589 } > 0 RTEMS_RECORDING_EVENT: { cpu_id = 18 }, { ns = 955492534605

Re: Easy Approach to Requirements Syntax?

2019-07-10 Thread Sebastian Huber
On 10/07/2019 16:10, Joel Sherrill wrote: Replying to myself.. see below. On Wed, Jul 10, 2019 at 8:18 AM Joel Sherrill > wrote: On Tue, Jul 9, 2019 at 12:34 AM Sebastian Huber mailto:sebastian.hu...@embedded-brains.de>> wrote: On 08/07/2019 08:42, Seb

Re: GSoC Project | Basic support for Trace Compass

2019-07-10 Thread Ravindra Kumar Meena
> > > 0 RTEMS_RECORDING_EVENT: { cpu_id = 4 }, { ns = 954631069457, events = ( > > "RTEMS_RECORD_THREAD_STACK_CURRENT" : container = 209 ), data = > > 134621454958589 } > > 0 RTEMS_RECORDING_EVENT: { cpu_id = 18 }, { ns = 955492534605, events = > > ( "RTEMS_RECORD_THREAD_SWITCH_OUT" : container = 2

Re: GSoC Project | Basic support for Trace Compass

2019-07-10 Thread Sebastian Huber
On 11/07/2019 07:00, Ravindra Kumar Meena wrote: Babeltrace is able to read values. Here is the output: 0 RTEMS_RECORDING_EVENT: { cpu_id = 4 }, { ns = 954631069457, events = ( "RTEMS_RECORD_THREAD_STACK_CURRENT" : container = 209 ), data = 134621454958589 } 0 RTEMS_RECORDING_EVENT: { cpu_id =

Re: GSoC Project | Basic support for Trace Compass

2019-07-10 Thread Ravindra Kumar Meena
> > This is not a proper argument. You should use the packet context to > indicate the CPU of the events. > I have added the ctf_header in rtems_main.c https://github.com/rmeena840/rtems-tools/commit/5a1c7b6e3c0c5246a8afc538f9f01576a5ac7983 Tested on AWS. No warning from my end. Now, each binar

Re: problemslinking Zlib

2019-07-10 Thread Chris Johns
On 11/7/19 2:20 am, Sebastian Huber wrote: > - Am 10. Jul 2019 um 15:14 schrieb joel j...@rtems.org: > >> On Wed, Jul 10, 2019 at 6:39 AM Sebastian Huber < >> sebastian.hu...@embedded-brains.de> wrote: >> >>> On 10/07/2019 13:33, Nils Hölscher wrote: I am currently trying to add the fdt-s

Re: BBB Framebuffer : Need Ideas.

2019-07-10 Thread Christian Mauderer
On 10/07/2019 12:53, Christian Mauderer wrote: > > > On 10/07/2019 12:38, Vijay Kumar Banerjee wrote: >> >> >> On Wed, Jul 10, 2019 at 12:40 PM Christian Mauderer >> > > wrote: >> >> On 09/07/2019 21:13, Vijay Kumar Banerjee wrote: >> > Hello

Re: problemslinking Zlib

2019-07-10 Thread Sebastian Huber
- Am 10. Jul 2019 um 15:14 schrieb joel j...@rtems.org: > On Wed, Jul 10, 2019 at 6:39 AM Sebastian Huber < > sebastian.hu...@embedded-brains.de> wrote: > >> On 10/07/2019 13:33, Nils Hölscher wrote: >> > I am currently trying to add the fdt-shell commands to my application >> > but rtems zli

Re: GSoC Project | Basic support for Trace Compass

2019-07-10 Thread Sebastian Huber
- Am 10. Jul 2019 um 18:12 schrieb Ravindra Kumar Meena rmeena...@gmail.com: >> >> I don’t really get why you define 32 different streams in your metadata >> which means you have to copy the event definition as well 32 times. >> > I added 32 different streams in metadata because I have 32 bina

Re: GSoC Project | Basic support for Trace Compass

2019-07-10 Thread Ravindra Kumar Meena
> > I don’t really get why you define 32 different streams in your metadata > which means you have to copy the event definition as well 32 times. > I added 32 different streams in metadata because I have 32 binary stream files stored in the disk. I have defined one type of event for each stream fil

Issues with fdt shell

2019-07-10 Thread Nils Hölscher
Hi, I am currently trying to check whether my device tree overlay has applied correctly. For this purpose I am using rtems-fdt-shell.h. The used sources can be found here: https://github.com/nilhoel1/rtems-pru/tree/pruss-shell Now I have two things to ask/mention. 1.The kernel crashes with the f

Re: Easy Approach to Requirements Syntax?

2019-07-10 Thread Joel Sherrill
Replying to myself.. see below. On Wed, Jul 10, 2019 at 8:18 AM Joel Sherrill wrote: > > > On Tue, Jul 9, 2019 at 12:34 AM Sebastian Huber < > sebastian.hu...@embedded-brains.de> wrote: > >> On 08/07/2019 08:42, Sebastian Huber wrote: >> > Hello, >> > >> > I work currently on a requirements engi

Re: Easy Approach to Requirements Syntax?

2019-07-10 Thread Joel Sherrill
On Tue, Jul 9, 2019 at 12:34 AM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > On 08/07/2019 08:42, Sebastian Huber wrote: > > Hello, > > > > I work currently on a requirements engineering section for RTEMS in the > > RTEMS Software Engineering manual: > > > > https://docs.rtems.or

Re: problemslinking Zlib

2019-07-10 Thread Joel Sherrill
On Wed, Jul 10, 2019 at 6:39 AM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > On 10/07/2019 13:33, Nils Hölscher wrote: > > I am currently trying to add the fdt-shell commands to my application > > but rtems zlib won't link with -lz added to gcc. > > The short answer is that you h

AW: GSoC Project | Basic support for Trace Compass

2019-07-10 Thread Jan.Sommer
Hi Ravindra, I have only had a look at the documentation and not worked with CTF at all so far, so take my words with a grain of salt. I don’t really get why you define 32 different streams in your metadata which means you have to copy the event definition as well 32 times. This amount of duplic

Re: problemslinking Zlib

2019-07-10 Thread Nils Hölscher
Thanks this concluded my problem. On Wed, 10 Jul 2019 at 13:39, Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > On 10/07/2019 13:33, Nils Hölscher wrote: > > I am currently trying to add the fdt-shell commands to my application > > but rtems zlib won't link with -lz added to gcc. >

Re: problemslinking Zlib

2019-07-10 Thread Sebastian Huber
On 10/07/2019 13:33, Nils Hölscher wrote: I am currently trying to add the fdt-shell commands to my application but rtems zlib won't link with -lz added to gcc. The short answer is that you have to use "-lrtemscpu -lz" on the command line. -- Sebastian Huber, embedded brains GmbH Address :

problemslinking Zlib

2019-07-10 Thread Nils Hölscher
Hi, I am currently trying to add the fdt-shell commands to my application but rtems zlib won't link with -lz added to gcc. My Output is as follows: """ (576) /home/nils/development/rtems/5/bin/arm-rtems5-gcc -qrtems -B/home/nils/development/rtems/5/arm-rtems5/lib/ -B/home/nils/development/rtems/5

Re: BBB Framebuffer : Need Ideas.

2019-07-10 Thread Christian Mauderer
On 10/07/2019 12:38, Vijay Kumar Banerjee wrote: > > > On Wed, Jul 10, 2019 at 12:40 PM Christian Mauderer > > wrote: > > On 09/07/2019 21:13, Vijay Kumar Banerjee wrote: > > Hello all,  > > > > First the status : > > * The fbd

Re: BBB Framebuffer : Need Ideas.

2019-07-10 Thread Vijay Kumar Banerjee
On Wed, Jul 10, 2019 at 12:40 PM Christian Mauderer < christian.maude...@embedded-brains.de> wrote: > On 09/07/2019 21:13, Vijay Kumar Banerjee wrote: > > Hello all, > > > > First the status : > > * The fbd has been ported and it's attaching with the fb0 devie. There's > >an fb0 device entry c

[PATCH v6] Port ndbm

2019-07-10 Thread Vaibhav Gupta
--- newlib/libc/include/ndbm.h | 93 ++ newlib/libc/search/Makefile.am | 1 + newlib/libc/search/ndbm.c | 217 + 3 files changed, 311 insertions(+) create mode 100644 newlib/libc/include/ndbm.h create mode 100644 newlib/libc/search/ndbm.c

[PATCH v2] CMPLX, CMPLXF, CMPLXL FreeBSD Numerics

2019-07-10 Thread Vaibhav Gupta
--- newlib/libc/include/complex.h | 47 +-- 1 file changed, 40 insertions(+), 7 deletions(-) diff --git a/newlib/libc/include/complex.h b/newlib/libc/include/complex.h index 0a3ea97ed..7ae41c46b 100644 --- a/newlib/libc/include/complex.h +++ b/newlib/libc/include/c

[PATCH v1] CMPLX, CMPLXF, CMPLXL FreeBSD Numerics

2019-07-10 Thread Vaibhav Gupta
--- newlib/libc/include/complex.h | 71 ++- 1 file changed, 37 insertions(+), 34 deletions(-) diff --git a/newlib/libc/include/complex.h b/newlib/libc/include/complex.h index 0a3ea97ed..0a9177971 100644 --- a/newlib/libc/include/complex.h +++ b/newlib/libc/include/

Re: GSoC Project | Basic support for Trace Compass

2019-07-10 Thread Ravindra Kumar Meena
Hi, Yesterday, I modified the metadata so that babeltrace can read the multiple stream files. For this, I added the stream_id at the beginning of every stream file. e.g 0,1,.31. https://github.com/rmeena840/rtems-tools/commit/7c6b27192e1dbdc405db7280b3f2f672ac32488b I modified the metadata

[PATCH v3] ndbm test suite

2019-07-10 Thread Vaibhav Gupta
--- testsuites/psxtests/Makefile.am | 7 + testsuites/psxtests/configure.ac | 1 + testsuites/psxtests/psxndbm01/init.c | 260 +++ 3 files changed, 268 insertions(+) create mode 100644 testsuites/psxtests/psxndbm01/init.c diff --git a/testsuites/psxtests/Make

Re: BBB Framebuffer : Need Ideas.

2019-07-10 Thread Christian Mauderer
On 09/07/2019 21:13, Vijay Kumar Banerjee wrote: > Hello all,  > > First the status : > * The fbd has been ported and it's attaching with the fb0 devie. There's >    an fb0 device entry created.  > * In the following commit I have added mmap to libbsd. This works like a > wrapper to the mmap in cp