[PATCH] libmisc/shell: Add an i2c command

2022-08-24 Thread chrisj
From: Chris Johns Closes #4708 --- cpukit/include/rtems/shellconfig.h | 7 + cpukit/libmisc/shell/main_i2c.c| 625 + spec/build/cpukit/objshell.yml | 1 + 3 files changed, 633 insertions(+) create mode 100644 cpukit/libmisc/shell/main_i2c.c diff --git a/

[PATCH RTEMS] Add i2c command

2022-08-24 Thread chrisj
The patch adds the i2c command. It is a single command to test and explore I2C buses on hardware. The command lets you string together reads and writes on a single command line to access a number of devices so you can script basic functionality simply. This ocommand adds to the existing i2cdetect

Re: [PATCH rtems-lwip v1 1/8] lwip.py: Add library and compile flags

2022-08-24 Thread Chris Johns
On 24/8/2022 10:32 pm, Kinsey Moore wrote: > On 8/23/2022 21:24, Chris Johns wrote: >> On 24/8/2022 5:47 am, Kinsey Moore wrote: >>> +    section_flags = ["-fdata-sections", "-ffunction-sections"] >> This is triggering a tweak ... >> https://git.rtems.org/rtems_waf/tree/rtems.py#n390. I wonder if a

Re: [PATCH rtems-lwip v2 0/6] Prepare for NTP library usage

2022-08-24 Thread Chris Johns
Looks good to me. Thanks Chris On 25/8/2022 1:47 am, Kinsey Moore wrote: > This v2 patch set addresses Chris's comments from the previous patch set > and drops the NTP-specific patches for further consideration in regard > to the path forward for EPICS7. > > _

Re: [PATCH] bsps/xilinx/versal: Add Cadence I2C driver support

2022-08-24 Thread Kinsey Moore
This looks good to me. Kinsey On 8/24/2022 02:19, chr...@rtems.org wrote: From: Chris Johns --- bsps/aarch64/xilinx-versal/include/bsp.h | 4 ++ bsps/aarch64/xilinx-versal/include/bsp/i2c.h | 64 +++ bsps/aarch64/xilinx-versal/include/bsp/irq.h | 2 + bsps/aarch

[PATCH rtems-lwip v2 6/6] rtemslwip: Add functions for BSD compatibility

2022-08-24 Thread Kinsey Moore
Add wrappers where possible and new functionality required to run code developed for operation on *BSD. This also simplifies the code that utilizes rtems lwip locking and makes it more consistent. --- lwip.py | 4 +- rtemslwip/bsd_compat/ifaddrs.c

[PATCH rtems-lwip v2 5/6] lwip.py: Remove usage of YAML

2022-08-24 Thread Kinsey Moore
YAML is not supported in base Python installs and so is not safe to blindly assume is available. This swaps existing usage to JSON to be more compatible. --- file-import.json | 246 +++ file-import.yaml | 243 -

[PATCH rtems-lwip v2 4/6] rtemslwip: Document a deficiency in syslog

2022-08-24 Thread Kinsey Moore
--- rtemslwip/common/syslog.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rtemslwip/common/syslog.c b/rtemslwip/common/syslog.c index e544074..4da911e 100644 --- a/rtemslwip/common/syslog.c +++ b/rtemslwip/common/syslog.c @@ -38,6 +38,9 @@ syslog (int pri, const char *fmt, ...) * FIXM

[PATCH rtems-lwip v2 3/6] lwip: Use definitions from tools

2022-08-24 Thread Kinsey Moore
This alters lwip to use network structs from the toolchain headers instead of redefining them slightly differently itself. This is important for being able to port code to work on lwip as most ported code will depend on the tools headers instead of being written specifically for lwIP and the mismat

[PATCH rtems-lwip v2 0/6] Prepare for NTP library usage

2022-08-24 Thread Kinsey Moore
This v2 patch set addresses Chris's comments from the previous patch set and drops the NTP-specific patches for further consideration in regard to the path forward for EPICS7. ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo

[PATCH rtems-lwip v2 1/6] lwip.py: Add compile flags

2022-08-24 Thread Kinsey Moore
This alters rtems-lwip to follow the RTEMS convention of compiling with function sections for linking optimization and dead code removal. --- lwip.py | 10 ++ wscript | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/lwip.py b/lwip.py index f565deb..d235e95 100644 ---

[PATCH rtems-lwip v2 2/6] lwip.py: Add libm accessibility

2022-08-24 Thread Kinsey Moore
This allows linking with libm. Previously, waf was unware that libm existed and would omit it during the linking step. --- lwip.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lwip.py b/lwip.py index d235e95..b97d273 100644 --- a/lwip.py +++ b/lwip.py @@ -180,6 +180,7 @@ def add_flags(flags

Re: Possible tls bug on arm / microblaze

2022-08-24 Thread Sam Price
I modified cpukit/score/cpu/microblaze/__tls_get_addr.c and added a printf printf("TLS OFFSET %x %p %p %d",(uintptr_t) _TLS_Alignment, tls_block,executing->Start.tls_area, ti->offset); and then ran the splts* tests on my hardware. The __tls_get_addr in the splts* tests. *** BEGIN OF TEST SPTLS 1

Re: [PATCH rtems-lwip v1 1/8] lwip.py: Add library and compile flags

2022-08-24 Thread Kinsey Moore
On 8/23/2022 21:24, Chris Johns wrote: On 24/8/2022 5:47 am, Kinsey Moore wrote: This allows linking with libm and follows the RTEMS convention of compiling with function sections for linking optimization and dead code removal. --- lwip.py | 11 +++ wscript | 2 +- 2 files changed,

Re: [PATCH rtems-lwip v1 7/8] lwip.py: Add NTP library build

2022-08-24 Thread Kinsey Moore
On 8/23/2022 21:30, Chris Johns wrote: On 24/8/2022 5:47 am, Kinsey Moore wrote: diff --git a/ntp-file-import.yaml b/ntp-file-import.yaml new file mode 100644 index 000..5e4e8a4 --- /dev/null +++ b/ntp-file-import.yaml Sorry the existing YAML support has to be removed or maybe you could mer

[PATCH] bsps/xilinx/versal: Add Cadence I2C driver support

2022-08-24 Thread chrisj
From: Chris Johns --- bsps/aarch64/xilinx-versal/include/bsp.h | 4 ++ bsps/aarch64/xilinx-versal/include/bsp/i2c.h | 64 +++ bsps/aarch64/xilinx-versal/include/bsp/irq.h | 2 + bsps/aarch64/xilinx-versal/start/bspstart.c | 12 spec/build/bsps/aarch64/xilinx-versa