Re: [PATCH] tests: Add header for RTEMS test printer

2023-10-04 Thread Heinz Junkes
Leads to problems compiling legacy-stack:


Waf: Entering directory 
`/home/rtems/MVME6100_6_legacy_INST/rsb/rtems/build/rtems-net-legacy-3a83bcef4bd62fda5c0f9c94dd649fc32d962ab2-powerpc-rtems-1/rtems-net-legacy-3a83bcef4bd62fda5c0f9c94dd649fc32d962ab2/build/powerpc-rtems6-beatnik'
[1/1] Compiling include/machine/rtems-net-legacy.h.in
[  2/223] Compiling bsps/powerpc/beatnik/net/porting/if_xxx_rtems.c
[  3/223] Compiling bsps/powerpc/beatnik/net/if_em/if_em_rtems.c
[  4/223] Compiling bsps/powerpc/beatnik/net/if_em/if_em.c
[  5/223] Compiling bsps/powerpc/beatnik/net/if_mve/mv643xx_eth.c
[  6/223] Compiling bsps/powerpc/beatnik/net/if_gfe/if_gfe_rtems.c
[  7/223] Compiling bsps/powerpc/beatnik/net/if_em/if_em_hw.c
[  8/223] Compiling bsps/powerpc/beatnik/net/support/early_link_status.c
[  9/223] Compiling bsps/powerpc/beatnik/net/if_gfe/if_gfe.c
[ 10/223] Compiling bsps/powerpc/beatnik/net/support/bsp_attach.c
[ 11/223] Compiling librpc/src/xdr/xdr_reference.c
[ 12/223] Compiling netinet/if_ether.c
[ 13/223] Compiling rtems/rtems_syscall.c
[ 14/223] Compiling rtems/rtems_dhcp.c
[ 15/223] Compiling librpc/src/xdr/xdr_rec.c
[ 16/223] Compiling librpc/src/xdr/xdr_mem.c
[ 17/223] Compiling net/slcompress.c
[ 18/223] Compiling librpc/src/xdr/xdr_float.c
[ 19/223] Compiling net/rtsock.c
[ 20/223] Compiling net/route.c
[ 21/223] Compiling libtest/testrun.c
[ 22/223] Compiling libc/res_stubs.c
[ 23/223] Compiling bsps/shared/net/if_dc.c
[ 24/223] Compiling libc/res_mkquery.c
[ 25/223] Compiling librpc/src/rpc/bindresvport.c
[ 26/223] Compiling libc/gethostbyht.c
[ 27/223] Compiling net/if_ethersubr.c
[ 28/223] Compiling librpc/src/rpc/pmap_prot.c
[ 29/223] Compiling librpc/src/rpc/pmap_prot2.c
[ 30/223] Compiling net/if.c
[ 31/223] Compiling librpc/src/rpc/pmap_rmt.c
[ 32/223] Compiling librpc/src/rpc/rpc_callmsg.c
[ 33/223] Compiling rtems/rtems_showmbuf.c
[ 34/223] Compiling librpc/src/rpc/pmap_getport.c
[ 35/223] Compiling rtems/rtems_showroute.c
[ 36/223] Compiling bsps/shared/net/sonic.c
[ 37/223] Compiling librpc/src/rpc/pmap_clnt.c
[ 38/223] Compiling rtems/rtems-kernel-program.c
[ 39/223] Compiling rtems/rtems_showipstat.c
[ 40/223] Compiling libtest/testwrappers.c
[ 41/223] Compiling libtest/testbusy.c
[ 42/223] Compiling librpc/src/rpc/getrpcport.c
[ 43/223] Compiling libc/res_update.c
[ 44/223] Compiling libc/send.c
[ 45/223] Compiling librpc/src/rpc/clnt_tcp.c
[ 46/223] Compiling bsps/shared/net/i82586.c
[ 47/223] Compiling libc/res_mkupdate.c
../../libtest/testwrappers.c: In function '__wrap_printf':
../../libtest/testwrappers.c:24:3: error: unknown type name 'va_list'
   24 |   va_list ap;
  |   ^~~
../../libtest/testwrappers.c:14:1: note: 'va_list' is defined in header 
''; did you forget to '#include '?
   13 | #include 
  +++ |+#include 
   14 |
../../libtest/testwrappers.c:28:6: error: 'rtems_test_printer' undeclared 
(first use in this function); did you mean 'rtems_test_run'?
   28 | &rtems_test_printer,
  |  ^~
  |  rtems_test_run
../../libtest/testwrappers.c:28:6: note: each undeclared identifier is reported 
only once for each function it appears in

Waf: Leaving directory 
`/home/rtems/MVME6100_6_legacy_INST/rsb/rtems/build/rtems-net-legacy-3a83bcef4bd62fda5c0f9c94dd649fc32d962ab2-powerpc-rtems-1/rtems-net-legacy-3a83bcef4bd62fda5c0f9c94dd649fc32d962ab2/build/powerpc-rtems6-beatnik'
Build failed
 -> task in 'netobjs' failed with exit status 1 (run with -v to display more 
information)
shell cmd failed: /bin/sh -ex  
/home/rtems/MVME6100_6_legacy_INST/rsb/rtems/build/rtems-net-legacy-3a83bcef4bd62fda5c0f9c94dd649fc32d962ab2-powerpc-rtems-1/do-build
error: building 
rtems-net-legacy-3a83bcef4bd62fda5c0f9c94dd649fc32d962ab2-powerpc-rtems-1

