[PATCH 4/4] bsps: Update BSPs to use the new PL011 driver

2023-08-29 Thread Utkarsh Verma
This commit updates the existing BSPs to use the new PL011 driver. --- bsps/aarch64/a53/console/console.c| 15 +- bsps/aarch64/a72/console/console.c| 15 +- bsps/aarch64/raspberrypi/console/console.c| 29 ---

[PATCH 1/4] bsps/shared: Add new PL011 driver with IRQ support

2023-08-29 Thread Utkarsh Verma
This commit adds a new driver for the PL011. It uses the termios API with support for setting attributes and interrupts. Interrupts can be enabled using the BSP_CONSOLE_USE_INTERRUPTS macro. --- bsps/include/dev/serial/arm-pl011-regs.h | 143 -- .../dev/serial/{arm-pl011.h => pl011.h}

[PATCH 3/4] spec: Add Mini UART and PL011 drivers to build spec

2023-08-29 Thread Utkarsh Verma
This commit updates the build spec to include the new UART drivers for PL011 and Mini UART. --- spec/build/bsps/aarch64/raspberrypi/bspraspberrypi4.yml | 1 - spec/build/bsps/obj.yml | 7 --- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git

[PATCH 0/4] New UART drivers for PL011 and Mini UART

2023-08-29 Thread Utkarsh Verma
This patch series adds two drivers, PL011 and Mini UART. Both support interrupts and implement the termios API. Why add a new driver for the PL011 when we already have one? The existing driver is a very basic one and uses memory-mapped structs to access the registers. This proved to be

[PATCH 2/4] bsps/shared: Add new Mini UART driver

2023-08-29 Thread Utkarsh Verma
This commit adds a new driver for the Mini UART peripheral present on Raspberry Pi devices. It implements the termios API with support for setting attributes. It supports interrupts through the BSP_CONSOLE_USE_INTERRUPTS macro. --- bsps/include/dev/serial/mini-uart.h | 54 +

Re: [PATCH v2 0/6] Add libdl support to MicroBlaze

2023-08-29 Thread Chris Johns
Hi Alex, The libdl parts are OK to push. I am fine with the `wscript` change however Sebastian is away at the moment. I will leave that part of change with you and Joel to decide what to do. :) Chris On 30/8/2023 12:05 pm, Alex White wrote: > Hi, > > This patch set adds libdl support to

[PATCH v2 6/6] microblaze: Add link options to dl07, dl08, and dl09

2023-08-29 Thread Alex White
This adds `-u__extendsfdf2` to the `ldflags` for the dl07, dl08, and dl09 tests to force the inclusion of `__extendsfdf2` in the base image. This function is part of the GCC software floating point library and is used in the tests to convert floats to doubles when calling `printf`. ---

[PATCH v2 5/6] build: Allow enabled-by in ldflags for link_cc and link_cxx

2023-08-29 Thread Alex White
This allows for conditionally setting 'ldflags' in scripts that use `link_cc` and `link_cxx`. The immediate use case is allowing a linker flag to be used only for MicroBlaze builds of certain tests. --- wscript | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git

[PATCH v2 3/6] microblaze: Add dl06 to expected failures

2023-08-29 Thread Alex White
Updates #4948 --- spec/build/bsps/microblaze/microblaze_fpga/tstkcu105_qemu.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/build/bsps/microblaze/microblaze_fpga/tstkcu105_qemu.yml b/spec/build/bsps/microblaze/microblaze_fpga/tstkcu105_qemu.yml index

[PATCH v2 4/6] microblaze: Add dl05 to expected failures

2023-08-29 Thread Alex White
Updates #4949 --- .../bsps/microblaze/microblaze_fpga/tstkcu105_qemu.yml | 6 ++ 1 file changed, 6 insertions(+) diff --git a/spec/build/bsps/microblaze/microblaze_fpga/tstkcu105_qemu.yml b/spec/build/bsps/microblaze/microblaze_fpga/tstkcu105_qemu.yml index 7ff9350cf4..7ae7005bf0

[PATCH v2 1/6] microblaze: Add libdl support

2023-08-29 Thread Alex White
--- cpukit/libdl/rtl-mdreloc-microblaze.c | 297 ++ cpukit/libdl/rtl-tls.c| 2 +- .../microblaze/include/machine/elf_machdep.h | 83 + spec/build/cpukit/cpumicroblaze.yml | 3 + spec/build/cpukit/objdl.yml | 2

