Re: New source layout.

2015-03-16 Thread Sebastian Huber
On 13/03/15 14:21, Amar Takhar wrote: >Information hiding is a key principle in software engineering. But not software testing. If you hide information it makes software difficult to test as the testable areas become less obvious. If you hide interfaces behind layers of includes what ends up

Re: rtems-source-builder on cygwin/64

2015-03-16 Thread emanuel stiebler
On 2015-03-15 22:19, Chris Johns wrote:> [ back on list ] I wasn't sure, people like to read this long log files ;-) > Thanks. Can you please try the attached windows.py ? Sure. It "seems" to work. Is plowing through the sources for hours now ... Will report, if it really works later ... RT

Re: [rtems commit] tmtests/tmfine01: New test

2015-03-16 Thread Joel Sherrill
This looks like an SMP test. What happens on a uniprocessor build? On March 16, 2015 7:52:53 AM CDT, Sebastian Huber wrote: >Module:rtems >Branch:master >Commit:dc5e5f44485b8f9709da767f79595d2fa8aff74d >Changeset: >http://git.rtems.org/rtems/commit/?id=dc5e5f44485b8f9709da767f79595d2f

Re: [rtems commit] tmtests/tmfine01: New test

2015-03-16 Thread Sebastian Huber
On 16/03/15 13:56, Joel Sherrill wrote: This looks like an SMP test. What happens on a uniprocessor build? It runs simply with one processor. The SMP is optional. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax

Re: rtems-source-builder on cygwin/64

2015-03-16 Thread emanuel stiebler
On 2015-03-15 22:19, Chris Johns wrote: [ back on list ] Thanks. Can you please try the attached windows.py ? Is there a switch, where it doesn't compile everything over and over again? is the "--no-clean" what I'm looking for? If it fails, it starts again without compiling autoconf, aut

Re: lwIP for beaglebone black

2015-03-16 Thread Marcos Díaz
Hi, here I will attach two repos with our work so far: https://bitbucket.org/mdmarcosdiaz/lwip-bbb-rtems/ (Branch POSIX-API-LWIP) This is the LWIP with our drivers copied from TI's and modified to support RTEMS tasks. It has a makefile that generates a library. To make it work we used the bbb b

Re: [PATCH] preliminary Raspberry Pi Model 2 support

2015-03-16 Thread Joel Sherrill
Thanks. This is merged now. If merging this has impact on potential GSOC projects, then there may be some wiki pages to touch. --joel On 3/15/2015 11:09 AM, Alan Cudmore wrote: > This patch adds a BSP variant for the Raspberry Pi 2. > --enable-rtemsbsp="raspberrypi2 raspberrypi" > > For the cur

Re: rtems-source-builder on cygwin/64, WAF?