> On 25. Sep 2023, at 08:40, Chris Johns  wrote:
>
> Looks good
>
> Thanks
> Chris
>
> On 22/9/2023 10:40 pm, Sebastian Huber wrote:
>> The  header file is required for every RTEMS test
>> program.  Move the RTEMS test printer support to a dedicated header file
>> .  This removes an unnecessary dependency to the
>> RTEMS printer support in .
>>
>> Tests using the RTEMS Testing Framework no longer depend on the
>> .
>> ---
>> cpukit/include/rtems/test-info.h  | 18 +
>> cpukit/include/rtems/test-printer.h   | 69 +++
>> cpukit/libtest/testbeginend.c |  1 +
>> cpukit/libtest/testwrappers.c |  2 +-
>> spec/build/cpukit/librtemstest.yml|  1 +
>> testsuites/benchmarks/linpack/linpack-pc.c|  2 +-
>> testsuites/benchmarks/whetstone/whetstone.c   |  2 +-
>> testsuites/fstests/tftpfs/init.c  |  1 +
>> testsuites/libtests/dl01/dl01-o1.c|  2 +-
>> testsuites/libtests/dl02/dl02-o1.c|  2 +-
>> testsuites/libtests/dl02/dl02-o2.c|  2 +-
>> testsuites/libtests/dl05/dl05-o5.cc   |  2 +-
>> testsuites/libtests/dl06/dl06-o1.c|  2 +-
>> testsuites/libtests/dl06/dl06-o2.c

Xilinx MPSoC, programmable logic download

2023-10-04 Thread emanuel stiebler

Hi all,
are there any tools in RTEMS to download the bit stream into the logic 
part of the FPGA, after boot?


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


ADA, gnat, rtems 6, ubuntu 22LTS

2023-10-04 Thread emanuel stiebler

I just tried to compile the tools for rtems6,
and just with "C", everything(?) works.

Trying to add ADA to the tools, it fails, complaining about gnat not 
being installed.

In the logfile:

hecking for objdir... .libs
configure: WARNING: using in-tree isl, disabling version check
configure: error: GNAT is required to build ada
shell cmd failed: /bin/sh -ex 
/AD1/PUB/RTEMS.work/rsb/rtems/build/aarch64-rtems6-gcc-506cb58-newlib-a021448-x86_64-linux-gnu-1/do-build
error: building 
aarch64-rtems6-gcc-506cb58-newlib-a021448-x86_64-linux-gnu-1emu@W531:/AD1/PUB/RTEMS.work/rsb/rtems$ 




