Re: [PATCH] bsps/raspberrypi/console: Fix default console device

2021-05-10 Thread Gedare Bloom
On Thu, May 6, 2021 at 8:49 AM Niteesh G. S. wrote: > > Hi Alan, > > On Thu, May 6, 2021 at 6:12 PM Alan Cudmore wrote: >> >> Hi Niteesh, >> >> I was hoping to try this out as soon as I get some time. No later than >> weekend. So if nobody else is able to check it out, I will be able to >> prov

Re: [GSoC 2021] Beagle BSP USB OTG Support

2021-05-10 Thread Christian MAUDERER
Hello Ahamed, I'm using a J-Link to debug Beagle. I think that it doesn't have a EMU pin either. Only difference: It has an additional TRST. I would suggest to just try it. I think on OpenOCD there are a few options regarding RST. You can have SRST only, TRST only, both connected together an

Re: [PATCH] bsps/raspberrypi/console: Fix default console device

2021-05-10 Thread Alan Cudmore
Hi Niteesh, I was able to build the current RTEMS master (raspberrypi BSP) and I was also able to successfully apply your patch and rebuild. However, I am having trouble getting RTEMS running on the Raspberry Pis I have. I tried it with and without the patch and I cannot get it to work. I tried a R

[PATCH v1 2/2] machine: Add machine dependent header files to libbsd.py

