zoukankan      html  css  js  c++  java
  • 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
    
  • 相关阅读:
    hello word
    HDU 1006 Tick and Tick
    HDU 1005 Number Sequence
    HDU 1004 Let the Balloon Rise
    HDU 1003 Max Sum
    HDU 1002 A + B Problem II
    HDU 1001 Sum Problem
    HDU 1000 A + B Problem
    POJ 2253 Frogger
    POJ 2387 Til the Cows Come Home
  • 原文地址:https://www.cnblogs.com/dreamingsheep/p/8593697.html
Copyright © 2011-2022 走看看