but "gnat" gives me:

DDD@W531:/AD1/PUB/RTEMS.work/rsb/rtems$ gnat
GNAT 12.3.0
Copyright 1996-2022, Free Software Foundation, Inc.

To list Ada build switches use --help-ada

List of available commands

gnat bind   x86_64-linux-gnu-gnatbind-12
gnat chop   x86_64-linux-gnu-gnatchop-12
gnat clean  x86_64-linux-gnu-gnatclean-12
gnat compilex86_64-linux-gnu-gnatmake-12 -f -u -c
gnat check  x86_64-linux-gnu-gnatcheck-12
gnat elim   x86_64-linux-gnu-gnatelim-12
gnat find   x86_64-linux-gnu-gnatfind-12
gnat krunch x86_64-linux-gnu-gnatkr-12
gnat link   x86_64-linux-gnu-gnatlink-12
gnat list   x86_64-linux-gnu-gnatls-12
gnat make   x86_64-linux-gnu-gnatmake-12
gnat metric x86_64-linux-gnu-gnatmetric-12
gnat name   x86_64-linux-gnu-gnatname-12
gnat preprocess x86_64-linux-gnu-gnatprep-12
gnat pretty x86_64-linux-gnu-gnatpp-12
gnat stack  x86_64-linux-gnu-gnatstack-12
gnat stub   x86_64-linux-gnu-gnatstub-12
gnat test   x86_64-linux-gnu-gnattest-12
gnat xref   x86_64-linux-gnu-gnatxref-12


Report bugs to rep...@adacore.com

What am I missing?
(GIT version of yesterday ...)

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


Re: Xilinx MPSoC, programmable logic download

2023-10-04 Thread Kinsey Moore
Hi,
My process thus far has been to ensure any necessary FPGA configuration
gets loaded as part of BOOT.BIN or in u-boot before loading the target
RTEMS application.

If you need dynamic reconfiguration, I believe Chris Johns has been doing
some work in that vein: https://github.com/kiwichris/rtems-xilinx-xrt

Kinsey

On Wed, Oct 4, 2023 at 11:44 AM emanuel stiebler  wrote:

> Hi all,
> are there any tools in RTEMS to download the bit stream into the logic
> part of the FPGA, after boot?
>
> Thanks!
> ___
> devel mailing list
> devel@rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
>
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: ADA, gnat, rtems 6, ubuntu 22LTS

2023-10-04 Thread Joel Sherrill
Random thought. Is there a gnat1? Can you build a native Ada hello world?

I'm not sure what that configure check is trying but looking at that is the
next step.

On Wed, Oct 4, 2023, 12:02 PM emanuel stiebler  wrote:

> I just tried to compile the tools for rtems6,
> and just with "C", everything(?) works.
>
> Trying to add ADA to the tools, it fails, complaining about gnat not
> being installed.
> In the logfile:
>
> hecking for objdir... .libs
> configure: WARNING: using in-tree isl, disabling version check
> configure: error: GNAT is required to build ada
> shell cmd failed: /bin/sh -ex
>
> /AD1/PUB/RTEMS.work/rsb/rtems/build/aarch64-rtems6-gcc-506cb58-newlib-a021448-x86_64-linux-gnu-1/do-build
> error: building
> aarch64-rtems6-gcc-506cb58-newlib-a021448-x86_64-linux-gnu-1emu@W531:/AD1/PUB/RTEMS.work/rsb/rtems$
>
>
>
>
> but "gnat" gives me:
>
> DDD@W531:/AD1/PUB/RTEMS.work/rsb/rtems$ gnat
> GNAT 12.3.0
> Copyright 1996-2022, Free Software Foundation, Inc.
>
> To list Ada build switches use --help-ada
>
> List of available commands
>
> gnat bind   x86_64-linux-gnu-gnatbind-12
> gnat chop   x86_64-linux-gnu-gnatchop-12
> gnat clean  x86_64-linux-gnu-gnatclean-12
> gnat compilex86_64-linux-gnu-gnatmake-12 -f -u -c
> gnat check  x86_64-linux-gnu-gnatcheck-12
> gnat elim   x86_64-linux-gnu-gnatelim-12
> gnat find   x86_64-linux-gnu-gnatfind-12
> gnat krunch x86_64-linux-gnu-gnatkr-12
> gnat link   x86_64-linux-gnu-gnatlink-12
> gnat list   x86_64-linux-gnu-gnatls-12
> gnat make   x86_64-linux-gnu-gnatmake-12
> gnat metric x86_64-linux-gnu-gnatmetric-12
> gnat name   x86_64-linux-gnu-gnatname-12
> gnat preprocess x86_64-linux-gnu-gnatprep-12
> gnat pretty x86_64-linux-gnu-gnatpp-12
> gnat stack  x86_64-linux-gnu-gnatstack-12
> gnat stub   x86_64-linux-gnu-gnatstub-12
> gnat test   x86_64-linux-gnu-gnattest-12
> gnat xref   x86_64-linux-gnu-gnatxref-12
>
>
> Report bugs to rep...@adacore.com
>
> What am I missing?
> (GIT version of yesterday ...)
>
> Cheers & Thanks
> ___
> devel mailing list
> devel@rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
>
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: Xilinx MPSoC, programmable logic download

