[PATCH v2] user: Add docu for use of Rust with RTEMS

2024-02-23 Thread Frank Kuehndel
From: Frank Kühndel --- user/index.rst | 3 +- user/overview/index.rst | 2 + user/rust/bare-metal.rst | 548 +++ user/rust/index.rst | 64 + 4 files changed, 616 insertions(+), 1 deletion(-) create mode 100644 user/rust/bare-metal.rs

[PATCH rtems-docs 1/1] user: Add docu for use of Rust with RTEMS

2024-02-16 Thread Frank Kuehndel
From: Frank Kühndel --- user/index.rst | 3 +- user/overview/index.rst | 2 + user/rust/bare-metal.rst | 549 +++ user/rust/index.rst | 64 + 4 files changed, 617 insertions(+), 1 deletion(-) create mode 100644 user/rust/bare-metal.rs

[PATCH rtems-docs 0/1] user: Add docu for use of Rust with RTEMS

2024-02-16 Thread Frank Kuehndel
From: Frank Kühndel This is the long promised Rust on RTEMS step-by-step guide. For reviewing it, I suggest the natural order: 1) user/rust/index.rst -- The introduction 2) user/rust/bare-metal.rst -- The step-by-step guide If you prefer reviewing the PDF or HTML, you can download them h

[PATCH v2 1/1] RSB: Mitigate too short error reports

2023-01-20 Thread Frank Kuehndel
From: Frank Kühndel Close #4642 --- source-builder/sb/ereport.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source-builder/sb/ereport.py b/source-builder/sb/ereport.py index d8fb5f6..52ee2eb 100755 --- a/source-builder/sb/ereport.py +++ b/source-builder/sb/ereport.py

[PATCH v2 0/1] RSB: Mitigate too short error reports

2023-01-20 Thread Frank Kuehndel
From: Frank Kühndel Hello, this is the promised patch to close my bug report #4642 https://devel.rtems.org/ticket/4642 "RSB: log.py tends to remove relevant error messages". I tested it using Christian's Github CI - see his Email: https://lists.rtems.org/pipermail/devel/2023-January/074099.htm

[PATCH 0/1] RSB: Mitigate too short error reports

2022-12-20 Thread Frank Kuehndel
From: Frank Kühndel Hello Chris, I am making an attempt to close my bug report #4642 https://devel.rtems.org/ticket/4642 "RSB: log.py tends removes relevant error messages". The difficulty seems to be to find a rather short text indicating that the relevant error can sometimes be so far way fro

[PATCH 1/1] RSB: Mitigate too short error reports

2022-12-20 Thread Frank Kuehndel
From: Frank Kühndel Close #4642 --- source-builder/sb/ereport.py | 4 1 file changed, 4 insertions(+) diff --git a/source-builder/sb/ereport.py b/source-builder/sb/ereport.py index d8fb5f6..d391917 100755 --- a/source-builder/sb/ereport.py +++ b/source-builder/sb/ereport.py @@ -55,6 +55,10

[PATCH] TFTPFS: Adding missing diagram

