Re: [rtems-tools commit] python: Provide support to select a valid python version.

2018-11-12 Thread Sebastian Huber

On 08/11/2018 23:58, Chris Johns wrote:

Module:rtems-tools
Branch:master
Commit:e058db02816d7729e7cfa898522a6073f5d7e714
Changeset: 
http://git.rtems.org/rtems-tools/commit/?id=e058db02816d7729e7cfa898522a6073f5d7e714

Author:Chris Johns 
Date:  Wed Nov  7 14:55:20 2018 +1100

python: Provide support to select a valid python version.

- Update imports after wrapping the code.
- Fix python3 issues.
- Fix config path issues for in repo and install runs.

Closes #3537


After this commit the rtems-test no longer works on my machine. All 
tests ends up in a timeout:


rtems-test --rtems-bsp=erc32 --rtems-tools=/build/rtems/5 
/build/git-build/b-erc32/

RTEMS Testing - Tester, 5.0.not_released
 Command Line: /build/rtems/5/bin/rtems-test --rtems-bsp=erc32 
--rtems-tools=/build/rtems/5 /build/git-build/b-erc32/

 Python: 3.6.5 (default, Mar 31 2018, 19:45:04) [GCC]
Host: Linux-4.12.14-lp150.12.25-default-x86_64-with-glibc2.3.4 (Linux 
huber-nb-linux.suse 4.12.14-lp150.12.25-default #1 SMP Thu Nov 1 
06:14:23 UTC 2018 (3fcf457) x86_64 x86_64)
[  1/694] p:0   f:0   u:0   e:0   I:0   B:0   t:0   i:0   W:0   | 
sparc/erc32: ada_base_sp.exe
[  4/694] p:0   f:0   u:0   e:0   I:0   B:0   t:0   i:0   W:0   | 
sparc/erc32: ada_ticker.exe
[  3/694] p:0   f:0   u:0   e:0   I:0   B:0   t:0   i:0   W:0   | 
sparc/erc32: ada_nsecs.exe
[  2/694] p:0   f:0   u:0   e:0   I:0   B:0   t:0   i:0   W:0   | 
sparc/erc32: ada_hello.exe
[  9/694] p:0   f:0   u:0   e:0   I:0   B:0   t:0   i:0   W:0   | 
sparc/erc32: ada_sp05.exe
[  6/694] p:0   f:0   u:0   e:0   I:0   B:0   t:0   i:0   W:0   | 
sparc/erc32: ada_sp02.exe
[  5/694] p:0   f:0   u:0   e:0   I:0   B:0   t:0   i:0   W:0   | 
sparc/erc32: ada_sp01.exe
[ 10/694] p:0   f:0   u:0   e:0   I:0   B:0   t:0   i:0   W:0   | 
sparc/erc32: ada_sp06.exe
[  7/694] p:0   f:0   u:0   e:0   I:0   B:0   t:0   i:0   W:0   | 
sparc/erc32: ada_sp03.exe
[  8/694] p:0   f:0   u:0   e:0   I:0   B:0   t:0   i:0   W:0   | 
sparc/erc32: ada_sp04.exe
[ 11/694] p:0   f:0   u:0   e:0   I:0   B:0   t:0   i:0   W:0   | 
sparc/erc32: ada_sp07.exe
[ 12/694] p:0   f:0   u:0   e:0   I:0   B:0   t:0   i:0   W:0   | 
sparc/erc32: ada_sp08.exe
[  1/694] p:0   f:0   u:0   e:0   I:0   B:0   t:0   i:0   W:0   | 
sparc/erc32: ada_base_sp.exe

Result: timeout    Time: 0:03:02.255187 ada_base_sp.exe
=>  gdb: /build/rtems/5/bin/sparc-rtems5-gdb -i=mi --nx --quiet 
/build/git-build/b-erc32/sparc-rtems5/c/erc32/testsuites/ada/samples/base_sp/ada_base_sp.exe

] =thread-group-added,id="i1"
] ~"Reading symbols from 
/build/git-build/b-erc32/sparc-rtems5/c/erc32/testsuites/ada/samples/base_sp/ada_base_sp.exe..."

] ~"done.\n"
] *** TIMEOUT TIMEOUT
[  2/694] p:0   f:0   u:0   e:0   I:0   B:0   t:0   i:0   W:0   | 
sparc/erc32: ada_hello.exe

Result: timeout    Time: 0:03:02.246428 ada_hello.exe
=>  gdb: /build/rtems/5/bin/sparc-rtems5-gdb -i=mi --nx --quiet 
/build/git-build/b-erc32/sparc-rtems5/c/erc32/testsuites/ada/samples/hello/ada_hello.exe

] =thread-group-added,id="i1"
] ~"Reading symbols from 
/build/git-build/b-erc32/sparc-rtems5/c/erc32/testsuites/ada/samples/hello/ada_hello.exe..."

] ~"done.\n"
] *** TIMEOUT TIMEOUT
[  3/694] p:0   f:0   u:0   e:0   I:0   B:0   t:0   i:0   W:0   | 
sparc/erc32: ada_nsecs.exe

Result: timeout    Time: 0:03:02.263136 ada_nsecs.exe
=>  gdb: /build/rtems/5/bin/sparc-rtems5-gdb -i=mi --nx --quiet 
/build/git-build/b-erc32/sparc-rtems5/c/erc32/testsuites/ada/samples/nsecs/ada_nsecs.exe

] =thread-group-added,id="i1"
] ~"Reading symbols from 
/build/git-build/b-erc32/sparc-rtems5/c/erc32/testsuites/ada/samples/nsecs/ada_nsecs.exe..."

] ~"done.\n"
] *** TIMEOUT TIMEOUT
[  4/694] p:0   f:0   u:0   e:0   I:0   B:0   t:0   i:0   W:0   | 
sparc/erc32: ada_ticker.exe

Result: timeout    Time: 0:03:02.245867 ada_ticker.exe
=>  gdb: /build/rtems/5/bin/sparc-rtems5-gdb -i=mi --nx --quiet 
/build/git-build/b-erc32/sparc-rtems5/c/erc32/testsuites/ada/samples/ticker/ada_ticker.exe

] =thread-group-added,id="i1"
] ~"Reading symbols from 
/build/git-build/b-erc32/sparc-rtems5/c/erc32/testsuites/ada/samples/ticker/ada_ticker.exe..."

] ~"done.\n"
] *** TIMEOUT TIMEOUT
[ 13/694] p:0   f:0   u:0   e:0   I:0   B:0   t:5   i:0   W:0   | 
sparc/erc32: ada_sp09.exe
[ 14/694] p:0   f:0   u:0   e:0   I:0   B:0   t:6   i:0   W:0   | 
sparc/erc32: ada_sp11.exe
[ 16/694] p:0   f:0   u:0   e:0   I:0   B:0   t:7   i:0   W:0   | 
sparc/erc32: ada_sp13.exe
[ 15/694] p:0   f:0   u:0   e:0   I:0   B:0   t:9   i:0   W:0   | 
sparc/erc32: ada_sp12.exe
[  5/694] p:0   f:0   u:0   e:0   I:0   B:0   t:0   i:0   W:0   | 
sparc/erc32: ada_sp01.exe

