[PATCH] dev/sc16is752: Add ioctl calls for modem controll.

2018-05-02 Thread Christian Mauderer
This add ths following ioctl calls to the sc16is752 driver: - TIOCMGET - TIOCMSET - TIOCMBIS - TIOCMBIC --- cpukit/dev/serial/sc16is752-regs.h | 18 - cpukit/dev/serial/sc16is752.c | 79 ++ 2 files changed, 96 insertions(+), 1 deletion(-) diff --gi

[PATCH v2 4/6] dhcpcd: Remove unused dhcpcd shell command

2018-05-02 Thread Sebastian Huber
--- libbsd.py | 6 - rtemsbsd/include/rtems/netcmds-config.h | 2 -- rtemsbsd/rtems/rtems-bsd-shell-dhcpcd.c | 40 - 3 files changed, 48 deletions(-) delete mode 100644 rtemsbsd/rtems/rtems-bsd-shell-dhcpcd.c diff --git a/libbsd

[PATCH v2 3/6] rc_conf: Remove unused variable

2018-05-02 Thread Sebastian Huber
--- rtemsbsd/rtems/rtems-bsd-rc-conf-net.c | 5 - 1 file changed, 5 deletions(-) diff --git a/rtemsbsd/rtems/rtems-bsd-rc-conf-net.c b/rtemsbsd/rtems/rtems-bsd-rc-conf-net.c index 0a5b3aaec..a3c4e7fb7 100644 --- a/rtemsbsd/rtems/rtems-bsd-rc-conf-net.c +++ b/rtemsbsd/rtems/rtems-bsd-rc-conf-

[PATCH v2 2/6] rc_conf: Do not create directories used by dhcpcd

2018-05-02 Thread Sebastian Huber
The dhcpcd will create the directories on its own. --- rtemsbsd/rtems/rtems-bsd-rc-conf-net.c | 12 1 file changed, 12 deletions(-) diff --git a/rtemsbsd/rtems/rtems-bsd-rc-conf-net.c b/rtemsbsd/rtems/rtems-bsd-rc-conf-net.c index d5d4f3958..0a5b3aaec 100644 --- a/rtemsbsd/rtems/rte

[PATCH v2 5/6] dhcpcd: Add rtems_dhcpcd_start()

2018-05-02 Thread Sebastian Huber
Use it throughout to start the DHCP client (dhcpcd). --- dhcpcd/dhcpcd.c| 70 +- dhcpcd/namespace.h | 4 ++ rtemsbsd/include/machine/rtems-bsd-commands.h | 2 - rtemsbsd/include/rtems/dhcpcd.h

[PATCH v2 6/6] dhcpcd: Add hooks

2018-05-02 Thread Sebastian Huber
--- dhcpcd/dhcpcd.c | 9 +++ dhcpcd/namespace.h | 1 + dhcpcd/script.c | 56 + dhcpcd/script.h | 6 + libbsd.py | 1 + rtemsbsd/include/rtems/dhcpcd.h | 22 +++

[PATCH v2 1/6] rc_conf: Include missing header files

2018-05-02 Thread Sebastian Huber
--- rtemsbsd/rtems/rtems-bsd-rc-conf-net.c | 4 1 file changed, 4 insertions(+) diff --git a/rtemsbsd/rtems/rtems-bsd-rc-conf-net.c b/rtemsbsd/rtems/rtems-bsd-rc-conf-net.c index 8d70834c9..d5d4f3958 100644 --- a/rtemsbsd/rtems/rtems-bsd-rc-conf-net.c +++ b/rtemsbsd/rtems/rtems-bsd-rc-conf-

Re: Misplaced Directories?

2018-05-02 Thread Chris Johns
On 03/05/2018 15:21, Sebastian Huber wrote: > On 03/05/18 03:55, Chris Johns wrote: >> On 02/05/2018 21:25, Sebastian Huber wrote: >>> On 02/05/18 13:18, Joel Sherrill wrote: On Wed, May 2, 2018, 12:13 AM Sebastian Huber >>> > wrote:

Re: Misplaced Directories?

2018-05-02 Thread Sebastian Huber
On 03/05/18 03:55, Chris Johns wrote: On 02/05/2018 21:25, Sebastian Huber wrote: On 02/05/18 13:18, Joel Sherrill wrote: On Wed, May 2, 2018, 12:13 AM Sebastian Huber mailto:sebastian.hu...@embedded-brains.de>> wrote:     > I think that's it from my notes. Any comments or thoughts?     I wo

Re: Firmware for libbsd drivers

