FTPD daemon and example now build without errors
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4371 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
ec75bc6a6a
commit
d25de45f28
@ -916,6 +916,25 @@ defconfig -- This is a configuration file similar to the Linux
|
|||||||
CONFIG_THTTPD_URLPATTERN - If defined, then it will be used to match
|
CONFIG_THTTPD_URLPATTERN - If defined, then it will be used to match
|
||||||
and verify referrers.
|
and verify referrers.
|
||||||
|
|
||||||
|
FTP Server
|
||||||
|
|
||||||
|
CONFIG_FTPD_VENDORID - The vendor name to use in FTP communications.
|
||||||
|
Default: "NuttX"
|
||||||
|
CONFIG_FTPD_SERVERID - The server name to use in FTP communications.
|
||||||
|
Default: "NuttX FTP Server"
|
||||||
|
CONFIG_FTPD_CMDBUFFERSIZE - The maximum size of one command. Default:
|
||||||
|
512 bytes.
|
||||||
|
CONFIG_FTPD_DATABUFFERSIZE - The size of the I/O buffer for data
|
||||||
|
transfers. Default: 2048 bytes.
|
||||||
|
CONFIG_FTPD_WORKERSTACKSIZE - The stacksize to allocate for each
|
||||||
|
FTP daemon worker thread. Default: 2048 bytes.
|
||||||
|
|
||||||
|
Other required configuration settings: Of course TCP networking support
|
||||||
|
is required. But here are a couple that are less obvious:
|
||||||
|
|
||||||
|
CONFIG_DISABLE_PTHREAD - pthread support is required
|
||||||
|
CONFIG_DISABLE_POLL - poll() support is required
|
||||||
|
|
||||||
USB device controller driver
|
USB device controller driver
|
||||||
|
|
||||||
CONFIG_USBDEV - Enables USB device support
|
CONFIG_USBDEV - Enables USB device support
|
||||||
|
@ -661,7 +661,25 @@ Where <subdir> is one of the following:
|
|||||||
CONFIG_DEBUG_CAN
|
CONFIG_DEBUG_CAN
|
||||||
CONFIG_CAN_REGDEBUG
|
CONFIG_CAN_REGDEBUG
|
||||||
|
|
||||||
5. This configuration requires that jumper JP22 be set to enable RS-232 operation.
|
5. This example can support an FTP client. In order to build in FTP client
|
||||||
|
support simply uncomment the following lines in the appconfig file (before
|
||||||
|
configuring) or in the apps/.config file (after configuring):
|
||||||
|
|
||||||
|
#CONFIGURED_APPS += netutils/ftpc
|
||||||
|
#CONFIGURED_APPS += examples/ftpc
|
||||||
|
|
||||||
|
6. This example can support an FTP server. In order to build in FTP server
|
||||||
|
support simply uncomment the following lines in the appconfig file (before
|
||||||
|
configuring) or in the apps/.config file (after configuring):
|
||||||
|
|
||||||
|
#CONFIGURED_APPS += netutils/ftpd
|
||||||
|
#CONFIGURED_APPS += examples/ftpd
|
||||||
|
|
||||||
|
And enable poll() support in the NuttX configuration file:
|
||||||
|
|
||||||
|
CONFIG_DISABLE_POLL=n
|
||||||
|
|
||||||
|
7. This configuration requires that jumper JP22 be set to enable RS-232 operation.
|
||||||
|
|
||||||
nsh2:
|
nsh2:
|
||||||
-----
|
-----
|
||||||
|
@ -43,8 +43,8 @@ CONFIGURED_APPS += system/readline
|
|||||||
CONFIGURED_APPS += nshlib
|
CONFIGURED_APPS += nshlib
|
||||||
|
|
||||||
# Networking libraries.
|
# Networking libraries.
|
||||||
# Uncomment netutils/ftpc to include an FTP client
|
# Uncomment netutils/ftpc to include an FTP client library
|
||||||
# Uncomment netutils/ftpd to include an FTP server
|
# Uncomment netutils/ftpd to include an FTP server library
|
||||||
|
|
||||||
ifeq ($(CONFIG_NET),y)
|
ifeq ($(CONFIG_NET),y)
|
||||||
CONFIGURED_APPS += netutils/uiplib
|
CONFIGURED_APPS += netutils/uiplib
|
||||||
|
Loading…
Reference in New Issue
Block a user