Re: Using rtl-host in covor - some questions

2014-08-26 Thread Chris Johns
On 27/08/2014 5:07 am, Joel Sherrill wrote: Chris.. ping? I am looking at this. It will take some time to sort out. I suggest changes be committed to covoar assuming the current rtl-host code and if someone needs to built it they copy the code in. I can clean up the building as I sort out th

Re: [PATCH 1/2] capture: change to use malloc/vs/rtems_workspace_alloc.

2014-08-26 Thread Chris Johns
On 27/08/2014 6:16 am, Jennifer Averett wrote: Since neither malloc nor rtems_workspace_alloc should be called during a task switch the capture task was changed to manage a pool of capture tasks that is allocated at open. Maybe the locking issue should be resolved first. For example the approa

Re: capture engine ref_count question

2014-08-26 Thread Chris Johns
On 27/08/2014 3:50 am, Jennifer Averett wrote: > We suggest to remove the ref_count of the task structures to save > time and locking. Otherwise we need atomic counters here? You need a means of tracking the logged references to the task data in the trace log. The log can exist well past th

Re: [PATCH] Add or1ksim (sim.cfg) configuration file and edit README.

2014-08-26 Thread Joel Sherrill
Now committed. Thanks. On 8/26/2014 2:42 PM, Hesham ALMatary wrote: > OpenRISC/or1ksim BSP: The new sim.cfg file configures or1ksim emulator with HW > capabilities that the current RTEMS/or1ksim BSP supports. > > README: HOWTO run the or1ksim simulator. > --- > c/src/lib/libbsp/or1k/or1ksim/READM

Re: [PATCH] sim-scripts: Add new or1ksim OpenRISC simulator script.

2014-08-26 Thread Joel Sherrill
This is merged. You should now be able to run all tests with or1ksim `find . -name "*.exe"` But you may also want to specify the time limit argument (-l seconds) since many may not run correctly. If you know abort/error messages where the simulator reports that the code barfs but doesn't exit, t

RE: [PATCH 3/4] capture: Remove nested rtems_interrupt_lock_acquire calls.

2014-08-26 Thread Jennifer Averett
Has there been any work done on adding an additional lock which allows nesting? I'm going through a list of capture engine modifications and the addition of an SMP nesting interrupt lock would be appreciated Thanks Jennifer > -Original Message- > From: devel [mailto:devel-boun...@rtems

[PATCH 2/2] capture01: Add multiple calls of the test so that several create/delete of tasks is called.

2014-08-26 Thread Jennifer Averett
--- testsuites/libtests/capture01/init.c | 33 - testsuites/libtests/capture01/system.h | 2 +- testsuites/libtests/capture01/test1.c | 10 +- 3 files changed, 30 insertions(+), 15 deletions(-) diff --git a/testsuites/libtests/capture01/init.c b/testsu

[PATCH 1/2] capture: change to use malloc/vs/rtems_workspace_alloc.

2014-08-26 Thread Jennifer Averett
Since neither malloc nor rtems_workspace_alloc should be called during a task switch the capture task was changed to manage a pool of capture tasks that is allocated at open. --- cpukit/libmisc/capture/capture-cli.c | 32 --- cpukit/libmisc/capture/capture.c | 79 ++

[PATCH] Add or1ksim (sim.cfg) configuration file and edit README.

2014-08-26 Thread Hesham ALMatary
OpenRISC/or1ksim BSP: The new sim.cfg file configures or1ksim emulator with HW capabilities that the current RTEMS/or1ksim BSP supports. README: HOWTO run the or1ksim simulator. --- c/src/lib/libbsp/or1k/or1ksim/README | 20 ++- c/src/lib/libbsp/or1k/or1ksim/sim.cfg | 104 ++

RE: [PATCH] score: Define _CPU_Start_multitasking only for LEON SPARC, not SPARC in general

2014-08-26 Thread Jennifer Averett
I'm getting the following error when building the head with smp enabled. sparc-rtems4.11-gcc -B../../../../../sis/lib/ -specs bsp_specs -qrtems -mcpu=cypress -O2 -g -ffunction-sections -fdata-sections -Wall -Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-extern

Re: [PATCH] sim-scripts: Add new or1ksim OpenRISC simulator script.