Result: timeout    Time: 0:03:02.239565 ada_sp01.exe
=>  gdb: /build/rtems/5/bin/sparc-rtems5-gdb -i=mi --nx --quiet 
/build/git-build/b-erc32/sparc-rtems5/c/erc32/testsuites/ada/sptests/sp01/ada_sp01.exe

] =thread-group-added,id="i1"
] ~"Reading symbols from 
/build/git-build/b-erc32/sparc-rtems5/c/erc32/testsuites/ada/sptests/sp01/ada_sp01.exe..."

] ~"done

Re: RTEMS State of the World Presentation

2018-11-12 Thread Sebastian Huber

On 11/11/2018 23:04, Joel Sherrill wrote:

Hi

Each year at the Flight Software Workshop I give a presentation on 
what has happened with RTEMS in the past year or so, things that need 
highlighting, and what needs attention and love. This year I have a 
request for similar slides for someone to present at an EPICS meeting 
on Thursday. Please help me with ideas and bullets. Slide ideas so far:


+ Libbsd - what all is there? I'm surprised at what's in there, so 
info on features, bsps supported, and what's next is appreciated.


* Update to a version close to the FreeBSD 12 release

* Update of mDNSResponder to latest version released by Apple

* Early next year I will port the NVMe support



+ Ecosystem - testing, rsb, Eclipse, tracing, etc


* Eclipse support is horrible out of date. I guess the plug-in needs a 
re-write.


* Flexible per-processor data with static allocation.

* Default SMP scheduler supports thread pinning. This is a building 
block for the Epoch Based Reclamation support in libbsd. This enables an 
efficient use of lock-free data structures in RTEMS.


* Most internal data structures are now hidden from .



+ New ports and bsps


* SMP support for RISC-V



+ Infrastructure status and needs

+ Relicensing

Anything else of interest to a random group of RTEMS aware folks and 
real users. Consider this status and marketing. :)


Ideas and meat for presentation appreciated.

--joel

___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel


--
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail  : sebastian.hu...@embedded-brains.de
PGP : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.

___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

[PATCH] moved comment above function declaration

2018-11-12 Thread Malte Münch
---
 cpukit/include/rtems/score/smplockmcs.h | 22 +++---
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/cpukit/include/rtems/score/smplockmcs.h 
b/cpukit/include/rtems/score/smplockmcs.h
index 5a1ad23dc9..ce7fd72261 100644
--- a/cpukit/include/rtems/score/smplockmcs.h
+++ b/cpukit/include/rtems/score/smplockmcs.h
@@ -127,6 +127,17 @@ static inline void _SMP_MCS_lock_Destroy( 
SMP_MCS_lock_Control *lock )
   (void) lock;
 }
 
