[PATCH] rsb: Clarify Ada build requirements

2018-11-30 Thread Sebastian Huber
---
 rsb/building-tools-and-rtems.rst | 8 +++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/rsb/building-tools-and-rtems.rst b/rsb/building-tools-and-rtems.rst
index 5fd5d78..207463c 100644
--- a/rsb/building-tools-and-rtems.rst
+++ b/rsb/building-tools-and-rtems.rst
@@ -29,7 +29,13 @@ Following are currently available:
   Do not build a C++ compiler.
 
 ``--with-ada``
-  Attempt to build an Ada compiler.  You need a native GNAT installed.
+  Attempt to build an Ada compiler.  You need a native GNAT installed.  The GCC
+  major version of the native GNAT must be identical to the major version of
+  the target GCC, e.g. if the target GCC is version 7.3.0, then the native GCC
+  must be use a 7.*.* version.  In the prefix there must not be a previous
+  installation of the tools.  An existing installation can interfere with the
+  build.  Installing new tools over a previous installation may fail due to
+  file permission errors.
 
 ``--with-fortran``
   Attempt to build a Fortran compiler.
-- 
2.16.4

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


GCC 7.4.0 release candidate

2018-11-30 Thread Sebastian Huber

Hello,

a GCC 7.4.0 release candidate is available. I would like to update the 
RSB to use GCC 7.4.0 for all targets which currently use GCC 7.3.0. This 
will change the type int32_t from long to int.


--
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] Convert CPU counter ticks to/from sbintime_t

2018-11-30 Thread Sebastian Huber
The sbintime_t is an efficient time format.  Add the ability to convert
CPU counter ticks to/from sbintime_t.
---
 cpukit/include/rtems/counter.h   | 36 +---
 cpukit/sapi/src/cpucounterconverter.c| 22 +--
 testsuites/sptests/spcpucounter01/init.c | 15 +++--
 3 files changed, 61 insertions(+), 12 deletions(-)

