Difference between revisions of "Tftpd"

From ArmadeusWiki
Jump to: navigation, search
(New page: It's possible to add a tftpboot server on apf board, it can be usefull to download files from an apf board to another apf board. == Packet selection == There is a buildroot packet for tf...)
 
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
It's possible to add a tftpboot server on apf board, it can be usefull to download files from an apf board to another apf board.
+
It's possible to add a TFTP server on APF board, it can be useful to download files from an APF board to another APF board.
  
 
== Packet selection ==
 
== Packet selection ==
  
There is a buildroot packet for tftpd server, but to install it, busybox must be configured before :
+
There is a Buildroot packet for tftpd server, but to install it, you have to be sure that following option is set before:
  
 
<pre class="host">
 
<pre class="host">
Line 25: Line 25:
 
To use it add this line in file ''/etc/inetd.conf'' :
 
To use it add this line in file ''/etc/inetd.conf'' :
  
<code lang="bash">
+
<source lang="bash">
 
  69      dgram  udp    wait    root    /usr/sbin/tftpd tftpd -s /tftpboot
 
  69      dgram  udp    wait    root    /usr/sbin/tftpd tftpd -s /tftpboot
</code>
+
</source>
  
 
Then launch inetd :
 
Then launch inetd :
Line 37: Line 37:
 
== Launching inetd at start ==
 
== Launching inetd at start ==
  
inetd can be launched when linux boot adding a script in ''/etc/init.d'' :
+
inetd can be launched when Linux boot adding a script in ''/etc/init.d'' :
  
<code lang="bash">
+
<source lang="bash">
 
#!/bin/sh
 
#!/bin/sh
 
#
 
#
Line 48: Line 48:
  
 
exit 0
 
exit 0
</pre>
+
</source>

Latest revision as of 10:17, 16 May 2017

It's possible to add a TFTP server on APF board, it can be useful to download files from an APF board to another APF board.

Packet selection

There is a Buildroot packet for tftpd server, but to install it, you have to be sure that following option is set before:

$ make menuconfig
 Package Selection for the target  --->
     [*]   Show packages that are also provided by busybox

Then tftpd can be selected :

 Package Selection for the target  --->
     Networking applications  --->
         [*] tftpd

Configuration

To use it add this line in file /etc/inetd.conf :

 69      dgram   udp     wait    root    /usr/sbin/tftpd tftpd -s /tftpboot

Then launch inetd :

# inetd

Launching inetd at start

inetd can be launched when Linux boot adding a script in /etc/init.d :

#!/bin/sh
#
# Launch inetd for tftpboot embedded server 
#

inetd

exit 0