+/**
+ * @brief Acquires an SMP MCS lock.
+ *
+ * This function will not disable interrupts.  The caller must ensure that the
+ * current thread of execution is not interrupted indefinite once it obtained
+ * the SMP MCS lock.
+ *
+ * @param lock The SMP MCS lock control.
+ * @param context The SMP MCS lock context.
+ * @param stats The SMP lock statistics.
+ */
 static inline void _SMP_MCS_lock_Do_acquire(
   SMP_MCS_lock_Control   *lock,
   SMP_MCS_lock_Context   *context
@@ -177,17 +188,6 @@ static inline void _SMP_MCS_lock_Do_acquire(
 #endif
 }
 
-/**
- * @brief Acquires an SMP MCS lock.
- *
- * This function will not disable interrupts.  The caller must ensure that the
- * current thread of execution is not interrupted indefinite once it obtained
- * the SMP MCS lock.
- *
- * @param lock The SMP MCS lock control.
- * @param context The SMP MCS lock context.
- * @param stats The SMP lock statistics.
- */
 #if defined(RTEMS_PROFILING)
   #define _SMP_MCS_lock_Acquire( lock, context, stats ) \
 _SMP_MCS_lock_Do_acquire( lock, context, stats )
-- 
2.19.1

___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel


Implementation of a new Resource Sharing Protocol

2018-11-12 Thread Malte Münch
Hi,

i am implementing a new resource sharing protocol for RTEMS as part of
my bachelor thesis. The thesis is about resource sharing protocols in
realtime environments on multicore systems. Right now i have to use a
spinlock for a protocol and found a helpful implementation/function in
cpukit/include/rtems/score/smplockmcs.h. My protocol requires the
calling task to be non-preemptable and the comment for the
acquire-function requires me to disable the interrupts.

The comment in cpukit/rtems/src/taskmode.c says that it is not possible
to change either interrupt levels or the preemptability of a task in a
SMP configuration. Do you have a pointer for me on how to overcome this
issue?

Best Regards

Malte
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel


[PATCH] tester: Remove riscv_generic

2018-11-12 Thread Hesham Almatary
Now each BSP/ISA variant has its own .ini file
---
 tester/rtems/testing/bsps/riscv64_generic.ini | 38 -
 tester/rtems/testing/bsps/riscv_generic.ini   | 38 -
 tester/rtems/testing/bsps/riscv_generic.mc| 53 ---
 3 files changed, 129 deletions(-)
 delete mode 100644 tester/rtems/testing/bsps/riscv64_generic.ini
 delete mode 100644 tester/rtems/testing/bsps/riscv_generic.ini
 delete mode 100644 tester/rtems/testing/bsps/riscv_generic.mc

diff --git a/tester/rtems/testing/bsps/riscv64_generic.ini 
b/tester/rtems/testing/bsps/riscv64_generic.ini
deleted file mode 100644
index c596a3a..000
--- a/tester/rtems/testing/bsps/riscv64_generic.ini
+++ /dev/null
@@ -1,38 +0,0 @@
-#
-# RTEMS Tools Project (http://www.rtems.org/)
-# Copyright 2010-2014 Chris Johns (chr...@rtems.org)
-# All rights reserved.
-#
-# This file is part of the RTEMS Tools package in 'rtems-tools'.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-#
-# 1. Redistributions of source code must retain the above copyright notice,
-# this list of conditions and the following disclaimer.
-#
-# 2. Redistributions in binary form must reproduce the above copyright notice,
-# this list of conditions and the following disclaimer in the documentation
-# and/or other materials provided with the distribution.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
-# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-#
-# The riscv64_generic BSP
-#
-[riscv64_generic]
-bsp   = riscv64_generic
-arch  = riscv64
-tester= %{_rtscripts}/spike.cfg
-bsp_spike_opts = --isa=RV64IMAFDC -m0x1000:0x1000
diff --git a/tester/rtems/testing/bsps/riscv_generic.ini 
b/tester/rtems/testing/bsps/riscv_generic.ini
deleted file mode 100644
index 626b949..000
--- a/tester/rtems/testing/bsps/riscv_generic.ini
+++ /dev/null
@@ -1,38 +0,0 @@
-#
-# RTEMS Tools Project (http://www.rtems.org/)
-# Copyright 2010-2014 Chris Johns (chr...@rtems.org)
-# All rights reserved.
-#
-# This file is part of the RTEMS Tools package in 'rtems-tools'.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-#
-# 1. Redistributions of source code must retain the above copyright notice,
-# this list of conditions and the following disclaimer.
-#
-# 2. Redistributions in binary form must reproduce the above copyright notice,
-# this list of conditions and the following disclaimer in the documentation
-# and/or other materials provided with the distribution.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
-# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-#
-# The riscv_generic BSP
-#
-[riscv_generic]
-bsp   = riscv_generic
-arch  = riscv32
-tester= %{_rtscripts}/spike.cfg
-bsp_spike_opts = --isa=RV32IMAFDC -m0x1000:0x1000
diff --git a/tester/rtems/testing/bsps/riscv_generic.mc 
b/tester/rtems/testing/bsps/riscv_generic.mc
deleted file mode 100644
index daff7c0..000
--- a/tester/rtems/testing/bsps/riscv_generic.mc
+++ /dev/null
@@ -1,53 +0,0 @@
-#
-# RTEMS Tools Project (http://www.rtems.org/)
-# Copyright 2010-2014 Chris Johns (chr...@rtems.org)
-# All rights reserved.
-#
-# This file is part of the RTEMS Tools package in 'rtems-tools'.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-#
-# 1. Redistributions of source code must ret

Re: [PATCH] moved comment above function declaration

2018-11-12 Thread Sebastian Huber
The API function (which is actually a macro) is _SMP_MCS_lock_Acquire(). 
The


_SMP_MCS_lock_Do_acquire() is an implementation detail which needs no 
documentation.

--
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail  : sebastian.hu...@embedded-brains.de
PGP : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.

___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: Implementation of a new Resource Sharing Protocol

2018-11-12 Thread Sebastian Huber

Hello Malte,

On 12/11/2018 11:28, Malte Münch wrote:

Hi,

i am implementing a new resource sharing protocol for RTEMS as part of
my bachelor thesis. The thesis is about resource sharing protocols in
realtime environments on multicore systems. Right now i have to use a
spinlock for a protocol and found a helpful implementation/function in
cpukit/include/rtems/score/smplockmcs.h. My protocol requires the
calling task to be non-preemptable and the comment for the
acquire-function requires me to disable the interrupts.


the lock API for the operating system implementation is defined in 
. Please do not use  
directly.




The comment in cpukit/rtems/src/taskmode.c says that it is not possible
to change either interrupt levels or the preemptability of a task in a
SMP configuration. Do you have a pointer for me on how to overcome this
issue?


You look at the wrong layer. This rtems_task_mode() is a part of the 
user API. It should not be used for the operating system implementation 
which deals with locking protocols.


--
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail  : sebastian.hu...@embedded-brains.de
PGP : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.

___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: [PATCH] moved comment above function declaration

2018-11-12 Thread Malte Münch
ah ok, sorry for that. I just compared it to all the other functions in
the file and thought this breaks the pattern. But your explanation makes
sense to me. I will take that into account in the future.

Best
Malte

On 12.11.18 11:38, Sebastian Huber wrote:
> The API function (which is actually a macro) is _SMP_MCS_lock_Acquire().
> The
> 
> _SMP_MCS_lock_Do_acquire() is an implementation detail which needs no
> documentation.
> 
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel


Re: [rtems-tools commit] python: Provide support to select a valid python version.

2018-11-12 Thread Chris Johns


> On 12 Nov 2018, at 7:54 pm, Sebastian Huber 
>  wrote:
> 
>> On 08/11/2018 23:58, Chris Johns wrote:
>> Module:rtems-tools
>> Branch:master
>> Commit:e058db02816d7729e7cfa898522a6073f5d7e714
>> Changeset: 
>> http://git.rtems.org/rtems-tools/commit/?id=e058db02816d7729e7cfa898522a6073f5d7e714
>> 
>> Author:Chris Johns 
>> Date:  Wed Nov  7 14:55:20 2018 +1100
>> 
>> python: Provide support to select a valid python version.
>> 
>> - Update imports after wrapping the code.
>> - Fix python3 issues.
>> - Fix config path issues for in repo and install runs.
>> 
>> Closes #3537
> 
> After this commit the rtems-test no longer works on my machine. All tests 
> ends up in a timeout:
> 
> rtems-test --rtems-bsp=erc32 --rtems-tools=/build/rtems/5 
> /build/git-build/b-erc32/

What about erc32-run?

Chris
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel


Re: [rtems-tools commit] python: Provide support to select a valid python version.

2018-11-12 Thread Sebastian Huber

On 12/11/2018 12:01, Chris Johns wrote:

On 12 Nov 2018, at 7:54 pm, Sebastian Huber 
 wrote:


On 08/11/2018 23:58, Chris Johns wrote:
Module:rtems-tools
Branch:master
Commit:e058db02816d7729e7cfa898522a6073f5d7e714
Changeset: 
http://git.rtems.org/rtems-tools/commit/?id=e058db02816d7729e7cfa898522a6073f5d7e714

Author:Chris Johns 
Date:  Wed Nov  7 14:55:20 2018 +1100

python: Provide support to select a valid python version.

- Update imports after wrapping the code.
- Fix python3 issues.
- Fix config path issues for in repo and install runs.

Closes #3537

After this commit the rtems-test no longer works on my machine. All tests ends 
up in a timeout:

rtems-test --rtems-bsp=erc32 --rtems-tools=/build/rtems/5 
/build/git-build/b-erc32/

What about erc32-run?


It behaves differently, but there are still timeouts:

rtems-test --rtems-bsp=erc32-run --rtems-tools=/build/rtems/5 
/build/git-build/b-erc32/

RTEMS Testing - Tester, 5.0.not_released
 Command Line: /build/rtems/5/bin/rtems-test --rtems-bsp=erc32-run 
--rtems-tools=/build/rtems/5 /build/git-build/b-erc32/

 Python: 3.6.5 (default, Mar 31 2018, 19:45:04) [GCC]
Host: Linux-4.12.14-lp150.12.25-default-x86_64-with-glibc2.3.4 (Linux 
huber-nb-linux.suse 4.12.14-lp150.12.25-default #1 SMP Thu Nov 1 
06:14:23 UTC 2018 (3fcf457) x86_64 x86_64)
[  2/694] p:0   f:0   u:0   e:0   I:0   B:0   t:0   i:0   W:0   | 
sparc/erc32: ada_hello.exe
[  3/694] p:0   f:0   u:0   e:0   I:0   B:0   t:0   i:0   W:0   | 
sparc/erc32: ada_nsecs.exe
[  7/694] p:0   f:0   u:0   e:0   I:0   B:0   t:0   i:0   W:0   | 
sparc/erc32: ada_sp03.exe
[  6/694] p:0   f:0   u:0   e:0   I:0   B:0   t:0   i:0   W:0   | 
sparc/erc32: ada_sp02.exe
[  4/694] p:0   f:0   u:0   e:0   I:0   B:0   t:0   i:0   W:0   | 
sparc/erc32: ada_ticker.exe
[ 11/694] p:0   f:0   u:0   e:0   I:0   B:0   t:0   i:0   W:0   | 
sparc/erc32: ada_sp07.exe
[  5/694] p:0   f:0   u:0   e:0   I:0   B:0   t:0   i:0   W:0   | 
sparc/erc32: ada_sp01.exe
[ 10/694] p:0   f:0   u:0   e:0   I:0   B:0   t:0   i:0   W:0   | 
sparc/erc32: ada_sp06.exe
[  9/694] p:0   f:0   u:0   e:0   I:0   B:0   t:0   i:0   W:0   | 
sparc/erc32: ada_sp05.exe
[  8/694] p:0   f:0   u:0   e:0   I:0   B:0   t:0   i:0   W:0   | 
sparc/erc32: ada_sp04.exe
[  1/694] p:0   f:0   u:0   e:0   I:0   B:0   t:0   i:0   W:0   | 
sparc/erc32: ada_base_sp.exe
[ 12/694] p:0   f:0   u:0   e:0   I:0   B:0   t:0   i:0   W:0   | 
sparc/erc32: ada_sp08.exe
[  1/694] p:0   f:0   u:0   e:0   I:0   B:0   t:0   i:0   W:0   | 
sparc/erc32: ada_base_sp.exe
[  2/694] p:0   f:0   u:0   e:0   I:0   B:0   t:0   i:0   W:0   | 
sparc/erc32: ada_hello.exe
[  3/694] p:0   f:0   u:0   e:0   I:0   B:0   t:0   i:0   W:0   | 
sparc/erc32: ada_nsecs.exe
[ 14/694] p:6   f:0   u:0   e:0   I:0   B:0   t:0   i:0   W:0   | 
sparc/erc32: ada_sp11.exe
[ 13/694] p:6   f:0   u:0   e:0   I:0   B:0   t:0   i:0   W:0   | 
sparc/erc32: ada_sp09.exe
[ 15/694] p:6   f:0   u:0   e:0   I:0   B:0   t:0   i:0   W:0   | 
sparc/erc32: ada_sp12.exe
[ 18/694] p:6   f:0   u:0   e:0   I:0   B:0   t:0   i:0   W:0   | 
sparc/erc32: ada_sp15.exe
[ 17/694] p:6   f:0   u:0   e:0   I:0   B:0   t:0   i:0   W:0   | 
sparc/erc32: ada_sp14.exe
[ 16/694] p:6   f:0   u:0   e:0   I:0   B:0   t:0   i:0   W:0   | 
sparc/erc32: ada_sp13.exe
[ 19/694] p:6   f:0   u:0   e:0   I:0   B:0   t:1   i:0   W:0   | 
sparc/erc32: ada_sp16.exe
[  4/694] p:0   f:0   u:0   e:0   I:0   B:0   t:0   i:0   W:0   | 
sparc/erc32: ada_ticker.exe

Result: timeout    Time: 0:03:00.250565 ada_ticker.exe
=>  run: /build/rtems/5/bin/sparc-rtems5-run 
/build/git-build/b-erc32/sparc-rtems5/c/erc32/testsuites/ada/samples/ticker/ada_ticker.exe

]
]
]
]
=>  test start: ADA TICKER
] *** BEGIN OF TEST ADA TICKER ***
] *** TEST VERSION: 5.0.0.9b55081eb6c686e3b5fde13e6c84e021639317d3
] *** TEST STATE: EXPECTED-PASS
] *** TEST BUILD: RTEMS_DEBUG RTEMS_NETWORKING RTEMS_POSIX_API RTEMS_SMP
] *** TEST TOOLS: 7.3.0 20180125 (RTEMS 5, RSB 
30da0c720b78eba16a3f5272206c07415368617b, Newlib 
2ab57ad59bc35dafffa69cd4da5e228971de069f)

] TA1 - clock_get -  9: 0: 0   12/31/1988
] TA2 - clock_get -  9: 0: 0   12/31/1988
] TA3 - clock_get -  9: 0: 0   12/31/1988
] TA1 - clock_get -  9: 0: 5   12/31/1988
] *** TIMEOUT TIMEOUT
[  5/694] p:0   f:0   u:0   e:0   I:0   B:0   t:0   i:0   W:0   | 
sparc/erc32: ada_sp01.exe

