[PATCH v5] Confstr support for RTEMS

2021-02-03 Thread Eshan Dhawan
From: Eshan dhawan Signed-off-by: Eshan Dhawan --- cpukit/Makefile.am| 1 + cpukit/posix/src/confstr.c| 103 + spec/build/cpukit/librtemscpu.yml | 1 + spec/build/testsuites/psxtests/grp.yml| 2 + spec/build/t

[PATCH v2] Test suite for FTW.H methods

2021-02-03 Thread Eshan Dhawan
From: Eshan dhawan Signed-off-by: Eshan Dhawan --- spec/build/testsuites/psxtests/grp.yml | 2 + spec/build/testsuites/psxtests/psxftw01.yml | 34 testsuites/psxtests/Makefile.am | 26 +++ testsuites/psxtests/configure.ac| 1 + testsuites/psxtests/psxftw0

Re: Waf build error

2021-02-03 Thread Gedare Bloom
also, this looks wrong: "testsuites/psxftw01/psxftw01.exe" On Wed, Feb 3, 2021 at 2:11 PM Gedare Bloom wrote: > Yes, > > - testsuites/psxftw01/psxftw01 > > is incorrect in your psxftw01.yml >

Re: Waf build error

2021-02-03 Thread Gedare Bloom
Yes, - testsuites/psxftw01/psxftw01 is incorrect in your psxftw01.yml Probably just fix that. On Wed, Feb 3, 2021 at 2:01 PM Eshan Dhawa

Waf build error

2021-02-03 Thread Eshan Dhawan
Hello everyone, I was adding ftw test for waf build and got this error /home/nolife/development/rtems/kernel/rtems/testsuites/psxtests/psxftw01/init.c:54:10: fatal error: psxftw01-tar.h: No such file or directory 54 | #include "psxftw01-tar.h" | ^~~~ compilation termi

Re: Debugging rtems-docs Sphinx issue

2021-02-03 Thread Joel Sherrill
On Wed, Feb 3, 2021 at 1:55 PM Gedare Bloom wrote: > > On Wed, Feb 3, 2021 at 11:51 AM Ryan Long wrote: > >> Gedare, >> >> >> >> I applied your patch, but it still isn’t working for me. The error is the >> same in the console output and config.log. >> >> The ./waf configure command that I’m runn

Re: Debugging rtems-docs Sphinx issue

2021-02-03 Thread Gedare Bloom
On Wed, Feb 3, 2021 at 11:51 AM Ryan Long wrote: > Gedare, > > > > I applied your patch, but it still isn’t working for me. The error is the > same in the console output and config.log. > > The ./waf configure command that I’m running is > > ./waf configure --prefix='`pwd`' –pdf > > > I get a di

Re: [PATCH v3] bsps/shared/ofw: Fix coverity reported defects

2021-02-03 Thread Gedare Bloom
On Wed, Feb 3, 2021 at 2:48 AM G S Niteesh Babu wrote: > Fixed use after free and null pointer dereference defects > > FIXES: > 1) CID 1472601 (NULL_RETURNS) > 2) CID 1472600 (USE_AFTER_FREE) > 3) CID 1472599 (USE_AFTER_FREE) > 4) CID 1472598 (USE_AFTER_FREE) > 5) CID 1472596 (USE_AFTER_FREE) > 6

Re: hello world project

2021-02-03 Thread Gedare Bloom
Thanks, please send me a git patch of your modification. On Wed, Feb 3, 2021 at 10:40 AM Ayushman Mishra wrote: > Good evening everyone Ayushman here, > I modified the program present in > $HOME/quick-start/src/rtems/build/sparc/erc32/testsuites/samples/hello.exe > by changing the init.c file i

RE: Debugging rtems-docs Sphinx issue

2021-02-03 Thread Ryan Long
Gedare, I applied your patch, but it still isn’t working for me. The error is the same in the console output and config.log. The ./waf configure command that I’m running is ./waf configure --prefix='`pwd`' –pdf I don’t know if that could be part of the issue. Thanks, Ryan From: Gedare Bloom

Re: [PATCH docs] user: remove old build system cmd

2021-02-03 Thread Niteesh G. S.
On Wed, Feb 3, 2021 at 11:13 PM Joel Sherrill wrote: > Was there a mkdir b-erc32 near there in those instructions? > No. All references to the build system in the GSoC section refer to the new build system Though there is an unnecessary instruction to create a dir in the manual BSP build section

Re: [PATCH v3] bsps/shared/ofw: Fix coverity reported defects

2021-02-03 Thread Niteesh G. S.
On Wed, Feb 3, 2021 at 11:05 PM Gedare Bloom wrote: > Is this second patch ok to check? > Yes, please go through this patch. Again adding a link to the patch to avoid confusion https://lists.rtems.org/pipermail/devel/2021-February/064203.html Thanks, Niteesh. > On Wed, Feb 3, 2021 at 2:48 AM

