305 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
40b9c6ce63 if_xae: Port to RTEMS 2022-03-07 17:04:05 -06:00
Sebastian Huber
8703913e63 openssl02: Add missing include 2022-02-15 14:57:30 +01: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
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
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
e1ca99b535 testsuite: Optionally allow all command in a shell
Update #4475
2021-08-28 10:24:37 +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
Kinsey Moore
a53aeb5eb9 rtemsbsd: Present all ZynqMP interfaces by default
Now that the issue with false PHY detection on unterminated MII busses
has been resolved, present all hardware interfaces for use on ZynqMP.
2021-07-15 10:07:16 -05:00
Kinsey Moore
b0c8153d54 rtemsbsd: Use config.inc to control ZynqMP ethernet
This alters the selection of the 4 Cadence GEM interfaces on the Zynq
Ultrascale+ MPSoC BSP to be provided by config.inc instead of being
provided by options in the RTEMS BSP itself since those options appear
to be dead code when not used in conjunction with LibBSD.
2021-07-01 10:33:39 -05:00
Stephen Clark
8dfea31d72 rtemsbsd: Added a test for the TTCP command.
Added a new test for the TTCP command. Modified default-network-init.h
to conditionally build the shell with TTCP. Modified libbsd.py to build
the new TTCP test.
2021-06-29 16:03:42 -05:00
Christian Mauderer
2caeaafb92 testsuite/media01: Add pattern test
Update #4372
2021-04-01 09:05:05 +02:00
Christian Mauderer
43ae62ed7f testsuite/media01: Enable md5 command
Update #4372
2021-04-01 09:04:54 +02:00
Sebastian Huber
e58e549728 mcast01: Fix write to read-only string 2020-10-27 06:16:58 +01:00
Sebastian Huber
2abb02ebae mcast01: Add test program 2020-09-10 09:49:28 +02:00
Sebastian Huber
272d5f522d ifmcstat: Port to RTEMS 2020-09-07 10:12:44 +02:00
Sebastian Huber
d964a6703c telnet: Use rtems_shell_dup_current_env()
Update #3859.
2020-08-06 13:21:00 +02:00
Christian Mauderer
9abf1d3885 testsuite: Use new name of test-info.h.
In RTEMS the test.h has been renamed to test-info.h to allow the new
test framework to take over.
2020-07-31 08:32:17 +02:00
Sebastian Huber
26866d2c1f Fix linker errors with minimal build set 2020-07-08 10:21:20 +02:00
Sebastian Huber
7d194e5f55 mDNSResponder: Port to RTEMS
Update #4010.
2020-06-23 18:13:59 +02:00
Sebastian Huber
6ac77389a3 epoch01: Fix sporadic test failures 2020-06-23 14:10:44 +02:00
Moyano, Gabriel
8e33f3ba15 testsuite: A description for each test added 2020-04-09 08:34:05 +02:00
Sebastian Huber
018fa32710 testsuite: CONFIGURE_MAXIMUM_FILE_DESCRIPTORS 2020-04-03 10:49:33 +02:00
Moyano, Gabriel
27ff7e70a8 testsuite: User input define added 2020-03-31 11:13:43 +02:00
Moyano, Gabriel
b4937b0792 testsuite: Using RTEMS tester functions at beginning and at the end of tests
puts() was replaced with rtems_test_begin() and rtems_test_end()
2020-03-31 11:13:43 +02:00
Sebastian Huber
18cc38e73e epoch01: Update due to API changes
Update #3815.
2020-02-10 20:22:28 +01:00
Sebastian Huber
ca9084764f syscalls01: Fix sporadic test failures 2020-02-10 19:39:08 +01:00
Sebastian Huber
a8f29d695e SOCKATMARK(3): Import from FreeBSD
Close #3798.
2019-12-19 10:51:48 +01:00
Sebastian Huber
c1e05b9ea3 Fix warnings 2019-09-25 09:27:08 +02:00
Sebastian Huber
7664fdce3a Compatibility for next Newlib update 2019-09-25 09:26:10 +02:00
Sebastian Huber
d06c638d7b Add pselect() 2019-09-23 14:28:42 +02:00
Sebastian Huber
69edc55088 test/syscalls01: Fix sporadic test failures 2019-09-23 14:28:42 +02:00
Sebastian Huber
aedff4f6e8 CONFIG_INTRHOOK(9): Call handlers after boot
This enables adding drivers on demand which use this service after
initialization.
2019-09-23 10:26:34 +02:00
Sebastian Huber
d1c8a7fbf5 Add wrapper for strndup() 2019-09-11 10:25:04 +02:00
Sebastian Huber
791ea27c8d media01: Reduce record item count 2019-08-27 10:29:40 +02:00
Sebastian Huber
b88cfdd422 media01: Enable event recording 2019-08-26 08:23:35 +02:00
Sebastian Huber
312f705d4f EPOCH(9): Add epoch_drain_callbacks() 2019-07-09 13:56:23 +02:00
Sebastian Huber
9ed693d723 test/epoch01: Simplify 2019-07-09 13:37:37 +02:00
Sebastian Huber
0659f7b126 test/commands01: Fix sporadic test failures 2019-06-26 13:44:21 +02:00
Sebastian Huber
608047af1c test/program01: Fix sporadic test failures 2019-06-26 13:32:06 +02:00
Chris Johns
103d31c044 config: Control the interface from the command line net config file. 2019-06-13 08:57:39 +02:00
Sebastian Huber
6e5c632248 Fix zero-copy mbuf support
In 2017 there was a change in the mbuf API.
2019-05-13 09:34:00 +02:00
Sebastian Huber
647dd08ae2 Update due to API changes 2019-04-11 09:38:45 +02:00
Sebastian Huber
24c05c8ab0 openssl02: Fix includes 2019-03-29 07:06:22 +01:00
Christian Mauderer
9ed6c97139 bin/openssl: Port to RTEMS. 2019-03-28 07:17:24 +01:00
Sebastian Huber
5f28ab25ca rcconf02: Reduce maximum connection counts
This avoids a file descriptor exhaustion.
2019-03-11 08:09:37 +01:00
Sebastian Huber
afc0c81a5f openssl01: Call standard initialization functions 2018-10-25 09:40:18 +02:00
Sebastian Huber
a7079138c1 openssl01: New test 2018-10-25 08:40:53 +02:00