New Revision: http://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:
pc_ubuntu_setup
Old Revision: http://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:
pc_ubuntu_setup&rev=1395734334
Edit Summary: tftp server configuration
@@ -25,21 +25,20 @@
*Minicom setup:
*input the command"sudo minicom -s", choose “Serial port s
etup” ,to set the “Serial Device ” /dev/ttyS0 an
d “Bps/Par/Bits" 57600 8N1 , and “Hardware Flow Control
” is No.
*choose “Modem and dialing”to delete the no useful
log (A B C D E F G H K L). And "Save setup as dfl"
*Tftp server.
- * On ubuntu 12.04, it supports tftpd-hpa as the server quite well
. \\ 1. Install tftpd-hpa <xterm>**$ sudo apt-get install tftpd-hpa -y**</
xterm> 2. Configuration file is /etc/default/tftpd-hpa. Change TFTP_DIRECT
ORY to /tftpboot. "sudo vi /etc/default/tftpd-hpa" <code>{
- # /etc/default/tftpd-hpa
+ * On ubuntu 12.04, it supports tftpd-hpa as the server quite well
. \\ 1. Install tftpd-hpa <xterm>**$ sudo apt-get install tftpd-hpa -y**</
xterm> 2. Default tftp server directory is /etc/default/tftpd-hpa. Need to
generate /tftpboot directory and change tftp server directory to /tftpboo
t. <xterm>**sudo vi /etc/default/tftpd-hpa**</xterm> Change TFTP_DIRECTORY
to /tftpboot.<code># /etc/default/tftpd-hpa
- TFTP_USERNAME="tftp"
- TFTP_DIRECTORY="/tftpboot"
- TFTP_ADDRESS="0.0.0.0:69"
- TFTP_OPTIONS="--secure"
- }</code> Generate /tftpboot directory and restart tftpd-hpa to make it w
ork. <xterm>**$ sudo mkdir /tftpboot
+ TFTP_USERNAME="tftp"
+ TFTP_DIRECTORY="/tftpboot"
+ TFTP_ADDRESS="0.0.0.0:69"
+ TFTP_OPTIONS="--secure"
+ </code> <xterm>**$ sudo mkdir /tftpboot
$ sudo chmod 777 /tftpboot
- $ sudo service tftpd-hpa restart**</xterm> run "ps auxf" on host, seeing
the following line to make sure tftpd is started:<code>
+ $ sudo service tftpd-hpa restart**</xterm> Run "ps auxf" on host, seeing
the following line to make sure tftpd is started:<code>
/usr/sbin/in.tftpd --listen --user tftp --address 0.0.0.0:69 --secure /
tftpboot</code> Notice: If there is /etc/xinetd.d/tftp exists, it would co
nflict with tftpd-hpa setting, so make sure only enable tftpd-hpa. \\ 3. A
fter reboot PC, if tftp server still seems not work, run following command
to restart tftp server:<xterm>**$ sudo service tftpd-hpa restart**</xterm
> You can also add file /etc/network/if-up.d/tftpd-hpa with following scri
pts to make sure tftpd-hpa is started after ethernet is up. <code>#!/bin/s
h
service tftpd-hpa restart
- </code>
+ </code> Don't forget to change mode of file tftpd-hpa to 755. <xterm>**$
sudo chmod 755 tftpd-hpa**</xterm>
*If eth* is not in your desired order, check file /etc/udev/rules.d/
70-persistent-net.rules.
*Network config:
*Don't use network-manager, modify /etc/rc.local:add<code>
service network-manager stop
|