开发板uboot

好久没有折腾开发板,忘了 ftp 和tftp 是两个东西, uboot 已经用 tftp 下载程序了,感觉和我们之前不太一样,不过还好花点冤枉时间,搞明白了。

开始搭建 ftp服务器的匿名服务,感觉搞了好久。

  • 配置文件
    listen=YES
    anonymous_enable=YES
    ftp_username=ftp
    no_anon_password=YES
    local_enable=YES
    local_umask=022
    anon_umask=022
    anon_upload_enable=NO
    anon_mkdir_write_enable=NO
    dirmessage_enable=YES
    use_localtime=YES
    allow_writeable_chroot=YES
    xferlog_enable=YES
    connect_from_port_20=YES
    anon_root=/data/programs/ftp/ftp-root
    ftpd_banner=Welcome to quyuming's  FTP service.
    secure_chroot_dir=/data/programs/ftp/ftp-root/
    pam_service_name=vsftpd
    rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
    rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
    
  • 目录权限
    2.3版本后的vsftp 对安全性有规定,必须是 0555 了,就是不能有写权限了。
    chmod a-w ftp-root
    

弄出来后发现板子还是不能访问,然后就是找到 tftp 的东西。

搭建 tftp 服务器 参考 Ubuntu 16.04中搭建TFTP服务.

还是比较顺利,感觉板子还有点问题,但是服务和文件获取没有问题了。

猜你喜欢

转载自blog.csdn.net/u012939880/article/details/108287677