Re: [PATCH docs] user: remove old build system cmd

2021-02-03 Thread Joel Sherrill
Was there a mkdir b-erc32 near there in those instructions? On Wed, Feb 3, 2021, 11:33 AM Gedare Bloom wrote: > pushed, thx > > On Wed, Feb 3, 2021 at 10:27 AM G S Niteesh Babu > wrote: > >> --- >> user/start/gsoc.rst | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --gi

Re: [PATCH v3] bsps/shared/ofw: Fix coverity reported defects

2021-02-03 Thread Gedare Bloom
Is this second patch ok to check? On Wed, Feb 3, 2021 at 2:48 AM G S Niteesh Babu wrote: > Fixed use after free and null pointer dereference defects > > FIXES: > 1) CID 1472601 (NULL_RETURNS) > 2) CID 1472600 (USE_AFTER_FREE) > 3) CID 1472599 (USE_AFTER_FREE) > 4) CID 1472598 (USE_AFTER_FREE) >

Re: [PATCH docs] user: remove old build system cmd

2021-02-03 Thread Gedare Bloom
pushed, thx On Wed, Feb 3, 2021 at 10:27 AM G S Niteesh Babu wrote: > --- > user/start/gsoc.rst | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/user/start/gsoc.rst b/user/start/gsoc.rst > index f8167b9..2c7df7c 100644 > --- a/user/start/gsoc.rst > +++ b/user/start/g

[PATCH] common/waf: fix some typos