2018-05-02 Thread Sebastian Huber
On 03/05/18 01:50, Chris Johns wrote: On 02/05/2018 21:04, Sebastian Huber wrote: What do we want to do with such files? Without this firmware you cannot use the DMA controller on this platform. How does FreeBSD handle them? Lets follow what they do. I didn't find the firmware in the main re

Re: [PATCH v3 0/6] libbsd: Create some basic buildsets.

2018-05-02 Thread Christian Mauderer
Am 03.05.2018 um 01:55 schrieb Chris Johns: > On 02/05/2018 23:15, Christian Mauderer wrote: >> I noted some problem with freebsd-to-rtems.py with the approach I used >> for testing for INET6 in the minimal config. So I changed that to >> include that into the general rtems-bsd-user-space.h. That h

Re: Misplaced Directories?

2018-05-02 Thread Chris Johns
On 02/05/2018 21:25, Sebastian Huber wrote: > On 02/05/18 13:18, Joel Sherrill wrote: >> On Wed, May 2, 2018, 12:13 AM Sebastian Huber >> > > wrote: >>     > I think that's it from my notes. Any comments or thoughts? >> >>     I would leave the source file

Re: [PATCH 1/2] dhcpcd: Add rtems_dhcpcd_start()

2018-05-02 Thread Chris Johns
On 03/05/2018 10:30, Joel Sherrill wrote: > On Wed, May 2, 2018, 4:35 AM Sebastian Huber > > wrote: > > On 02/05/18 11:01, Chris Johns wrote: > > This is duplicating this code: > > > > > > https://git.rtems.org/rtems-libbsd/tree/rte

Re: [PATCH 1/2] dhcpcd: Add rtems_dhcpcd_start()

2018-05-02 Thread Joel Sherrill
On Wed, May 2, 2018, 4:35 AM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > On 02/05/18 11:01, Chris Johns wrote: > > This is duplicating this code: > > > > > https://git.rtems.org/rtems-libbsd/tree/rtemsbsd/rtems/rtems-bsd-rc-conf-net.c#n632 > > > > It is a documented way to run D

Re: x86_64 port and BSP (GSoC 2018)

2018-05-02 Thread Chris Johns
On 01/05/2018 23:09, Amaan Cheval wrote: > Quick update: My x86_64 stub port compiles and can be linked to all default > tests now! _dance_ > > I've pushed the stub port for the x86_64 to my fork on Github; the commits > are horribly messy (I did most of the work aiming for the stub to be one > co

Re: Firmware for libbsd drivers

2018-05-02 Thread Joel Sherrill
On Wed, May 2, 2018, 6:51 PM Chris Johns wrote: > On 02/05/2018 21:04, Sebastian Huber wrote: > > > > What do we want to do with such files? Without this firmware you cannot > use the > > DMA controller on this platform. > > > > How does FreeBSD handle them? Lets follow what they do. > +1 > > C

Re: [PATCH v3 0/6] libbsd: Create some basic buildsets.

2018-05-02 Thread Chris Johns
On 02/05/2018 23:15, Christian Mauderer wrote: > I noted some problem with freebsd-to-rtems.py with the approach I used > for testing for INET6 in the minimal config. So I changed that to > include that into the general rtems-bsd-user-space.h. That has the > advantage that it's not that easy to for

Re: Firmware for libbsd drivers

2018-05-02 Thread Chris Johns
On 02/05/2018 21:04, Sebastian Huber wrote: > > What do we want to do with such files? Without this firmware you cannot use > the > DMA controller on this platform. > How does FreeBSD handle them? Lets follow what they do. Chris ___ devel mailing lis

[PATCH v3 4/6] tcpdump: Remove unused file.

2018-05-02 Thread Christian Mauderer
--- freebsd/contrib/tcpdump/print-sunrpc.c | 182 - 1 file changed, 182 deletions(-) delete mode 100644 freebsd/contrib/tcpdump/print-sunrpc.c diff --git a/freebsd/contrib/tcpdump/print-sunrpc.c b/freebsd/contrib/tcpdump/print-sunrpc.c deleted file mode 100644 in

[PATCH v3 6/6] pfctl: Undef INET6 to avoid warning.

2018-05-02 Thread Christian Mauderer
--- freebsd/sbin/pfctl/parse.c | 826 ++--- freebsd/sbin/pfctl/parse.y | 1 + 2 files changed, 412 insertions(+), 415 deletions(-) diff --git a/freebsd/sbin/pfctl/parse.c b/freebsd/sbin/pfctl/parse.c index c09d4ba4..6041735a 100644 --- a/freebsd/sbin/pfct

