Re: [PATCHES] Add imxrt BSP

2020-11-17 Thread Christian Mauderer
Hello Gedare, Am 17.11.20 um 18:33 schrieb Gedare Bloom: Everything except 5 looks good. I or someone else should take a closer look at that. Thanks for the review. I noted that I most likely have to rework the MPU setup a bit. A table based approach (similar to the one used for ARMV7_CP15 b

Re: [PATCH rtems-docs 1/2] user/bsps: Add imxrt

2020-11-17 Thread Christian Mauderer
Am 17.11.20 um 18:41 schrieb Gedare Bloom: On Tue, Nov 17, 2020 at 4:09 AM Christian Mauderer wrote: Update #4180 --- user/bsps/arm/imxrt.rst | 174 user/bsps/bsps-arm.rst | 1 + 2 files changed, 175 insertions(+) create mode 100644 user/bsps/a

[PATCH] shell: Add i2c and spi commands

2020-11-17 Thread Christian Mauderer
This adds some commands that are usefull for debugging simple serial interfaces. Even if they are a complete re-implementation, the i2c* commands use a simmilar call like the Linux i2c tools. --- Note: This is a resubmission of the patch. Previously I submitted it together with the patches that a

[PATCH] Add License file for BSD-3-Clause

2020-11-17 Thread Christian Mauderer
We have some files with a SPDX identifier for this license. Therefore the license should be here too. --- Note: This is a resubmission of the patch. Previously I submitted it together with the patches that add a new imxrt BSP: https://lists.rtems.org/pipermail/devel/2020-November/063273.html I o

Re: libdl: How to debug dl object with GDB

2020-11-17 Thread Chris Johns
On 17/11/20 10:43 pm, Hesham Almatary wrote: > Hello, > > I am trying to debug a dynamically loaded ELF object with GDB: My setup is: > rtems-riscv64: > GDB: GNU gdb (GDB) 10.0.50.20200904-git (build with RSB/rtems6) > Host: Ubuntu 20.04.1 LTS > > GDB doesn't seem to notice when I dlopen an ob

Re: [PATCH 7/8] validation/ts-performance-0: Add test suite

2020-11-17 Thread Chris Johns
On 17/11/20 6:02 pm, Sebastian Huber wrote: > On 17/11/2020 00:15, Chris Johns wrote: > > new file mode 100644 > index 00..0f7db65a8e > --- /dev/null > +++ b/testsuites/validation/ts-default.h > @@ -0,0 +1,237 @@ > +/* SPDX-License-Identifier: BSD-2-Clause */ >

Re: Proposal for hardware configuration dependent performance limits

2020-11-17 Thread Chris Johns
On 17/11/20 6:14 pm, Sebastian Huber wrote: > > On 16/11/2020 23:42, Chris Johns wrote: >> On 16/11/20 5:40 pm, Sebastian Huber wrote: >>> On 16/11/2020 00:33, Chris Johns wrote: >>> >>> In the proposal, limits are specified like this: >>> >>> >>> limits: >>>   sparc/gr71

Re: How do I skip over a portion on code while debugging with GDB

2020-11-17 Thread Joel Sherrill
Next is good but setting a breakpoint at the line after the task create loop is probably the solution here. Or "next NUMBER" to next a number of times. Many gdb commands take a number. Another interesting option is using continue and break conditions. You could then continue until the loop counter

Re: How do I skip over a portion on code while debugging with GDB

2020-11-17 Thread Gedare Bloom
Use 'next' to step by instructions in program order ignoring their control flow. This also will skip over function calls. On Tue, Nov 17, 2020 at 8:54 AM Richi Dubey wrote: > > Hi, > > When I am trying to debug the tm24 test suite, there's some line of code that > repeats the same code that crea

Re: How do we know what priority of the Init task is?

2020-11-17 Thread Richi Dubey
Awesome, thanks! On Tue, Nov 17, 2020 at 9:53 PM Joel Sherrill wrote: > > > On Tue, Nov 17, 2020, 9:50 AM Richi Dubey wrote: > >> Hi, >> >> Sometimes the priority of the Init task is not mentioned in the source >> code of the test suites of the headers files included in it (ex. see tm24 >>

Re: [PATCH rtems-docs 1/2] user/bsps: Add imxrt

2020-11-17 Thread Gedare Bloom
On Tue, Nov 17, 2020 at 4:09 AM Christian Mauderer wrote: > > Update #4180 > --- > user/bsps/arm/imxrt.rst | 174 > user/bsps/bsps-arm.rst | 1 + > 2 files changed, 175 insertions(+) > create mode 100644 user/bsps/arm/imxrt.rst > > diff --git a/user/bs

Re: [PATCH rtems 1/9] Add License file for BSD-3-Clause

2020-11-17 Thread Gedare Bloom
On Tue, Nov 17, 2020 at 10:32 AM Christian Mauderer wrote: > > On 17/11/2020 18:29, Gedare Bloom wrote: > > this is ok, would have preferred it separately ;) > > Hello Gedare, > > yes, sorry. I shouldn't have hidden it in the patch set. I haven't > checked thoroughly enough before sending. I'll se

Re: [PATCHES] Add imxrt BSP

2020-11-17 Thread Gedare Bloom
Everything except 5 looks good. I or someone else should take a closer look at that. On Tue, Nov 17, 2020 at 4:04 AM Christian Mauderer wrote: > > Hello, > > the following patches add a BSP for IMXRT1050-EVKB. In case the import > patch is too big: I pushed the patches here too: > > https://gitla

Re: [PATCH rtems 1/9] Add License file for BSD-3-Clause

2020-11-17 Thread Christian Mauderer
On 17/11/2020 18:29, Gedare Bloom wrote: > this is ok, would have preferred it separately ;) Hello Gedare, yes, sorry. I shouldn't have hidden it in the patch set. I haven't checked thoroughly enough before sending. I'll send it as a separate patch tomorrow so that everyone is aware of it. Same i

