[PATCH] wscript: Update install directory to include RTEMS Version

2024-02-20 Thread aaron . nyholm
From: Aaron N Closes #4929 --- config/wscript | 2 +- linkers/wscript| 2 +- misc/tools/boot.py | 2 +- misc/wscript | 4 ++-- rtemstoolkit/macros.py | 3 +++ rtemstoolkit/wscript | 4 ++-- tester/covoar/wscript | 4 ++-- tester/rt/options.py | 2 +-

[PATCH v2 3/3] libmisc/shell: Improve print messages for flashdev command

2024-01-23 Thread aaron . nyholm
From: Aaron Nyholm --- cpukit/libmisc/shell/main_flashdev.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/cpukit/libmisc/shell/main_flashdev.c b/cpukit/libmisc/shell/main_flashdev.c index ca2454b33c..dc73d3f9db 100644 --- a/cpukit/libmisc/shell/main_flashdev.c

[PATCH v2 2/3] bsps: Add flash wrapper for Xilinx GQSPI

2024-01-23 Thread aaron . nyholm
From: Aaron Nyholm --- bsps/aarch64/xilinx-versal/include/bsp/irq.h | 1 + bsps/include/dev/spi/xqspi_flash.h| 65 ++ bsps/include/dev/spi/xqspipsu-flash-helper.h | 20 ++ bsps/shared/dev/spi/xqspi_flash.c | 210 ++ bsps/shared/dev/spi/xqspipsu

[PATCH v2 1/3] build: Fix build issues with xqspipsu on versal

2024-01-23 Thread aaron . nyholm
From: Aaron Nyholm --- spec/build/bsps/aarch64/xilinx-versal/grp.yml| 2 ++ .../bsps/aarch64/xilinx-versal/optxilversal.yml | 16 2 files changed, 18 insertions(+) create mode 100644 spec/build/bsps/aarch64/xilinx-versal/optxilversal.yml diff --git a/spec/build/bsps

Xilinx QSPI Flash Patches

2024-01-23 Thread aaron . nyholm
Hi All, Attached are V2 of the patches that adds a wrapper around Xilinx's$ XQspiPsu flash driver to rtems_flashdev. This has been placed in$ bsp/shared. The JFFS2 driver has been removed as it is outdated. Thanks, Aaron. ___ devel mailing list

Re: [PATCH v1 3/4] aarch64/versal: Port JFFS2 GQSPI NOR Driver from Zynqmp

2023-10-25 Thread Aaron Nyholm
by a generic > JFFS2 NOR flashdev driver which I can go ahead and post. I was hoping to make > it NAND compatible before posting, but I just haven't had the time. > Alternatively, I can send it to you for testing if you'd prefer. > > On Thu, Oct 19, 2023 at 12:43 AM wro

[PATCH v1 4/4] libmisc/shell: Improve print messages for flashdev command

2023-10-18 Thread aaron . nyholm
From: Aaron Nyholm --- cpukit/libmisc/shell/main_flashdev.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/cpukit/libmisc/shell/main_flashdev.c b/cpukit/libmisc/shell/main_flashdev.c index ca2454b33c..dc73d3f9db 100644 --- a/cpukit/libmisc/shell/main_flashdev.c

[PATCH v1 3/4] aarch64/versal: Port JFFS2 GQSPI NOR Driver from Zynqmp

2023-10-18 Thread aaron . nyholm
From: Aaron Nyholm --- .../include/bsp/jffs2_xqspipsu.h | 62 ++ bsps/aarch64/xilinx-versal/jffs2_xqspipsu.c | 190 ++ spec/build/bsps/aarch64/xilinx-versal/grp.yml | 4 + .../aarch64/xilinx-versal/objjffs2qspinor.yml | 20 ++ .../aarch64/xilinx-versal

[PATCH v1 2/4] aarch64/versal: Add flash wrapper for Xilinx GQSPI

2023-10-18 Thread aaron . nyholm
From: Aaron Nyholm --- .../dev/spi/versal_xqspi_flash.c | 296 ++ bsps/aarch64/xilinx-versal/include/bsp/irq.h | 1 + .../include/dev/spi/versal_xqspi_flash.h | 49 +++ bsps/include/dev/spi/xqspipsu-flash-helper.h | 24 ++ bsps/shared/dev/spi/xqspipsu

Flash and JFFS2 for Versal

2023-10-18 Thread aaron . nyholm
Attached are patches for enabling xilinx's XQSPIPSU driver for the versal. An addition patch to the flashdev command is attached to improve usability. ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

[PATCH v1 1/4] bsps: Fix xqspipsu build issues on versal

