linux里面撸zynq的一套操作

usb转串口驱动

cp210x 在这里下载源码 http://www.silabs.com/products/mcu/pages/usbtouartbridgevcpdrivers.aspx#linux

make完之后

insmod cp210x.ko

 检查:

lsmod | grep usbserial

 如果有了,表明驱动装好了

插上板子,

dmesg | grep ttyUSB0

 如果有,表明连好了


拿cutecom连串口

device填名字,如/dev/ttyUSB0

会出 could not open

权限的锅

sudo chmod 777 /dev/ttyUSB0 

 就行了


nfs server的一套操作

板子和妹子连在一个局域网里

妹子装nfs server,板子装nfs common

妹子的操作:

先撸一个文件夹

之后改/etc/exports,加上撸的文件夹:

撸的文件夹 *(rw,sync,no_root_squash)

 启动nfs server

sudo /etc/init.d/nfs-kernel-server start

 显示

showmount -e

板子的操作:

mount -t nfs 妹子的ip:撸的文件夹 mount到的文件夹

交叉编译

arm-xilinx-linux-gnueabi-g++ helloworld.cpp -o helloworld -static
原文地址:https://www.cnblogs.com/dreamingsheep/p/8593697.html