Linux(linaro) with HDMI video output on the ZED, ZC702 and ZC706 boards

参考文章

1.Preparing the SD-card

sudo apt isntall gparted
sudo gparted

这里写图片描述

2.Build the boot image

2.1 Compile u-boot

git clone https://github.com/Xilinx/u-boot-xlnx.git
git checkout xilinx-v201*.*
source /../Vivado/201*.*/setting64.sh
export CROSS_COMPILE=/../arm-linux-gnueabihf-
make ARCH=arm CROSS_COMPILE=/../arm-linux-gnueabihf-  zynq_z*_config
make ARCH=arm CROSS_COMPILE=/../arm-linux-gnueabihf-
mv u-boot u-boot.elf

2.2 Vivado

  • Create Project –> Boards
  • Create Block Design –> IP Catalog(ZYNQ7 Processing System) –> Run Block Automation
    这里写图片描述
  • 双击 –> Re-customize IP
  • Clock Configuration –> PL Fabric Clocks –> FCLK_CLK0 –> 取消

这里写图片描述

  • 双击TTC –> 取消
  • ……
  • 右键单击 –> Regenerate Layout

这里写图片描述


  • Create HDL Wrapper…
  • Generate Bitstream
  • File –> Export –> Export Hardware –> Include bitstream
  • File -> Launch SDK
  • File –> New –> Application Project

Project name: fsbl

  • Next –> Templates –> Zynq FSBL –> Finish

  • Project Explorer
    Build Project
  • 2.3 Generate BOOT.BIN


    • Project Explorer –> Create Boot Image

    FSBL
    bitstream
    u-boot.elf

    3.Build kernel image

    sudo apt install u-boot-tools
    git clone https://github.com/Xilinx/linux-xlnx
    git checkout xilinx-v201*.*
    export CROSS_COMPILE=/../arm-linux-gnueabihf-
    make ARCH=arm CROSS_COMPILE=/../arm-linux-gnueabihf- xilinx_zynq_defconfig
    make ARCH=arm CROSS_COMPILE=/../arm-linux-gnueabihf-
    make uImage LOADADDR=0x00008000

    4.Compile devicetree

    5.BOOT rootfs

    sudo cp * /media/username/BOOT/
    sudo tar zxvf linar*.tar.gz
    sudo rsync -a --progress ./  /media/username/rootfs/

    猜你喜欢

    转载自blog.csdn.net/XingpengLu/article/details/82710543