Re: [PATCH rtems 5/9] shell: Add i2c and spi commands

2020-11-17 Thread Gedare Bloom
These should be reviewed separately from the BSP addition. I'm not really that good with the shell, so it would take me some time. On Tue, Nov 17, 2020 at 4:05 AM Christian Mauderer wrote: > > This adds some commands that are usefull for debugging simple serial > interfaces. > > Even if they are

Re: [PATCH rtems 1/9] Add License file for BSD-3-Clause

2020-11-17 Thread Gedare Bloom
this is ok, would have preferred it separately ;) On Tue, Nov 17, 2020 at 4:05 AM Christian Mauderer wrote: > > We have some files with a SPDX identifier for this license. Therefore > the license should be here too. > --- > LICENSE.BSD-3-Clause | 27 +++ > 1 file changed,

Re: How do we know what priority of the Init task is?

2020-11-17 Thread Joel Sherrill
On Tue, Nov 17, 2020, 9:50 AM Richi Dubey wrote: > Hi, > > Sometimes the priority of the Init task is not mentioned in the source > code of the test suites of the headers files included in it (ex. see tm24 > ). Can > someone please

How do I skip over a portion on code while debugging with GDB

2020-11-17 Thread Richi Dubey
Hi, When I am trying to debug the tm24 test suite, there's some line of code that repeats the same code that creates a task around 100 times. Is there a way I can skip that code while debugging? Please let me know. Thanks, Ric

How do we know what priority of the Init task is?

2020-11-17 Thread Richi Dubey
Hi, Sometimes the priority of the Init task is not mentioned in the source code of the test suites of the headers files included in it (ex. see tm24 ). Can someone please let me know how we can understand what the priority of the In

Re: GMP is now a required dependency for building GDB

2020-11-17 Thread Joel Sherrill
On Tue, Nov 17, 2020 at 1:46 AM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > Hello, > > I tried to update the RTEMS 6/7 tools yesterday and all builds failed on > my FreeBSD machine. The reason is this change in GDB: > > commit 1b4ac058f7daeb9bac9ab0e63a7e73535208dfef > Author: J

libdl: How to debug dl object with GDB

2020-11-17 Thread Hesham Almatary
Hello, I am trying to debug a dynamically loaded ELF object with GDB: My setup is: rtems-riscv64: GDB: GNU gdb (GDB) 10.0.50.20200904-git (build with RSB/rtems6) Host: Ubuntu 20.04.1 LTS GDB doesn't seem to notice when I dlopen an object (which gets loaded, linked and run fine). Any instructions

[PATCH rtems-docs 1/2] user/bsps: Add imxrt

2020-11-17 Thread Christian Mauderer
Update #4180 --- user/bsps/arm/imxrt.rst | 174 user/bsps/bsps-arm.rst | 1 + 2 files changed, 175 insertions(+) create mode 100644 user/bsps/arm/imxrt.rst diff --git a/user/bsps/arm/imxrt.rst b/user/bsps/arm/imxrt.rst new file mode 100644 index 00

[PATCH rtems-docs 2/2] user/bsps: Fix list in bsps-arm

2020-11-17 Thread Christian Mauderer
Seems that some filenames haven't been added correctly. --- user/bsps/bsps-arm.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user/bsps/bsps-arm.rst b/user/bsps/bsps-arm.rst index a63dd5f..f8a1d60 100644 --- a/user/bsps/bsps-arm.rst +++ b/user/bsps/bsps-arm.rst @@ -9,6