2021-05-10 Thread Jan Sommer
--- libbsd.py | 26 +++--- waf_libbsd.py | 2 -- 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/libbsd.py b/libbsd.py index add91e5a..248af993 100644 --- a/libbsd.py +++ b/libbsd.py @@ -104,6 +104,7 @@ _defaults = { # (source, [targets..])

[PATCH 1/2] Fix the linux specific include

2021-05-10 Thread chrisj
From: Chris Johns --- common/latex.py | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/latex.py b/common/latex.py index a1b3917..17d3015 100644 --- a/common/latex.py +++ b/common/latex.py @@ -4,10 +4,6 @@ import os import re -try: -from distro import lin

[GSoC 2021] Beagle BSP USB OTG Support

2021-05-10 Thread Ahamed Husni
Hi all, I need to debug the Beaglebone Black using JTAG. I got a TI LaunchPad CC1310. Launchpad has a XDS110 debugger with a (ARM - not sure) 10 pin JTAG out which can be used to debug external targets. The Beaglebone has a cTI 20 pin JTAG interface. Pin layouts for the ARM10 and cTI20 is given he

[PATCH v1 0/2] [libbsd] Install correct machine include headers

2021-05-10 Thread Jan Sommer
Hello, This is a follow-up on this discussion regarding the installed header files in libbsd: https://lists.rtems.org/pipermail/devel/2021-April/066211.html The current situation is, that for example for all machines the bus.h is installed from within the rtemsbsd directory (https://git.rtems.o

[PATCH rtems-libbsd v2] ipsec-tools/pfkey: Fix socket leak

2021-05-10 Thread Christian Mauderer
setkey uses pfkey_open to open a socket. But setkey doesn't close the socket. The libipsec functions are used only by user space applications (setkey and racoon). Adding the wrapper for socket makes sure that the opened socket is registered and closes if the application exits. Fixes #4404 --- ip

Re: GSoC - Code Formatting and Style Checking for RTEMS score

2021-05-10 Thread Ida Delphine
Hello everyone, Went through some previous emails and it turns out Sebastian already came up with a configuration for clang format which works well for RTEMS except for the fact that some configurations haven't been implemented into clang-format yet. Using AlignConsecutiveDeclarations: false Point

Re: qemu-system-ppc64 does not work on powerpc/qoriq_e6500_64

2021-05-10 Thread Sebastian Huber
On 09/05/2021 06:02, Richi Dubey wrote: 0x42c8 199 SET_SELF_CPU_CONTROL CPU_SELF, r5 (gdb) 0x in ?? () (gdb) 0x in ?? () (gdb) 0x in ?? () (gdb) 0x in ?? () (gdb) 0x in ?? () (gdb) ---

Re: [PATCH rtems-libbsd v2] ipsec-tools/pfkey: Fix socket leak

2021-05-10 Thread Christian MAUDERER
Only change is a better description. Am 10.05.21 um 08:50 schrieb Christian Mauderer: setkey uses pfkey_open to open a socket. But setkey doesn't close the socket. The libipsec functions are used only by user space applications (setkey and racoon). Adding the wrapper for socket makes sure that

[PATCH 2/2] Fix the bibtex extension configure test

2021-05-10 Thread chrisj
From: Chris Johns --- common/waf.py | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common/waf.py b/common/waf.py index 3806209..fa9aecb 100644 --- a/common/waf.py +++ b/common/waf.py @@ -181,10 +181,12 @@ def check_sphinx_extension(ctx, extension): def run_sphinx(

[PATCH v1 1/2] rtemsbd: Remove machine dependent files and use the ones from freebsd

2021-05-10 Thread Jan Sommer
- Remove cpufunc.h, bus.h and _bus.h from rtemsbd. Otherwise the same files will be installed for all target architectures which can lead to incompatibilities - Instead use the machine dependent header files from freebsd --- freebsd/sys/arm/include/machine/_bus.h| 47 + freebsd/sys/arm/in

Re: qemu-system-ppc64 does not work on powerpc/qoriq_e6500_64

2021-05-10 Thread Richi Dubey
Thanks, I'll check it out. On Mon, May 10, 2021 at 10:19 AM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > On 09/05/2021 06:02, Richi Dubey wrote: > > 0x42c8 199 SET_SELF_CPU_CONTROL CPU_SELF, r5 > > (gdb) > > 0x in ?? () > > (gdb) > > 0x000

Re: qemu-system-ppc64 does not work on powerpc/qoriq_e6500_64

2021-05-10 Thread Karel Gardas
On 5/10/21 2:26 PM, Richi Dubey wrote: > Thanks, I'll check it out. -bios `where you do have`/u-boot.e500. Karel > > On Mon, May 10, 2021 at 10:19 AM Sebastian Huber > > wrote: > > On 09/05/2021 06:02, Richi Dubey wrote: > > 0x42c

Re: [PATCH v2 1/5] libcsupport: Added futimens() and utimensat()

2021-05-10 Thread Gedare Bloom
On Thu, May 6, 2021 at 1:51 PM Ryan Long wrote: > > Created futimens.c and utimensat.c to add support for the POSIX > methods futimens() and utimensat(). > > utime() and utimes() are considered obsolote by POSIX, but RTEMS > will continue to support them. > > Closes #4396 > --- > cpukit/Makefile.

[PATCH 2/2] bsp: Use RTEMS_NOINIT for bsp_fdt_blob

2021-05-10 Thread Sebastian Huber
This makes it possible to copy a boot loader provided device tree to bsp_fdt_blob before the BSS section is cleared to zero. The disadvantage is that bsp_fdt_blob contains now uninitialized data. --- bsps/shared/start/bsp-fdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/b

[PATCH 1/2] rtems: rtems_scheduler_get_processor_set() docs

2021-05-10 Thread Sebastian Huber
Document changed error status. Update #4401. --- cpukit/include/rtems/rtems/tasks.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpukit/include/rtems/rtems/tasks.h b/cpukit/include/rtems/rtems/tasks.h index df4d7f3d03..e6f7696923 100644 --- a/cpukit/include/rtems/rtems/tas

[PATCH 1/2] score: Rename _Stack_Free_nothing()

2021-05-10 Thread Sebastian Huber
Rename _Stack_Free_nothing() in _Objects_Free_nothing() to make it reusable for the message queue buffers. Update #4007. --- cpukit/Makefile.am | 2 +- cpukit/include/rtems/score/objectimpl.h| 7 +++ cpukit/include/rtems/score/stackimpl.h

[PATCH 2/2] rtems: Use _Objects_Free_nothing() for msg queues

2021-05-10 Thread Sebastian Huber
Use _Objects_Free_nothing() for rtems_message_queue_construct() to avoid unreachable code in _CORE_message_queue_Close() in case only user-provided message buffers are used. Update #4007. --- cpukit/rtems/src/msgqconstruct.c | 7 ++- cpukit/score/src/coremsgclose.c | 8 +++- 2 files chan

Re: [PATCH 2/2] bsp: Use RTEMS_NOINIT for bsp_fdt_blob

2021-05-10 Thread Sebastian Huber
Sorry, I sent the wrong patch set. Please ignore this one. -- embedded brains GmbH Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany email: sebastian.hu...@embedded-brains.de phone: +49-89-18 94 741 - 16 fax: +49-89-18 94 741 - 08 Registergericht: Amtsgericht München Registernummer: HR

Re: [PATCH v2 5/5] Change filesystem utime_h handler to utimens_h

2021-05-10 Thread Gedare Bloom
On Thu, May 6, 2021 at 1:51 PM Ryan Long wrote: > > Also updated licenses. > > Closes #4400 > --- > bsps/arm/csb337/umon/tfsDriver.c| 2 +- > cpukit/Makefile.am | 4 +-- > cpukit/include/rtems/confdefs/libio.h | 4 +-- > cpukit/include/rtems/imfs.h

Re: [PATCH v2 5/5] Change filesystem utime_h handler to utimens_h

2021-05-10 Thread Joel Sherrill
On Mon, May 10, 2021 at 12:48 PM Gedare Bloom wrote: > On Thu, May 6, 2021 at 1:51 PM Ryan Long wrote: > > > > Also updated licenses. > > > > Closes #4400 > > --- > > bsps/arm/csb337/umon/tfsDriver.c| 2 +- > > cpukit/Makefile.am | 4 +-- > > cpukit/includ

Re: qemu-system-ppc64 does not work on powerpc/qoriq_e6500_64

2021-05-10 Thread Richi Dubey
Great, thanks. On Mon, 10 May 2021, 23:04 Karel Gardas, wrote: > On 5/10/21 2:26 PM, Richi Dubey wrote: > > Thanks, I'll check it out. > > -bios `where you do have`/u-boot.e500. > > Karel > > > > > On Mon, May 10, 2021 at 10:19 AM Sebastian Huber > > >

Re: [PATCH] bsps/raspberrypi/console: Fix default console device

2021-05-10 Thread Niteesh G. S.
Hello Alan, On Mon, May 10, 2021 at 8:04 PM Alan Cudmore wrote: > Hi Niteesh, > I was able to build the current RTEMS master (raspberrypi BSP) and I > was also able to successfully apply your patch and rebuild. > However, I am having trouble getting RTEMS running on the Raspberry Pis I > have. >

Re: [PATCH] bsps/raspberrypi/console: Fix default console device

2021-05-10 Thread Niteesh G. S.
Hello Gedare, On Mon, May 10, 2021 at 8:57 PM Gedare Bloom wrote: > On Thu, May 6, 2021 at 8:49 AM Niteesh G. S. wrote: > > > > Hi Alan, > > > > On Thu, May 6, 2021 at 6:12 PM Alan Cudmore > wrote: > >> > >> Hi Niteesh, > >> > >> I was hoping to try this out as soon as I get some time. No late

Re: [PATCH 2/2] bsp: Use RTEMS_NOINIT for bsp_fdt_blob

2021-05-10 Thread Gedare Bloom
ok On Mon, May 10, 2021 at 11:42 AM Sebastian Huber wrote: > > Sorry, I sent the wrong patch set. Please ignore this one. > > -- > embedded brains GmbH > Herr Sebastian HUBER > Dornierstr. 4 > 82178 Puchheim > Germany > email: sebastian.hu...@embedded-brains.de > phone: +49-89-18 94 741 - 16 > fa

Re: [PATCH 2/2] rtems: Use _Objects_Free_nothing() for msg queues

2021-05-10 Thread Gedare Bloom
ok On Mon, May 10, 2021 at 11:41 AM Sebastian Huber wrote: > > Use _Objects_Free_nothing() for rtems_message_queue_construct() to avoid > unreachable code in _CORE_message_queue_Close() in case only > user-provided message buffers are used. > > Update #4007. > --- > cpukit/rtems/src/msgqconstruc

Re: [PATCH rtems-libbsd v2] ipsec-tools/pfkey: Fix socket leak

2021-05-10 Thread Gedare Bloom
looks good, thanks. for the backport please open a separate ticket to 5. On Mon, May 10, 2021 at 11:26 AM Christian MAUDERER wrote: > > Only change is a better description. > > Am 10.05.21 um 08:50 schrieb Christian Mauderer: > > setkey uses pfkey_open to open a socket. But setkey doesn't close t

Re: [PATCH 2/2] Fix the bibtex extension configure test

2021-05-10 Thread Gedare Bloom
ok to both of these. To honor Joel, I'll suggest you should include in the commit msg a more descriptive notion of what you fixed (i.e., "fixed OS neutrality") ;) On Mon, May 10, 2021 at 11:26 AM wrote: > > From: Chris Johns > > --- > common/waf.py | 6 -- > 1 file changed, 4 insertions(+),

Re: [PATCH v1 0/2] [libbsd] Install correct machine include headers

2021-05-10 Thread Gedare Bloom
I can't review these currently, just want to put a note out there. Hopefully someone else gets to it. Otherwise ping it in a week or two and I might have more time to look myself.. On Mon, May 10, 2021 at 11:26 AM Jan Sommer wrote: > > Hello, > > This is a follow-up on this discussion regarding t

RE: [PATCH v2 1/5] libcsupport: Added futimens() and utimensat()

2021-05-10 Thread Ryan Long
Reply is below. -Original Message- From: Gedare Bloom Sent: Monday, May 10, 2021 12:36 PM To: Ryan Long Cc: devel@rtems.org Subject: Re: [PATCH v2 1/5] libcsupport: Added futimens() and utimensat() On Thu, May 6, 2021 at 1:51 PM Ryan Long wrote: > > Created futimens.c and utimensat.c

Re: [PATCH v2 1/5] libcsupport: Added futimens() and utimensat()

2021-05-10 Thread Gedare Bloom
On Mon, May 10, 2021 at 3:16 PM Ryan Long wrote: > > Reply is below. > > -Original Message- > From: Gedare Bloom > Sent: Monday, May 10, 2021 12:36 PM > To: Ryan Long > Cc: devel@rtems.org > Subject: Re: [PATCH v2 1/5] libcsupport: Added futimens() and utimensat() > > On Thu, May 6, 2021

Fwd: [PATCH] riscv/console: console-config.c update

2021-05-10 Thread somesh deshmukh
Gentle Reminder. Hi All, Can you please review this patch and let me know if there are any suggestions/comments. Regards, Somesh -- Forwarded message - From: Somesh Deshmukh Date: Wed, May 5, 2021 at 11:26 PM Subject: [PATCH] riscv/console: console-config.c update To: Cc: Somes

Re: timing on qemu

2021-05-10 Thread Gedare Bloom
On Sat, May 8, 2021 at 12:09 PM Richi Dubey wrote: > > Hi, > > When I use benchmark_timer_initialize() and later read the value with > benchmark_timer_read(), it always shows 0 for me in qemu. Is this expected? > > I am using the arm/realview_pbx_a9_qemu bsp, qemu 4.1.0, and I built the > testsu

Re: Error when using RTEMS_MICROSECONDS_TO_TICKS

2021-05-10 Thread Gedare Bloom
On Sun, May 9, 2021 at 9:33 AM Richi Dubey wrote: > > Hi, > > I am using the line: > rtems_task_wake_after(RTEMS_MICROSECONDS_TO_TICKS(6000)); in my test program > to emulate a 6 seconds sleep. But when I deubg the program using qemu, I do > not see it waiting for 6 seconds; on debugging, there

Re: code review: help implementing clock_montonic

2021-05-10 Thread Gedare Bloom
On Fri, May 7, 2021 at 12:53 PM zack_on_the_speed_chanel wrote: > > hello, > > Currenttly i'm trying to implement the clock_monotonic which was part of > ticket #3889. So far these are the changes are as follows > This ticket mostly references the need for a test. Have you tried to write a test

Re: [PATCH] user/bld/index.rst: removed references to legacy network config options

2021-05-10 Thread Gedare Bloom
ignore this patch, I spoke with Harrison on Discord and he will send another in the next few days On Sat, May 8, 2021 at 8:13 PM Harrison Edward Gerber wrote: > > From: Harrison > > --- > user/bld/index.rst | 7 --- > 1 file changed, 7 deletions(-) > > diff --git a/user/bld/index.rst b/user

Re: [PATCH rtems-libbsd v2] ipsec-tools/pfkey: Fix socket leak

2021-05-10 Thread Christian MAUDERER
Thanks. I pushed them (with separate tickets for 5 and 6). Am 10.05.21 um 22:52 schrieb Gedare Bloom: looks good, thanks. for the backport please open a separate ticket to 5. On Mon, May 10, 2021 at 11:26 AM Christian MAUDERER wrote: Only change is a better description. Am 10.05.21 um 08:50