Result: timeout    Time: 0:03:00.233552 ada_sp01.exe
=>  run: /build/rtems/5/bin/sparc-rtems5-run 
/build/git-build/b-erc32/sparc-rtems5/c/erc32/testsuites/ada/sptests/sp01/ada_sp01.exe


--
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail  : sebastian.hu...@embedded-brains.de
PGP : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.

___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: [rtems-tools commit] python: Provide support to select a valid python version.

2018-11-12 Thread Sebastian Huber

On 12/11/2018 12:07, Sebastian Huber wrote:

Result: timeout    Time: 0:03:00.250565 ada_ticker.exe
=>  run: /build/rtems/5/bin/sparc-rtems5-run 
/build/git-build/b-erc32/sparc-rtems5/c/erc32/testsuites/ada/samples/ticker/ada_ticker.exe

]
]
]
]
=>  test start: ADA TICKER
] *** BEGIN OF TEST ADA TICKER ***
] *** TEST VERSION: 5.0.0.9b55081eb6c686e3b5fde13e6c84e021639317d3
] *** TEST STATE: EXPECTED-PASS
] *** TEST BUILD: RTEMS_DEBUG RTEMS_NETWORKING RTEMS_POSIX_API RTEMS_SMP
] *** TEST TOOLS: 7.3.0 20180125 (RTEMS 5, RSB 
30da0c720b78eba16a3f5272206c07415368617b, Newlib 
2ab57ad59bc35dafffa69cd4da5e228971de069f)

] TA1 - clock_get -  9: 0: 0   12/31/1988
] TA2 - clock_get -  9: 0: 0   12/31/1988
] TA3 - clock_get -  9: 0: 0   12/31/1988
] TA1 - clock_get -  9: 0: 5   12/31/1988
] *** TIMEOUT TIMEOUT
[  5/694] p:0   f:0   u:0   e:0   I:0   B:0   t:0   i:0   W:0   | 
sparc/erc32: ada_sp01.exe