2015-03-16 Thread emanuel stiebler
On 2015-03-15 22:19, Chris Johns wrote: [ back on list ] Thanks. Can you please try the attached windows.py ? OK, it seems to build most of the stuff, and fails in the WAF build :( RTEMS Source Builder - Set Builder, v0.5.0 Build Set: 4.11/rtems-arm Build Set: 4.11/rtems-autotools.bset Buil

Re: rtems-source-builder on cygwin/64, WAF?

2015-03-16 Thread Joel Sherrill
Hmmm.. copying from the log you attached: This looks like somehow the the contents of ./rtemstoolkit/elftoolchain/libelf/_libelf_config.h are not being tripped by whatever conditionals are set on your host. I see FreeBSD, Apple, and Linux sections of the file. You can build rtems-tools by hand ea

Re: [PATCH] IMFS: don't strlen() an unterminated string in IMFS_dir_read().

2015-03-16 Thread Sebastian Huber
Thanks for the fix, I checked it in. ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

Re: [rtems commit] rtems: make error codes uintptr_t

2015-03-16 Thread Sebastian Huber
- Gedare Bloom schrieb: > Module:rtems > Branch:master > Commit:1ff449cfc473f6b88e1495492aebd665ad42b236 > Changeset: > http://git.rtems.org/rtems/commit/?id=1ff449cfc473f6b88e1495492aebd665ad42b236 > > Author:Gedare Bloom > Date: Mon Mar 16 12:15:27 2015 -0400 > > rt

Re: [rtems commit] IMFS: don't strlen() an unterminated string in IMFS_dir_read().

2015-03-16 Thread Joel Sherrill
If an unterminated string is getting all the way to readdir() and ls, doesn't that mean that somewhere a NULL wasn't put on it when it was added to the directory entry? A quick review makes me think imfs_creat.c and imfs_rename.c at least do not appear to be accounting for the NULL. On 3/16/2015

[GSoC] "RPi BSP improvement" idea separation

2015-03-16 Thread Yurii Shevtsov
Is there any final list of items? I have red through this thread https://lists.rtems.org/pipermail/devel/2015-March/010175.html but I didn't found any final list, except Joel's Sherrill suggestion (https://lists.rtems.org/pipermail/devel/2015-March/010184.html). Personally I would like to work on U

Fwd: Student Proposals Now Being Accepted for Google Summer of Code 2015

2015-03-16 Thread Joel Sherrill
-- Forwarded message -- From: 'Carol Smith' via Google Summer of Code Discuss < google-summer-of-code-disc...@googlegroups.com> Date: Mon, Mar 16, 2015 at 2:00 PM Subject: Student Proposals Now Being Accepted for Google Summer of Code 2015 To: Google Summer of Code Discuss < google-

Re: [GSoC] "RPi BSP improvement" idea separation

2015-03-16 Thread Joel Sherrill
I don't know if this has been posted or merged into the WIki. Alan, Gedare and I were discussing this earlier today. One thing to remember is that it is always possible something we think is 1/2 a summer is incredibly easy so bonus tasks should be defined for every student. In broad strokes, a poss

Re: [PATCH] IMFS: don't strlen() an unterminated string in IMFS_dir_read().

2015-03-16 Thread Joel Sherrill
On 3/16/2015 1:18 PM, Sebastian Huber wrote: > Thanks for the fix, I checked it in. I commented on the commit. If there is a missing NULL at the readdir() point, that means that it wasn't put there at either creation or rename. Sounds like this is a necessary patch but covering up what I think i

Re: [rtems commit] rtems: make error codes uintptr_t

2015-03-16 Thread Gedare Bloom
On Mon, Mar 16, 2015 at 2:23 PM, Sebastian Huber wrote: > > - Gedare Bloom schrieb: >> Module:rtems >> Branch:master >> Commit:1ff449cfc473f6b88e1495492aebd665ad42b236 >> Changeset: >> http://git.rtems.org/rtems/commit/?id=1ff449cfc473f6b88e1495492aebd665ad42b236 >> >> Author:

Re: [PATCH] IMFS: don't strlen() an unterminated string in IMFS_dir_read().

2015-03-16 Thread Sebastian Huber
Hm, yes, there is more wrong here. The returned name must be NUL-terminated. Attached is a patch. Maybe we should replace the MIN() with a static assertion that IMFS_NAME_MAX < sizeof(((struct dirent *)0)->d_name). - Joel Sherrill schrieb: > > > On 3/16/2015 1:18 PM, Sebastian Huber wro

Re: [rtems commit] rtems: make error codes uintptr_t

2015-03-16 Thread Sebastian Huber
- Gedare Bloom schrieb: > On Mon, Mar 16, 2015 at 2:23 PM, Sebastian Huber > wrote: > > > > - Gedare Bloom schrieb: > >> Module:rtems > >> Branch:master > >> Commit:1ff449cfc473f6b88e1495492aebd665ad42b236 > >> Changeset: > >> http://git.rtems.org/rtems/commit/?id=1ff449cfc

Re: [GSoC] "RPi BSP improvement" idea separation

2015-03-16 Thread Gedare Bloom
On Mon, Mar 16, 2015 at 3:21 PM, Joel Sherrill wrote: > I don't know if this has been posted or merged into the WIki. > Alan, Gedare and I were discussing this earlier today. One thing > to remember is that it is always possible something we think > is 1/2 a summer is incredibly easy so bonus task

Re: [GSoC] "RPi BSP improvement" idea separation

2015-03-16 Thread Joel Sherrill
On 3/16/2015 2:37 PM, Gedare Bloom wrote: > On Mon, Mar 16, 2015 at 3:21 PM, Joel Sherrill > wrote: >> I don't know if this has been posted or merged into the WIki. >> Alan, Gedare and I were discussing this earlier today. One thing >> to remember is that it is always possible something we think

Re: [rtems commit] rtems: make error codes uintptr_t

2015-03-16 Thread Gedare Bloom
On Mon, Mar 16, 2015 at 3:36 PM, Sebastian Huber wrote: > > - Gedare Bloom schrieb: >> On Mon, Mar 16, 2015 at 2:23 PM, Sebastian Huber >> wrote: >> > >> > - Gedare Bloom schrieb: >> >> Module:rtems >> >> Branch:master >> >> Commit:1ff449cfc473f6b88e1495492aebd665ad42b236 >>

Re: [rtems commit] rtems: make error codes uintptr_t

2015-03-16 Thread Gedare Bloom
On Mon, Mar 16, 2015 at 3:53 PM, Gedare Bloom wrote: > On Mon, Mar 16, 2015 at 3:36 PM, Sebastian Huber > wrote: >> >> - Gedare Bloom schrieb: >>> On Mon, Mar 16, 2015 at 2:23 PM, Sebastian Huber >>> wrote: >>> > >>> > - Gedare Bloom schrieb: >>> >> Module:rtems >>> >> Branch:m

Re: [rtems commit] rtems: make error codes uintptr_t

2015-03-16 Thread Gedare Bloom
On Mon, Mar 16, 2015 at 3:53 PM, Gedare Bloom wrote: > On Mon, Mar 16, 2015 at 3:36 PM, Sebastian Huber > wrote: >> >> - Gedare Bloom schrieb: >>> On Mon, Mar 16, 2015 at 2:23 PM, Sebastian Huber >>> wrote: >>> > >>> > - Gedare Bloom schrieb: >>> >> Module:rtems >>> >> Branch:m

Re: [GSoC] "RPi BSP improvement" idea separation

2015-03-16 Thread Yurii Shevtsov
> On 3/16/2015 2:37 PM, Gedare Bloom wrote: >> On Mon, Mar 16, 2015 at 3:21 PM, Joel Sherrill >> wrote: >>> I don't know if this has been posted or merged into the WIki. >>> Alan, Gedare and I were discussing this earlier today. One thing >>> to remember is that it is always possible something we

Re: [GSoC] "RPi BSP improvement" idea separation

2015-03-16 Thread Joel Sherrill
On 3/16/2015 2:57 PM, Yurii Shevtsov wrote: >> On 3/16/2015 2:37 PM, Gedare Bloom wrote: >>> On Mon, Mar 16, 2015 at 3:21 PM, Joel Sherrill >>> wrote: I don't know if this has been posted or merged into the WIki. Alan, Gedare and I were discussing this earlier today. One thing to

[PATCH] cpukit: add and use CPU_Uint32ptr type

2015-03-16 Thread Gedare Bloom
--- cpukit/score/cpu/arm/rtems/score/types.h | 3 +++ cpukit/score/cpu/avr/rtems/score/types.h | 3 +++ cpukit/score/cpu/bfin/rtems/score/types.h| 3 +++ cpukit/score/cpu/h8300/rtems/score/types.h | 3 +++ cpukit/score/cpu/i386/rtems/score/types.h| 3 +++ cpukit/score/cpu/lm32/rt

Re: [GSoC] "RPi BSP improvement" idea separation

2015-03-16 Thread Gedare Bloom
On Mon, Mar 16, 2015 at 4:17 PM, Joel Sherrill wrote: > > > On 3/16/2015 2:57 PM, Yurii Shevtsov wrote: >>> On 3/16/2015 2:37 PM, Gedare Bloom wrote: On Mon, Mar 16, 2015 at 3:21 PM, Joel Sherrill wrote: > I don't know if this has been posted or merged into the WIki. > Alan, Ged

Re: [GSoC] "RPi BSP improvement" idea separation

2015-03-16 Thread Yurii Shevtsov
These are called USB HID :-) 2015-03-16 22:17 GMT+02:00 Joel Sherrill : > > > On 3/16/2015 2:57 PM, Yurii Shevtsov wrote: >>> On 3/16/2015 2:37 PM, Gedare Bloom wrote: On Mon, Mar 16, 2015 at 3:21 PM, Joel Sherrill wrote: > I don't know if this has been posted or merged into the WIk