2023-10-18 Thread aaron . nyholm
From: Aaron Nyholm --- bsps/include/dev/spi/xqspipsu_hw.h | 15 --- bsps/shared/dev/spi/xqspipsu_control.c | 7 --- bsps/shared/dev/spi/xqspipsu_hw.c | 5 +++-- bsps/shared/dev/spi/xqspipsu_options.c | 9 + 4 files changed, 20 insertions(+), 16 deletions

[PATCH] cpukit/flash: Correct erase ioctl address

2023-06-26 Thread aaron . nyholm
From: Aaron Nyholm Previously, the erase ioctl call would ignore flash regions and erase at the absolute address passed in. This adds a check for if the region is set and adds the region offset accordingly. --- cpukit/dev/flash/flashdev.c | 43 ++--- 1 file

[libbsd 6-freebsd-12 PATCH v2] rtemsbsd/versal_slcr: Fix Versal GEM clock set

2023-06-18 Thread aaron . nyholm
From: Aaron Nyholm --- rtemsbsd/sys/arm64/xilinx/versal_slcr.c | 30 + rtemsbsd/sys/arm64/xilinx/versal_slcr.h | 6 + 2 files changed, 32 insertions(+), 4 deletions(-) diff --git a/rtemsbsd/sys/arm64/xilinx/versal_slcr.c b/rtemsbsd/sys/arm64/xilinx/versal_slcr.c

rtemsbsd/versal_slcr: Fix Versal GEM clock set

2023-06-18 Thread aaron . nyholm
Updated formatting. ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

Re: bsps/xilinx-zynqmp : Add BSP for RPU

2023-06-15 Thread Aaron Nyholm
This looks exciting. As for Versal support from Xilinx's Docs "RPU The real-time processing unit (RPU) Arm Cortex-R5F processor has faster clocking frequencies than the Zynq UltraScale+ MPSoC. The Versal Arm Cortex-R5F processor supports Vector Floating-Point v3 (VFPv3) whereas the Zynq

[PATCH] rtemsbsd/versal_slcr: Fix Versal GEM clock set

2023-06-14 Thread aaron . nyholm
From: Aaron Nyholm --- rtemsbsd/sys/arm64/xilinx/versal_slcr.c | 34 ++--- rtemsbsd/sys/arm64/xilinx/versal_slcr.h | 6 + 2 files changed, 36 insertions(+), 4 deletions(-) diff --git a/rtemsbsd/sys/arm64/xilinx/versal_slcr.c b/rtemsbsd/sys/arm64/xilinx/versal_slcr.c

rtemsbsd/versal_slcr: Fix Versal GEM clock set

2023-06-14 Thread aaron . nyholm
On the Versal when the GEM clock is routed from a PLL in another domain it goes through another clock divider. This check accounts for this extra clock divider when setting the clock. Thanks, Aaron. ___ devel mailing list devel@rtems.org

Flashdev coverity fixes

2023-05-16 Thread aaron . nyholm
This patch addresses both coverity issues. I moved the data sanitation from in the functions to before they are called. Thanks, Aaron. ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

[PATCH] libmisc/shell: Fix file pointer leak and improved input data sanitation.

2023-05-16 Thread aaron . nyholm
From: Aaron Nyholm Coverity #1530126 Coverity #1530125 --- cpukit/libmisc/shell/main_flashdev.c | 27 ++- 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/cpukit/libmisc/shell/main_flashdev.c b/cpukit/libmisc/shell/main_flashdev.c index 495373235f

[PATCH v4 3/3] testsuites/libtests: Add test for flashdev

2023-04-30 Thread aaron . nyholm
From: Aaron Nyholm --- spec/build/testsuites/libtests/flashdev01.yml | 20 ++ spec/build/testsuites/libtests/grp.yml| 2 + testsuites/libtests/flashdev01/flashdev01.doc | 11 + testsuites/libtests/flashdev01/flashdev01.scn | 2 + testsuites/libtests/flashdev01/init.c | 190

cpukit/flash: Add API for Flash device

2023-04-30 Thread aaron . nyholm
Hi All, Thanks again for the feedback. I've improved the implementation of the bit allocator in line with your suggestions and refactored some other functions to reduce repeated code. Regards, Aaron. ___ devel mailing list devel@rtems.org

[PATCH v4 1/3] cpukit/flash: Add API for Flash devices

2023-04-30 Thread aaron . nyholm
From: Aaron Nyholm --- cpukit/dev/flash/flashdev.c | 902 cpukit/include/dev/flash/flashdev.h | 459 ++ spec/build/cpukit/librtemscpu.yml | 4 + 3 files changed, 1365 insertions(+) create mode 100644 cpukit/dev/flash/flashdev.c create mode

