安装 petalinux

it2024-01-13  59

环境: ubuntu 16.04 64bit(虚拟机 或 普通系统都可以) 8G内存

下载安装包: https://china.xilinx.com/support/download/index.html/content/xilinx/zh/downloadNav/embedded-design-tools.html 版本应该与vivado版本相同 eg:petalinux-v2019.1-final-installer.run

installation 1.install libraries sudo apt-get install tofrodos iproute2 gawk xvfb git net-tools libncurses5-dev libncurses5 tftpd zlib1g-dev libssl-dev flex bison libselinux1 gnupg wget diffstat chrpath socat xterm autoconf libtool tar unzip texinfo zlib1g-dev gcc-multilib build-essential libsdl1.2-dev libglib2.0-dev screen pax gzip

sudo apt-get install libc6:i386 libstdc++6:i386 zlib1g:i386

sudo apt-get install tftp openbsd-inetd

install petalinux sudo chmod +x petalinux-v2019.1-final-installer.run cd sudo chmod -R 777 /tmp mkdir /opt/petalinux sudo chmod -R 777 /opt/petalinux ./petalinux-v2018.3-final-installer.run /opt/petalinux/2019.1/ yyy

3.test the installtion source /opt/petalinux/2019/settings.sh echo $PETALINUX

create peta project petalinux-create -t project --template zynq --name test_proj

get folder authority sudo chmod -R 777 test_proj/

6.configure copy .hdf to “petalinux_project->test_project” cd test_proj petalinux-config --get-hw-description=/home/feng/Desktop/test_proj //petalinux-config -c u-boot petalinux-config -c kernel //petalinux-config -c rootfs petalinux-config (image packing configuration -> root filesystem type -> SD card) petalinux-build

boot.bin

petalinux-package --boot --format BIN --fsbl ./zynq_fsbl.elf --u-boot ./u-boot.elf --fpga ./system.bit --force


欢迎光临我的淘宝店购买开发板,Jetson nano, Zynq, Zedboard, myir, microphase 应有尽有: https://item.taobao.com/item.htm?spm=a2126o.success.0.0.53a54831W7tEF8&id=630608759259

最新回复(0)