Difference between revisions of "IoTGateway/BSP/Linux/AM335x/System Service and Usage"
Line 17: | Line 17: | ||
== <span style="color:#0070c0">Ftp server</span> == | == <span style="color:#0070c0">Ftp server</span> == | ||
+ | The ftp server on target system is vsftpd and you should manually start it using flowing | ||
+ | command: | ||
+ | <pre> | ||
+ | root@am335x-adv:/ # /etc/init.d/vsftpd start | ||
+ | </pre> | ||
+ | While, the stoping command is: | ||
+ | <pre> | ||
+ | root@am335x-adv:/ # /etc/init.d/vsftpd stop | ||
+ | </pre> | ||
+ | <font color="#FF0000"> Note. After start the ftp server. You had to manually add user ftp:</font> | ||
+ | <pre> | ||
+ | root@am335x-adv:/ # adduser ftp | ||
+ | root@am335x-adv:/ # chown root:root /home/ftp/ | ||
+ | </pre> | ||
+ | Then you can ftp your target board using user ftp. | ||
== <span style="color:#0070c0">Ssh server</span> == | == <span style="color:#0070c0">Ssh server</span> == |
Revision as of 09:02, 29 September 2016
Contents
Service
Advantech has built five common network services for am335x advantech platform: tftp service, ftp service, ssh service, telnet service and http service.
Tftp Server
When boot up the target board, the tftp service is already started by default(am335x advantech platform) and the tftp server’s working directory is /tftpboot. You need execute “chmod 777 /tftpboot” on target system to let the tftp server work. Then, user can tftp to target board by tftp client in host PC. Use command to get and put file like this:
hostPC$ tftp TARGET_SYSTEM_IP tftp>get file1 tftp>put file2
Command “get file1” is to download file1 from tftp server. File “file1” must exist under the directory /tftpboot on your target filesystem; Command “put file2” is to upload file2 to tftp server. If put file2 success, file2 will be put to directory /tftpboot on your target filesystem;
Ftp server
The ftp server on target system is vsftpd and you should manually start it using flowing command:
root@am335x-adv:/ # /etc/init.d/vsftpd start
While, the stoping command is:
root@am335x-adv:/ # /etc/init.d/vsftpd stop
Note. After start the ftp server. You had to manually add user ftp:
root@am335x-adv:/ # adduser ftp root@am335x-adv:/ # chown root:root /home/ftp/
Then you can ftp your target board using user ftp.