[PATCH 01/19] cpukit/libdl/rtl-obj-comp.c: Use correct printf() specification

2015-03-16 Thread Joel Sherrill
--- cpukit/libdl/rtl-obj-comp.c | 2 +- cpukit/libfs/src/rfs/rtems-rfs-buffer.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cpukit/libdl/rtl-obj-comp.c b/cpukit/libdl/rtl-obj-comp.c index d9c5462..e36276c 100644 --- a/cpukit/libdl/rtl-obj-comp.c +++ b/cpuki

[PATCH 00/19] Warning clean up series

2015-03-16 Thread Joel Sherrill
Hi This is a series of patches focused on warning clean up. Most are related to reducing the number of deprecated warnings introduced by deprecating notepads, task variables, and rtems_clock_get(). A few do touch printf() format warnings. Some test and code rework is still left to get to the poi

[PATCH 03/19] tm07: Split some code into new spnotepad02.

2015-03-16 Thread Joel Sherrill
Use of deprecated notepads in sp07 needs further work. Updates #2305. --- testsuites/sptests/Makefile.am | 2 +- testsuites/sptests/configure.ac| 1 + testsuites/sptests/sp07/init.c | 36 +++--- testsuites/sptests/sp07/sp07.scn

[PATCH 02/19] testsuites/samples/minimum/init.c: Notepads no longer need to be disabled

