Re: RTEMS 6 libbsd, networking issue with xilinx_zynq_zybo_z7 cgem0

2024-08-15 Thread Heinz Junkes
ve a Rev.D board and it has a different Realtek PHY with different > connections to MIO Bank. > RTL8211F instead of RTL8211E > I have to find out where this is defined/used in the rtems-libbsd. > Heinz > > > > On 13. Aug 2024, at 17:16, Heinz Junkes wrote: > > > > Th

Re: RTEMS 6 libbsd, networking issue with xilinx_zynq_zybo_z7 cgem0

2024-08-14 Thread Kinsey Moore
211E > I have to find out where this is defined/used in the rtems-libbsd. > Heinz > > > > On 13. Aug 2024, at 17:16, Heinz Junkes > wrote: > > > > This is the output of NFS01 Test: > > > > *** BEGIN OF TEST LIBBSD NFS 1 *** > > *** TEST VERSION: 6.0.0.

Re: RTEMS 6 libbsd, networking issue with xilinx_zynq_zybo_z7 cgem0

2024-08-14 Thread Heinz Junkes
I have a Rev.D board and it has a different Realtek PHY with different connections to MIO Bank. RTL8211F instead of RTL8211E I have to find out where this is defined/used in the rtems-libbsd. Heinz > On 13. Aug 2024, at 17:16, Heinz Junkes wrote: > > This is the output of N

Re: RTEMS 6 libbsd, networking issue with xilinx_zynq_zybo_z7 cgem0