[PATCH v4 2/3] libmisc/shell: Add flashdev command

2023-04-30 Thread aaron . nyholm
From: Aaron Nyholm --- cpukit/include/rtems/shellconfig.h | 7 + cpukit/libmisc/shell/main_flashdev.c | 592 +++ spec/build/cpukit/objshell.yml | 1 + 3 files changed, 600 insertions(+) create mode 100644 cpukit/libmisc/shell/main_flashdev.c diff --git

Re: [PATCH v3 1/3] cpukit/flash: Add API for Flash devices

2023-04-23 Thread Aaron Nyholm
tained by a JEDEC parameter page read, ONFI parameter page > read, or other mechanism). > > Is this intended to be purely informational? > > Kinsey > > On Thu, Apr 20, 2023 at 2:23 AM wrote: > > > From: Aaron Nyholm > > > > --

[PATCH v3 3/3] testsuites/libtests: Add test for flashdev

2023-04-20 Thread aaron . nyholm
From: Aaron Nyholm --- spec/build/testsuites/libtests/flashdev01.yml | 20 ++ spec/build/testsuites/libtests/grp.yml| 2 + testsuites/libtests/flashdev01/flashdev01.doc | 11 + testsuites/libtests/flashdev01/flashdev01.scn | 2 + testsuites/libtests/flashdev01/init.c | 190

[PATCH v3 1/3] cpukit/flash: Add API for Flash devices

2023-04-20 Thread aaron . nyholm
From: Aaron Nyholm --- cpukit/dev/flash/flashdev.c | 849 cpukit/include/dev/flash/flashdev.h | 458 +++ spec/build/cpukit/librtemscpu.yml | 4 + 3 files changed, 1311 insertions(+) create mode 100644 cpukit/dev/flash/flashdev.c create mode

[PATCH v3 2/3] libmisc/shell: Add flashdev command

2023-04-20 Thread aaron . nyholm
From: Aaron Nyholm --- cpukit/include/rtems/shellconfig.h | 7 + cpukit/libmisc/shell/main_flashdev.c | 592 +++ spec/build/cpukit/objshell.yml | 1 + 3 files changed, 600 insertions(+) create mode 100644 cpukit/libmisc/shell/main_flashdev.c diff --git

Add API for Flash devices

2023-04-20 Thread aaron . nyholm
Attached is next iteration for the flashdev API. The allocating of memory used by the region functionality of the API has been moved to the device driver to allow different device drivers to have a different number of maximum regions. Other small changes like fixing spelling errors were made and

Re: [PATCH v2 1/3] cpukit/flash: Add API for Flash devices

2023-04-16 Thread Aaron Nyholm
configurable size is necessary what’s the best way to approach it without using malloc? Thanks, Aaron > On 15 Apr 2023, at 01:58, Gedare Bloom wrote: > > I focused my review on the API. See below. > > On Thu, Apr 6, 2023 at 1:08 AM wrote: >> >> From: Aaron Nyholm

[PATCH v2 3/3] testsuites/libtests: Add test for flashdev

2023-04-06 Thread aaron . nyholm
From: Aaron Nyholm --- spec/build/testsuites/libtests/flashdev01.yml | 20 ++ spec/build/testsuites/libtests/grp.yml| 2 + testsuites/libtests/flashdev01/flashdev01.doc | 11 + testsuites/libtests/flashdev01/flashdev01.scn | 2 + testsuites/libtests/flashdev01/init.c | 190

[PATCH v2 2/3] libmisc/shell: Add flashdev command

2023-04-06 Thread aaron . nyholm
From: Aaron Nyholm --- cpukit/include/rtems/shellconfig.h | 7 + cpukit/libmisc/shell/main_flashdev.c | 592 +++ spec/build/cpukit/objshell.yml | 1 + 3 files changed, 600 insertions(+) create mode 100644 cpukit/libmisc/shell/main_flashdev.c diff --git

[PATCH v2 1/3] cpukit/flash: Add API for Flash devices

2023-04-06 Thread aaron . nyholm
From: Aaron Nyholm --- cpukit/dev/flash/flashdev.c | 732 cpukit/include/dev/flash/flashdev.h | 437 + spec/build/cpukit/librtemscpu.yml | 4 + 3 files changed, 1173 insertions(+) create mode 100644 cpukit/dev/flash/flashdev.c create

Add Flash Device API

2023-04-06 Thread aaron . nyholm
Hi All, Attached is the updated flashdev API (v2). I've focused on the feedback previously provided. I've added called the missing calls to bring this API inline with that of the zephyr example provided. The formatting is brought inline with RTEMS style. The shell command is extended to include