2023-10-04 Thread Chris Johns
On 5/10/2023 4:56 am, Kinsey Moore wrote:
> If you need dynamic reconfiguration, I believe Chris Johns has been doing some
> work in that vein: https://github.com/kiwichris/rtems-xilinx-xrt
> 

Yes. This works on the Versal. I have not tested it on the ZynqMP. The rtems/pm
code has a shell command you can use to load bitfiles via the SMC. You need
Xilinx's build of ARM's trusted firmware resident in memory to work.

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

[net-legacy PATCH] tests: Add header for RTEMS test printer

2023-10-04 Thread chrisj
From: Chris Johns 

---
 libtest/testbeginend.c | 1 +
 libtest/testwrappers.c | 1 +
 testsuites/loopback/init.c | 1 +
 testsuites/pppd/init.c | 4 +++-
 4 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/libtest/testbeginend.c b/libtest/testbeginend.c
index 89b2468..83f1d3c 100644
--- a/libtest/testbeginend.c
+++ b/libtest/testbeginend.c
@@ -19,6 +19,7 @@
 #endif
 
 #include 
+#include 
 #include 
 #include 
 
diff --git a/libtest/testwrappers.c b/libtest/testwrappers.c
index 9679f75..052ebf8 100644
--- a/libtest/testwrappers.c
+++ b/libtest/testwrappers.c
@@ -11,6 +11,7 @@
 #endif
 
 #include 
+#include 
 
 int __wrap_printf(const char* format, ...);
 int __wrap_puts(const char *str);
diff --git a/testsuites/loopback/init.c b/testsuites/loopback/init.c
index 891225c..d2aafcc 100644
--- a/testsuites/loopback/init.c
+++ b/testsuites/loopback/init.c
@@ -8,6 +8,7 @@
 #include "config.h"
 #endif
 
+#include 
 #include 
 
 const char rtems_test_name[] = "LOOPBACK";
diff --git a/testsuites/pppd/init.c b/testsuites/pppd/init.c
index 95e0d53..12a57e0 100644
--- a/testsuites/pppd/init.c
+++ b/testsuites/pppd/init.c
@@ -21,9 +21,11 @@
 #include 
 #include 
 #include 
-#include "netconfig.h"
+#include 
 #include 
 
+#include "netconfig.h"
+
 const char rtems_test_name[] = "PPPD";
 
 static void notification(int fd, int seconds_remaining, void *arg)
-- 
2.37.1

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


Re: [PATCH] tests: Add header for RTEMS test printer

2023-10-04 Thread Chris Johns
On 5/10/2023 1:29 am, Heinz Junkes wrote:
> Leads to problems compiling legacy-stack:

Thanks for the report. I have posted a patch to clean up the net-legacy stack.

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