2024-08-13 Thread Heinz Junkes
This is the output of NFS01 Test: *** BEGIN OF TEST LIBBSD NFS 1 *** *** TEST VERSION: 6.0.0.e5b6fa026ac1c07d252233624054785b2b29f54e *** TEST STATE: USER_INPUT *** TEST BUILD: RTEMS_POSIX_API *** TEST TOOLS: 13.3.0 20240521 (RTEMS 6, RSB 4c6dfb7aef9811258457971aa9213d5aebb9ce8d, Newlib 1ed1516

RTEMS 6 libbsd, networking issue with xilinx_zynq_zybo_z7 cgem0

2024-08-13 Thread Heinz Junkes
Hi, unfortunately I cannot activate the cgem0 network interface with RTEMS 6 (libbsd 6-freebsd-12) on a xilinx_zynq_zybo_z7 board : cgem0: flagsˆ43 metric 0 mtu 1500 d options€008 e ether 92:c2:88:7d:f4:79 inet6 fe80::90c2:88ff:fe7d:f479%cgem0 prefixlen 64 scopeid 0x1 b

[PATCH rtems-libbsd] rtemsbsd: Remove old DHCP init prototype

2024-03-13 Thread Kinsey Moore
..7d79e547 100755 --- a/rtemsbsd/include/rtems/bsd/bsd.h +++ b/rtemsbsd/include/rtems/bsd/bsd.h @@ -97,28 +97,6 @@ typedef struct { rtems_status_code rtems_bsd_initialize(void); -/** - * @brief Initializes the libbsd and starts a DHCPCD task. - * - * The libbsd is initialized via rtems_bsd_initialize

[PATCH rtems-libbsd] freebsd/mmcsd: Disable on-device cache usage

2024-02-28 Thread Kinsey Moore
This disables any usage of the on-device R/W cache since all device cache maintenance functions are compiled out under RTEMS leaving no way to flush the cache before system reset and making data loss possible. --- freebsd/sys/dev/mmc/mmcsd.c | 6 ++ 1 file changed, 6 insertions(+) diff --git

Re: [PATCH libbsd] freebsd/sys/dev/e1000: Fix long timeout

2024-02-01 Thread Peter Dufault
This is for 6-freebsd-12. How is that specified? I don't see [PATCH libbsd-6-freebsd-12] etc. > On Feb 1, 2024, at 6:00 AM, dufa...@hda.com wrote: > > From: Peter Dufault > > - safe_pause_us() and safe_pause_ms() depend on the clock tick. Use DELAY(). > ---

[PATCH libbsd] freebsd/sys/dev/e1000: Fix long timeout

2024-02-01 Thread dufault
From: Peter Dufault - safe_pause_us() and safe_pause_ms() depend on the clock tick. Use DELAY(). --- freebsd/sys/dev/e1000/e1000_osdep.h | 12 1 file changed, 12 insertions(+) diff --git a/freebsd/sys/dev/e1000/e1000_osdep.h b/freebsd/sys/dev/e1000/e1000_osdep.h index 70db294..15

[PATCH rtems-libbsd 6-freebsd-12 3/5] rtemsbsd/rtems: Don't leak memory on error

2024-01-23 Thread Kinsey Moore
--- rtemsbsd/rtems/rtems-bsd-mountroot.c | 4 ++-- rtemsbsd/rtems/rtems-bsd-rc-conf.c | 14 ++ rtemsbsd/rtems/rtems-routes.c| 4 +++- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/rtemsbsd/rtems/rtems-bsd-mountroot.c b/rtemsbsd/rtems/rtems-bsd-mountroot.c

[PATCH rtems-libbsd 6-freebsd-12 1/5] rtemsbsd/rc-conf: Avoid use after free

2024-01-23 Thread Kinsey Moore
--- rtemsbsd/rtems/rtems-bsd-rc-conf.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rtemsbsd/rtems/rtems-bsd-rc-conf.c b/rtemsbsd/rtems/rtems-bsd-rc-conf.c index f4cc987b..d34aafd9 100644 --- a/rtemsbsd/rtems/rtems-bsd-rc-conf.c +++ b/rtemsbsd/rtems/rtems-bsd-rc-conf.c

[PATCH rtems-libbsd 6-freebsd-12 2/5] rtemsbsd/rtems: Check function return values

2024-01-23 Thread Kinsey Moore
--- rtemsbsd/rtems/rtems-bsd-rc-conf-net.c | 10 ++ rtemsbsd/rtems/rtems-bsd-syscall-api.c | 9 ++--- rtemsbsd/rtems/rtems-kernel-init.c | 4 +++- rtemsbsd/rtems/rtems-kernel-pager.c| 4 +++- 4 files changed, 18 insertions(+), 9 deletions(-) diff --git a/rtemsbsd/rtems/rtem

[PATCH rtems-libbsd 6-freebsd-12 4/5] rtemsbsd/arasan_sdhci: Move variable init to start

2024-01-23 Thread Kinsey Moore
This moves the ZynqMP-specific variable initialization to the start of the function to avoid Coverity warnings. --- rtemsbsd/sys/dev/sdhci/arasan_sdhci.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/rtemsbsd/sys/dev/sdhci/arasan_sdhci.c b/rtemsbsd/sys/dev/sdhci/a

[PATCH rtems-libbsd 6-freebsd-12 5/5] rtemsbsd: Remove unused variable

2024-01-23 Thread Kinsey Moore
--- rtemsbsd/rtems/rtems-kernel-lockmgr.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/rtemsbsd/rtems/rtems-kernel-lockmgr.c b/rtemsbsd/rtems/rtems-kernel-lockmgr.c index 518f6831..de5d9d8a 100644 --- a/rtemsbsd/rtems/rtems-kernel-lockmgr.c +++ b/rtemsbsd/rtems/rtems-kernel-lockmgr.c @@ -

[PATCH rtems-libbsd 6-freebsd-12 0/5] Cleanup patch set

2024-01-23 Thread Kinsey Moore
This is the 6-freebsd-12 version of the cleanup patch set. Coverity was actually run against 6-freebsd-12, so this patch set is slightly larger than the master patch set. ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/dev

[PATCH rtems-libbsd master 3/3] rtemsbsd/rtems: Don't leak memory on error

2024-01-23 Thread Kinsey Moore
--- rtemsbsd/rtems/rtems-bsd-rc-conf.c | 14 ++ rtemsbsd/rtems/rtems-routes.c | 4 +++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/rtemsbsd/rtems/rtems-bsd-rc-conf.c b/rtemsbsd/rtems/rtems-bsd-rc-conf.c index d34aafd9..88d98c3e 100644 --- a/rtemsbsd/rtems/rte

[PATCH rtems-libbsd master 2/3] rtemsbsd/rtems: Check function return values

2024-01-23 Thread Kinsey Moore
--- rtemsbsd/rtems/rtems-bsd-rc-conf-net.c | 10 ++ rtemsbsd/rtems/rtems-kernel-init.c | 4 +++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/rtemsbsd/rtems/rtems-bsd-rc-conf-net.c b/rtemsbsd/rtems/rtems-bsd-rc-conf-net.c index 23ee15db..8ffaa914 100644 --- a/rtemsb

[PATCH rtems-libbsd master 1/3] rtemsbsd/rc-conf: Avoid use after free

2024-01-23 Thread Kinsey Moore
--- rtemsbsd/rtems/rtems-bsd-rc-conf.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rtemsbsd/rtems/rtems-bsd-rc-conf.c b/rtemsbsd/rtems/rtems-bsd-rc-conf.c index f4cc987b..d34aafd9 100644 --- a/rtemsbsd/rtems/rtems-bsd-rc-conf.c +++ b/rtemsbsd/rtems/rtems-bsd-rc-conf.c

[PATCH rtems-libbsd master 0/3] Cleanup patch series

2024-01-23 Thread Kinsey Moore
This patch set cleans up several issues found by Coverity on the master branch. ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

[PATCH rtems-libbsd 08/14] mpc85xx: Support P20XX Local Access Window regs

2024-01-23 Thread Christian Mauderer
From: Sebastian Huber --- freebsd/sys/powerpc/mpc85xx/mpc85xx.c | 38 +++ freebsd/sys/powerpc/mpc85xx/mpc85xx.h | 2 ++ 2 files changed, 40 insertions(+) diff --git a/freebsd/sys/powerpc/mpc85xx/mpc85xx.c b/freebsd/sys/powerpc/mpc85xx/mpc85xx.c index ec7eaa3f..7f3df540

[PATCH rtems-libbsd 03/14] mpc85xx: Port to RTEMS

2024-01-23 Thread Christian Mauderer
From: Sebastian Huber --- freebsd/sys/dev/ofw/ofwpci.c | 16 freebsd/sys/dev/pci/pci.c | 2 + freebsd/sys/kern/subr_bus.c | 2 +- freebsd/sys/powerpc/include/machine/spr.h | 3 ++ freebsd/sys/powerpc/mpc85xx/mpc85xx.c | 4 ++ freebsd/sy

[PATCH rtems-libbsd 07/14] Enable NEW_PCIB

2024-01-23 Thread Christian Mauderer
From: Sebastian Huber --- rtemsbsd/include/machine/resource.h | 1 + .../include/machine/rtems-bsd-kernel-space.h | 8 +++ rtemsbsd/rtems/rtems-kernel-nexus.c | 21 +++ 3 files changed, 30 insertions(+) diff --git a/rtemsbsd/include/machine/resource.h

[PATCH rtems-libbsd 06/14] Include missing header file

2024-01-23 Thread Christian Mauderer
From: Sebastian Huber --- rtemsbsd/rtems/rtems-kernel-pci_bus.c | 1 + 1 file changed, 1 insertion(+) diff --git a/rtemsbsd/rtems/rtems-kernel-pci_bus.c b/rtemsbsd/rtems/rtems-kernel-pci_bus.c index d344e7a3..67324dd8 100644 --- a/rtemsbsd/rtems/rtems-kernel-pci_bus.c +++ b/rtemsbsd/rtems/rtem

[PATCH rtems-libbsd 09/14] pci_mpc85xx.c: Disable reset during initialization

2024-01-23 Thread Christian Mauderer
From: Sebastian Huber --- freebsd/sys/powerpc/mpc85xx/pci_mpc85xx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/freebsd/sys/powerpc/mpc85xx/pci_mpc85xx.c b/freebsd/sys/powerpc/mpc85xx/pci_mpc85xx.c index beaf96e8..47879e68 100644 --- a/freebsd/sys/powerpc/mpc85xx/pci_mpc85xx.c +++ b/f

[PATCH rtems-libbsd 05/14] Add pic_if.m

2024-01-23 Thread Christian Mauderer
From: Sebastian Huber --- Makefile.todo | 10 ++ rtemsbsd/include/rtems/bsd/local/pic_if.h | 133 ++ rtemsbsd/local/pic_if.c | 69 +++ 3 files changed, 212 insertions(+) create mode 100644 rtemsbsd/include/rtems/bsd/loc

[PATCH rtems-libbsd 10/14] Enable kernel space pci_find_device()

2024-01-23 Thread Christian Mauderer
From: Sebastian Huber --- freebsd/sys/dev/pci/pci.c | 2 -- rtemsbsd/include/machine/rtems-bsd-kernel-namespace.h | 1 + rtemsbsd/rtems/rtems-kernel-pci_bus.c | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/freebsd/sys/dev/pci/pci

[PATCH rtems-libbsd 11/14] pci_mpc85xx: Ensure access order for config-regs

2024-01-23 Thread Christian Mauderer
The CFG_ADDR has to be written before reading or writing the CFG_DATA. --- freebsd/sys/powerpc/mpc85xx/pci_mpc85xx.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/freebsd/sys/powerpc/mpc85xx/pci_mpc85xx.c b/freebsd/sys/powerpc/mpc85xx/pci_mpc85xx.c index 47879e68..b479eb33 100644 ---

[PATCH rtems-libbsd 12/14] Add Tsi148 driver template

2024-01-23 Thread Christian Mauderer
From: Sebastian Huber --- buildset/default.ini | 1 + buildset/everything.ini | 3 + libbsd.py| 17 rtemsbsd/include/bsp/nexus-devices.h | 4 + rtemsbsd/sys/dev/vme/tsi148.c| 123 +++ 5 files cha

[PATCH rtems-libbsd 02/14] mpc85xx: Import from FreeBSD

2024-01-23 Thread Christian Mauderer
From: Sebastian Huber --- freebsd/sys/dev/ofw/ofwpci.c | 677 + freebsd/sys/dev/ofw/ofwpci.h | 87 ++ freebsd/sys/dev/pci/pci_subr.c| 388 +++ freebsd/sys/powerpc/include/machine/hid.h | 224 freebsd/sys/powerpc/include/

[PATCH rtems-libbsd 13/14] tsi148: Add an RTEMS VME glue layer

2024-01-23 Thread Christian Mauderer
The glue layer provides the necessary function so that the Tsi148 driver in the BSP can use the PCI functionality from libbsd. --- libbsd.py | 1 + rtemsbsd/sys/dev/vme/tsi148.c | 24 +++- rtemsbsd/sys/dev/vme/vme-rtems-compat.c | 143

[PATCH rtems-libbsd 14/14] testsuite: Add a VME test

2024-01-23 Thread Christian Mauderer
TERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#define TEST_NAME

[PATCHES rtems, libbsd] Add PCIe and VME support for qoriq

2024-01-23 Thread Christian Mauderer
Hello, the attached patch set for RTEMS and libbsd adds initial support of the Tsi148 VME bridge on the MVME2500 board using the qoriq BSP. Basically it consists of the following parts: - Add PCIe ranges to the qoriq MMU configuration (based on FDT). - Add the existing VME support files to the

[PATCH rtems-libbsd 01/14] sys/bus.h: Fix for small-data area targets

2024-01-23 Thread Christian Mauderer
From: Sebastian Huber --- freebsd/sys/sys/buf.h | 4 1 file changed, 4 insertions(+) diff --git a/freebsd/sys/sys/buf.h b/freebsd/sys/sys/buf.h index 209174b4..dfe3eaa6 100644 --- a/freebsd/sys/sys/buf.h +++ b/freebsd/sys/sys/buf.h @@ -497,7 +497,11 @@ extern int cluster_pbuf_freecnt; /*

[PATCH rtems-libbsd 04/14] pci: Back port changes

2024-01-23 Thread Christian Mauderer
From: Sebastian Huber --- freebsd/sys/dev/pci/pci.c | 3 ++- freebsd/sys/dev/pci/pci_pci.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/freebsd/sys/dev/pci/pci.c b/freebsd/sys/dev/pci/pci.c index 0cc72dba..3789a73e 100644 --- a/freebsd/sys/dev/pci/pci.c +++ b/freeb

Re: rtems 5.3 released libbsd hash mismatch

2024-01-22 Thread Gedare Bloom
On Sat, Jan 13, 2024 at 1:23 PM John Howard wrote: > > Greetings. New developer here. > Thanks for the report. > I used RSB 5.3 to target RTEMS to RaspberryPi with an AMD64 Debian bullseye. > > sha512sum rtems-libbsd-5.3.tar.xz listed in VERSION is hash mismatch. > This app

rtems 5.3 released libbsd hash mismatch

2024-01-13 Thread John Howard
Greetings. New developer here. I used RSB 5.3 to target RTEMS to RaspberryPi with an AMD64 Debian bullseye. sha512sum rtems-libbsd-5.3.tar.xz listed in VERSION is hash mismatch. Correct is

[PATCH libbsd] Checkout submodule using https (restrictive company firewalls block git protocol)

2023-11-13 Thread berndmoessner80
From: Bernd Moessner --- .gitmodules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitmodules b/.gitmodules index beeaf117..e8f6733e 100644 --- a/.gitmodules +++ b/.gitmodules @@ -3,4 +3,4 @@ url = https://github.com/freebsd/freebsd.git [submodule "rtems_waf"]

[RSB PATCH 3/5] rtems/libbsd: Update to latest

2023-10-12 Thread chrisj
From: Chris Johns - Pick up fixes to x86 (i368) bus space usage in kernel DMA --- rtems/config/tools/rtems-libbsd-6.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtems/config/tools/rtems-libbsd-6.cfg b/rtems/config/tools/rtems-libbsd-6.cfg index c89b5eb..3bb1db7

[libbsd/6-freebsd-12 PATCH] i386/pc686: Fix kernel bus DMA for the PC686 BSP

2023-10-03 Thread chrisj
From: Chris Johns The x86 provides it own bus space support. Use the generic bus space calls. This however requires the BUS_SPACE_MEM tag be provided for all architectures. Make the generic value match the x86 value. --- rtemsbsd/include/machine/bus.h| 9 + rtemsbsd/rtems/rtems-k

Re: [PATCH rtems-libbsd] rtemsbsd/libio: Handle invalid descriptors

2023-09-19 Thread Chris Johns
OK Thanks Chris On 20/9/2023 7:18 am, Kinsey Moore wrote: > The documentation for this function suggests that it can handle invalid > descriptors safely. This change allows negative descriptors to be > handled without a crash. > --- > rtemsbsd/include/machine/rtems-bsd-libio.h | 6 -- > 1 fi

[PATCH rtems-libbsd 0/1] Branch note

2023-09-19 Thread Kinsey Moore
Note that this patch only applies to the 6-freebsd-12 branch because the code it affects does not exist in the master branch. ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

[PATCH rtems-libbsd] rtemsbsd/libio: Handle invalid descriptors

2023-09-19 Thread Kinsey Moore
The documentation for this function suggests that it can handle invalid descriptors safely. This change allows negative descriptors to be handled without a crash. --- rtemsbsd/include/machine/rtems-bsd-libio.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rtemsbsd/inclu

[PATCH rtems-libbsd 1/2] bsp/imxrt: Enable cache handling

2023-08-10 Thread Christian Mauderer
The BSP needs the CPU_DATA_CACHE_ALIGNMENT set to enable correct cache handling in libbsd. Otherwise for example USB doesn't work reliable. --- rtemsbsd/include/machine/rtems-bsd-cache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtemsbsd/include/machine/rtems-bsd-ca

[PATCH rtems-libbsd 2/2] rtemsbsd/sys/arm: Add imxrt1166 USBPHY driver

2023-08-10 Thread Christian Mauderer
Adds a driver for the i.MXRT1166 USB PHY and enable USB for the imxrt11xx BSPs. --- libbsd.py | 6 + rtemsbsd/include/bsp/nexus-devices.h | 8 + .../sys/arm/freescale/imx/imxrt1166_usbphy.c | 227 ++ 3 files changed, 241 insertions(

[PATCH rtems 0/3, libbsd 0/2] Enable USB for i.MXRT11xx

2023-08-10 Thread Christian Mauderer
Hello, this patch set adds a USB PHY driver for the i.MXRT11xx family and enables USB on that device family. Best regards Christian ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

[PATCH rtems-libbsd 6-freebsd-12 v2 2/3] testsuite/nfs: Check the path returned by getcwd

2023-08-06 Thread chrisj
From: Chris Johns --- testsuite/nfs01/test_main.c | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/testsuite/nfs01/test_main.c b/testsuite/nfs01/test_main.c index cdcbb1cd..a3d75ddd 100644 --- a/testsuite/nfs01/test_main.c +++ b/testsuite/nfs01/test_main.c

[PATCH rtems-libbsd 6-freebsd-12 v2 1/3] rtemsbsd/syscall: Set unitialised variable in open

2023-08-06 Thread chrisj
From: Chris Johns The open path length was not set when at the root node and this sometimes failed the current directory checks. --- rtemsbsd/rtems/rtems-bsd-syscall-api.c | 1 + 1 file changed, 1 insertion(+) diff --git a/rtemsbsd/rtems/rtems-bsd-syscall-api.c b/rtemsbsd/rtems/rtems-bsd-sysca

[PATCH rtems-libbsd 6-freebsd-12 v2 3/3] rtemsbsd/vfs: Use VOP_REMOVE to remove file nodes

2023-08-06 Thread chrisj
From: Chris Johns --- rtemsbsd/rtems/rtems-kernel-vfs.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rtemsbsd/rtems/rtems-kernel-vfs.c b/rtemsbsd/rtems/rtems-kernel-vfs.c index 0817df81..69c9ba56 100644 --- a/rtemsbsd/rtems/rtems-kernel-vfs.c +++ b/rtemsbsd/rtems/rte

[PATCH rtems-libbsd 6-freebsd-12 2/2] testsuite/nfs: Check the path returned by getcwd

2023-08-05 Thread chrisj
From: Chris Johns --- testsuite/nfs01/test_main.c | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/testsuite/nfs01/test_main.c b/testsuite/nfs01/test_main.c index cdcbb1cd..a3d75ddd 100644 --- a/testsuite/nfs01/test_main.c +++ b/testsuite/nfs01/test_main.c

[PATCH rtems-libbsd 6-freebsd-12 1/2] rtemsbsd/syscall: Set unitialised variable in open

2023-08-05 Thread chrisj
From: Chris Johns The open path length was not set when at the root node and this sometimes failed the current directory checks. --- rtemsbsd/rtems/rtems-bsd-syscall-api.c | 1 + 1 file changed, 1 insertion(+) diff --git a/rtemsbsd/rtems/rtems-bsd-syscall-api.c b/rtemsbsd/rtems/rtems-bsd-sysca

Re: [PATCH] fix type and logic issue when libbsd checking is enforced by the user code

2023-07-22 Thread Karel Gardas
On 7/22/23 17:26, Joel Sherrill wrote: I'm not that familiar with this logic but your change looks right to me. ACK. Please.change the title from type to typo. It looks like a typo in your commitmto fix a typo. Lol No, not at all. As a big fan of statically typed languages I think this is

Re: [PATCH] fix type and logic issue when libbsd checking is enforced by the user code

2023-07-22 Thread Joel Sherrill
I'm not that familiar with this logic but your change looks right to me. Please.change the title from type to typo. It looks like a typo in your commitmto fix a typo. Lol I'm ok with you pushing this. --joel On Sat, Jul 22, 2023, 10:04 AM Karel Gardas wrote: > Fixes #4930. > --- > rtems_bs

[PATCH] fix type and logic issue when libbsd checking is enforced by the user code

2023-07-22 Thread Karel Gardas
Fixes #4930. --- rtems_bsd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtems_bsd.py b/rtems_bsd.py index 7fbe66f..8faae10 100644 --- a/rtems_bsd.py +++ b/rtems_bsd.py @@ -71,8 +71,8 @@ def bsp_configure(conf, arch_bsp, mandatory=True): 'config

[PATCH rtems-libbsd/6-freebsd-12 v2 3/4] freebsd/vfs: Pass in the td's cred to the VFS calls

2023-07-20 Thread chrisj
From: Chris Johns Closes #4723 --- rtemsbsd/rtems/rtems-kernel-vfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtemsbsd/rtems/rtems-kernel-vfs.c b/rtemsbsd/rtems/rtems-kernel-vfs.c index 2f4d009b..0817df81 100644 --- a/rtemsbsd/rtems/rtems-kernel-vfs.c +++ b/rtemsb

[PATCH rtems-libbsd/6-freebsd-12 v2 4/4] nfs: Support multiple mounts with the same path basename

2023-07-20 Thread chrisj
From: Chris Johns NFSv4 mounts NFS file systems to the flat root of a pseudo file system. This change allow the same basename to be used. --- rtemsbsd/fs/nfsclient/nfs.c| 31 +++-- rtemsbsd/rtems/rtems-bsd-syscall-api.c | 32 +++--- 2 files cha

[PATCH rtems-libbsd/6-freebsd-12 v2 2/4] syscall/open: Reference the path info directory vnode

2023-07-20 Thread chrisj
} VREF(fdp->fd_cdir); diff --git a/testsuite/nfs01/test_main.c b/testsuite/nfs01/test_main.c index cfa163e1..cdcbb1cd 100644 --- a/testsuite/nfs01/test_main.c +++ b/testsuite/nfs01/test_main.c @@ -46,18 +46,27 @@ #include #include -#include #include #include +#defin

[PATCH rtems-libbsd/6-freebsd-12 v2 1/4] freenbsd/vfs: VFS attributes need to have the same size mode_t variable

2023-07-20 Thread chrisj
From: Chris Johns If the size in the attributes struct does not match the mode_t the VNOVAL checks fail because size of the values are not the same. Updates #4723 --- freebsd/sys/sys/vnode.h | 4 1 file changed, 4 insertions(+) diff --git a/freebsd/sys/sys/vnode.h b/freebsd/sys/sys/vnode.

Re: [PATCH rtems-libbsd/6-freebsd-12 2/3] syscall/open: Reference the path info directory vnode

2023-07-20 Thread Cedric Berger
On 20.07.23 09:52, Chris Johns wrote: On 20/7/2023 5:24 pm, Cedric Berger wrote: On 20.07.23 07:45, chr...@rtems.org wrote: From: Chris Johns The kernel open call requires a path so to open a file we need to set the current directory to the parent vnode. If the open mode is create the path i

Re: [PATCH rtems-libbsd/6-freebsd-12 2/3] syscall/open: Reference the path info directory vnode

2023-07-20 Thread Chris Johns
On 20/7/2023 5:24 pm, Cedric Berger wrote: > On 20.07.23 07:45, chr...@rtems.org wrote: > >> From: Chris Johns >> >> The kernel open call requires a path so to open a file we need to >> set the current directory to the parent vnode. If the open mode is >> create the path info vnode is the directo

Re: [PATCH rtems-libbsd/6-freebsd-12 2/3] syscall/open: Reference the path info directory vnode

2023-07-20 Thread Cedric Berger
On 20.07.23 07:45, chr...@rtems.org wrote: From: Chris Johns The kernel open call requires a path so to open a file we need to set the current directory to the parent vnode. If the open mode is create the path info vnode is the directory to perform the open create in. Using the parent node cre

[PATCH rtems-libbsd/6-freebsd-12 2/3] syscall/open: Reference the path info directory vnode

2023-07-19 Thread chrisj
From: Chris Johns The kernel open call requires a path so to open a file we need to set the current directory to the parent vnode. If the open mode is create the path info vnode is the directory to perform the open create in. Using the parent node creates the file in wrong path. Updates #4723 --

[PATCH rtems-libbsd/6-freebsd-12 1/3] freenbsd/vfs: VFS attributes need to have the same size mode_t variable

2023-07-19 Thread chrisj
From: Chris Johns If the size in the attributes struct does not match the mode_t the VNOVAL checks fail because sie of the values are not the same. Updates #4723 --- freebsd/sys/sys/vnode.h | 4 1 file changed, 4 insertions(+) diff --git a/freebsd/sys/sys/vnode.h b/freebsd/sys/sys/vnode.h

[PATCH rtems-libbsd/6-freebsd-12 3/3] freebsd/vfs: Pass in the td's cred to the VFS calls

2023-07-19 Thread chrisj
From: Chris Johns Closes #4723 --- rtemsbsd/rtems/rtems-kernel-vfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtemsbsd/rtems/rtems-kernel-vfs.c b/rtemsbsd/rtems/rtems-kernel-vfs.c index 2f4d009b..0817df81 100644 --- a/rtemsbsd/rtems/rtems-kernel-vfs.c +++ b/rtemsb

Re: Libbsd situation.

2023-07-18 Thread Sebastian Huber
Hello Karel, On 17.07.23 13:12, Karel Gardas wrote:   Hello, if I'm right than RTEMS 6 should be accompanied with libbsd from 6-freebsd-12 branch which should be based on freebsd-12 (stable/12 branch). Please correct me if I'm wrong here. If I'm right above, then there

Libbsd situation.

2023-07-17 Thread Karel Gardas
Hello, if I'm right than RTEMS 6 should be accompanied with libbsd from 6-freebsd-12 branch which should be based on freebsd-12 (stable/12 branch). Please correct me if I'm wrong here. If I'm right above, then there are few things which worries me a bit: (1) FreeBSD'

[PATCH rtems-libbsd] imx: Enable GPIO driver for imxrt too

2023-07-13 Thread Christian Mauderer
--- rtemsbsd/sys/arm/freescale/imx/imx_rtems_gpio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtemsbsd/sys/arm/freescale/imx/imx_rtems_gpio.c b/rtemsbsd/sys/arm/freescale/imx/imx_rtems_gpio.c index c24732cc..da64922f 100644 --- a/rtemsbsd/sys/arm/freescale/imx/imx_rt

Re: [PATCH rtems-libbsd] freebsd/if_cgem: Remove QEMU workaround

2023-06-27 Thread Chris Johns
This looks good. Thanks Chris On 28/6/2023 1:30 am, Kinsey Moore wrote: > Note that this patch is for 6-freebsd-12 and its removal reduces the burden to > make the master branch match functionality. > > On Tue, Jun 27, 2023 at 10:28 AM Kinsey Moore > wrote: > >

Re: [PATCH rtems-libbsd] freebsd/if_cgem: Remove QEMU workaround

2023-06-27 Thread Kinsey Moore
Note that this patch is for 6-freebsd-12 and its removal reduces the burden to make the master branch match functionality. On Tue, Jun 27, 2023 at 10:28 AM Kinsey Moore wrote: > This removes the workaround applied on the fly for QEMU that disables > priority queueing. The priority queue interrup

[PATCH rtems-libbsd] freebsd/if_cgem: Remove QEMU workaround

2023-06-27 Thread Kinsey Moore
This removes the workaround applied on the fly for QEMU that disables priority queueing. The priority queue interrupt was not previously hooked up properly in QEMU and RSB now has the patches to allow it to work. --- freebsd/sys/dev/cadence/if_cgem.c | 26 +++--- 1 file changed

[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 in

Re: RTEMS-libbsd freebsd-org submodule would require update in order to import genet drivers. Suggestions?

2023-06-04 Thread Christian MAUDERER
Hello Alan and Noor, please note that updating libbsd to a newer FreeBSD version is a bit more work than pushing the hash of the freebsd-org submodule. The basic process is: - use freebsd-to-rtems.py to copy changes from libbsd to the freebsd-org - commit them there - rebase to a newer

Re: RTEMS-libbsd freebsd-org submodule would require update in order to import genet drivers. Suggestions?

2023-06-04 Thread Thomas DOERFLER
Hi, if I get things right the update policy of freebsd is currently stuck within the RTEMS community. There are objections regarding the way libbsd has been created/adapted to RTEMS in the past but no real decision how/who would provide/maintain a different way. I think this is a really bad

Re: RTEMS-libbsd freebsd-org submodule would require update in order to import genet drivers. Suggestions?

2023-06-04 Thread Noor Aman
Hi Alan, > If you have not done so already, would it be worth trying to build and > initialize the current libbsd with a loopback driver? > I haven't done it so far, This might help. Thanks. Are there other devices on the RPI4 such as the SD card or USB that may be > usab

Re: RTEMS-libbsd freebsd-org submodule would require update in order to import genet drivers. Suggestions?

2023-06-04 Thread Alan Cudmore
Hi Noor, If you have not done so already, would it be worth trying to build and initialize the current libbsd with a loopback driver? Are there other devices on the RPI4 such as the SD card or USB that may be usable in the current libbsd on the Pi 4? I know it will not get you the ethernet driver

Re: RTEMS-libbsd freebsd-org submodule would require update in order to import genet drivers. Suggestions?

2023-06-04 Thread Noor Aman
ee. Thanks On Thu, 1 Jun 2023 at 23:46, Noor Aman wrote: > Hello, > Currently freebsd-org submodule is currently checked out at hash-ID > 5d85e12 dated September 24, 2019 in master rtems-libbsd branch. In order to > import genet drivers, I need to at least get commit from april

RTEMS-libbsd freebsd-org submodule would require update in order to import genet drivers. Suggestions?

2023-06-01 Thread Noor Aman
Hello, Currently freebsd-org submodule is currently checked out at hash-ID 5d85e12 dated September 24, 2019 in master rtems-libbsd branch. In order to import genet drivers, I need to at least get commit from april 2020. Specifically this one https://reviews.freebsd.org/D24436 In terms of freebsd

Re: [PATCH rtems-libbsd] ipsec-tools: Fix copying fd_set prior to select

2023-05-24 Thread Chris Johns
s. It does not catch FD_ZERO which is >>>>>>> a >>>>>>> shame >>>>>>> but is helps avoid us adding a special case. >>>>>> >>>>>> Thanks for the suggestion. I used that solution already in the fil

Re: [PATCH rtems-libbsd] ipsec-tools: Fix copying fd_set prior to select

2023-05-24 Thread Christian MAUDERER
already in the file during the initial port. But it doesn't work in this case (and maybe we should check other cases in libbsd too). It only copies the first element of the array of fd_sets. The variables / defines are (in the patched version - see [1]): static fd_set *allocated_preset

Re: [PATCH rtems-libbsd] ipsec-tools: Fix copying fd_set prior to select

2023-05-23 Thread Chris Johns
realloc >>>>> >>>>> as the assignment logic works as is. It does not catch FD_ZERO which is a >>>>> shame >>>>> but is helps avoid us adding a special case. >>>> >>>> Thanks for the suggestion. I used that solution already in t

Re: [PATCH rtems-libbsd] ipsec-tools: Fix copying fd_set prior to select

2023-05-23 Thread Chris Johns
is a >>>> shame >>>> but is helps avoid us adding a special case. >>> >>> Thanks for the suggestion. I used that solution already in the file during >>> the >>> initial port. But it doesn't work in this case (and maybe we sho

Re: [PATCH rtems-libbsd] ipsec-tools: Fix copying fd_set prior to select

2023-05-23 Thread Christian MAUDERER
assignment logic works as is. It does not catch FD_ZERO which is a shame but is helps avoid us adding a special case. Thanks for the suggestion. I used that solution already in the file during the initial port. But it doesn't work in this case (and maybe we should check other cases in libbs

Re: [PATCH rtems-libbsd] ipsec-tools: Fix copying fd_set prior to select

2023-05-22 Thread Chris Johns
>> >> as the assignment logic works as is. It does not catch FD_ZERO which is a >> shame >> but is helps avoid us adding a special case. > > Thanks for the suggestion. I used that solution already in the file during the > initial port. But it doesn't work in t

Re: [PATCH rtems-libbsd] ipsec-tools: Fix copying fd_set prior to select

2023-05-22 Thread Christian MAUDERER
special case. Thanks for the suggestion. I used that solution already in the file during the initial port. But it doesn't work in this case (and maybe we should check other cases in libbsd too). It only copies the first element of the array of fd_sets. The variables / defines are (i

Re: [PATCH rtems-libbsd] ipsec-tools: Fix copying fd_set prior to select

2023-05-22 Thread Chris Johns
Mauderer wrote: > The racoon session code copies an fd_set from one variable into another > prior to calling select. That works well for simple structures. > > In libbsd we have to allocate fd_sets instead of using fixed structures > to avoid a problem with file numbers bigger than

Re: [PATCH rtems-libbsd] ipsec-tools: Fix copying fd_set prior to select

2023-05-22 Thread Christian MAUDERER
l for simple structures. In libbsd we have to allocate fd_sets instead of using fixed structures to avoid a problem with file numbers bigger than FD_SETSIZE. The simple assignment didn't work in that case. This patch makes sure that a memcpy is used instead. --- ipsec-tools/src/racoon/ses

[PATCH rtems-libbsd] ipsec-tools: Fix copying fd_set prior to select

2023-05-22 Thread Christian Mauderer
The racoon session code copies an fd_set from one variable into another prior to calling select. That works well for simple structures. In libbsd we have to allocate fd_sets instead of using fixed structures to avoid a problem with file numbers bigger than FD_SETSIZE. The simple assignment didn&#

Re: [PATCH rtems-libbsd] Revert "waf: Move the tools/BSP include path to be last"

2023-05-01 Thread Chris Johns
RTEMS causes > a failure to build. > --- > waf_libbsd.py | 29 - > 1 file changed, 8 insertions(+), 21 deletions(-) > > diff --git a/waf_libbsd.py b/waf_libbsd.py > index acf93a2f..81818956 100644 > --- a/waf_libbsd.py > +++ b/waf_libbsd.

[PATCH rtems-libbsd] Revert "waf: Move the tools/BSP include path to be last"

2023-05-01 Thread Kinsey Moore
insertions(+), 21 deletions(-) diff --git a/waf_libbsd.py b/waf_libbsd.py index acf93a2f..81818956 100644 --- a/waf_libbsd.py +++ b/waf_libbsd.py @@ -2,7 +2,7 @@ """LibBSD build configuration to waf integration module. """ -# Copyright (c) 2015, 2021 Chr

[rtems-net-legacy PATCH 3/4] net: Update sysctl to use the latest libbsd linker set

2023-04-22 Thread chrisj
From: Chris Johns - Update linker_set.h to the latest from libbsd so the linker scripts work. - Add a sysctl command to check on sysctls - Add set defines to the networking stack --- netsources.py|1 + rtems/rtems_bsdnet.h |1 + rtems/rtems_glue.c

[PATCH v2 00/18] Port PTPd to rtems-libbsd

2023-04-17 Thread Gabriel Moyano
In this second version, the files were moved to rtemsbsd/ptpd. Chris Johns (9): ptpd: Add conditional macros for RTEMS ptpd: Add implementation of eventtimer based on kqueue ptpd: Add missing cast in dictionary.c ptpd: Add debug prints for ipv4 in net.c ptpd: Saving rtOpst in ptpClock ea

AW: [PATCH 00/18] Port PTPd to rtems-libbsd

2023-04-12 Thread Gabriel.Moyano
> On 12/4/2023 11:54 pm, Gabriel Moyano wrote: > > These commits are for porting PTPd to rtems-libbsd and are based on the > master branch. > > > > This work is a joint effort with Chris Johns, which we started some time > ago. > > Originally, we wanted to port som

Re: [PATCH 00/18] Port PTPd to rtems-libbsd

2023-04-12 Thread Chris Johns
On 12/4/2023 11:54 pm, Gabriel Moyano wrote: > These commits are for porting PTPd to rtems-libbsd and are based on the > master branch. > > This work is a joint effort with Chris Johns, which we started some time ago. > Originally, we wanted to port some of the commits to PT

[PATCH 00/18] Port PTPd to rtems-libbsd

2023-04-12 Thread Gabriel Moyano
These commits are for porting PTPd to rtems-libbsd and are based on the master branch. This work is a joint effort with Chris Johns, which we started some time ago. Originally, we wanted to port some of the commits to PTPd upstream but unfortunately the project is no longer maintained (our pull

Re: [PATCH rtems-libbsd v2 1/1] rtemsbsd/sdhci: Fix Arasan driver when no card present

2023-03-27 Thread Kinsey Moore
This patch and the mail subject look good. Thanks, Rick! I'll send this over to Joel for commit tomorrow. Kinsey On Mon, Mar 27, 2023 at 7:31 PM wrote: > From: Rick VanderWal > > This fixes an issue where the card present signal doesn't stabilize > quickly and indicates present when no card i

[PATCH rtems-libbsd v2 1/1] rtemsbsd/sdhci: Fix Arasan driver when no card present

2023-03-27 Thread rvanderwal
From: Rick VanderWal This fixes an issue where the card present signal doesn't stabilize quickly and indicates present when no card is inserted in a removable slot. --- rtemsbsd/sys/dev/sdhci/arasan_sdhci.c | 21 + 1 file changed, 21 insertions(+) diff --git a/rtemsbsd/sys/d

[PATCH rtems-libbsd v2 0/1] Fix for Arasan SDHCI driver

2023-03-27 Thread rvanderwal
From: Rick VanderWal I found an issue with the Arasan SDHCI driver when there is no card present, it causes RTEMS startup to hand for 10 seconds waiting on mmc command timeout and displays a controller register dump. It is caused by the card present signal remaining high while indicating the sign

[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/

Re: [PATCH rtems-libbsd v2 0/2] Update the CGEM driver

2023-03-04 Thread Kinsey Moore
On Sat, Mar 4, 2023 at 3:21 AM Karel Gardas wrote: > > One remark as an random observer here. > "branch 6-freebsd-12" has caught my eyes. Let me ask shouldn't > development patches go into the master branch from which they may be > later cherry-picked if needed and pushed into 6-freebsd-12 branch

Re: [PATCH rtems-libbsd v2 0/2] Update the CGEM driver

2023-03-04 Thread Karel Gardas
Padmarao Begari mailto:padmarao.beg...@microchip.com>> wrote: Update the CGEM driver with adding the phy address and the clock to read it from the device tree. The patches are based upon latest rtems-libbsd tree at 6-freebsd-12 (https://git.rtems.org/rtems-libbsd.git <https://git.rt

  1   2   3   4   5   6   7   8   9   10   >