Result: timeout    Time: 0:03:00.233552 ada_sp01.exe
=>  run: /build/rtems/5/bin/sparc-rtems5-run 
/build/git-build/b-erc32/sparc-rtems5/c/erc32/testsuites/ada/sptests/sp01/ada_sp01.exe


If I run the command directly:

time /build/rtems/5/bin/sparc-rtems5-run 
/build/git-build/b-erc32/sparc-rtems5/c/erc32/testsuites/ada/samples/ticker/ada_ticker.exe





*** BEGIN OF TEST ADA TICKER ***
*** TEST VERSION: 5.0.0.9b55081eb6c686e3b5fde13e6c84e021639317d3
*** TEST STATE: EXPECTED-PASS
*** TEST BUILD: RTEMS_DEBUG RTEMS_NETWORKING RTEMS_POSIX_API RTEMS_SMP
*** TEST TOOLS: 7.3.0 20180125 (RTEMS 5, RSB 
30da0c720b78eba16a3f5272206c07415368617b, Newlib 
2ab57ad59bc35dafffa69cd4da5e228971de069f)

TA1 - clock_get -  9: 0: 0   12/31/1988
TA2 - clock_get -  9: 0: 0   12/31/1988
TA3 - clock_get -  9: 0: 0   12/31/1988
TA1 - clock_get -  9: 0: 5   12/31/1988
TA2 - clock_get -  9: 0:10   12/31/1988
TA1 - clock_get -  9: 0:10   12/31/1988
TA1 - clock_get -  9: 0:15   12/31/1988
TA3 - clock_get -  9: 0:15   12/31/1988
TA2 - clock_get -  9: 0:20   12/31/1988
TA1 - clock_get -  9: 0:20   12/31/1988
TA1 - clock_get -  9: 0:25   12/31/1988
TA2 - clock_get -  9: 0:30   12/31/1988
TA1 - clock_get -  9: 0:30   12/31/1988
TA3 - clock_get -  9: 0:30   12/31/1988

*** END OF TEST ADA TICKER ***


*** FATAL ***
fatal source: 5 (RTEMS_FATAL_SOURCE_EXIT)
fatal code: 0 (0x)
RTEMS version: 5.0.0.9b55081eb6c686e3b5fde13e6c84e021639317d3
RTEMS tools: 7.3.0 20180125 (RTEMS 5, RSB 
30da0c720b78eba16a3f5272206c07415368617b, Newlib 
2ab57ad59bc35dafffa69cd4da5e228971de069f)

executing thread ID: 0x08a010002
executing thread name: TA1

real    0m0.658s
user    0m0.586s
sys 0m0.073s

--
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail  : sebastian.hu...@embedded-brains.de
PGP : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.

___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: [PATCH] tester: Remove riscv_generic

2018-11-12 Thread Joel Sherrill
If those are the only references, to ahead and push it.

Thanks for adding the remaining variants to the tester.

On Mon, Nov 12, 2018, 4:29 AM Hesham Almatary  Now each BSP/ISA variant has its own .ini file
> ---
>  tester/rtems/testing/bsps/riscv64_generic.ini | 38 -
>  tester/rtems/testing/bsps/riscv_generic.ini   | 38 -
>  tester/rtems/testing/bsps/riscv_generic.mc| 53 ---
>  3 files changed, 129 deletions(-)
>  delete mode 100644 tester/rtems/testing/bsps/riscv64_generic.ini
>  delete mode 100644 tester/rtems/testing/bsps/riscv_generic.ini
>  delete mode 100644 tester/rtems/testing/bsps/riscv_generic.mc
>
> diff --git a/tester/rtems/testing/bsps/riscv64_generic.ini
> b/tester/rtems/testing/bsps/riscv64_generic.ini
> deleted file mode 100644
> index c596a3a..000
> --- a/tester/rtems/testing/bsps/riscv64_generic.ini
> +++ /dev/null
> @@ -1,38 +0,0 @@
> -#
> -# RTEMS Tools Project (http://www.rtems.org/)
> -# Copyright 2010-2014 Chris Johns (chr...@rtems.org)
> -# All rights reserved.
> -#
> -# This file is part of the RTEMS Tools package in 'rtems-tools'.
> -#
> -# Redistribution and use in source and binary forms, with or without
> -# modification, are permitted provided that the following conditions are
> met:
> -#
> -# 1. Redistributions of source code must retain the above copyright
> notice,
> -# this list of conditions and the following disclaimer.
> -#
> -# 2. Redistributions in binary form must reproduce the above copyright
> notice,
> -# this list of conditions and the following disclaimer in the
> documentation
> -# and/or other materials provided with the distribution.
> -#
> -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
> IS"
> -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
> THE
> -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
> PURPOSE
> -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
> BE
> -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
> -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
> -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
> -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
> -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
> -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
> THE
> -# POSSIBILITY OF SUCH DAMAGE.
> -#
> -
> -#
> -# The riscv64_generic BSP
> -#
> -[riscv64_generic]
> -bsp   = riscv64_generic
> -arch  = riscv64
> -tester= %{_rtscripts}/spike.cfg
> -bsp_spike_opts = --isa=RV64IMAFDC -m0x1000:0x1000
> diff --git a/tester/rtems/testing/bsps/riscv_generic.ini
> b/tester/rtems/testing/bsps/riscv_generic.ini
> deleted file mode 100644
> index 626b949..000
> --- a/tester/rtems/testing/bsps/riscv_generic.ini
> +++ /dev/null
> @@ -1,38 +0,0 @@
> -#
> -# RTEMS Tools Project (http://www.rtems.org/)
> -# Copyright 2010-2014 Chris Johns (chr...@rtems.org)
> -# All rights reserved.
> -#
> -# This file is part of the RTEMS Tools package in 'rtems-tools'.
> -#
> -# Redistribution and use in source and binary forms, with or without
> -# modification, are permitted provided that the following conditions are
> met:
> -#
> -# 1. Redistributions of source code must retain the above copyright
> notice,
> -# this list of conditions and the following disclaimer.
> -#
> -# 2. Redistributions in binary form must reproduce the above copyright
> notice,
> -# this list of conditions and the following disclaimer in the
> documentation
> -# and/or other materials provided with the distribution.
> -#
> -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
> IS"
> -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
> THE
> -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
> PURPOSE
> -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
> BE
> -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
> -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
> -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
> -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
> -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
> -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
> THE
> -# POSSIBILITY OF SUCH DAMAGE.
> -#
> -
> -#
> -# The riscv_generic BSP
> -#
> -[riscv_generic]
> -bsp   = riscv_generic
> -arch  = riscv32
> -tester= %{_rtscripts}/spike.cfg
> -bsp_spike_opts = --isa=RV32IMAFDC -m0x1000:0x1000
> diff --git a/tester/rtems/testing/bsps/riscv_generic.mc
> b/tester/rtems/testing/bsps/riscv_generic.mc
> deleted file mode 100644
> index daff7c0..000
> --- a/tester/rtems/testing/bsps/riscv_generic.mc
> +++ /dev/null
> @@ -1,53 