2015-03-16 Thread Joel Sherrill
They are disabled by default as they are deprecated. --- testsuites/samples/minimum/init.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/testsuites/samples/minimum/init.c b/testsuites/samples/minimum/init.c index 09aecbe..03ed79e 100644 --- a/testsuites/samples/minimum/init.c +++ b/te

[PATCH 04/19] mvme162/tod/tod.c: Do not use rtems_clock_get()

2015-03-16 Thread Joel Sherrill
--- c/src/lib/libbsp/m68k/mvme162/tod/tod.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/c/src/lib/libbsp/m68k/mvme162/tod/tod.c b/c/src/lib/libbsp/m68k/mvme162/tod/tod.c index 3475979..abd353d 100644 --- a/c/src/lib/libbsp/m68k/mvme162/tod/tod.c +++ b/c/src/lib/libbsp/

[PATCH 10/19] libchip/i2c/spi-memdrv.c: Do not use rtems_clock_get()

2015-03-16 Thread Joel Sherrill
--- c/src/libchip/i2c/spi-memdrv.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/c/src/libchip/i2c/spi-memdrv.c b/c/src/libchip/i2c/spi-memdrv.c index eba7b40..5930297 100644 --- a/c/src/libchip/i2c/spi-memdrv.c +++ b/c/src/libchip/i2c/spi-memdrv.c @@ -94,14 +94,1

[PATCH 11/19] libchip/network/if_fxp.c: Do not use rtems_clock_get()

