1. 拿到hi3516核心版后,首先通过串口登录,修改IP地址,启动自动生效
vi /etc/init.d/rcS
ifconfig eth0 192.168.1.13 netmask 255.255.255.0
route add default gw 192.168.1.1
2. 添加DNS,访问互联网
vi /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4
参考:
https://hpzwl.blog.csdn.net/article/details/121393691
https://blog.csdn.net/weixin_44697198/article/details/124988586
http://t.zoukankan.com/tianpeng-blog-p-14804993.html
3. 在核心版上配置ftp服务,传输文件
vi /etc/inetd.conf
21 stream tcp nowait root ftpd ftpd -w /root
vi /etc/init.d/rcS
inetd
passwd root 123 # 设置root密码
4. 在主机上下载FileZilla通过ftp协议传输文件
参考:
https://blog.csdn.net/a421701136/article/details/41699831
5. 在开发版上启动telnetd服务,在主机上通过telnet登录到开发板
vi /etc/init.d/rcS
telnetd
telnet 开发板IP
参考:
https://blog.csdn.net/edsam49/article/details/124649814
6. 在主机上安装nfs服务
sudo apt install nfs-kernel-server
vim /etc/exports
/tmp/nfs *(rw,sync,no_root_squash,no_subtree_check) # 设置nfs被挂载目录
sudo /etc/init.d/rpcbind restart
sudo /etc/init.d/nfs-kernel-server restart
7. 在开发版上挂载nfs目录
mount -t nfs -o nolock -o tcp -o rsize=32768,wsize=32768 host_ip:/tmp/nfs /mnt
参考:
https://blog.csdn.net/weixin_41553751/article/details/114273220
https://zhuanlan.zhihu.com/p/237874901
https://www.freesion.com/article/7664516253/
https://www.cnblogs.com/1149825709qq/articles/13277142.html