2014-08-26 Thread Joel Sherrill
On 8/26/2014 2:06 PM, Hesham Moustafa wrote: > Hi, > > On Tue, Aug 26, 2014 at 8:47 PM, Joel Sherrill > wrote: >> This looks good except that it is missing a comment for the commit. >> >> Can you add that and resubmit? >> > Done. Is it Ok to submit the sim.cfg and README change for or1ksim BSP to

Re: [PATCH] sim-scripts: Add new or1ksim OpenRISC simulator script.

2014-08-26 Thread Hesham Moustafa
Hi, On Tue, Aug 26, 2014 at 8:47 PM, Joel Sherrill wrote: > This looks good except that it is missing a comment for the commit. > > Can you add that and resubmit? > Done. Is it Ok to submit the sim.cfg and README change for or1ksim BSP too? > Thanks. > On 8/26/2014 12:59 PM, Hesham ALMatary wrote

Re: Using rtl-host in covor - some questions

2014-08-26 Thread Joel Sherrill
Chris.. ping? Do we need to remove things from rtems-testing since the official version is not in rtems-tools? And what about the rtl-host build dependency? Is it time to move it as well? On 8/25/2014 6:17 AM, Krzysztof Mięsowicz wrote: > > > > 2014-08-24 5:32 GMT+02:00 Chris Johns

[PATCH] sim-scripts: Add new or1ksim OpenRISC simulator script.

2014-08-26 Thread Hesham ALMatary
This patch adds support to run or1ksim and GDB; both of them run separately and GDB is remotely attached to or1ksim via RSP protocol. It's intended to run the new or1ksim/OpenRISC BSP applications. or1ksim script runs the simulator after generating a configuration file that specifies the HW featu

Re: [PATCH] sim-scripts: Add new or1ksim OpenRISC simulator script.

2014-08-26 Thread Joel Sherrill
This looks good except that it is missing a comment for the commit. Can you add that and resubmit? Thanks. On 8/26/2014 12:59 PM, Hesham ALMatary wrote: > --- > sim-scripts/Makefile | 5 +- > sim-scripts/or1ksim.in | 155 > + > 2 files changed

Re: RTEMS+LWIP for LPC1768 BSP

2014-08-26 Thread Joel Sherrill
First. Thanks for the work and taking the time and effort to submit it. Specifics below, but the general answer is to submit all RTEMS changes as reviewable patches to devel@rtems.org. We can then review them and get them merged. This will leave us with just the LWIP changes. Then we can review t

Re: [PATCH] sim-scripts: Add new or1ksim OpenRISC simulator script.

2014-08-26 Thread Hesham Moustafa
Hi, The first patch did not include the Makefile modifications, the previous reply did. Thanks, Hesham On Tue, Aug 26, 2014 at 7:59 PM, Hesham ALMatary wrote: > --- > sim-scripts/Makefile | 5 +- > sim-scripts/or1ksim.in | 155 > + > 2 files

[PATCH] sim-scripts: Add new or1ksim OpenRISC simulator script.

2014-08-26 Thread Hesham ALMatary
--- sim-scripts/Makefile | 5 +- sim-scripts/or1ksim.in | 155 + 2 files changed, 159 insertions(+), 1 deletion(-) create mode 100644 sim-scripts/or1ksim.in diff --git a/sim-scripts/Makefile b/sim-scripts/Makefile index 9d9baaf..e45feae 100644

capture engine ref_count question

2014-08-26 Thread Jennifer Averett
During discussions on capture engine modifications Daniel H. suggested the following > We suggest to remove the ref_count of the task structures to save > time and locking. Otherwise we need atomic counters here? > We suggest to free task structures when reading, by recording time of > task de

[PATCH] sim-scripts: Add new or1ksim OpenRISC simulator script.

2014-08-26 Thread Hesham ALMatary
--- sim-scripts/or1ksim.in | 155 + 1 file changed, 155 insertions(+) create mode 100644 sim-scripts/or1ksim.in diff --git a/sim-scripts/or1ksim.in b/sim-scripts/or1ksim.in new file mode 100644 index 000..3f59e47 --- /dev/null +++ b/sim-scripts

Re: [PATCH 1/5] sptests/spcache01: Make inline assembly conditional to account for OpenRISC l.nop instruction.

2014-08-26 Thread Joel Sherrill
On 8/26/2014 9:38 AM, Hesham Moustafa wrote: > On Tue, Aug 26, 2014 at 4:09 PM, Joel Sherrill > wrote: >> On 8/26/2014 8:53 AM, Hesham Moustafa wrote: >>> Hi, >>> >>> On Mon, Aug 25, 2014 at 6:15 PM, Joel Sherrill >>> wrote: I pushed all of this set and will be testing soon. >>> Great,