2015-03-16 Thread Joel Sherrill
--- c/src/libchip/network/if_fxp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c/src/libchip/network/if_fxp.c b/c/src/libchip/network/if_fxp.c index 6bcbd8b..9d223bb 100644 --- a/c/src/libchip/network/if_fxp.c +++ b/c/src/libchip/network/if_fxp.c @@ -415,7 +415,7 @@ rtems_f

[PATCH 12/19] libmisc/monitor/mon-task.c: Disable deprecated warning for use of notepads

2015-03-16 Thread Joel Sherrill
--- cpukit/libmisc/monitor/mon-task.c | 23 +-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/cpukit/libmisc/monitor/mon-task.c b/cpukit/libmisc/monitor/mon-task.c index c2218b5..c08f1d2 100644 --- a/cpukit/libmisc/monitor/mon-task.c +++ b/cpukit/libmisc/monit

[PATCH 13/19] Disable deprecated warning on implementation of deprecated methods

2015-03-16 Thread Joel Sherrill
--- cpukit/rtems/src/clockget.c | 6 ++ cpukit/rtems/src/taskgetnote.c | 5 + cpukit/rtems/src/tasks.c| 14 +- cpukit/rtems/src/tasksetnote.c | 5 + cpukit/rtems/src/taskvariable_invoke_dtor.c | 5 + cpuk

[PATCH 14/19] tests misc: Disable deprecated method usage warning when intentional

2015-03-16 Thread Joel Sherrill
These tests intentionally use the deprecated method. Eventually this code in the sections can be deleted. --- testsuites/psxtests/psxconfig01/init.c | 14 +- testsuites/sptests/spclockget/init.c| 2 + testsuites/sptests/spnotepad01/init.c | 5 + testsuites/sptests/sptask_err04/task1.c

[PATCH 15/19] sptests misc: Update to not use deprecated methods

2015-03-16 Thread Joel Sherrill
--- testsuites/sptests/spcbssched02/task_periodic.c | 6 +++--- testsuites/sptests/spcbssched03/tasks_aperiodic.c | 6 +++--- testsuites/sptests/spcbssched03/tasks_periodic.c | 6 +++--- testsuites/sptests/spedfsched03/tasks_aperiodic.c | 6 +++--- testsuites/sptests/spedfsched03/tasks_periodic

[PATCH 16/19] powerpc/mvme5500/vectors/exceptionhandler.c: Turn off deprecated warning

2015-03-16 Thread Joel Sherrill
updated #2306. --- c/src/lib/libbsp/powerpc/mvme5500/vectors/exceptionhandler.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/c/src/lib/libbsp/powerpc/mvme5500/vectors/exceptionhandler.c b/c/src/lib/libbsp/powerpc/mvme5500/vectors/exceptionhandler.c index 216b4a9..4bd5a8a 100644 --- a

[PATCH 17/19] powerpc/shared/flash/intelFlash.c: Eliminate use of deprecated method

2015-03-16 Thread Joel Sherrill
--- c/src/lib/libbsp/powerpc/shared/flash/intelFlash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c/src/lib/libbsp/powerpc/shared/flash/intelFlash.c b/c/src/lib/libbsp/powerpc/shared/flash/intelFlash.c index 9e949e7..0d2fa92 100644 --- a/c/src/lib/libbsp/powerpc/shared/fl

[PATCH 18/19] cpukit/include/rtems/btimer.h: Improve brief

