2008 Commits

Author SHA1 Message Date
Frank Kühndel
d63f9cd9d9 libbsd: Add TFTP filesystem to test media01
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 mounting:

TLNT [/] # mount -L
File systems: / dosfs tftpfs

The list will contain `tftpfs`.  The filesystem can be mounted
as in the following example:

TLNT [/] # mkdir /tftp
TLNT [/] # mount -t tftpfs -o verbose "" /tftp

A TFTP server is needed to use this filesystem.  The simplest way
would be to run such a server on the host machine and open the
firewall for the TFTP protocol (port 69) on the TAP device used.
Files can then be downloaded using the usual shell commands
as in the following example:

TLNT [/] # cat /tftp/169.254.1.1:hello.txt

Uploading is also possible provided the TFTP server supports it,
for example:

TLNT [/] # cp /etc/dhcpcd.duid /tftp/169.254.1.1:myfile
2022-04-25 16:21:26 +02:00
Alex White
22e531d7f0 if_xae: Fix non-FDT BSP build error
This fixes a compiler error that would occur for every BSP that does not
define `BSP_FDT_IS_SUPPORTED`. The fdt headers should always be included
to provide the needed definitions.
2022-03-10 08:22:39 +01:00
Alex White
40b9c6ce63 if_xae: Port to RTEMS 2022-03-07 17:04:05 -06:00
Jennifer Averett
ee4fb53241 if_xae: Import from FreeBSD 2022-03-07 17:04:05 -06:00
Jennifer Averett
d10228ddba Add MicroBlaze support 2022-03-07 17:04:05 -06:00
Heinz Junkes
de0badf2c3 if_mve: Add MV643XX Ethernet driver
Update #4345.
2022-03-07 10:52:52 +01:00
Christian Mauderer
330f65f987 ipsec-tools: Reduce allocated buffer size
By default, pfkey allocates a 2MB buffer that is used for SPD entries.
This size is a good choice for a server system where a lot of clients
should be handled. But on our embedded systems, an application with that
much clients is unlikely and 2MB is a lot of space. So reduce that to
the default value of 128kB which should be enough for a small number of
ipsec connections.

See https://bugzilla.redhat.com/show_bug.cgi?id=607361 for more details
why the upstream project originally increased the size.

If someone really needs a bigger size, there is a option in the
configuration file of pfkey called `pfkey_buffer` that can overwrite
this value.

Closes #4621
2022-02-24 10:21:39 +01:00
Sebastian Huber
4895323e6c rtems-bsd-program.h: Remove stray ';' 2022-02-23 15:57:06 +01:00
Sebastian Huber
a8c55b62bb builder.py: Fix addition of plain text files 2022-02-23 15:24:17 +01:00
Sebastian Huber
4b724e86c0 CONTRIBUTING: Clarify white space changes 2022-02-15 14:57:30 +01:00
Sebastian Huber
8703913e63 openssl02: Add missing include 2022-02-15 14:57:30 +01:00
Christian Mauderer
17ac5a8cfe ppp: Fix transmitting data
The pppstart expected that a driver write would somehow magically
process all data passed to the write function. Because ppp disables all
buffering that originally has been in termios, that assumption is not
true for all but polled drivers.

With this patch, the pppstart now gets and processes the feedback that
is returned from the driver via rtems_termios_dequeue_characters.

Fixes #4493
2022-02-10 09:19:06 +01:00
Kinsey Moore
f4cf022ad4 Import arm64 in_cksum.h correctly
When this file was brought in, it came from the wrong location or
freebsd-org hash. This corrects the file such that freebsd-to-rtems.py
runs cleanly.
2021-12-16 08:53:10 -06:00
Chris Johns
25a883272a Add support for Xilinx Versal APAC 2021-10-21 11:29:14 +11:00
Chris Johns
87a5b45564 rtemsbsd/nfsclient: Fix the error code return value 2021-10-21 11:29:01 +11:00
Chris Johns
6ee31ae968 waf: Move the tools/BSP include path to be last
- This change lets you rebuild libbsd after it is installed
2021-10-21 11:23:40 +11:00
Chris Johns
f94a67a68d rtemsbsd: Clear bus DMA memory a byte at a time
- memset may be optimized for performance and might work
  with device type memory. Clear a byte at a time.
2021-10-21 11:23:30 +11:00
Kinsey Moore
38f3de6469 rtemsbsd/atomic: Return a value for CMPSET
When the cmpset and fcmpset functions were refactored, the return value
of the operation was discarded instead of being returned for SMP builds
outside of gcc 4.x. This had the effect of turning these functions into
a long busywait loop that eventually failed due to integer overflow.

This patch restores the use of the return value of the atomic
operations.
2021-10-08 09:05:05 -05:00
Kinsey Moore
0baf1a8545 waf_libbsd: Fix typo in previous patch
There was a typo in the patch that added the HAVE_<LIBRARY> definition
that prevented "./waf configure" from succeeding. This adds the missing
character.
2021-10-08 09:05:05 -05:00
Kinsey Moore
e6bd18c10b waf_libbsd: Account for library check results
Conditionally compiled tests (consisting only of debugger01) were not
compiling as expected when libdebugger was present. This appears to have
occurred during the transition from header detection or due to an
intervening change in the waf internal libraries. The result of
check_cc() is the only location this information is reported, so library
checks now set HAVE_<LIBRARY> as appropriate when the library is found
so existing code for header configuration correctly recognize that a
library is present.
2021-10-06 08:35:37 -05:00
Chris Johns
2e5f808b09 rtemsbsd/syscalls: Remove pipe()
- This call is provided by RTEMS and that is preferred