Re: [PATCH 1/5] sptests/spcache01: Make inline assembly conditional to account for OpenRISC l.nop instruction.

2014-08-26 Thread Hesham Moustafa
On Tue, Aug 26, 2014 at 4:09 PM, Joel Sherrill wrote: > > On 8/26/2014 8:53 AM, Hesham Moustafa wrote: >> Hi, >> >> On Mon, Aug 25, 2014 at 6:15 PM, Joel Sherrill >> wrote: >>> I pushed all of this set and will be testing soon. >>> >> Great, Thanks! > No problem. We know this is a work in progres

Re: [PATCH 1/5] sptests/spcache01: Make inline assembly conditional to account for OpenRISC l.nop instruction.

2014-08-26 Thread Joel Sherrill
On 8/26/2014 8:53 AM, Hesham Moustafa wrote: > Hi, > > On Mon, Aug 25, 2014 at 6:15 PM, Joel Sherrill > wrote: >> I pushed all of this set and will be testing soon. >> > Great, Thanks! No problem. We know this is a work in progress and it is better to keep the delta small as progress is made. >>

Re: [PATCH 1/5] sptests/spcache01: Make inline assembly conditional to account for OpenRISC l.nop instruction.

2014-08-26 Thread Hesham Moustafa
Hi, On Mon, Aug 25, 2014 at 6:15 PM, Joel Sherrill wrote: > I pushed all of this set and will be testing soon. > Great, Thanks! > Can you post your simulator configuration file? > Here it's https://github.com/heshamelmatary/or1k-rtems/blob/master/sim.cfg Should I include it part of the or1ksim B

RTEMS+LWIP for LPC1768 BSP

2014-08-26 Thread Federico Casares
Hi, In the past weeks we were working on porting the last LWIP version to RTEMS for the LPC1768 microcontroller. Our main goal was to accomplish this with the minimum number of changes for both projects. Fortunately, the result was positive. Now, we are capable of providing to the community with

Re: Rtems_fsmount dosfs hanging

2014-08-26 Thread Sebastian Huber
On 26/08/14 10:30, Ritesh Harjani wrote: Hi Sebastian, You mean to say that the SD card driver for raspberry pi on RTEMS has been already developed by you ? Which you will also be publishing by end of this week ? No, I mean that I have a port of the FreeBSD MMC/SD card stack. The main work

Re: Rtems_fsmount dosfs hanging

2014-08-26 Thread Ritesh Harjani
Hi Sebastian, You mean to say that the SD card driver for raspberry pi on RTEMS has been already developed by you ? Which you will also be publishing by end of this week ? Thanks Ritesh On Tue, Aug 26, 2014 at 1:55 PM, Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > Hello, > >

Re: Rtems_fsmount dosfs hanging

2014-08-26 Thread Sebastian Huber
Hello, I work currently on a MMC/SD driver for the DesignWare Mobile Storage Host. I use the FreeBSD MMC/SD stack for this. It is based on the USB stack library. I will probably publish it this week in my private Git area. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D

Re: Rtems_fsmount dosfs hanging

2014-08-26 Thread Ritesh Harjani
Thanks Andre, This will be really a big help. Also, I am sure it will help anyone who will be working over SD card/MMC interface in Raspberry pi for RTEMS. Currently, since I don't have enough knowledge on SD spec. I am going through the pdf that you have sent and trying to just initialize SD car

Re: [PATCH] score: Define _CPU_Start_multitasking only for LEON SPARC, not SPARC in general

2014-08-26 Thread Sebastian Huber
On 25/08/14 19:29, Joel Sherrill wrote: On 8/25/2014 11:44 AM, Sebastian Huber wrote: On 08/25/2014 05:04 PM, Joel Sherrill wrote: On 8/25/2014 5:10 AM, Sebastian Huber wrote: On 25/08/14 11:45, Daniel Cederman wrote: --- cpukit/score/cpu/sparc/rtems/score/cpu.h |2 ++ 1 file chan

Re: Rtems_fsmount dosfs hanging

2014-08-26 Thread Andre Marques
Hello Ritesh, My progress on the SD card support can be found on https://bitbucket.org/asuol/rtems-graduation-project/src/ It contains the sources and a test case (it reads a file and write another on the card), as well as patches so you can easily test that code. It was based on https://gi