zoukankan      html  css  js  c++  java
  • Hello ZED

    1.Install the tools

    Download 'ARM GNU TOOLS' from here : http://wiki.xilinx.com/zynq-tools
     
    In 64-bit enviroment, some extra packages are needed: apt-get install ia32-libs ia32-libs-gtk
     
    Go ahead! Just sudo ./xilinx-2011.09-50-arm-xilinx-linux-gnueabi.bin
     
    Set a proper install path and Enter all others with y(yes)!
     
    Edit your bashrc: vi ~/.bashrc
    Add the fllowing two lines at the end:
    #For arm Xilinx tools
     
    export CROSS_COMPILE=arm-xilinx-linux-gnueabi-
    export PATH=$PATH:(the install_path you select just now)/bin/
     
     

    2.Power the board

     
    Maybe you can't help powering on the board!
    Please insert the SD card,in which there is the image from xilinx ,into the ZED board,and ensure that the jumpers are set as follows:
     
    MIO 6: set to GND
    MIO 5: set to 3V3
    MIO 4: set to 3V3
    MIO 3: set to GND
    MIO 2: set to GND
     
    VADJ Select: Set to 1V8
     
    JP6: shorted
    JP2: shorted
     
    All other jumpers should be left unshorted.
     
    Ok! power on!
     
     

    3.Connect the board to your PC

     
    The ZedBoard has a on-board USB2UART, CY7C64225 from Cypress Co, with which ZED communicat with your PC through a mini-USB cable. So just follow the document <CY7C64225_Setup_Guide>.
     
     

    4.Hello zed!!!

     
    Edit your 'hello zed' in C and compile it, just like this:
    arm-xilinx-linux-gnueabi-gcc -o hello hello.c
     
    A good news is that you can transfer your hello to ZED with FTP but not the stupid tftp.
    Ensure that 'ping 192.168.1.10' works well on your PC at first.
    ftp 192.168.1.10
    >put hello
     
    The 'hello' is transfered to the root dir on ZED!
    move it to usr: mv hello /usr/
    make it executable:chmod +x hello
    run it: ./hello
     
    and then, I get this pic~
     
    a nice day~
     
    I'll update all doc.&file mentioned above later.
     
    ——————
    无论在哪里做什么,只要坚持服务、创新、创造价值,其他的东西自然都会来的。
  • 相关阅读:
    CSS_行内元素和块级元素
    jdbc连接oracle11g的问题——查不出来数据,权限问题
    新的起点
    MVC过滤器详解
    SQL Server游标的使用
    处理百万级以上的数据提高查询速度的方法
    两个有序数组找出相同数据
    C# 可变参数
    C#反射
    产生一个int数组,长度为100,并向其中随机插入1-100,并且不能重复。
  • 原文地址:https://www.cnblogs.com/pied/p/2781494.html
Copyright © 2011-2022 走看看