Re: compile error in RTEMS header when using -std=c99?

2018-11-12 Thread Sebastian Huber

Hello Alan,

I removed several internal data types from . Now, it is 
possible to include  in -std=c99 mode.


https://devel.rtems.org/ticket/3598

On 12/09/2018 20:45, Cudmore, Alan P. (GSFC-5820) wrote:


Hello,

We are building our RTEMS applications with -std=c99 and other 
compiler warning switches.


On the latest RTEMS master and RTEMS 5 toolchain ( from yesterday ), 
when I include the -std=c99 compiler switch, the compilation fails in 
an RTEMS header.


Is it not recommended to use the “-std= “ switches when building RTEMS 
applications, or is this something that we should fix? We are able to 
use the “-std=c99” switches in 4.11. I noticed that the timestamp.h 
file did change between 4.11 and 5.x.


Details of the error are below.

Thanks,

Alan

It is reproducible with the “hello_world_c” example as follows:

Command from unmodified examples-v2 Makefile:

sparc-rtems5-gcc --pipe 
-B/home/alan/rtems/bsps/5/sparc-rtems5/leon3/lib/ -specs bsp_specs 
-qrtems   -Wall  -O2 -g -ffunction-sections -fdata-sections    
-mcpu=leon3   -c   -o o-optimize/test.o test.c


Command with -std=c99 added:

sparc-rtems5-gcc --pipe 
-B/home/alan/rtems/bsps/5/sparc-rtems5/leon3/lib/ -specs bsp_specs 
-qrtems  -std=c99 -Wall  -O2 -g -ffunction-sections -fdata-sections    
-mcpu=leon3 -c   -o o-optimize/test.o test.c


In file included from 
/home/alan/rtems/bsps/5/sparc-rtems5/leon3/lib/include/rtems/score/thread.h:36:0,


from 
/home/alan/rtems/bsps/5/sparc-rtems5/leon3/lib/include/rtems/score/heap.h:22,


from 
/home/alan/rtems/bsps/5/sparc-rtems5/leon3/lib/include/rtems/rtems/types.h:26,


from /home/alan/rtems/bsps/5/sparc-rtems5/leon3/lib/include/rtems.h:31,

from test.c:5:

/home/alan/rtems/bsps/5/sparc-rtems5/leon3/lib/include/rtems/score/timestamp.h: 
In function '_Timestamp_Divide':


/home/alan/rtems/bsps/5/sparc-rtems5/leon3/lib/include/rtems/score/timestamp.h:219:12: 
error: incompatible types when assigning to type 'struct timespec' 
from type 'int'


   _ts_left = sbttots( *_lhs );

^

/home/alan/rtems/bsps/5/sparc-rtems5/leon3/lib/include/rtems/score/timestamp.h:220:13: 
error: incompatible types when assigning to type 'struct timespec' 
from type 'int'


   _ts_right = sbttots( *_rhs );

^

/home/alan/rtems/bsps/5/sparc-rtems5/leon3/lib/include/rtems/score/timestamp.h: 
In function '_Timestamp_Get_nanoseconds':


/home/alan/rtems/bsps/5/sparc-rtems5/leon3/lib/include/rtems/score/timestamp.h:261:7: 
error: incompatible types when assigning to type 'struct timespec' 
from type 'int'


   _ts = sbttots( *_time );

   ^

/home/alan/rtems/bsps/5/sparc-rtems5/leon3/lib/include/rtems/score/timestamp.h: 
In function '_Timestamp_Get_as_nanoseconds':


/home/alan/rtems/bsps/5/sparc-rtems5/leon3/lib/include/rtems/score/timestamp.h:281:7: 
error: incompatible types when assigning to type 'struct timespec' 
from type 'int'


   _ts = sbttots( *_time );

   ^

/home/alan/rtems/bsps/5/sparc-rtems5/leon3/lib/include/rtems/score/timestamp.h: 
In function '_Timestamp_To_timespec':


/home/alan/rtems/bsps/5/sparc-rtems5/leon3/lib/include/rtems/score/timestamp.h:299:14: 
error: incompatible types when assigning to type 'struct timespec' 
from type 'int'


*_timespec = sbttots( *_timestamp );

^

/home/alan/rtems/bsps/5/sparc-rtems5/leon3/lib/include/rtems/score/timestamp.h: 
In function '_Timestamp_To_timeval':


/home/alan/rtems/bsps/5/sparc-rtems5/leon3/lib/include/rtems/score/timestamp.h:313:13: 
error: incompatible types when assigning to type 'struct timeval' from 
type 'int'


   *_timeval = sbttotv( *_timestamp );

^

In file included from 
/home/alan/rtems/bsps/5/sparc-rtems5/leon3/lib/include/rtems/score/timecounter.h:27:0,


from 
/home/alan/rtems/bsps/5/sparc-rtems5/leon3/lib/include/rtems/score/timecounterimpl.h:26,


from 
/home/alan/rtems/bsps/5/sparc-rtems5/leon3/lib/include/rtems/rtems/clock.h:37,


from /home/alan/rtems/bsps/5/sparc-rtems5/leon3/lib/include/rtems.h:40,

 from test.c:5:

/home/alan/rtems/bsps/5/sparc-rtems5/leon3/lib/include/sys/timetc.h: 
At top level:


/home/alan/rtems/bsps/5/sparc-rtems5/leon3/lib/include/sys/timetc.h:72:2: 
error: unknown type name 'u_int'


  u_int tc_flags;

  ^

In file included from 
/home/alan/rtems/bsps/5/sparc-rtems5/leon3/lib/include/rtems/confdefs.h:326:0,


from test.c:32:

/home/alan/rtems/bsps/5/sparc-rtems5/leon3/lib/include/rtems/imfs.h: 
In function '_IMFS_get_time':


/home/alan/rtems/bsps/5/sparc-rtems5/leon3/lib/include/rtems/imfs.h:343:18: 
error: storage size of 'now' isn't known


   struct bintime now;

  ^~~