[PATCH rtems-libbsd 2/2] if_ffec: Fix cache handling on tx

2020-11-17 Thread Christian Mauderer
With the previous fix, it could happen that the end of the packet hasn't been flushed. For example assume the following addresses: ds_addr: 0x81c804A ds_len: 0x57 In that case the data ends at 0x81c80a1. But due to the rounding the area from 0x81c8040 to 0x81c80a0 would have been flushed. This f

[PATCH rtems-libbsd 1/2] imxrt: Add support

2020-11-17 Thread Christian Mauderer
Update #4180 --- rtemsbsd/include/bsp/nexus-devices.h | 8 1 file changed, 8 insertions(+) diff --git a/rtemsbsd/include/bsp/nexus-devices.h b/rtemsbsd/include/bsp/nexus-devices.h index 18b4c012..630572a8 100644 --- a/rtemsbsd/include/bsp/nexus-devices.h +++ b/rtemsbsd/include/bsp/nexus

[PATCH rtems 8/9] bsp/imxrt: Adapt imported files

2020-11-17 Thread Christian Mauderer
Update #4180 --- bsps/arm/imxrt/include/fsl_device_registers.h | 57 ++- bsps/arm/imxrt/include/fsl_flexspi_nor_boot.h | 6 ++ ..._nor_config.h => fsl_flexspi_nor_config.h} | 0 bsps/arm/imxrt/include/fsl_lpuart.h | 4 ++ bsps/arm/imxrt/include/fsl_pin_mux.h |

[PATCH rtems 5/9] shell: Add i2c and spi commands

2020-11-17 Thread Christian Mauderer
This adds some commands that are usefull for debugging simple serial interfaces. Even if they are a complete re-implementation, the i2c* commands use a simmilar call like the Linux i2c tools. --- cpukit/Makefile.am| 4 + cpukit/include/rtems/shellconfig.h| 28 + cpu

[PATCH rtems 3/9] bsps/imx: Move imx-gpio to arm/shared

2020-11-17 Thread Christian Mauderer
Update #4180 --- bsps/arm/imx/headers.am | 5 - bsps/arm/shared/headers.am | 5 + bsps/arm/{imx => shared}/include/bsp/imx-gpio.h | 0 bsps/arm/{imx/gpio => shared/pins}/imx-gpio.c | 0 c/src/lib/libbsp/arm/imx/Makefile.am| 2 +- s

[PATCH rtems 7/9] bsp/imxrt: Fix warnings for imported files

2020-11-17 Thread Christian Mauderer
Update #4180 --- bsps/arm/imxrt/include/fsl_common.h | 295 ++ bsps/arm/imxrt/include/fsl_flexspi_nor_boot.h | 2 + .../imxrt/nxp/boards/evkbimxrt1050/pin_mux.c | 4 + .../nxp/devices/MIMXRT1052/drivers/fsl_dcp.c | 4 + .../devices/MIMXRT1052/drivers/fsl_spdif.c

[PATCH rtems 1/9] Add License file for BSD-3-Clause

2020-11-17 Thread Christian Mauderer
We have some files with a SPDX identifier for this license. Therefore the license should be here too. --- LICENSE.BSD-3-Clause | 27 +++ 1 file changed, 27 insertions(+) create mode 100644 LICENSE.BSD-3-Clause diff --git a/LICENSE.BSD-3-Clause b/LICENSE.BSD-3-Clause new f

[PATCH rtems 2/9] imx: Move imx_iomux to arm/shared

2020-11-17 Thread Christian Mauderer
Update #4180 --- bsps/arm/imx/headers.am | 2 - bsps/arm/imx/include/bsp.h| 3 +- bsps/arm/shared/headers.am| 6 +++ .../include/arm/freescale/imx/imx_iomuxreg.h | 0 .../include/arm/freescale/imx/imx_iomuxvar.h | 0 bsps/arm/sha

[PATCHES] Add imxrt BSP

2020-11-17 Thread Christian Mauderer
Hello, the following patches add a BSP for IMXRT1050-EVKB. In case the import patch is too big: I pushed the patches here too: https://gitlab.com/c-mauderer/rtems/-/tree/cm/20201117_imxrt Best regards Christian ___ devel mailing list devel@rtems.org

[PATCH rtems 4/9] cpu/armv7m: Add _ARMV7M_MPU_set_region function

2020-11-17 Thread Christian Mauderer
Make the MPU function defined in the STM32H7 BSP available for all ARMV7M BSPs. Update #4180 --- bsps/arm/stm32h7/start/bspstarthooks.c| 48 +++ .../cpu/arm/include/rtems/score/armv7m.h | 37 ++ 2 files changed, 43 insertions(+), 42 deletions(-) diff --gi