diff --git a/cpukit/include/rtems/counter.h b/cpukit/include/rtems/counter.h
index e770c96eb0..f43b7f110f 100644
--- a/cpukit/include/rtems/counter.h
+++ b/cpukit/include/rtems/counter.h
@@ -72,9 +72,9 @@ static inline uint32_t rtems_counter_frequency( void )
 }
 
 /**
- * @brief Reads the current counter values.
+ * @brief Reads the current counter value.
  *
- * @return The current counter values.
+ * @return The current counter value.
  */
 static inline rtems_counter_ticks rtems_counter_read( void )
 {
@@ -104,10 +104,10 @@ static inline rtems_counter_ticks 
rtems_counter_difference(
 /**
  * @brief Converts counter ticks into nanoseconds.
  *
- * @param[in] ticks Some counter ticks.
+ * @param[in] ticks The counter ticks value to convert.
  *
- * @return The nanoseconds corresponding to the counter ticks.  The value is
- * rounded up.
+ * @return The nanoseconds value corresponding to the counter ticks.  The value
+ * is rounded up.
  */
 uint64_t rtems_counter_ticks_to_nanoseconds(
   rtems_counter_ticks ticks
@@ -116,15 +116,35 @@ uint64_t rtems_counter_ticks_to_nanoseconds(
 /**
  * @brief Converts nanoseconds into counter ticks.
  *
- * @param[in] nanoseconds Some nanoseconds.
+ * @param[in] nanoseconds The nanoseconds value to convert.
  *
- * @return The counter ticks corresponding to the nanoseconds.  The value is
- * rounded up.
+ * @return The counter ticks value corresponding to the nanoseconds value.  The
+ * value is rounded up.
  */
 rtems_counter_ticks rtems_counter_nanoseconds_to_ticks(
   uint32_t nanoseconds
 );
 
+/**
+ * @brief Converts counter ticks into signed binary time (sbintime_t).
+ *
+ * @param[in] ticks The counter ticks value to convert.
+ *
+ * @return The signed binary time value corresponding to the counter ticks
+ * value.  The value is rounded up.
+ */
+int64_t rtems_counter_ticks_to_sbintime( rtems_counter_ticks ticks );
+
+/**
+ * @brief Converts signed binary time (sbintime_t) into counter ticks.
+ *
+ * @param[in] sbt The signed binary time value to convert.
+ *
+ * @return The counter ticks value corresponding to the nanoseconds value.  The
+ * value is rounded up.
+ */
+rtems_counter_ticks rtems_counter_sbintime_to_ticks( int64_t sbt );
+
 /**
  * @brief Initializes the counter ticks to/from nanoseconds converter 
functions.
  *
diff --git a/cpukit/sapi/src/cpucounterconverter.c 
b/cpukit/sapi/src/cpucounterconverter.c
index 12d55362df..7387fe4410 100644
--- a/cpukit/sapi/src/cpucounterconverter.c
+++ b/cpukit/sapi/src/cpucounterconverter.c
@@ -21,9 +21,13 @@ static uint64_t to_ns_scaler;
 
 static uint64_t from_ns_scaler;
 
-uint64_t rtems_counter_ticks_to_nanoseconds( rtems_counter_ticks counter )
+static uint64_t to_sbt_scaler;
+
+static uint64_t from_sbt_scaler;
+
+uint64_t rtems_counter_ticks_to_nanoseconds( rtems_counter_ticks ticks )
 {
-  return (uint32_t) ((counter * to_ns_scaler) >> 32);
+  return (uint32_t) ((ticks * to_ns_scaler) >> 32);
 }
 
 rtems_counter_ticks rtems_counter_nanoseconds_to_ticks( uint32_t nanoseconds )
@@ -31,12 +35,26 @@ rtems_counter_ticks rtems_counter_nanoseconds_to_ticks( 
uint32_t nanoseconds )
   return (rtems_counter_ticks) ((nanoseconds * from_ns_scaler) >> 32);
 }
 
+int64_t rtems_counter_ticks_to_sbintime( rtems_counter_ticks ticks )
+{
+  return (int64_t) ((ticks * to_sbt_scaler) >> 31);
+}
+
+rtems_counter_ticks rtems_counter_sbintime_to_ticks( int64_t sbt )
+{
+  return (rtems_counter_ticks) (((uint64_t) sbt * from_sbt_scaler) >> 31);
+}
+
 void rtems_counter_initialize_converter( uint32_t frequency )
 {
   uint64_t ns_per_s = UINT64_C(10);
+  uint64_t bin_per_s = UINT64_C(1) << 32;
 
   to_ns_scaler = ((ns_per_s << 32) + frequency - 1) / frequency;
   from_ns_scaler = ((UINT64_C(1) << 32) * frequency + ns_per_s - 1) / ns_per_s;
+
+  to_sbt_scaler = ((bin_per_s << 31) + frequency - 1) / frequency;
+  from_sbt_scaler = ((UINT64_C(1) << 31) * frequency + bin_per_s - 1) / 
bin_per_s;
 }
 
 static void rtems_counter_sysinit( void )
diff --git a/testsuites/sptests/spcpucounter01/init.c 
b/testsuites/sptests/spcpucounter01/init.c
index 7b2684a25b..fefa7422b7 100644
--- a/testsuites/sptests/spcpucounter01/init.c
+++ b/testsuites/sptests/spcpucounter01/init.c
@@ -53,13 +53,24 @@ static rtems_interval sync_with_clock_tick(void)
 
 static void test_converter(void)
 {
-  CPU_Counter_ticks frequency = rtems_counter_nanoseconds_to_ticks(10);
-  uint64_t ns = rtems_counter_ticks_to_nanoseconds(frequency);
+  CPU_Counter_ticks frequency;
+  CPU_Counter_ticks frequency2;
+  uint64_t ns;
+  int64_t sbt;
+
+  frequency = rtems_counter_nanoseconds_to_ti

Re: [PATCH v2] rtemstoolkit: Add unit testing for the python modules

2018-11-30 Thread Vijay Kumar Banerjee
On Tue, 27 Nov 2018 at 13:30, Vijay Kumar Banerjee 
wrote:

>
>
>
>
>
> On Tue, 27 Nov 2018 at 10:28, Chris Johns  wrote:
>
>> On 27/11/2018 04:28, Vijay Kumar Banerjee wrote:
>> > On Mon, 26 Nov 2018 at 16:27, Chris Johns > > > wrote:
>> > > On 26 Nov 2018, at 6:57 pm, Vijay Kumar Banerjee <
>> vijaykumar9...@gmail.com
>> > > wrote:
>> > >
>> > >> On Mon, Nov 26, 2018 at 06:28:33PM +1100, Chris Johns wrote:
>> > >>
>> > >>> On 26 Nov 2018, at 5:21 pm, Vijay Kumar Banerjee
>> > mailto:vijaykumar9...@gmail.com>> wrote:
>> > >>> I'm getting the result Invalid while running hello.exe with
>> rtems-test
>> > on leon3 (without coverage option)
>> > >>> attaching the log.
>> > >>
>> > >> Can you please revert or not apply patch 1 and let me know what
>> happens?
>> > I have a feeling the coverage Qemu may be the old or different
>> settings.
>> > > it works after reverting the first patch.
>> >
>> > Can you define ‘qemu_use_serial_console’ when coverage is enabled?
>> Doing
>> > this will work with the coverage qemu.
>> >
>> > . how to do that ?
>> >
>>
>> I would:
>>
>> 1. Define 'coverage' in tester/rt/coverage.py in 'macros_'. See
>> macrocs.py for
>> the call
>> https://git.rtems.org/rtems-tools/tree/rtemstoolkit/macros.py#n442.
>>
>> 2. In
>> https://git.rtems.org/rtems-tools/tree/tester/rtems/testing/qemu.cfg#n61
>> move this logic up to line 51 and use something like:
>>
>>  #
>>  # Coverage, some builds of qemu support coverage.
>>  #
>>  %ifdef coverage
>>   %define qemu_use_serial_console
>>   %ifn %{defined bsp_qemu_cov_opts}
>>%define bsp_qemu_cov_opts %{nil}
>>   %endif
>>  %endif
>>
>> Thank you for explaining in such detail. It's working after this change.
> I have attached the patch in this email.
>
ping :)

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

powerpc/ss555:Add per-section compilation and linking support(GCI 2018)

2018-11-30 Thread Shashvat Jain
Hello ,
The per-function section linking has been enabled under this patch.

Thank you
Regards
From 033daca95f28b8716f518871bd58e793b35e35a5 Mon Sep 17 00:00:00 2001
From: Shashvat Jain 
Date: Fri, 30 Nov 2018 10:03:25 -0500
Subject: [PATCH] powerpc/ss555:Add per-section compilation and linking
 support(GCI 2018)

The size of the sample executables without this option were:

   text	   data	bss	dec	hex	filename
 116512	   1340	  15400	 133252	  20884	./base_sp.exe
 246172	   2328	  18324	 266824	  41248	./capture.exe
 319368	   3520	  16496	 339384	  52db8	./cdtest.exe
1077464	  22428	  23284	1123176	 112368	./cxx_iostream.exe
 640632	   4916	  28408	 673956	  a48a4	./fileio.exe
 148844	   1692	  15572	 166108	  288dc	./hello.exe
 328648	   6252	  22408	 357308	  573bc	./loopback.exe
  95828	   1196	  12224	 109248	  1aac0	./minimum.exe
 145576	   1872	  15528	 162976	  27ca0	./nsecs.exe
 194932	   2100	  16172	 213204	  340d4	./paranoia.exe
 537060	  12460	  45124	 594644	  912d4	./pppd.exe
 119620	   1380	  15464	 136464	  21510	./ticker.exe
 119388	   1324	  19300	 140012	  222ec	./unlimited.exe

The size of the sample executables with this option were:

   text	   data	bss	dec	hex	filename
 235000	   2336	  16628	 253964	  3e00c	./cxx_iostream.exe
 627252	   4892	  28108	 660252	  a131c	./fileio.exe
 137648	   1676	  15528	 154852	  25ce4	./hello.exe
 308616	   6236	  22336	 337188	  52524	./loopback.exe
  89564	   1180	  12144	 102888	  191e8	./minimum.exe
 137184	   1856	  15432	 154472	  25b68	./nsecs.exe
 184264	   2084	  16144	 202492	  316fc	./paranoia.exe
 520768	  12440	  45020	 578228	  8d2b4	./pppd.exe
 113260	   1364	  15356	 129980	  1fbbc	./ticker.exe
 117236	   1308	  19272	 137816	  21a58	./unlimited.exe
 110584	   1324	  15308	 127216	  1f0f0	./base_sp.exe
 229172	   2316	  18288	 249776	  3cfb0	./capture.exe
 233980	   2320	  16436	 252736	  3db40	./cdtest.exe

Closes #2563
---
 bsps/powerpc/ss555/config/ss555.cfg | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/bsps/powerpc/ss555/config/ss555.cfg b/bsps/powerpc/ss555/config/ss555.cfg
index 7054eaa..f4c6ca2 100644
--- a/bsps/powerpc/ss555/config/ss555.cfg
+++ b/bsps/powerpc/ss555/config/ss555.cfg
@@ -19,10 +19,9 @@ CPU_CFLAGS = -mcpu=505
 # optimize flag: typically -O2
 CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
 
-# FIXME: Disabled because linkcmds lacks proper KEEP() directives. See #2563.
 # The following two lines enable compiling and linking on per element.
-# CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
-# LDFLAGS = -Wl,--gc-sections
+CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
+LDFLAGS = -Wl,--gc-sections
 
 define bsp-post-link
 	$(default-bsp-post-link)
-- 
1.8.3.1

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

Re: powerpc/ss555:Add per-section compilation and linking support(GCI 2018)

2018-11-30 Thread Joel Sherrill
Hi

Thanks. I have tested this and am about to push it. My size drop was:

[joel@rtbf64c b-ss555-before]$ powerpc-rtems5-size `find . -name ticker.exe`
   textdata bss dec hex filename
 1195561380   15464  136400   214d0
./powerpc-rtems5/c/ss555/testsuites/samples/ticker.exe
[joel@rtbf64c b-ss555-before]$ cd ../b-ss555
[joel@rtbf64c b-ss555]$ powerpc-rtems5-size `find . -name ticker.exe`
   textdata bss dec hex filename
  863841252   15092  102728   19148
./powerpc-rtems5/c/ss555/testsuites/samples/ticker.exe

Does that match yours?

--joel

On Fri, Nov 30, 2018 at 9:12 AM Shashvat Jain 
wrote:

> Hello ,
> The per-function section linking has been enabled under this patch.
>
> Thank you
> Regards
> ___
> 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

powerpc/qemuppc:Add per-section compilation and linking support(GCI 2018)

2018-11-30 Thread Shashvat Jain
Hello ,
The per-function section linking has been enabled under this patch.

Thank you
Regards
From ee61f922edb80c809713246a3fbb177faac415b6 Mon Sep 17 00:00:00 2001
From: Shashvat Jain 
Date: Fri, 30 Nov 2018 11:39:29 -0500
Subject: [PATCH] powerpc/qemuppc:Add per-section compilation and linking
 support(GCI 2018)

The size of the sample executables without this option were:

   text	   data	bss	dec	hex	filename
 101320	   1604	4184764	4287688	 416cc8	./base_sp.exe
 247452	   2656	4183748	4433856	 43a7c0	./capture.exe
 283516	  29564	4183788	4496868	 449de4	./cdtest.exe
 948220	 162032	4183744	5293996	 50c7ac	./cxx_iostream.exe
 642568	   5234	4181152	4828954	 49af1a	./fileio.exe
 133733	   1960	4184372	4320065	 41eb41	./hello.exe
 314124	   6796	4179844	4500764	 44ad1c	./loopback.exe
  60592	680	4185536	4246808	 40cd18	./minimum.exe
 130936	   2112	4184228	4317276	 41e05c	./nsecs.exe
 180161	   2376	4183956	4366493	 42a09d	./paranoia.exe
 538248	  13040	4173628	4724916	 4818b4	./pppd.exe
 104753	   1636	4184736	4291125	 417a35	./ticker.exe
 104608	   1596	4184788	4290992	 4179b0	./unlimited.exe

The size of the sample executables with this option were:

   text	   data	bss	dec	hex	filename
 611756	  58492	4183964	4854212	 4a11c4	./cxx_iostream.exe
 630360	   5210	4181168	4816738	 497f62	./fileio.exe
 123653	   1956	4184396	4310005	 41c3f5	./hello.exe
 295200	   6776	4179868	4481844	 446334	./loopback.exe
  60608	668	4185560	4246836	 40cd34	./minimum.exe
 123704	   2108	4184220	4310032	 41c410	./nsecs.exe
 170589	   2364	4183980	4356933	 427b45	./paranoia.exe
 523060	  13016	4173648	4709724	 47dd5c	./pppd.exe
  99533	   1632	4184732	4285897	 4165c9	./ticker.exe
 103608	   1584	4184784	4289976	 4175b8	./unlimited.exe
 231572	   2644	4183736	4417952	 4369a0	./capture.exe
  96544	   1600	4184760	4282904	 415a18	./base_sp.exe
 223456	  10112	4184260	4417828	 436924	./cdtest.exe

Closes #2564
---
 bsps/powerpc/qemuppc/config/qemuppc.cfg | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/bsps/powerpc/qemuppc/config/qemuppc.cfg b/bsps/powerpc/qemuppc/config/qemuppc.cfg
index 5e919c1..1fd28c8 100644
--- a/bsps/powerpc/qemuppc/config/qemuppc.cfg
+++ b/bsps/powerpc/qemuppc/config/qemuppc.cfg
@@ -13,10 +13,9 @@ CPU_CFLAGS = -mcpu=603e
 # optimize flag: typically -O2
 CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
 
-# FIXME: Disabled because linkcmds lacks proper KEEP() directives. See #2564.
 # The following two lines enable compiling and linking on per element.
-# CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
-# LDFLAGS = -Wl,--gc-sections
+CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
+LDFLAGS = -Wl,--gc-sections
 
 define bsp-post-link
 	$(default-bsp-post-link)
-- 
1.8.3.1

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

Re: powerpc/qemuppc:Add per-section compilation and linking support(GCI 2018)

2018-11-30 Thread Joel Sherrill
Pushed. Thanks.

On Fri, Nov 30, 2018 at 10:45 AM Shashvat Jain 
wrote:

> Hello ,
> The per-function section linking has been enabled under this patch.
>
> Thank you
> Regards
> ___
> 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

powerpc/mpc2860ads:Add per-section compilation and linking support(GCI 2018)

2018-11-30 Thread Shashvat Jain
Hello ,
The per-function section linking has been enabled under this patch.
I am adding Chris , to discuss about the differ in my bss and dec drops and
that of Dr.Joel's
My size drop change can be seen here
--
The size of the sample executables without this option were:

   text   databssdechexfilename
 257876   3416 148812 410104  641f8./capture.exe
 126956   2428 145836 275220  43314./base_sp.exe
 330400   4600 146916 481916  75a7c./cdtest.exe
1092476  23588 1536841269748 135ff4./cxx_iostream.exe
 654892   6056 158868 819816  c8268./fileio.exe
 159260   2812 145956 308028  4b33c./hello.exe
 339392   7344 152824 499560  79f68./loopback.exe
 106388   2276 142644 251308  3d5ac./minimum.exe
 156348   2960 145980 305288  4a888./nsecs.exe
 201020   3204 146592 350816  55a60./paranoia.exe
 547684  13548 175556 736788  b3e14./pppd.exe
 130108   2468 145872 278448  43fb0./ticker.exe
 129740   2436 149696 281872  44d10./unlimited.exe

The size of the sample executables with this option were:

   text   databssdechexfilename
 246508   2856 147036 396400  60c70./cxx_iostream.exe
 641752   6016 158548 806316  c4dac./fileio.exe
 148264   2800 145916 296980  48814./hello.exe
 319252   7340 152756 479348  75074./loopback.exe
 100396   2288 142556 245240  3bdf8./minimum.exe
 148200   2932 145892 297024  48840./nsecs.exe
 190520   3192 146552 340264  53128./paranoia.exe
 531300  13544 175480 720324  afdc4./pppd.exe
 124008   2472 145788 272268  4278c./ticker.exe
 127848   2432 149660 279940  44584./unlimited.exe
 121272   2432 145752 269456  41c90./base_sp.exe
 241104   3412 148768 393284  60044./capture.exe
 245424   2936 146876 395236  607e4./cdtest.exe
--
Thank you
Regards

--Shashvat
From 31db29936a23b68469fdc52fb384d1235442 Mon Sep 17 00:00:00 2001
From: Shashvat Jain 
Date: Fri, 30 Nov 2018 13:07:17 -0500
Subject: [PATCH] powerpc/mpc8260ads:Add per-section compilation and linking
 support(GCI 2018)

The size of the sample executables without this option were:

   text	   data	bss	dec	hex	filename
 257876	   3416	 148812	 410104	  641f8	./capture.exe
 126956	   2428	 145836	 275220	  43314	./base_sp.exe
 330400	   4600	 146916	 481916	  75a7c	./cdtest.exe
1092476	  23588	 153684	1269748	 135ff4	./cxx_iostream.exe
 654892	   6056	 158868	 819816	  c8268	./fileio.exe
 159260	   2812	 145956	 308028	  4b33c	./hello.exe
 339392	   7344	 152824	 499560	  79f68	./loopback.exe
 106388	   2276	 142644	 251308	  3d5ac	./minimum.exe
 156348	   2960	 145980	 305288	  4a888	./nsecs.exe
 201020	   3204	 146592	 350816	  55a60	./paranoia.exe
 547684	  13548	 175556	 736788	  b3e14	./pppd.exe
 130108	   2468	 145872	 278448	  43fb0	./ticker.exe
 129740	   2436	 149696	 281872	  44d10	./unlimited.exe

The size of the sample executables with this option were:

   text	   data	bss	dec	hex	filename
 246508	   2856	 147036	 396400	  60c70	./cxx_iostream.exe
 641752	   6016	 158548	 806316	  c4dac	./fileio.exe
 148264	   2800	 145916	 296980	  48814	./hello.exe
 319252	   7340	 152756	 479348	  75074	./loopback.exe
 100396	   2288	 142556	 245240	  3bdf8	./minimum.exe
 148200	   2932	 145892	 297024	  48840	./nsecs.exe
 190520	   3192	 146552	 340264	  53128	./paranoia.exe
 531300	  13544	 175480	 720324	  afdc4	./pppd.exe
 124008	   2472	 145788	 272268	  4278c	./ticker.exe
 127848	   2432	 149660	 279940	  44584	./unlimited.exe
 121272	   2432	 145752	 269456	  41c90	./base_sp.exe
 241104	   3412	 148768	 393284	  60044	./capture.exe
 245424	   2936	 146876	 395236	  607e4	./cdtest.exe

Closes #2565
---
 bsps/powerpc/mpc8260ads/config/mpc8260ads.cfg | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/bsps/powerpc/mpc8260ads/config/mpc8260ads.cfg b/bsps/powerpc/mpc8260ads/config/mpc8260ads.cfg
index d335e92..7b5a9dc 100644
--- a/bsps/powerpc/mpc8260ads/config/mpc8260ads.cfg
+++ b/bsps/powerpc/mpc8260ads/config/mpc8260ads.cfg
@@ -16,7 +16,6 @@ CPU_CFLAGS = -mcpu=603e -mstrict-align -meabi -msdata=sysv -fno-common
 # optimize flag: typically -O2
 CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
 
-# FIXME: Disabled because linkcmds lacks proper KEEP() directives. See #2565.
 # The following two lines enable compiling and linking on per element.
-# 

Re: powerpc/mpc2860ads:Add per-section compilation and linking support(GCI 2018)

2018-11-30 Thread Joel Sherrill
On Fri, Nov 30, 2018 at 12:30 PM Shashvat Jain 
wrote:

> Hello ,
> The per-function section linking has been enabled under this patch.
> I am adding Chris , to discuss about the differ in my bss and dec drops
> and that of Dr.Joel's
> My size drop change can be seen here
>
> --
> The size of the sample executables without this option were:
>
>text   databssdechexfilename
>  257876   3416 148812 410104  641f8./capture.exe
>  126956   2428 145836 275220  43314./base_sp.exe
>  330400   4600 146916 481916  75a7c./cdtest.exe
> 1092476  23588 1536841269748 135ff4./cxx_iostream.exe
>  654892   6056 158868 819816  c8268./fileio.exe
>  159260   2812 145956 308028  4b33c./hello.exe
>  339392   7344 152824 499560  79f68./loopback.exe
>  106388   2276 142644 251308  3d5ac./minimum.exe
>  156348   2960 145980 305288  4a888./nsecs.exe
>  201020   3204 146592 350816  55a60./paranoia.exe
>  547684  13548 175556 736788  b3e14./pppd.exe
>  130108   2468 145872 278448  43fb0./ticker.exe
>  129740   2436 149696 281872  44d10./unlimited.exe
>
> The size of the sample executables with this option were:
>
>text   databssdechexfilename
>  246508   2856 147036 396400  60c70./cxx_iostream.exe
>  641752   6016 158548 806316  c4dac./fileio.exe
>  148264   2800 145916 296980  48814./hello.exe
>  319252   7340 152756 479348  75074./loopback.exe
>  100396   2288 142556 245240  3bdf8./minimum.exe
>  148200   2932 145892 297024  48840./nsecs.exe
>  190520   3192 146552 340264  53128./paranoia.exe
>  531300  13544 175480 720324  afdc4./pppd.exe
>  124008   2472 145788 272268  4278c./ticker.exe
>  127848   2432 149660 279940  44584./unlimited.exe
>  121272   2432 145752 269456  41c90./base_sp.exe
>  241104   3412 148768 393284  60044./capture.exe
>  245424   2936 146876 395236  607e4./cdtest.exe
>
> --
>

Chris .. my before and after for ticker.exe are:

[joel@rtbf64c b-mpc8260ads-before]$ cd ../b-mpc8260ads
[joel@rtbf64c b-mpc8260ads]$ powerpc-rtems5-size `find . -name ticker.exe`
   textdata bss dec hex filename
  867922364  145288  23   393cc
./powerpc-rtems5/c/mpc8260ads/testsuites/samples/ticker.exe

I am doing a complete build from scratch -- reconfigure, build, etc. Are
you doing that as well?

Patch pushed.


> Thank you
> Regards
>
> --Shashvat
>
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

powerpc/haleakala:Add per-section compilation and linking support(GCI 2018)

2018-11-30 Thread Shashvat Jain
Hello ,
The per-function section linking has been enabled under this patch.
with this , we have closed all the tickets related to per-function sections

Thank you
Regards
From f81a18fa7414acca85fbfcb5ba0330eb372704ae Mon Sep 17 00:00:00 2001
From: Shashvat Jain 
Date: Fri, 30 Nov 2018 14:01:50 -0500
Subject: [PATCH] powerpc/haleakala:Add per-section compilation and linking
 support(GCI 2018)

The size of the sample executables without this option were:

   text	   data	bss	dec	hex	filename
 104144	   1316	  16112	 121572	  1dae4	./base_sp.exe
 263120	   2424	  19356	 284900	  458e4	./capture.exe
 315012	   2300	  17184	 334496	  51aa0	./cdtest.exe
1103896	   2350	  23988	1130234	 113efa	./cxx_iostream.exe
 654832	   4986	  29400	 689218	  a8442	./fileio.exe
 143328	   1664	  16264	 161256	  275e8	./hello.exe
 329540	   6228	  23096	 358864	  579d0	./loopback.exe
  80264	   1124	  12868	  94256	  17030	./minimum.exe
 133600	   1832	  16216	 151648	  25060	./nsecs.exe
 215024	   2096	  16904	 234024	  39228	./paranoia.exe
 571768	  12532	  46100	 630400	  99e80	./pppd.exe
 107872	   1340	  16148	 125360	  1e9b0	./ticker.exe
 107856	   1308	  20008	 129172	  1f894	./unlimited.exe

The size of the sample executables with this option were:

   text	   data	bss	dec	hex	filename
 612124	   2106	  22800	 637030	  9b866	./cxx_iostream.exe
 641180	   4986	  29104	 675270	  a4dc6	./fileio.exe
 132316	   1664	  16228	 150208	  24ac0	./hello.exe
 309544	   6212	  23028	 338784	  52b60	./loopback.exe
  74028	   1108	  12804	  87940	  15784	./minimum.exe
 125372	   1836	  16148	 143356	  22ffc	./nsecs.exe
 204556	   2088	  16868	 223512	  36918	./paranoia.exe
 28	  12540	  46032	 614100	  95ed4	./pppd.exe
 101548	   1356	  16052	 118956	  1d0ac	./ticker.exe
 105916	   1284	  19976	 127176	  1f0c8	./unlimited.exe
  98268	   1300	  16016	 115584	  1c380	./base_sp.exe
 246364	   2404	  19320	 268088	  41738	./capture.exe
 229184	   1836	  17148	 248168	  3c968	./cdtest.exe

Closes #2561
---
 bsps/powerpc/haleakala/config/haleakala.cfg | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/bsps/powerpc/haleakala/config/haleakala.cfg b/bsps/powerpc/haleakala/config/haleakala.cfg
index 148c699..57feb35 100644
--- a/bsps/powerpc/haleakala/config/haleakala.cfg
+++ b/bsps/powerpc/haleakala/config/haleakala.cfg
@@ -17,10 +17,9 @@ CPU_CFLAGS = -mcpu=405
 # NOTE: some level of -O may be actually required by inline assembler
 CFLAGS_OPTIMIZE_V = -O1 -g
 
-# FIXME: Disabled because linkcmds lacks proper KEEP() directives. See #2561.
 # The following two lines enable compiling and linking on per element.
-# CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
-# LDFLAGS = -Wl,--gc-sections
+CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
+LDFLAGS = -Wl,--gc-sections
 
 define bsp-post-link
 	$(default-bsp-post-link)
-- 
1.8.3.1

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

Re: powerpc/haleakala:Add per-section compilation and linking support(GCI 2018)

2018-11-30 Thread Joel Sherrill
Pushed. Thanks.

On Fri, Nov 30, 2018 at 1:45 PM Shashvat Jain 
wrote:

> Hello ,
> The per-function section linking has been enabled under this patch.
> with this , we have closed all the tickets related to per-function sections
>
> Thank you
> Regards
> ___
> 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

State of Wired Networking on BeagleBone Black

2018-11-30 Thread Joel Sherrill
Hi

I was asked about the state of networking on the BBB and thought it
was support. But when I looked at libbsd, I didn't see anything obvious
with am35xx in the name. When I googled, I found the GSoC 2015
student who did this work. He mentions the file
freebsd/sys/arm/ti/cpsw/if_cpsw.c here:

http://ragustechblog.blogspot.com/2015/06/porting-driver-from-freebsd-to-rtems.html

which is not in the current rtems-libbsd source tree.

BBB does have wireless support in the config file but nothing obvious for
wired.

What's the status?

Thanks.

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