2015-03-16 Thread Joel Sherrill
--- cpukit/include/rtems/btimer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpukit/include/rtems/btimer.h b/cpukit/include/rtems/btimer.h index 7257ef6..78f8d9c 100644 --- a/cpukit/include/rtems/btimer.h +++ b/cpukit/include/rtems/btimer.h @@ -52,7 +52,7 @@ extern "C" {

[PATCH 19/19] spcbssched03/tasks_periodic.c: Fixed now used before set warning

2015-03-16 Thread Joel Sherrill
--- testsuites/sptests/spcbssched03/tasks_periodic.c | 1 + 1 file changed, 1 insertion(+) diff --git a/testsuites/sptests/spcbssched03/tasks_periodic.c b/testsuites/sptests/spcbssched03/tasks_periodic.c index 37b15b4..aa68228 100644 --- a/testsuites/sptests/spcbssched03/tasks_periodic.c +++ b/t

Warning Update

2015-03-16 Thread Joel Sherrill
Hi Gedare attempted to remove a couple of warnings and I wanted to pass along that in two cases, the warnings weren't resolved. These are from the sparc-erc32 and main_df.c previously didn't have warnings here. ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/hexdump-conv.c: In function '

[PATCH 05/19] mvme167/network/network.c: Do not use rtems_clock_get()

2015-03-16 Thread Joel Sherrill
--- c/src/lib/libbsp/m68k/mvme167/network/network.c | 40 + 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/c/src/lib/libbsp/m68k/mvme167/network/network.c b/c/src/lib/libbsp/m68k/mvme167/network/network.c index ff2356f..ab4ccf4 100644 --- a/c/src/lib/libbs

[PATCH 06/19] beatnik/network/porting/if_xxx_rtems.c: Do not use rtems_clock_get()

2015-03-16 Thread Joel Sherrill
--- c/src/lib/libbsp/powerpc/beatnik/network/porting/if_xxx_rtems.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c/src/lib/libbsp/powerpc/beatnik/network/porting/if_xxx_rtems.c b/c/src/lib/libbsp/powerpc/beatnik/network/porting/if_xxx_rtems.c index b0f90f3..fe15f97 100644 -

[PATCH 08/19] powerpc/shared/flash/intelFlash.c: Do not use rtems_clock_get()

2015-03-16 Thread Joel Sherrill
--- c/src/lib/libbsp/powerpc/shared/flash/intelFlash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c/src/lib/libbsp/powerpc/shared/flash/intelFlash.c b/c/src/lib/libbsp/powerpc/shared/flash/intelFlash.c index 10eb665..9e949e7 100644 --- a/c/src/lib/libbsp/powerpc/shared/fl

[PATCH 07/19] score603e/tod/tod.c: Do not use rtems_clock_get()

2015-03-16 Thread Joel Sherrill
--- c/src/lib/libbsp/powerpc/score603e/tod/tod.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/c/src/lib/libbsp/powerpc/score603e/tod/tod.c b/c/src/lib/libbsp/powerpc/score603e/tod/tod.c index 8135404..217c6f0 100644 --- a/c/src/lib/libbsp/powerpc/score603e/tod/tod.c +++

[PATCH 09/19] libcpu/bfin/clock/rtc.c: Do not use rtems_clock_get()

2015-03-16 Thread Joel Sherrill
--- c/src/lib/libcpu/bfin/clock/rtc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/c/src/lib/libcpu/bfin/clock/rtc.c b/c/src/lib/libcpu/bfin/clock/rtc.c index 4af18a2..fa340a3 100644 --- a/c/src/lib/libcpu/bfin/clock/rtc.c +++ b/c/src/lib/libcpu/bfin/clock/rtc.c @@ -44,

Re: GSoC 2015 Introduction - Condition Variables (CV)

2015-03-16 Thread Andrei - Constantin Popescu
Hello! I have finished finished a preliminary draft of my proposal, you can check it out here . I ll be uploading it on melange tomorrow as well ! Thanks for taking the time to go through it ! Regards, Andrei

About ether_output() function in if_etheresubr.c

2015-03-16 Thread Albert Chun-Chieh Huang
Hi, all, I'm currently working on adding a network device driver to rtems. The source tree was grabbed on July, 2014. It's still not working properly right now. But I have some questions about the network stack code. I added printf function in if_etheresubr.c in the directory cpukit/libnetworking