santiago机器用DFTP连接PC上传、下载和挂载文件

连接机器,串口 和usb口

lcd d:\bogota\deploy : 到PC端要发送到机器的文件所在的目录
stor uImage-3.4.39  : 把文件发送到机器bogota的根目录
stor modules-3.4.39.tar : 把文件传到bogota的根目录
Retr ./a.out           : 把机器bogota目录的文件下载

 

到串口挂载PC发送给santiago的文件步骤

mount -t vfat /dev/mmcblk0p2 /mnt

cp uImage-3.4.39 /mnt/uImage //一般是放到/mnt目录下的uImage文件夹下

umount /mnt

mount -t ext4 /dev/mmcblk0p3 /mnt //挂载地点

tar -xvf modules-3.4.39.tar -C /mnt //解压模块文件

umount /mnt

cp rcS /etc/init.d/ -f  //santiago机器开机文件

chmod 777 /etc/init.d/rcS

reboot

到PC

发布了37 篇原创文章 · 获赞 16 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/double_lee3/article/details/84346222