Closes #4518
2021-09-23 15:42:12 +10:00
Chris Johns
d9dd59d9ef rtemsbsd/open: Correctly open a mount directory
- If the open is for a directory and it is the root of the mounted
  file system open from the pseudo's root node.
2021-09-23 13:31:08 +10:00
Chris Johns
715e29f2a0 freebsd/libc/rpc: Fix the fgets emulation for the internal netconfig support 2021-09-08 09:23:09 +10:00
Christian Mauderer
b7c51ac449 imx: Remove ccm functions alredy defined in RTEMS
The imx_ccm_*_hz are all defined in RTEMS. So don't duplicate them in
libbsd. Otherwise some applications get linker errors.

Update #3869
2021-09-02 09:19:27 +02:00
Chris Johns
7e282d2506 rtemsbsd/nfs: Add support to mount NFSv2
- NFSv2 requires userland RPC calls to determine the version of
  NFS and the FH. This is passed to the kernel.

- Port more libc/rpc.

Update #4475
2021-09-02 08:45:12 +10:00
Chris Johns
882425fe54 kern/sys: Add NFSv4 client
Update #4475
2021-08-31 18:38:48 +10:00
Chris Johns
6138f242be kern/sys: Import NFS and NFS file system client
Update #4475
2021-08-28 10:25:46 +10:00
Chris Johns
c6dbc96748 kern/sys: Add the kernel RPC and XDR support
Updates #4475
2021-08-28 10:25:46 +10:00
Chris Johns
3da45ae4bc freebsd/sys: Import RPC and XDR support
Update #4475
2021-08-28 10:25:46 +10:00
Chris Johns
6514d56158 sys/kern: Add VFS support
- Refactor the libio interface

- Move syscalls into an rtemsbsd location

- Provide a root directory mount point

Update #4475
2021-08-28 10:25:46 +10:00
Chris Johns
ac4db4cec5 rtemsbsd: Remove DHCP init wrapper
- Object files cannot config init and resided in libbsd.a

Update #4475
2021-08-28 10:24:38 +10:00
Chris Johns
1739d74f7d freebsd/sys: Import VFS support
Update #4475
2021-08-28 10:24:38 +10:00
Chris Johns
e56b5cb135 kern: Add kernel trace support (KTR)
Update #4475
2021-08-28 10:24:38 +10:00
Chris Johns
9800a0f9fa kern: Import kern_ktr.c
Update #4475
2021-08-28 10:24:38 +10:00
Chris Johns
c7427fc154 kern: Add a proc0
- Provides the thread's proc pointer and with that access to creds

Update #4475
2021-08-28 10:24:38 +10:00
Chris Johns
761fd69393 kern: Import kern_prot.c fnd kern_resource.c for proc0
Update #4475
2021-08-28 10:24:38 +10:00
Chris Johns
46a15fa7aa sys/kern: Add lockmgr support
- See `man lockmgr`

- Implement the lock_object and move the RTEMS mutex to that object

- Add debug support to track the locks with gdb

Update #4475
2021-08-28 10:24:38 +10:00
Chris Johns
e1ca99b535 testsuite: Optionally allow all command in a shell
Update #4475
2021-08-28 10:24:37 +10:00
Chris Johns
2a01430ba5 rtemsbsd: Catch timeout overflows
Update #4475
2021-08-28 10:24:37 +10:00
Chris Johns
684cf3cdc2 rtemsbsd: Add FrreBSD's clang-format style
Update #4475
2021-08-28 10:24:37 +10:00
Chris Johns
974742defc kern-symbols: Add symbols from the everything build set
Update #4475
2021-08-28 10:24:37 +10:00
Chris Johns
5ef23a2836 sys/netinet/libalias: Fix symbols clashes
Update #4475
2021-08-28 10:24:37 +10:00
Chris Johns
f700edc5b8 waf: Fix clashing symbols in the user land symbols
Update #4475
2021-08-28 10:24:37 +10:00
Chris Johns
59f652fe88 Implement portable kernel symbol namespace tool
- The script's use of sort proved to not be portable

- No need to check the commits as symbols are only added

- Regenerated kernel header to reset the sort order

Update #4475
2021-08-28 10:24:37 +10:00
Chris Johns
f5c405ec05 bsp/motorola_powerpc: Add dc and ukphy support
- Add the dc net dev to the BSP

- Add the ukphy support

Closes # 4246
2021-08-28 10:23:41 +10:00
Chris Johns
efd75d2e35 testsuite: Wait for the link to be UP
- Wait for a slow PHY to bring the link UP. If the IP address is
  static the test can start before the link is up and the test
  fails.

- Make 2 tests wait. Others will need to be added.
2021-08-27 17:04:30 +10:00
Chris Johns
45ff774c3c rtemsbsd: Add interface support routines
- Add the ability to check if an interface is up
2021-08-27 17:02:59 +10:00
Chris Johns
3f1e128488 rtemsbsd/bus: Add PCI support to the nexus bus
- Add PCI IO region support

- Add support map buffers to PCI address space

- Add BSP conditional IO space support. Some PC implementations
  have PCI IO space mapped differently to memory space and this needs
  to be reflected in the busspace.

- Include bsp.h to pick per BSP configuration.

Closes #4245
2021-08-27 16:53:41 +10:00
Joel Sherrill
c5e81a2169 linker_set.h: Add alignof implementation for when not C11 or C++11
The default implementation was completely broken. Use the GCC specific
__alignof__ if compiling for C99 or C++03. If not C++11, C11, or
GCC, then it is an error.
2021-07-21 17:00:22 -05:00
Stephen Clark
c41318075e nexus: Added SDHCI driver to ZynqMP
Made ZynqMP build with the SDHCI driver.
2021-07-15 11:29:09 -05:00