2021-02-03 Thread Gedare Bloom
--- common/waf.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/waf.py b/common/waf.py index 2610235..3806209 100644 --- a/common/waf.py +++ b/common/waf.py @@ -269,7 +269,7 @@ def cmd_configure(ctx): ctx.fatal('Unsupported latex engine: %s' % (conf.

Re: Debugging rtems-docs Sphinx issue

2021-02-03 Thread Gedare Bloom
Hi Ryan, On Tue, Feb 2, 2021 at 2:53 PM Ryan Long wrote: > Hi, > > > > I’m working on https://devel.rtems.org/ticket/4229#ticket . The > following command is being issued: > > > > /home/rlong/nta-workspace/nta-docs/sphinx/bin/sphinx-build -b html -D > extensions=sphinxcontrib.bibtex -C . out c

[PATCH docs] user: remove old build system cmd

2021-02-03 Thread G S Niteesh Babu
--- user/start/gsoc.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user/start/gsoc.rst b/user/start/gsoc.rst index f8167b9..2c7df7c 100644 --- a/user/start/gsoc.rst +++ b/user/start/gsoc.rst @@ -114,8 +114,8 @@ running `make` in the BSP build directory. .. code-bloc

[PATCH] common: use bibtex_bibfiles for newer bibtex

2021-02-03 Thread Gedare Bloom
Closes #4229. --- common/conf.py | 2 ++ common/waf.py | 5 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/common/conf.py b/common/conf.py index 8fb06db..a652e2a 100644 --- a/common/conf.py +++ b/common/conf.py @@ -12,6 +12,8 @@ extensions = [ "rtemsdomain", ] +bib

Re: Unable to use make command to build "Hello world" Program

2021-02-03 Thread Niteesh G. S.
;> dl06.exe > >> minimum.exe > >> User Input: > >> capture.exe > >> dl10.exe > >> top.exe > >> fileio.exe > >> termios.exe > >> monitor.exe > >> Expected Fail: > >> psxfenv01.exe > >> Benchmark: > &g

Re: Unable to use make command to build "Hello world" Program

2021-02-03 Thread Rohan kumar
Okay Joel thanks for your help and I will surly check this ticket. On Wed, Feb 3, 2021 at 8:33 PM Joel Sherrill wrote: > > > On Wed, Feb 3, 2021 at 8:29 AM Rohan kumar wrote: > >> Actually I followed this document >> >> https://docs.rtems.org/branches/master/user/start/bsp-build.html#quickstart

Re: Unable to use make command to build "Hello world" Program

2021-02-03 Thread Joel Sherrill
On Wed, Feb 3, 2021 at 8:29 AM Rohan kumar wrote: > Actually I followed this document > > https://docs.rtems.org/branches/master/user/start/bsp-build.html#quickstartbspbuild-manual > to > build bsp manually > as mentioned in the "GSoc getting started" blog. > > Also yes when I run "./waf" comma

Re: [PATCH] Basic lwIP for STM32H7 BSP

2021-02-03 Thread Joel Sherrill
On Wed, Feb 3, 2021, 8:26 AM Robin Müller wrote: > Also, Andrei Chichak provided a very good explanation: > > The STM32x7 ethernet controllers need their descriptors and data areas to >> be located on 32-byte boundaries with a combination of cache being turned >> off and buffering being turned of

Re: Unable to use make command to build "Hello world" Program

2021-02-03 Thread Rohan kumar
Actually I followed this document https://docs.rtems.org/branches/master/user/start/bsp-build.html#quickstartbspbuild-manual to build bsp manually as mentioned in the "GSoc getting started" blog. Also yes when I run "./waf" command "Waf: Leaving directory `/home/rohan/devlopment/src/rtems/build/s

Re: [PATCH] Basic lwIP for STM32H7 BSP

2021-02-03 Thread Robin Müller
Also, Andrei Chichak provided a very good explanation: The STM32x7 ethernet controllers need their descriptors and data areas to > be located on 32-byte boundaries with a combination of cache being turned > off and buffering being turned off. This is a side effect of the STM32x7 > DMA and data cac

Re: [PATCH] Basic lwIP for STM32H7 BSP

2021-02-03 Thread Robin Müller
The following link contains more theoretical information about why these sections were placed at these addresses: https://community.st.com/s/article/FAQ-DMA-is-not-working-on-STM32H7-devices Kind Regards Robin On Wed, 3 Feb 2021 at 14:44, Robin Müller wrote: > The DMA descriptors need to be pla

Re: [PATCH] Basic lwIP for STM32H7 BSP

2021-02-03 Thread Robin Müller
The DMA descriptors need to be placed at the start of the SRAM3 and need to be aligned in a certain way. The RX buffer will take up the first (slightly less than) 16 kB of SRAM3 but needs to be placed behind the DMA descriptors. It also needs to be placed in a way that the MPU configuration require

Re: Unable to use make command to build "Hello world" Program

2021-02-03 Thread Joel Sherrill
On Wed, Feb 3, 2021, 6:43 AM Rohan kumar wrote: > Hello all, > I am trying to run Hello World program but when run the command "make" to > build, the error came "make: *** No targets specified and no makefile > found. Stop". Actually there is nothing in the "/build/b-erc32" folder > its just emp

Unable to use make command to build "Hello world" Program

2021-02-03 Thread Rohan kumar
Hello all, I am trying to run Hello World program but when run the command "make" to build, the error came "make: *** No targets specified and no makefile found. Stop". Actually there is nothing in the "/build/b-erc32" folder its just empty and also there in the step "Test a BSP" I got two failur

Re: [PATCH] Basic lwIP for STM32H7 BSP

2021-02-03 Thread Sebastian Huber
On 02/02/2021 20:10, Robin Mueller wrote: + /* Not an ideal solution but required for lwIP on the STM32H7 BSP. + This places the DMA descriptors for lwIP at the start of SRAM3. + The MPU still needs to be configured for the DMA descriptor regions to be + bufferable, non-

[PATCH v3] bsps/shared/ofw: Fix coverity reported defects

2021-02-03 Thread G S Niteesh Babu
Fixed use after free and null pointer dereference defects FIXES: 1) CID 1472601 (NULL_RETURNS) 2) CID 1472600 (USE_AFTER_FREE) 3) CID 1472599 (USE_AFTER_FREE) 4) CID 1472598 (USE_AFTER_FREE) 5) CID 1472596 (USE_AFTER_FREE) 6) CID 1472597 (ARRAY_VS_SINGLETON) 7) CID 1472595 (ARRAY_VS_SINGLETON) ---

Re: [PATCH v2] bsps/shared/ofw: Fix coverity reported defects

2021-02-03 Thread Niteesh G. S.
Hello, Please ignore this patch. Thanks, Niteesh. On Wed, Feb 3, 2021 at 3:14 PM G S Niteesh Babu wrote: > Fixed use after free and null pointer dereference defects > > FIXES: > 1) CID 1472601 (NULL_RETURNS) > 2) CID 1472600 (USE_AFTER_FREE) > 3) CID 1472599 (USE_AFTER_FREE) > 4) CID 1472598 (

[PATCH v2] bsps/shared/ofw: Fix coverity reported defects

2021-02-03 Thread G S Niteesh Babu
Fixed use after free and null pointer dereference defects FIXES: 1) CID 1472601 (NULL_RETURNS) 2) CID 1472600 (USE_AFTER_FREE) 3) CID 1472599 (USE_AFTER_FREE) 4) CID 1472598 (USE_AFTER_FREE) 5) CID 1472596 (USE_AFTER_FREE) 6) CID 1472597 (ARRAY_VS_SINGLETON) 7) CID 1472595 (ARRAY_VS_SINGLETON) ---