Coder Social home page Coder Social logo

zynq_examples's Introduction

zynq_examples

实验环境:vivado2014.4
开发板系统:linaro(其他linux也可以)
linaro下载地址:http://pan.baidu.com/s/1dDrs4bJ
内核下载地址:https://github.com/Xilinx/linux-xlnx/tree/xilinx-v2014.4
device tree下载地址: https://github.com/Xilinx/device-tree-xlnx/tree/xilinx-v2015.1
uboot下载地址:https://github.com/Xilinx/u-boot-xlnx/tree/xilinx-v2015.1

1.生成bitstream


打开vivado2014.4在命令下输入以下命令
cd ./zynq_examples
source ./system_pro.tcl
等待生成完毕

2.通过sdk生成BOOT.bin


先在vivado上导出bitstream并Launch SDK
[vivado] File->Export->Export Hardware...
打钩Include bitstream
点击ok
[vivado] File->Launch SDK
使用SDK建立fsbl工程,并生成BOOT.bin
[SDK] File->New->Application Project
输入Project name,点击下一步在Available Templates选择Zynq FSBL
等待它自动编译fsbl.elf
右键FSBL工程选择Create Zynq Boot Image
点击右下角Add按钮,添加u-boot.elf
然后点击Create Image
在工程目录下bootimage文件有BOOT.bin生成

3.linux_examples


example的目录结构为
.
├── hardware_pro
│   ├── axi_pwm_6ch_1.0
│   │   ├── bd
│   │   │   └── bd.tcl
│   │   ├── component.xml
│   │   ├── drivers
│   │   │   └── axi_pwm_6ch_v1_0
│   │   │       ├── data
│   │   │       │   ├── axi_pwm_6ch.mdd
│   │   │       │   └── axi_pwm_6ch.tcl
│   │   │       └── src
│   │   │           ├── axi_pwm_6ch.c
│   │   │           ├── axi_pwm_6ch.h
│   │   │           ├── axi_pwm_6ch_selftest.c
│   │   │           └── Makefile
│   │   ├── example_designs
│   │   │   ├── bfm_design
│   │   │   │   ├── axi_pwm_6ch_v1_0_tb.v
│   │   │   │   └── design.tcl
│   │   │   └── debug_hw_design
│   │   │       ├── axi_pwm_6ch_v1_0_hw_test.tcl
│   │   │       └── design.tcl
│   │   ├── hdl
│   │   │   ├── axi_pwm_6ch_v1_0_S00_AXI.v
│   │   │   └── axi_pwm_6ch_v1_0.v
│   │   └── xgui
│   │       └── axi_pwm_6ch_v1_0.tcl
│   ├── hw.xdc
│   ├── system_pro.tcl
│   ├── system.tcl
│   ├── system_wrapper.v
│   ├── zybo_ps7.tcl
│   └── ZYBO_zynq_def.xml
├── linux_dev
│   └── xdma
│       ├── Makefile
│       ├── xdma.c
│       └── xdma.h
├── linux_examples
│   ├── axi-dma
│   │   ├── main.c
│   │   └── Makefile
│   ├── devmem
│   │   ├── devmem.c
│   │   └── Makefile
│   ├── gpio
│   │   ├── main.c
│   │   └── Makefile
│   ├── i2c
│   │   ├── eeprom.c
│   │   └── Makefile
│   ├── oled
│   │   ├── main.c
│   │   └── Makefile
│   ├── pwm
│   │   ├── main.c
│   │   └── Makefile
│   ├── spi
│   │   ├── main.c
│   │   └── Makefile
│   ├── uart
│   │   ├── main.c
│   │   └── Makefile
│   └── xlib
│       ├── xil_dma.c
│       ├── xil_dma.h
│       ├── xil_gpio.c
│       ├── xil_gpio.h
│       ├── xil_i2c.c
│       ├── xil_i2c.h
│       ├── xil_io.c
│       ├── xil_io.h
│       ├── xil_oled.c
│       ├── xil_oled.h
│       ├── xil_pwm.c
│       ├── xil_pwm.h
│       ├── xil_spi.c
│       ├── xil_spi.h
│       ├── xil_types.h
│       ├── xil_uart.c
│       ├── xil_uart.h
│       ├── xil_wrapper.c
│       └── xil_wrapper.h
├── linux_img
│   ├── BOOT.bin
│   ├── devicetree.dtb
│   ├── u-boot.elf
│   └── uImage
├── makeallclean.sh
└── README.md

25 directories, 65 files

hardware_pro:硬件工程的TCL
linux_dev:例程需要加载的驱动
linux_img:编译好的fat分区镜像
linux_examples:例程文件夹,xlib为库文件源码,其他为具体demo的源码

zynq_examples's People

Contributors

jiangjiali6 avatar alexhaijiazhu avatar

Stargazers

CheryCH avatar

Watchers

James Cloos avatar CheryCH avatar

Forkers

fcmai

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.