[PATCH v3 0/6] libbsd: Create some basic buildsets.

2018-05-02 Thread Christian Mauderer
I noted some problem with freebsd-to-rtems.py with the approach I used for testing for INET6 in the minimal config. So I changed that to include that into the general rtems-bsd-user-space.h. That has the advantage that it's not that easy to forget to look whether INET6 is used in some header. I'm

[PATCH v3 3/6] waf: Generate a rtems/bsd/modules.h

2018-05-02 Thread Christian Mauderer
The generated file defines a RTEMS_BSD_MODULE_xxx for each enabled module. That is usefull for conditional compilation depending on whether a module is build not. Update #3351. --- waf_libbsd.py | 32 1 file changed, 32 insertions(+) diff --git a/waf_libbsd.py b/

[PATCH v3 1/6] waf: Fix usage of build-include from config.

2018-05-02 Thread Christian Mauderer
--- waf_libbsd.py | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/waf_libbsd.py b/waf_libbsd.py index a1d8ad2b..65591feb 100644 --- a/waf_libbsd.py +++ b/waf_libbsd.py @@ -185,6 +185,7 @@ class Builder(builder.ModuleManager): # Include paths #

[PATCH v3 5/6] buildset: Add minimal and everything config.

2018-05-02 Thread Christian Mauderer
This adds two new buildset configurations: One that leaves out as much features as possible and one that enables all features. For the default configuration WiFi support is now disabled. To disable IPv6 for the minimal configuration, all -DINET6 are eliminated in libbsd.py. They are now replaced b

Re: Misplaced Directories?

2018-05-02 Thread Sebastian Huber
On 02/05/18 13:18, Joel Sherrill wrote: On Wed, May 2, 2018, 12:13 AM Sebastian Huber > wrote: On 30/04/18 23:36, Joel Sherrill wrote: > While teaching the class last week, I got the privilege of adapting on > the fly to the new layo

Re: Misplaced Directories?

2018-05-02 Thread Joel Sherrill
On Wed, May 2, 2018, 12:13 AM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > On 30/04/18 23:36, Joel Sherrill wrote: > > While teaching the class last week, I got the privilege of adapting on > > the fly to the new layout. Mostly went well but I made some notes on > > some director

Firmware for libbsd drivers

2018-05-02 Thread Sebastian Huber
Hello, the i.MX7 has complex DMA controller (SDMA) which needs a firmware https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/imx/sdma/sdma-imx7d.bin under this license (non-BSD) https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/LICEN

[PATCH] waf: Allow to add libs per test.

2018-05-02 Thread Christian Mauderer
Update #3419. --- builder.py| 11 +++ libbsd.py | 33 +++-- waf_libbsd.py | 4 +++- 3 files changed, 33 insertions(+), 15 deletions(-) diff --git a/builder.py b/builder.py index 93363590..c183f7d6 100755 --- a/builder.py +++ b/builder.py @@ -495,25 +49

Re: [PATCH 1/2] dhcpcd: Add rtems_dhcpcd_start()

2018-05-02 Thread Sebastian Huber
On 02/05/18 11:01, Chris Johns wrote: This is duplicating this code: https://git.rtems.org/rtems-libbsd/tree/rtemsbsd/rtems/rtems-bsd-rc-conf-net.c#n632 It is a documented way to run DHCP [1]. The FreeBSD compatible initialization is nice, but not every application should be forced to use th

Re: [PATCH 1/2] dhcpcd: Add rtems_dhcpcd_start()

2018-05-02 Thread Chris Johns
Hi, This is duplicating this code: https://git.rtems.org/rtems-libbsd/tree/rtemsbsd/rtems/rtems-bsd-rc-conf-net.c#n632 It is a documented way to run DHCP [1]. The change no documentation and seems rather custom. This approach was a flaw with the legacy stack and I would prefer we do not follow.

[PATCH 1/2] dhcpcd: Add rtems_dhcpcd_start()

2018-05-02 Thread Sebastian Huber
--- dhcpcd/dhcpcd.c| 46 +++ dhcpcd/namespace.h | 4 ++ rtemsbsd/include/rtems/dhcpcd.h| 66 ++ .../include/rtems/bsd/test/default-network-init.h | 37 ++-- 4 files cha

[PATCH 2/2] dhcpcd: Add hooks

2018-05-02 Thread Sebastian Huber
--- dhcpcd/dhcpcd.c | 9 +++ dhcpcd/namespace.h | 1 + dhcpcd/script.c | 54 + dhcpcd/script.h | 6 + libbsd.py | 1 + rtemsbsd/include/rtems/dhcpcd.h | 22 +++