___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel


--
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail  : sebastian.hu...@embedded-brains.de
PGP : Public key available on request.

Diese Nachricht i

Re: [PATCH v2] m68k/mcf52235: Add missing Copyright/License notices

2018-11-12 Thread Marçal
All right, I added the required years and now everything should be correct
and ready to apply.
Patch attached.

On Mon, Nov 12, 2018 at 7:34 AM Sebastian Huber <
sebastian.hu...@embedded-brains.de> wrote:

> On 11/11/2018 15:05, Marçal wrote:
> > Ok, thanks, but now I was fixing the patch with the format you told me
> > and I noticed that
> > rtems/bsps/m68k/mcf52235/start/bspgetcpuclockspeed.c, which already
> > had the copyright notice, uses a dash instead of a comma and a dot at
> > the end of the line (COPYRIGHT (c) 1989-2008.)
> > So, do I follow the IBM format or the bspgetcpuclockspeed.c format?
>
> I would follow the IBM format.
>
> --
> Sebastian Huber, embedded brains GmbH
>
> Address : Dornierstr. 4, D-82178 Puchheim, Germany
> Phone   : +49 89 189 47 41-16
> Fax : +49 89 189 47 41-09
> E-Mail  : sebastian.hu...@embedded-brains.de
> PGP : Public key available on request.
>
> Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
>
>
From 11eee4139bdd85f29b0162037f2820add688ec90 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mar=C3=A7al=20Comajoan=20Cara?= 
Date: Mon, 12 Nov 2018 17:25:19 +0100
Subject: [PATCH] m68k/mcf52235: Add missing Copyright/License notices

This work was part of GCI 2018.

Closes #2541.
---
 bsps/m68k/mcf52235/btimer/btimer.c| 11 +---
 bsps/m68k/mcf52235/clock/clock.c  | 13 ++
 bsps/m68k/mcf52235/console/console.c  | 26 +++
 bsps/m68k/mcf52235/console/debugio.c  | 19 ++
 bsps/m68k/mcf52235/include/bsp.h  | 14 +-
 bsps/m68k/mcf52235/include/tm27.h | 10 ++-
 .../m68k/mcf52235/start/bspgetcpuclockspeed.c |  2 +-
 bsps/m68k/mcf52235/start/init52235.c  | 12 +
 bsps/m68k/mcf52235/start/linkcmds | 11 +---
 bsps/m68k/mcf52235/start/start.S  |  9 +--
 10 files changed, 105 insertions(+), 22 deletions(-)

diff --git a/bsps/m68k/mcf52235/btimer/btimer.c b/bsps/m68k/mcf52235/btimer/btimer.c
index f9122542c2..2f0d54b00b 100644
--- a/bsps/m68k/mcf52235/btimer/btimer.c
+++ b/bsps/m68k/mcf52235/btimer/btimer.c
@@ -2,10 +2,13 @@
  *  Timer Init
  *
  *  Use the last DMA timer (DTIM3) as the diagnostic timer.
- *
- *  Author: W. Eric Norum 
- *
- *  COPYRIGHT (c) 2005.
+ */
+
+/*
+ *  COPYRIGHT (c) 2005, 2018
+ *  Eric Norum 
+ *  Matthew Riek 
+ *  Ralf Corsepius 
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
diff --git a/bsps/m68k/mcf52235/clock/clock.c b/bsps/m68k/mcf52235/clock/clock.c
index d5e1817536..101d0a9d93 100644
--- a/bsps/m68k/mcf52235/clock/clock.c
+++ b/bsps/m68k/mcf52235/clock/clock.c
@@ -2,6 +2,19 @@
  * Use the last periodic interval timer (PIT2) as the system clock.
  */
 
+/*
+ *  COPYRIGHT (c) 2008, 2018
+ *  Alexander Krutwig 
+ *  Matthew Riek 
+ *  Ralf Corsepius 
+ *  Sebastian Huber 
+ *  On-Line Applications Research Corporation (OAR).
+ *
+ *  The license and distribution terms for this file may be
+ *  found in the file LICENSE in this distribution or at
+ *  http://www.rtems.org/license/LICENSE.
+ */
+
 #include 
 #include 
 #include 
diff --git a/bsps/m68k/mcf52235/console/console.c b/bsps/m68k/mcf52235/console/console.c
index c2b6e36bfa..705dbceee5 100644
--- a/bsps/m68k/mcf52235/console/console.c
+++ b/bsps/m68k/mcf52235/console/console.c
@@ -1,8 +1,24 @@
- /*
-  *  Multi UART console serial I/O.
-  *
-  * TO DO: Add DMA input/output
-  */
+/*
+ *  Multi UART console serial I/O.
+ *
+ *  TO DO: Add DMA input/output
+ */
+
+/*
+ *  COPYRIGHT (c) 2005, 2018
+ *  Eric Norum 
+ *  Kevin Kirspel 
+ *  Matthew Riek 
+ *  Mike Bertosh 
+ *  Ralf Corsepius 
+ *  Sebastian Huber 
+ *  Thomas Doerfler 
+ *  On-Line Applications Research Corporation (OAR).
+ *
+ *  The license and distribution terms for this file may be
+ *  found in the file LICENSE in this distribution or at
+ *  http://www.rtems.org/license/LICENSE.
+ */
 
 #include 
 #include 
diff --git a/bsps/m68k/mcf52235/console/debugio.c b/bsps/m68k/mcf52235/console/debugio.c
index 1fbf4b09d7..d6177505af 100644
--- a/bsps/m68k/mcf52235/console/debugio.c
+++ b/bsps/m68k/mcf52235/console/debugio.c
@@ -1,8 +1,17 @@
- /*
-  *  Multi UART console serial I/O.
-  *
-  * TO DO: Add DMA input/output
-  */
+/*
+ *  Multi UART console serial I/O.
+ *
+ *  TO DO: Add DMA input/output
+ */
+
+/*
+ *  COPYRIGHT (c) 2008, 2018
+ *  On-Line Applications Research Corporation (OAR).
+ *
+ *  The license and distribution terms for this file may be
+ *  found in the file LICENSE in this distribution or at
+ *  http://www.rtems.org/license/LICENSE.
+ */
 
 #include 
 #include 