2022-10-13 Thread Frank Kuehndel
iWdt4Lt?SGZ z36i7`no=|J@esL@CuzhvHe;*3d!*Ku);jO~^L^#YMgp@%&a%*CuhR3tfsbuBGc&t! z>{OI6F+B zq@|_p!9T2@4ozG_`HF5?cd4fFDWIE<=~)@zG*n-Rao?(uy2n*!U~#LoyVkeQottDp z=Yq~pa+#g5AE^Ct~~oUT~FMRLjW zL^+ocV>T5l*$16V5XSAfcs;E{@5+_%$B#)%oX#&iDc96 z&$yp3RY78e5JOzw6GFO565**+E*6!cw`WX8WS9puy&am

[PATCH] tftpDriver.c: Fix Coverity issues

2022-09-16 Thread Frank Kuehndel
From: Frank Kühndel CID 1506523: Unchecked return value from library (CHECKED_RETURN) CID 1506522: Unchecked return value from library (CHECKED_RETURN) CID 1437618: Unchecked return value from library (CHECKED_RETURN) Close #4718 --- cpukit/libfs/src/ftpfs/tftpDriver.c | 27

[PATCH rtems-docs v2] TFTPFS: New documentation

2022-06-09 Thread Frank Kuehndel
From: Frank Kühndel --- filesystem/index.rst | 1 + filesystem/trivial_ftp.rst | 564 - 2 files changed, 562 insertions(+), 3 deletions(-) diff --git a/filesystem/index.rst b/filesystem/index.rst index f4e2ed6..64a2f1d 100644 --- a/filesystem/index.rs

[PATCH 6/7] TFTPFS: Add tests

2022-06-03 Thread Frank Kuehndel
From: Frank Kühndel --- testsuites/fstests/tftpfs/init.c | 3197 -- 1 file changed, 3032 insertions(+), 165 deletions(-) diff --git a/testsuites/fstests/tftpfs/init.c b/testsuites/fstests/tftpfs/init.c index 91308ec75b..a7ef03cf74 100644 --- a/testsuites/fstests/tftp

[PATCH 5/7] TFTPFS: Add test suite framework

2022-06-03 Thread Frank Kuehndel
From: Frank Kühndel --- spec/build/testsuites/fstests/grp.yml |2 + spec/build/testsuites/fstests/tftpfs.yml | 25 + testsuites/fstests/tftpfs/init.c | 1054 + .../fstests/tftpfs/tftpfs_interactions.c | 984 +++ .../fstests/tftpfs

[PATCH 7/7] TFTPFS: Add more tests

2022-06-03 Thread Frank Kuehndel
From: Frank Kühndel --- testsuites/fstests/tftpfs/init.c | 3397 ++ 1 file changed, 3397 insertions(+) diff --git a/testsuites/fstests/tftpfs/init.c b/testsuites/fstests/tftpfs/init.c index a7ef03cf74..0c6df5fa5c 100644 --- a/testsuites/fstests/tftpfs/init.c +++ b/te

[PATCH 3/7] TFTPFS: Restore tftpDriver.c

2022-06-03 Thread Frank Kuehndel
From: Frank Kühndel --- cpukit/libfs/src/ftpfs/tftpDriver.c | 1088 +++ 1 file changed, 1088 insertions(+) create mode 100644 cpukit/libfs/src/ftpfs/tftpDriver.c diff --git a/cpukit/libfs/src/ftpfs/tftpDriver.c b/cpukit/libfs/src/ftpfs/tftpDriver.c new file mode 100644

[PATCH 0/7] TFTPFS: Add block and window size options

2022-06-03 Thread Frank Kuehndel
From: Frank Kühndel The following patches extend the TFTP file system to support * RFC 2347 TFTP Option Extension * RFC 2348 TFTP Blocksize Option * RFC 7440 TFTP Windowsize Option To benefit from improved download and upload speeds, a TFTP server which supports at least the blocksize opt

[PATCH 2/7] TFTPFS: Duplicate tftpDriver.c to tftpfs.c

2022-06-03 Thread Frank Kuehndel
From: Frank Kühndel --- cpukit/libfs/src/ftpfs/{tftpDriver.c => tftpfs.c} | 0 spec/build/cpukit/libtftpfs.yml | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename cpukit/libfs/src/ftpfs/{tftpDriver.c => tftpfs.c} (100%) diff --git a/cpukit/libfs/src/ftpfs/tftpDr

[PATCH 1/7] TFTPFS: Cleanup: Remove spaces at lines ends

2022-06-03 Thread Frank Kuehndel
From: Frank Kühndel --- cpukit/libfs/src/ftpfs/tftpDriver.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/cpukit/libfs/src/ftpfs/tftpDriver.c b/cpukit/libfs/src/ftpfs/tftpDriver.c index bebe748ca5..d0eadcf99a 100644 --- a/cpukit/libfs/src/ftpfs/tftpD

[PATCH rtems-docs 1/1] TFTPFS: New documentation

2022-06-03 Thread Frank Kuehndel
From: Frank Kühndel --- filesystem/index.rst | 1 + filesystem/trivial_ftp.rst | 638 - 2 files changed, 636 insertions(+), 3 deletions(-) diff --git a/filesystem/index.rst b/filesystem/index.rst index f4e2ed6..64a2f1d 100644 --- a/filesystem/index.rs

[PATCH rtems-docs 0/1] TFTPFS: Add block and window size options

2022-06-03 Thread Frank Kuehndel
From: Frank Kühndel Hello all, I extended the TFTP file system to support the block size and the window size options (RFCs 2347, 2348, 7440). Essentially, this significantly improves the download and upload speeds provided the TFTP server on the other side also supports at least one of these op

[PATCH] RSB: Remove option --with-java

2022-05-06 Thread Frank Kuehndel
From: Frank Kühndel The sb-set-builder options --with-java / --without-java do not work. GCC configure does not known language "java". See https://gcc.gnu.org/install/configure.html option --enable-languages. update #4647 --- source-builder/config/checks.cfg | 9 - source-builder/

[PATCH 1/1] libbsd: Add TFTP filesystem to test media01

2022-04-08 Thread Frank Kuehndel
From: Frank Kühndel How test media01 can be executed is described in section *Qemu and Networking* of the README.md at the top of the rtems-libbsd GIT repository. When connected via `telnet` with the RTEMS shell of the media01.exe test executed by QEMU, one can list the filesystems available for

[PATCH 0/1] libbsd: Add TFTP filesystem to test media01

2022-04-08 Thread Frank Kuehndel
From: Frank Kühndel Hello, I would like to ask the community whether it would be possible to accept the little patch which follows? The patch permits to mount and use the TFTP filesystem through the RTEMS shell of test media01. It serves demonstration purposes and permits users to try out TFTP

[PATCH v2] libtftpfs: Change to BSD-2-Clause license

2022-03-15 Thread Frank Kuehndel
From: Frank Kühndel Eric Norum's permission to change the license can be found here: https://devel.rtems.org/attachment/ticket/3053/EricNorum-Permission.pdf Update #3053 --- cpukit/include/rtems/tftp.h | 72 +++-- cpukit/libfs/src/ftpfs/tftpDriver.c | 44

[PATCH 1/1] libtftpfs: Change to BSD-2-Clause license

2022-03-15 Thread Frank Kuehndel
From: Frank Kühndel Eric Norum's permission to change the license can be found here: https://devel.rtems.org/attachment/ticket/3053/EricNorum-Permission.pdf Update #3053 --- cpukit/include/rtems/tftp.h | 72 +++-- cpukit/libfs/src/ftpfs/tftpDriver.c | 44

[PATCH 0/1] libtftpfs: Change to BSD-2-Clause license?

2022-03-15 Thread Frank Kuehndel
From: Frank Kühndel Hello, I want to extend the code of `libtftpfs` to support newer RFCs to increase the file download speed. This raises the question of the license of the involved source files. The current state is that the file headers are old. The code originates from W. Eric Norum. Fortun

[PATCH] clock:_TOD_To_seconds(): Fix year 2514 overflow

2021-04-08 Thread Frank Kuehndel
From: Frank Kühndel This patch fixes issue #4338 by changing _TOD_Validate() to only accept years till 2105. This requires another patch to change the documentation of rtems_clock_set() and other affected API functions (indicating the end date is 2105 not 2514). I tried to support till year 2514

[PATCH v2] eng: Requirements counting shall start at zero

2020-12-11 Thread Frank Kuehndel
From: Frank Kühndel --- eng/req/req-for-req.rst | 21 + 1 file changed, 21 insertions(+) diff --git a/eng/req/req-for-req.rst b/eng/req/req-for-req.rst index 9225e95..dcc4c11 100644 --- a/eng/req/req-for-req.rst +++ b/eng/req/req-for-req.rst @@ -308,6 +308,27 @@ spec:/classi

[PATCH] eng: Requirements counting shall start at zero

2020-12-09 Thread Frank Kuehndel
From: Frank Kühndel --- eng/req/req-for-req.rst | 8 1 file changed, 8 insertions(+) diff --git a/eng/req/req-for-req.rst b/eng/req/req-for-req.rst index 9225e95..8345e35 100644 --- a/eng/req/req-for-req.rst +++ b/eng/req/req-for-req.rst @@ -308,6 +308,14 @@ spec:/classic/task/create-e

[PATCH v2] rtems-fdt / shell - Fix string truncation warning

2020-10-19 Thread Frank Kuehndel
From: Frank Kühndel The compiler warning was: ../../../cpukit/libmisc/rtems-fdt/rtems-fdt.c:267:5: warning: 'strncpy' specified bound depends on the length of the source argument 267 | strncpy(path, name, namelen); | ^~~~ It turns out that the `strncpy()`

[PATCH] rtems-fdt / shell - Fix string truncation warning

2020-10-15 Thread Frank Kuehndel
From: Frank Kühndel The compiler warning was: ../../../cpukit/libmisc/rtems-fdt/rtems-fdt.c:267:5: warning: 'strncpy' specified bound depends on the length of the source argument 267 | strncpy(path, name, namelen); | ^~~~ It turns out that the `strncpy()`

[PATCH 5/5] shell/main_edit.c: Fix string truncation warning

2020-10-13 Thread Frank Kuehndel
From: Frank Kühndel Using strlcpy() instead of strncpy(): 1) Prevents the compiler warnings 2) Ensures, the string is NUL terminated. 3) Avoids that strncpy() unnecessary fills the unused part of the buffer with 0 bytes. (Note that realpath() also returns NULL if the file does not exist - th

[PATCH 3/5] shell/shell.c: Fix illegal string copy

2020-10-13 Thread Frank Kuehndel
From: Frank Kühndel This is an illegal use of strcpy() because one is not allowed to use this function with overlapping source and destination buffers; whereas memmove() is explicitly designed to handle such cases. The copiler warning was: ../../../cpukit/libmisc/shell/shell.c:626:13: warning:

[PATCH 4/5] shell/main_edit.c: Fix use of wrong constant

2020-10-13 Thread Frank Kuehndel
From: Frank Kühndel realpath() requires a buffer of size PATH_MAX and not of size FILENAME_MAX according to 'man realpath (3)'. --- cpukit/libmisc/shell/main_edit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpukit/libmisc/shell/main_edit.c b/cpukit/libmisc/shell/main_

[PATCH 1/5] fsdosfsname01: Fix string truncation warning

2020-10-13 Thread Frank Kuehndel
From: Frank Kühndel This patch fixes a compiler warning: ../../../testsuites/fstests/fsdosfsname01/init.c:430:19: warning: '%s' directive output may be truncated writing up to 6424 bytes into a region of size 257 [-Wformat-truncation=] The buffer 'dirname' is exactly large enough so that no tru

[PATCH 2/5] shell/shell.c: Fix an implicit type cast

2020-10-13 Thread Frank Kuehndel
From: Frank Kühndel With some compiler warnings enabled, the implicit cast may trigger a compiler warning. The explicit cast avoids this. --- cpukit/libmisc/shell/shell.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cpukit/libmisc/shell/shell.c b/cpukit/libmisc/shell/sh

[PATCH 0/5] Fix several warnings and minor issues

2020-10-13 Thread Frank Kuehndel
From: Frank Kühndel This set of small patches fixes a few minor issues such as compiler warnings, utilization of a wrong constant or bad uses of string copy. Frank Kühndel (5): fsdosfsname01: Fix string truncation warning shell/shell.c: Fix an implicit type cast shell/shell.c: Fix illegal

[PATCH v2] testsuites/samples/fileio - Increase of stack size

2020-10-12 Thread Frank Kuehndel
From: Frank Kühndel When I use the 'shell' from the fileio sample with the command below: env QEMU_AUDIO_DRV="none" \ qemu-system-arm -no-reboot -net none -nographic -M realview-pbx-a9 \ -m 256M \ -kernel build/arm/realview_pbx_a9_qemu/testsuites/samples/fileio.exe The executable cr

[PATCH] shell: Remove not functioning fdisk mount/unmount command

2020-10-09 Thread Frank Kuehndel
The shell has an 'fdisk' command which has sub-commands 'mount' and 'unmount'. These two sub-commands have a bug which causes them to be not able to mount anything. This proposed patch removes the buggy file cpukit/libblock/src/bdpart-mount.c and the mount/unmount commands from 'fdisk' as bug fix.

[PATCH] testsuites/samples/fileio - Increase of stack size

2020-10-09 Thread Frank Kuehndel
When I use the 'shell' from the fileio sample with the command below: env QEMU_AUDIO_DRV="none" \ qemu-system-arm -no-reboot -net none -nographic -M realview-pbx-a9 -m 256M \ -kernel build/arm/realview_pbx_a9_qemu/testsuites/samples/fileio.exe The executable crashes with an "BLOWN STACK!

[PATCH] shell: Fixing bug in line editing of the shell with CTRL-U.

2020-09-25 Thread Frank Kuehndel
This patch fixes a tiny bug in the command line editing of the RTEMS shell. Typing CTRL-U in the shell should remove all characters left of the cursor. After pressing CTRL-U, the current implementation does wrongly place the cursor at the end of the line instead at its beginning. To reproduce