Re: Add Flash Device API

2023-04-06 Thread Aaron Nyholm
Hi Chris. Yes, Sorry. I'll resend the correct patches with v2. Thanks, Aaron. --- Original Message --- On Thursday, April 6th, 2023 at 4:59 PM, Chris Johns wrote: > > > Hi Aaron, > > Thanks for this. Is this v2 of patches? > > Chris > > On 6/4/2023 4:52 pm,

[PATCH 3/3] testsuites/libtests: Add test for flashdev

2023-04-06 Thread aaron . nyholm
From: Aaron Nyholm --- spec/build/testsuites/libtests/flashdev01.yml | 20 ++ spec/build/testsuites/libtests/grp.yml| 2 + testsuites/libtests/flashdev01/flashdev01.doc | 11 + testsuites/libtests/flashdev01/flashdev01.scn | 2 + testsuites/libtests/flashdev01/init.c | 190

[PATCH 2/3] libmisc/shell: Add flashdev command

2023-04-06 Thread aaron . nyholm
From: Aaron Nyholm --- cpukit/include/rtems/shellconfig.h | 7 + cpukit/libmisc/shell/main_flashdev.c | 592 +++ spec/build/cpukit/objshell.yml | 1 + 3 files changed, 600 insertions(+) create mode 100644 cpukit/libmisc/shell/main_flashdev.c diff --git

[PATCH 1/3] cpukit/flash: Add API for Flash devices

2023-04-06 Thread aaron . nyholm
From: Aaron Nyholm --- cpukit/dev/flash/flashdev.c | 732 cpukit/include/dev/flash/flashdev.h | 437 + spec/build/cpukit/librtemscpu.yml | 4 + 3 files changed, 1173 insertions(+) create mode 100644 cpukit/dev/flash/flashdev.c create

Add Flash Device API

2023-04-06 Thread aaron . nyholm
Attached is the updated flashdev API. I've focused on the feedback previously provided. I've added called the missing calls to bring this API inline with that of the zephyr example provided. The formatting is brought inline with RTEMS style. The shell command is extended to include all previous

Re: Flash Device API

2023-03-19 Thread Aaron Nyholm
Hi All. Sorry for the lack of documentation and clarity in my original submission. Thank you all for the feedback, taking it all on board and will come back with a more complete and acceptable submission. I realised the original ticket number that I quoted was incorrect, #4869 is the correct

[libbsd 6-freebsd-12] rtemsbsd/rc_conf: Fixed non-nullterminated string causing crashes

2023-03-16 Thread aaron . nyholm
From: Aaron Nyholm --- rtemsbsd/rtems/rtems-bsd-rc-conf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rtemsbsd/rtems/rtems-bsd-rc-conf.c b/rtemsbsd/rtems/rtems-bsd-rc-conf.c index d559c256..f4cc987b 100644 --- a/rtemsbsd/rtems/rtems-bsd-rc-conf.c +++ b/rtemsbsd/rtems

[libbsd master] rtemsbsd/rc_conf: Fixed non-nullterminated string causing crashes

2023-03-16 Thread aaron . nyholm
From: Aaron Nyholm --- rtemsbsd/rtems/rtems-bsd-rc-conf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rtemsbsd/rtems/rtems-bsd-rc-conf.c b/rtemsbsd/rtems/rtems-bsd-rc-conf.c index d559c256..f4cc987b 100644 --- a/rtemsbsd/rtems/rtems-bsd-rc-conf.c +++ b/rtemsbsd/rtems

[PATCH 2/2] libmisc/shell: Add flashdev command

2023-03-15 Thread aaron . nyholm
From: Aaron Nyholm Closes #4869 --- cpukit/include/rtems/shellconfig.h | 7 + cpukit/libmisc/shell/main_flashdev.c | 352 +++ spec/build/cpukit/objshell.yml | 1 + 3 files changed, 360 insertions(+) create mode 100644 cpukit/libmisc/shell/main_flashdev.c

[PATCH 1/2] dev/flash: Add API for Flash devices

2023-03-15 Thread aaron . nyholm
From: Aaron Nyholm Updates #4896 --- cpukit/dev/flash/flashdev.c | 353 cpukit/include/dev/flash/flashdev.h | 95 spec/build/cpukit/librtemscpu.yml | 4 + 3 files changed, 452 insertions(+) create mode 100644 cpukit/dev/flash/flashdev.c

Flash Device API

2023-03-15 Thread aaron . nyholm
This generic flash device API creates a device wrapper for flash drivers. It allows for the flash device to opened as a file descriptor with region limiting. IOCTL calls are present to allow for device idenification. Designed with the goal of creating a generic flash driver that allows