diff --git a/bsps/m68k/mcf52235/include/bsp.h b/bsps/m68k/mcf52235/include/bsp.h
index ef3b928a24..0901c9df74 100644
--- a/bsps/m68k/mcf52235/include/bsp.h
+++ b/bsps/m68k/mcf52235/include/bsp.h
@@ -7,7 +7,19 @@
  */
 
 /*
- *  mcf52235 BSP header file
+ *  COPYRIGHT (c) 2005, 2018
+ *  Chris Johns 
+ *  Eri

Re: [rtems-tools commit] python: Provide support to select a valid python version.

2018-11-12 Thread Chris Johns


On 12/11/2018 22:10, Sebastian Huber wrote:
> On 12/11/2018 12:07, Sebastian Huber wrote:
>> Result: timeout    Time: 0:03:00.250565 ada_ticker.exe
>> =>  run: /build/rtems/5/bin/sparc-rtems5-run
>> /build/git-build/b-erc32/sparc-rtems5/c/erc32/testsuites/ada/samples/ticker/ada_ticker.exe
>>
>> ]
>> ]
>> ]
>> ]
>> =>  test start: ADA TICKER
>> ] *** BEGIN OF TEST ADA TICKER ***
>> ] *** TEST VERSION: 5.0.0.9b55081eb6c686e3b5fde13e6c84e021639317d3
>> ] *** TEST STATE: EXPECTED-PASS
>> ] *** TEST BUILD: RTEMS_DEBUG RTEMS_NETWORKING RTEMS_POSIX_API RTEMS_SMP
>> ] *** TEST TOOLS: 7.3.0 20180125 (RTEMS 5, RSB
>> 30da0c720b78eba16a3f5272206c07415368617b, Newlib
>> 2ab57ad59bc35dafffa69cd4da5e228971de069f)
>> ] TA1 - clock_get -  9: 0: 0   12/31/1988
>> ] TA2 - clock_get -  9: 0: 0   12/31/1988
>> ] TA3 - clock_get -  9: 0: 0   12/31/1988
>> ] TA1 - clock_get -  9: 0: 5   12/31/1988
>> ] *** TIMEOUT TIMEOUT
>> [  5/694] p:0   f:0   u:0   e:0   I:0   B:0   t:0   i:0   W:0   | 
>> sparc/erc32:
>> ada_sp01.exe
>> Result: timeout    Time: 0:03:00.233552 ada_sp01.exe
>> =>  run: /build/rtems/5/bin/sparc-rtems5-run
>> /build/git-build/b-erc32/sparc-rtems5/c/erc32/testsuites/ada/sptests/sp01/ada_sp01.exe
>>
> 
> If I run the command directly:
> 
> time /build/rtems/5/bin/sparc-rtems5-run
> /build/git-build/b-erc32/sparc-rtems5/c/erc32/testsuites/ada/samples/ticker/ada_ticker.exe
> 

Thanks. I suspect this is a python3 issue in the tester code. I wonder if:

 $ export RTEMS_PYTHON_OVERRIDE=python2

lets the tester work. This is how you can override the automatic detection of
the python being used. The rtems-tools repo is now defaulting to python3. Given
these failures that are appearing this was a good choice.

Chris
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: [rtems-tools commit] python: Provide support to select a valid python version.

2018-11-12 Thread Sebastian Huber

On 13/11/2018 02:25, Chris Johns wrote:

On 12/11/2018 22:10, Sebastian Huber wrote:

On 12/11/2018 12:07, Sebastian Huber wrote:

Result: timeout    Time: 0:03:00.250565 ada_ticker.exe
=>  run: /build/rtems/5/bin/sparc-rtems5-run
/build/git-build/b-erc32/sparc-rtems5/c/erc32/testsuites/ada/samples/ticker/ada_ticker.exe

]
]
]
]
=>  test start: ADA TICKER
] *** BEGIN OF TEST ADA TICKER ***
] *** TEST VERSION: 5.0.0.9b55081eb6c686e3b5fde13e6c84e021639317d3
] *** TEST STATE: EXPECTED-PASS
] *** TEST BUILD: RTEMS_DEBUG RTEMS_NETWORKING RTEMS_POSIX_API RTEMS_SMP
] *** TEST TOOLS: 7.3.0 20180125 (RTEMS 5, RSB
30da0c720b78eba16a3f5272206c07415368617b, Newlib
2ab57ad59bc35dafffa69cd4da5e228971de069f)
] TA1 - clock_get -  9: 0: 0   12/31/1988
] TA2 - clock_get -  9: 0: 0   12/31/1988
] TA3 - clock_get -  9: 0: 0   12/31/1988
] TA1 - clock_get -  9: 0: 5   12/31/1988
] *** TIMEOUT TIMEOUT
[  5/694] p:0   f:0   u:0   e:0   I:0   B:0   t:0   i:0   W:0   | sparc/erc32:
ada_sp01.exe
Result: timeout    Time: 0:03:00.233552 ada_sp01.exe
=>  run: /build/rtems/5/bin/sparc-rtems5-run
/build/git-build/b-erc32/sparc-rtems5/c/erc32/testsuites/ada/sptests/sp01/ada_sp01.exe


If I run the command directly:

time /build/rtems/5/bin/sparc-rtems5-run
/build/git-build/b-erc32/sparc-rtems5/c/erc32/testsuites/ada/samples/ticker/ada_ticker.exe


Thanks. I suspect this is a python3 issue in the tester code. I wonder if:

  $ export RTEMS_PYTHON_OVERRIDE=python2

lets the tester work. This is how you can override the automatic detection of
the python being used. The rtems-tools repo is now defaulting to python3. Given
these failures that are appearing this was a good choice.


No, this didn't work. I still get the timeouts.

--
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail  : sebastian.hu...@embedded-brains.de
PGP : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.

___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: [PATCH v2] m68k/mcf52235: Add missing Copyright/License notices

2018-11-12 Thread Sebastian Huber



On 12/11/2018 17:30, Marçal wrote:

diff --git a/bsps/m68k/mcf52235/btimer/btimer.c 
b/bsps/m68k/mcf52235/btimer/btimer.c
index f9122542c2..2f0d54b00b 100644
--- a/bsps/m68k/mcf52235/btimer/btimer.c
+++ b/bsps/m68k/mcf52235/btimer/btimer.c
@@ -2,10 +2,13 @@
   *  Timer Init
   *
   *  Use the last DMA timer (DTIM3) as the diagnostic timer.
- *
- *  Author: W. Eric Norum
- *
- *  COPYRIGHT (c) 2005.
+ */
+
+/*
+ *  COPYRIGHT (c) 2005, 2018


"Copyright (c)" is commonly used, e.g. just look at the FreeBSD and 
Linux sources.



+ *  Eric Norum


The last contribution from Eric was in 2005.

Each author should have its own "Copyright (c) ,  
" line.



+ *  Matthew Riek


For example  Matthew Riek contributed only in 2008.


+ *  Ralf Corsepius
   *  On-Line Applications Research Corporation (OAR).


If you look at the changes, then it is questionable that these two are 
copyright holders of contents in this file. I see only some cosmetic 
interface changes. What is the rule for adding a copyright statement?


--
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail  : sebastian.hu...@embedded-brains.de
PGP : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.

___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel