{"id":4581,"date":"2023-08-18T10:32:53","date_gmt":"2023-08-18T02:32:53","guid":{"rendered":"http:\/\/www.hellofpga.com\/?p=4581"},"modified":"2023-08-20T22:45:01","modified_gmt":"2023-08-20T14:45:01","slug":"pynq_part1","status":"publish","type":"post","link":"http:\/\/www.hellofpga.com\/index.php\/2023\/08\/18\/pynq_part1\/","title":{"rendered":"PYNQ \u5f00\u53d1 \u7ae0\u8282\u4e00   \u5f00\u53d1\u79fb\u690d\u73af\u5883\u7684\u90e8\u7f72"},"content":{"rendered":"\n<p>\u672c\u8282\u5c06\u6f14\u793a\u5982\u4f55\u5b89\u88c5\u642d\u5efaPYNQ\u7684\u5f00\u53d1\u79fb\u690d\u73af\u5883\u3002<\/p>\n\n\n\n<p>\u6211\u4eec\u7684\u5f00\u53d1\u73af\u5883 \uff1a <strong>\uff08\u5907\u6ce82018.3\u7248\u672c\u7684vivado\uff0c\u5bf9\u5e94PYNQ\u7684\u7248\u672c\u662f2.4\uff0c\u8fd9\u4e2a\u662f\u4e00\u4e00\u5bf9\u5e94\u7684\uff09<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Ubuntu  16.04<\/li>\n\n\n\n<li>Vivado 2018.3<\/li>\n\n\n\n<li>SDK &nbsp;2018.3<\/li>\n\n\n\n<li>Petalinux 2018.3 <\/li>\n\n\n\n<li>PYNQ  2.4<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e00 \u3001\u5b89\u88c5 Vmware  Ubuntu Petalinux \u4ee5\u53caVivado  <\/h2>\n\n\n\n<p>\u4e0b\u9762\u662f\u6211\u4eec\u73af\u5883\u90e8\u7f72\u7684\u5168\u8fc7\u7a0b\uff0c\u8bf7\u6309\u4e0b\u9762\u94fe\u63a5\u5148\u63d0\u524d \u4e0b\u8f7d\u53ca\u5b89\u88c5\u597d Vmware  ,Ubuntu , Petalinux,  \u4ee5\u53caVivado \uff08\u56e0\u4e3a\u8fd9\u4e9b\u5185\u5bb9 \u6211\u4e4b\u524d\u90fd\u6709\u6574\u7406\u8fc7\uff0c\u6240\u4ee5\u8fd9\u91cc\u4e0d\u4f5c\u5c55\u5f00\u4e86\uff0c\u5927\u5bb6\u6839\u636e\u4e0b\u9762\u7684\u6d41\u7a0b\u81ea\u884c\u64cd\u4f5c\uff09<\/p>\n\n\n\n<p><a href=\"http:\/\/www.hellofpga.com\/index.php\/2022\/11\/27\/vmware\/\" target=\"_blank\" rel=\"noreferrer noopener\">ZYNQ linux\u5f00\u53d1 \u7ae0\u8282\u4e00 \u4e4bUbuntu\u53ca\u865a\u62df\u673aVmware\u7684\u5b89\u88c5<\/a><\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"http:\/\/www.hellofpga.com\/index.php\/2022\/11\/27\/gx\/\" target=\"_blank\">ZYNQ linux\u5f00\u53d1 \u7ae0\u8282\u4e00\uff08\u8865\u5145\uff09Ubuntu\u4e0b\u7684\u5171\u4eab\u6587\u4ef6\u5939\u8bbe\u7f6e\uff08\u9009\u770b\uff09<\/a><\/p>\n\n\n\n<p><a href=\"http:\/\/www.hellofpga.com\/index.php\/2023\/08\/17\/ubuntu_vivado\/\">ZYNQ linux\u5f00\u53d1 \u7ae0\u8282\u4e8c Ubuntu \u4e0b Vivado \u5f00\u53d1\u73af\u5883\u7684\u5b89\u88c5\uff08\u9009\u770b\uff09<\/a><\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"http:\/\/www.hellofpga.com\/index.php\/2022\/11\/28\/petalinux\/\" target=\"_blank\">ZYNQ linux\u5f00\u53d1 \u7ae0\u8282\u4e09 Petalinux\u5f00\u53d1\u73af\u5883\u7684\u5b89\u88c5<\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e8c\u3001\u5b89\u88c5\u5e76\u914d\u7f6ePYNQ <\/h2>\n\n\n\n<p>\u628aPYNQ\u5148\u4ecegithub\u4e0a\u9762\u4e0b\u8f7d\u4e0b\u6765&nbsp;,\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165 \u4e0b\u5217\u6307\u4ee4<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">git clone -b v2.4 https:\/\/github.com\/Xilinx\/PYNQ.git<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"467\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-50-1024x467.png\" alt=\"\" class=\"wp-image-4605\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-50-1024x467.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-50-300x137.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-50-768x350.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-50.png 1257w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u7b49\u5f85\u7cfb\u7edf\u4e0b\u8f7d\u5b8c\u6210<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;&nbsp; &nbsp;cd PYNQ<br>&nbsp;&nbsp; &nbsp;git checkout v2.4<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"728\" height=\"161\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-51.png\" alt=\"\" class=\"wp-image-4608\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-51.png 728w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-51-300x66.png 300w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/figure>\n\n\n\n<p>\u4ece2.4\u5206\u652f\u4e0a\u518d\u521b\u5efa\u4e00\u4e2a\u65b0\u5206\u652f<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">git checkout -b Smart_ZYNQ<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"777\" height=\"161\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-52.png\" alt=\"\" class=\"wp-image-4609\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-52.png 777w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-52-300x62.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-52-768x159.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>&nbsp;\u8f93\u5165\u4e0b\u5217\u7684\u6307\u4ee4 \u8fd0\u884c\u811a\u672c\uff08\u4f1a\u4e0b\u8f7d\u628aqemu\u548ccrosstool-ng\uff09\uff0c\u8fc7\u7a0b\u4e2d\u4f1a\u63d0\u793a\u8f93\u5165\u7ba1\u7406\u5458\u7684\u5bc6\u7801\uff0c\u4e4b\u524d\u5b89\u88c5ubuntu\u7684\u65f6\u5019\u9ed8\u8ba4\u8bbe\u7f6e\u4e861234<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cd  ~\/PYNQ\/sdbuild\/scripts\n.\/setup_host.sh<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"799\" height=\"325\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-53.png\" alt=\"\" class=\"wp-image-4612\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-53.png 799w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-53-300x122.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-53-768x312.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u8fc7\u7a0b\u975e\u5e38\u6f2b\u957f\uff0c \u5982\u679c\u6709\u6761\u4ef6 \u79d1\u5b66\u4e0a\u7f51\u7684\u4f1a\u5f88\u5feb<\/p>\n\n\n\n<p>\u7528\u8d44\u6e90\u7ba1\u7406\u5668\u8fdb\u5165\u4e0b\u5217\u8def\u5f84  \/opt\/crosstool-ng\/lib\/crosstool-ng-1.22.0\/scripts\/build\/libc\/&nbsp; \u8def\u5f84<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"190\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-54-1024x190.png\" alt=\"\" class=\"wp-image-4618\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-54-1024x190.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-54-300x56.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-54-768x143.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-54.png 1374w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u7136\u540e\u53cc\u51fb\u6253\u5f00newlib.sh<\/p>\n\n\n\n<p>\u5c06&#8221;{http:\/\/mirrors.kernel.org\/sourceware\/newlib, ftp:\/\/sourceware.org\/pub\/newlib}&#8221;<br>\u200b \u6539\u4e3a \u201cftp:\/\/sourceware.org\/pub\/newlib&#8221;\u6216\u8005&#8221;http:\/\/mirrors.kernel.org\/sourceware\/newlib\u201d  \u9700\u8981\u53bb\u6389\u5927\u62ec\u53f7<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"859\" height=\"384\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-55.png\" alt=\"\" class=\"wp-image-4620\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-55.png 859w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-55-300x134.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-55-768x343.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u4e4b\u540e\u70b9SAVE\u4fdd\u5b58\u5e76\u9000\u51fa<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"898\" height=\"305\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-56.png\" alt=\"\" class=\"wp-image-4622\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-56.png 898w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-56-300x102.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-56-768x261.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u56e0\u4e3a\u6211\u4eec\u5e76\u6ca1\u6709\u5b89\u88c5SDx\u73af\u5883\uff0c\u6240\u7528\u8fdb\u5165 \/PYNQ\/sdbuild\/ \u6587\u4ef6\u5939\uff0c\u6253\u5f00Makefile  Ctrl+F\u67e5\u627e\u3001\u5220\u9664\u201cwhich sdx | fgrep ${KERNEL_VERSION}\u201d    \u4e4b\u540e\u70b9Save \u4fdd\u5b58\u540e\u9000\u51fa<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"464\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-57-1024x464.png\" alt=\"\" class=\"wp-image-4626\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-57-1024x464.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-57-300x136.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-57-768x348.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-57.png 1201w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e09\u3001\u4fee\u6539shell\u73af\u5883\u6587\u4ef6 \u4f7f\u5f97\u6bcf\u6b21\u7684\u64cd\u4f5c\u66f4\u7b80\u4fbf<\/h2>\n\n\n\n<p>\u4e3a\u4e86\u65b9\u4fbf\u64cd\u4f5c\uff0c\u6211\u4eec\u5c06\u9700\u8981source\u7684\u5185\u5bb9\u76f4\u63a5\u6dfb\u52a0\u5230bashrc\u4e2d\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u76f4\u63a5\u542f\u52a8vivado petalinux\u7b49\u4e86\u3002\u6253\u5f00\u5e76\u7f16\u8f91shell\u73af\u5883\u6587\u4ef6<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo gedit ~\/.bashrc<\/pre>\n\n\n\n<p>\u5728\u672b\u5c3e\u6dfb\u52a0\u4e0b\u5217\u5185\u5bb9 \uff0c\u5907\u6ce8\uff1a\u8fd9\u91cc\u7684vivado \u5730\u5740\u548c\u6211\u4e4b\u524d\u7684\u5b89\u88c5\u8def\u5f84\u4e00\u81f4\uff0c\u4e5f\u6709\u4e9b\u7248\u672c\u9ed8\u8ba4\u5b89\u88c5\u5230\/opt\u8def\u5f84\u4e0b\u7684\uff0c\u6ce8\u610f\u6839\u636e\u81ea\u5df1\u7535\u8111\u7aef\u7684\u5b89\u88c5\u60c5\u51b5\u8fdb\u884c\u4fee\u6539<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">source \/opt\/pkg\/petalinux\/2018.3\/settings.sh\nsource \/tools\/Xilinx\/Vivado\/2018.3\/settings64.sh\nsource \/tools\/Xilinx\/SDK\/2018.3\/settings64.sh\nexport PATH=\/opt\/qemu\/bin:\/opt\/crosstool-ng\/bin:$PATH\n<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"778\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-58-1024x778.png\" alt=\"\" class=\"wp-image-4629\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-58-1024x778.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-58-300x228.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-58-768x584.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-58.png 1133w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>\u5bf9\u4e86\uff0c\u8fd9\u91cc\u8fd8\u9700\u8981\u63d0\u524d\u4e0b\u8f7d\u597dpynq_rootfs_arm_v2.4.zip\u6587\u4ef6\u7cfb\u7edf\uff0c\u540e\u7eed\u5f00\u53d1\u4f1a\u7528\u5230<\/strong>\uff08\u5bf9\u5e942.4\u7248\u672c\uff09\u9700\u8981\u6ce8\u518cxilinx\u7684\u8d26\u53f7\uff0c\u6ce8\u518c\u4e00\u4e2a\u5c31\u597d<\/p>\n\n\n\n<p><a href=\"https:\/\/www.xilinx.com\/member\/forms\/download\/xef.html?filename=pynq_rootfs_arm_v2.4.zip\">https:\/\/www.xilinx.com\/member\/forms\/download\/xef.html?filename=pynq_rootfs_arm_v2.4.zip<\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u81f3\u6b64  PYNQ\u7684 \u5f00\u53d1\u7f16\u8bd1\u73af\u5883\u5927\u81f4\u5df2\u7ecf\u521b\u5efa\u6210\u529f\u4e86\uff0c \u540e\u9762\u7684\u7ae0\u8282\u5c06\u4f1a\u5c31\u79fb\u690d\u8fc7\u7a0b\u4f5c\u5177\u4f53\u5c55\u5f00<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u8282\u5c06\u6f14\u793a\u5982\u4f55\u5b89\u88c5\u642d\u5efaPYNQ\u7684\u5f00\u53d1\u79fb\u690d\u73af\u5883\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"class_list":["post-4581","post","type-post","status-publish","format-standard","hentry","category-pynq-2"],"views":1843,"_links":{"self":[{"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/4581","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/comments?post=4581"}],"version-history":[{"count":37,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/4581\/revisions"}],"predecessor-version":[{"id":4769,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/4581\/revisions\/4769"}],"wp:attachment":[{"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/media?parent=4581"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/categories?post=4581"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/tags?post=4581"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}