summaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorFrank Kühndel <frank.kuehndel@embedded-brains.de>2022-04-08 16:05:23 +0200
committerChristian Mauderer <christian.mauderer@embedded-brains.de>2022-04-25 16:21:52 +0200
commit7a12651b60d0037ca5af14c6978d466ff9f3267a (patch)
treea152f1d3b865250d3580bcae5e1d6ea8f50f4802 /testsuite
parentif_mve: Add MV643XX Ethernet driver (diff)
downloadrtems-libbsd-7a12651b60d0037ca5af14c6978d466ff9f3267a.tar.bz2
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
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/media01/test_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/testsuite/media01/test_main.c b/testsuite/media01/test_main.c
index 2a1c9aae..001c80a8 100644
--- a/testsuite/media01/test_main.c
+++ b/testsuite/media01/test_main.c
@@ -201,6 +201,8 @@ early_initialization(void)
#define CONFIGURE_FILESYSTEM_DOSFS
+#define CONFIGURE_FILESYSTEM_TFTPFS
+
#define CONFIGURE_MAXIMUM_PROCESSORS 32
#define CONFIGURE_RECORD_PER_PROCESSOR_ITEMS 4096