Re: [PATCH] part of implimenting a monotonic clock in rtems part of this is not the final patch.

2021-06-11 Thread zack_on_the_speed_chanel
So the intention of the patch was to implement a timer_create function for monotonic clocks. A monotonic clock is a clock that keeps track of the time that has elapsed since the Linux epoch. I did the following so far. - I added a field in the RTEMS_timer_control so that in create_timer it's ab

Re: Running SPARC/LEON3 in TSIM-LEON3 simulator

2021-06-11 Thread Jiri Gaisler
On 6/11/21 12:37 PM, Đức Anh wrote: Hi Sebastian, Thank you. I didn't notice that. I recompile with SMP enabled, and the application doesn't run successfully in the TSIM-LEON3 simulator. Below is the error message: Initializing and starting from 0x4000   CPU 0 in error mode (tt=

How to write a build script to the rsb

2021-06-11 Thread Ida Delphine
Hi everyone, So I'm working on automatic style checking for RTEMS score and some time ago we agreed on using clang-format. Since I will be making some costum changes to the source code of clang-format, I intend using the rsb to build it before it can be used to format files to match the RTEMS styl

Re: [PATCH] part of implimenting a monotonic clock in rtems part of this is not the final patch.

2021-06-11 Thread zack_on_the_speed_chanel
ping Sent with ProtonMail Secure Email. ‐‐‐ Original Message ‐‐‐ On Wednesday, June 9th, 2021 at 6:27 PM, zack wrote: > From: zack zack_on_the_speed_cha...@protonmail.ch > > cpukit/include/rtems/posix/timer.h | 6 ++- > > cpukit/posix/src/psxtimercreate.c | 5 +- > > cpukit/posix/src/t

[PATCH rtems-libbsd v2 4/4] rtemsbsd: Added a test for the TTCP command.

2021-06-11 Thread Stephen Clark
Added a new test for the TTCP command. Modified default-network-init.h to conditionally build the shell with TTCP. Modified libbsd.py to build the new TTCP test. --- libbsd.py | 1 + .../rtems/bsd/test/default-network-init.h | 7 +++ testsuite/ttcpshell01/

[PATCH rtems-libbsd v2 3/4] rtemsbsd: Made TTCP command build for RTEMS

2021-06-11 Thread Stephen Clark
Updated ttcp.c to build for RTEMS 6, in addition to the machines it originally built for. Also fixed ttcp.c to close network sockets after completion. Defined a shell command for TTCP in rtems-bsd-shell-ttcp.c. Added TTCP to the list of RTEMS network commands in netcmds-config.h. Added declaration

[PATCH rtems-libbsd v2 1/4] rtemsbsd: Added original TTCP code

2021-06-11 Thread Stephen Clark
Added the original Test TCP (TTCP) program in unmodified form. Also added the original README for TTCP. Both the README and the TTCP program were sourced from the first commit in the RTEMS network demos repository. --- rtemsbsd/ttcp/README | 27 ++ rtemsbsd/ttcp/ttcp.c | 841 +

[PATCH rtems-libbsd v2 2/4] rtemsbsd:Updated TTCP code with network demo code

2021-06-11 Thread Stephen Clark
Updated the TTCP code to match the ttcp.c in RTEMS network-demos repository (https://git.rtems.org/network-demos/). --- rtemsbsd/ttcp/ttcp.c | 91 +++- 1 file changed, 65 insertions(+), 26 deletions(-) diff --git a/rtemsbsd/ttcp/ttcp.c b/rtemsbsd/ttcp/ttcp.

Re: [PATCH] part of implimenting a monotonic clock in rtems part of this is not the final patch.

2021-06-11 Thread Christian Mauderer
Hello Zack, you say: "part of this is not the final patch" in the subject. So what is the intention of this patch? Do you need a complete review? Is it some kind of preview and you need input? If yes: For what parts do you need input? Best regards Christian On 11/06/2021 17:20, zack_on_the

Re: Can't build minimal buildset for libbsd on IMXRT

2021-06-11 Thread Christian Mauderer
Hello Peter, On 11/06/2021 15:47, dufa...@hda.com wrote: On Jun 11, 2021, at 09:36 , wrote: I *do* have a previously installed libbsd in my prefix. I don't understand the workflow properly. I figured that if I did "./waf distclean" in rtems-libbsd between switching build sets the build

Re: Can't build minimal buildset for libbsd on IMXRT

2021-06-11 Thread dufault
> On Jun 11, 2021, at 09:36 , wrote: > > I *do* have a previously installed libbsd in my prefix. I don't understand > the workflow properly. > > I figured that if I did "./waf distclean" in rtems-libbsd between switching > build sets the build woiuld bootstrap properly but evidently not. >

Re: Can't build minimal buildset for libbsd on IMXRT

2021-06-11 Thread dufault
> On Jun 11, 2021, at 09:22 , Christian Mauderer wrote: > > Yes, right. But if I didn't miss one, they should be all called only if INET6 > is defined (in rtemsbsd/include/rtems/bsd/local/opt_inet6.h). In the minimal > buildset that shouldn't be the case. > > Do you have a previously install

Re: Can't build minimal buildset for libbsd on IMXRT

2021-06-11 Thread dufault
> On Jun 11, 2021, at 09:20 , Joel Sherrill wrote: > > Any chance you forget to switch to the 6-freebsd-12 branch? No, I checked that. It is the branch with Jennifer's MVME5500 work in it, but that is off 6-freebsd-12. I suppose for completeness I can switch to the standard one. Peter ---

Re: Can't build minimal buildset for libbsd on IMXRT

2021-06-11 Thread Christian Mauderer
Hello Peter, On 11/06/2021 15:12, dufa...@hda.com wrote: On Jun 11, 2021, at 08:07 , Christian Mauderer wrote: Hello Peter, On 11/06/2021 13:23, Peter Dufault wrote: I tried to build the "minimal" buildset for the IMXRT BSP and I get undefined INET6 references - _bsd_inet6_pfil_hook, _bs

Re: Can't build minimal buildset for libbsd on IMXRT

2021-06-11 Thread Joel Sherrill
Any chance you forget to switch to the 6-freebsd-12 branch? On Fri, Jun 11, 2021, 8:12 AM wrote: > > > > On Jun 11, 2021, at 08:07 , Christian Mauderer > wrote: > > > > Hello Peter, > > > > On 11/06/2021 13:23, Peter Dufault wrote: > >> I tried to build the "minimal" buildset for the IMXRT BSP

Re: Can't build minimal buildset for libbsd on IMXRT

2021-06-11 Thread dufault
> On Jun 11, 2021, at 08:07 , Christian Mauderer wrote: > > Hello Peter, > > On 11/06/2021 13:23, Peter Dufault wrote: >> I tried to build the "minimal" buildset for the IMXRT BSP and I get >> undefined INET6 references - _bsd_inet6_pfil_hook, _bsd_ip6stat, etc. Only >> two executables are

[PATCH rtems-libbsd 1/2] racoon: Fix build with current toolchain

2021-06-11 Thread Christian Mauderer
During some newlib version, the _types_fd_set has been replaced with just fd_set. --- ipsec-tools/src/racoon/rtems-bsd-racoon-session-data.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipsec-tools/src/racoon/rtems-bsd-racoon-session-data.h b/ipsec-tools/src/racoon/rtem

[PATCH rtems-libbsd 2/2] builder.py: Only disable tests if they are there

2021-06-11 Thread Christian Mauderer
For checking the dependencies, the tests are removed. But if the tests are not enabled at all, that triggers a python exception. --- builder.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/builder.py b/builder.py index cbe5dc59..a34a1518 100755 --- a/builder.py +++ b/build

Re: Can't build minimal buildset for libbsd on IMXRT

2021-06-11 Thread Christian Mauderer
Hello Peter, On 11/06/2021 13:23, Peter Dufault wrote: I tried to build the "minimal" buildset for the IMXRT BSP and I get undefined INET6 references - _bsd_inet6_pfil_hook, _bsd_ip6stat, etc. Only two executables are created - swi01.exe and timeout01.exe. For "default" (almost) everything b

Can't build minimal buildset for libbsd on IMXRT

2021-06-11 Thread Peter Dufault
I tried to build the "minimal" buildset for the IMXRT BSP and I get undefined INET6 references - _bsd_inet6_pfil_hook, _bsd_ip6stat, etc. Only two executables are created - swi01.exe and timeout01.exe. For "default" (almost) everything builds except for a few that won't fit in RAM but I don't

Re: Running SPARC/LEON3 in TSIM-LEON3 simulator

2021-06-11 Thread Đức Anh
Hi Sebastian, Thank you. I didn't notice that. I recompile with SMP enabled, and the application doesn't run successfully in the TSIM-LEON3 simulator. Below is the error message: Initializing and starting from 0x4000 > > CPU 0 in error mode (tt=0x80, trap instruction) > (In trap table fo

Re: [PATCH v3] Update Strong APA Scheduler

2021-06-11 Thread Richi Dubey
Thanks, Done. Can you please check v4? On Fri, Jun 11, 2021 at 12:36 PM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > On 11/06/2021 09:04, Richi Dubey wrote: > > It is only used in /cpukit/score/src/schedulerstrongapa.c. Is it okay if > > I put it there? > > Yes, this is the righ

[PATCH v4] Update Strong APA Scheduler

2021-06-11 Thread Richi Dubey
This change allows for the migration of higher priority tasks on the arrival of a lower priority task limited by affinity constraints. --- cpukit/include/rtems/scheduler.h | 10 +- .../include/rtems/score/schedulerstrongapa.h | 162 ++- cpukit/score/src/schedulerstrongapa.c

[PATCH v1] bsps/i386: Update calibration of TSC to be more accurate

2021-06-11 Thread Jan Sommer
Closes #4455 --- bsps/i386/pc386/clock/ckinit.c | 72 ++ 1 file changed, 39 insertions(+), 33 deletions(-) diff --git a/bsps/i386/pc386/clock/ckinit.c b/bsps/i386/pc386/clock/ckinit.c index 09afe73cde..cbd2360fde 100644 --- a/bsps/i386/pc386/clock/ckinit.c +++ b/bs

Re: [PATCH v3] Update Strong APA Scheduler

2021-06-11 Thread Sebastian Huber
On 11/06/2021 09:04, Richi Dubey wrote: It is only used in /cpukit/score/src/schedulerstrongapa.c. Is it okay if I put it there? Yes, this is the right place. -- embedded brains GmbH Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany email: sebastian.hu...@embedded-brains.de phone: +49-

Re: [PATCH v3] Update Strong APA Scheduler

2021-06-11 Thread Richi Dubey
It is only used in /cpukit/score/src/schedulerstrongapa.c. Is it okay if I put it there? Thanks. On Fri, Jun 11, 2021 at 12:12 PM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > On 11/06/2021 07:45, Richi Dubey wrote: > > diff --git a/cpukit/include/rtems/score/schedulernodeimpl.h