[PATCH v2 0/6] Add libdl support to MicroBlaze

2023-08-29 Thread Alex White
Hi, This patch set adds libdl support to MicroBlaze. All tests pass except for dl05 and dl06. To get dl07, dl08, and dl09 to pass, I added `-u__extendsfdf2` to the link options. v2: - Remove changes to dl07, dl08, and dl09 source code - Add link options to dl07, dl08, and dl09 Alex Alex White

[PATCH v2 2/6] microblaze: Align exception-related sections

2023-08-29 Thread Alex White
This fixes unaligned data access exceptions found while debugging test dl05. --- spec/build/bsps/microblaze/microblaze_fpga/linkcmds.yml | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/build/bsps/microblaze/microblaze_fpga/linkcmds.yml

[rtems-tools PATCH] rtemstoolkit: Provide a shlex.join for python 3.8 and earlier

2023-08-29 Thread chrisj
From: Chris Johns --- rtemstoolkit/execute.py | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/rtemstoolkit/execute.py b/rtemstoolkit/execute.py index d183b14..31d3a8a 100755 --- a/rtemstoolkit/execute.py +++ b/rtemstoolkit/execute.py @@ -125,6 +125,14 @@ class

[rtems-tools] Fix shlex.join on python 3.8 and earlier

2023-08-29 Thread chrisj
Hi Frabnk and Joel, Can you please test this patch and let me know if the issue has been fixed? Thanks Chris ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

Re: [rtems-tools PATCH] rtemstoolkit: Fix shell execution

2023-08-29 Thread Chris Johns
On 30/8/2023 5:44 am, Joel Sherrill wrote: > A bit more feedback. I got this failure on CentOS 7 building sparc-rtems6 > tools. > > + cd rtems-tools-3ea0c249346fda427bf0d3c169aa3e7c2a521df8 > + ./waf distclean configure --prefix=/home/joel/rtems-work/tools/6 > 'distclean' finished successfully

Re: [rtems-tools PATCH] rtemstoolkit: Fix shell execution

2023-08-29 Thread Joel Sherrill
A bit more feedback. I got this failure on CentOS 7 building sparc-rtems6 tools. + cd rtems-tools-3ea0c249346fda427bf0d3c169aa3e7c2a521df8 + ./waf distclean configure --prefix=/home/joel/rtems-work/tools/6 'distclean' finished successfully (0.001s) Setting top to :

Re: [rtems-tools PATCH] rtemstoolkit: Fix shell execution

2023-08-29 Thread Joel Sherrill
On Tue, Aug 29, 2023 at 5:48 AM Frank Kühndel < frank.kuehn...@embedded-brains.de> wrote: > Hello Chris, > > On 8/29/23 12:45, Chris Johns wrote: > >> On 29 Aug 2023, at 6:24 pm, Frank Kühndel< > frank.kuehn...@embedded-brains.de> wrote: > >> > >> Hello Chris, > >> > >> our continuous

Re: [rtems-tools PATCH] rtemstoolkit: Fix shell execution

2023-08-29 Thread Frank Kühndel
Hello Chris, On 8/29/23 12:45, Chris Johns wrote: On 29 Aug 2023, at 6:24 pm, Frank Kühndel wrote: Hello Chris, our continuous integration server found an issues with this patch ("module 'shlex' has no attribute 'join'"): Frank, thanks for the post and the insight. I saw the build break

Re: [rtems-tools PATCH] rtemstoolkit: Fix shell execution

2023-08-29 Thread Chris Johns
> On 29 Aug 2023, at 6:24 pm, Frank Kühndel > wrote: > > Hello Chris, > > our continuous integration server found an issues with this patch > ("module 'shlex' has no attribute 'join'"): Frank, thanks for the post and the insight. I saw the build break in Joel’s build but I could not see

Re: [rtems-tools PATCH] rtemstoolkit: Fix shell execution

2023-08-29 Thread Frank Kühndel
Hello Chris, our continuous integration server found an issues with this patch ("module 'shlex' has no attribute 'join'"): + cd rtems-tools-3ea0c249346fda427bf0d3c169aa3e7c2a521df8 + ./waf distclean configure --prefix=/opt/rtems/6 'distclean' finished successfully (0.001s) Setting top to