{"id":4048,"date":"2023-04-28T22:34:53","date_gmt":"2023-04-28T14:34:53","guid":{"rendered":"http:\/\/www.hellofpga.com\/?p=4048"},"modified":"2025-02-28T23:09:13","modified_gmt":"2025-02-28T15:09:13","slug":"zynq-linux_qspi_flash_uart-2","status":"publish","type":"post","link":"http:\/\/www.hellofpga.com\/index.php\/2023\/04\/28\/zynq-linux_qspi_flash_uart-2\/","title":{"rendered":"\u57fa\u4e8eSmart Zynq\u4e0eLemon Zynq \u7684Petalinux\u5f00\u53d1 \u7ae0\u8282\u5341 \u4eceQSPI FLASH \u542f\u52a8LINUX\u955c\u50cf"},"content":{"rendered":"\n<p>\u4e4b\u524d\u7ae0\u8282\u5236\u4f5c\u7684\u90fd\u662fTF\u5361\u7684\u542f\u52a8\u955c\u50cf\uff0c\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u4eceQSPI FLASH \u542f\u52a8\u6211\u4eec\u7684\u955c\u50cf\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u6b64\u7ae0\u8282\u5185\u5bb9\u9002\u7528\u4e8e\u4e0b\u5217\u4e3b\u677f<\/strong>\n<ul class=\"wp-block-list\">\n<li><strong>Lemon ZYNQ \uff08CLG400\u5c01\u88c5\u76847020\uff09<\/strong><\/li>\n\n\n\n<li><strong>Smart ZYNQ SP \/ SP2 \/ SL \u7248\u7684\u677f\u5b50\uff08\u975e\u6807\u51c6\u7248\uff09\uff08CLG484\u5c01\u88c5\uff09<\/strong><\/li>\n\n\n\n<li><strong>Smart ZYNQ \u6807\u51c6\u7248\uff08\u505c\u4ea7\uff09 (CLG400\u5c01\u88c57010\/7020 \uff09<\/strong><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>\u672c\u6587\u5728 vivado2018.3 \u4ee5\u53ca Petalinux2018.3 \u7248\u672c\u4e0a\u8fdb\u884c\u6f14\u793a<\/strong><\/li>\n<\/ul>\n\n\n\n<p>\u5907\u6ce8\u56e0\u4e3a\u6211\u4eec\u7684QSPI FLASH \u7a7a\u95f4\u6709\u9650\uff0c \u6240\u4ee5\u6211\u4eec\u53ea\u80fd\u8dd1\u4e00\u4e9b\u8f7b\u91cf\u5e94\u7528\u7684 PETALINUX\u5e94\u7528\u3002\u53e6\u5916\u8003\u8651\u5230FLASH\u53ea\u670916M\u7a7a\u95f4\uff0c\u6240\u4ee5\u6211\u4eec\u7684\u6587\u4ef6\u7cfb\u7edf\u9009\u7528 INITRAMFS \uff08\u5bf9\u7cfb\u7edf\u7684\u4fee\u6539\u5185\u5bb9\uff0c\u6389\u7535\u540e\u4f1a\u4e22\u5931\uff09<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e00\u3001VIVADO\u5de5\u7a0b\u90e8\u5206<\/strong>&nbsp;<strong>\uff08\u4e4b\u524d\u7ae0\u8282\u7684VIVADO\u5de5\u7a0b\u5df2\u7ecf\u5305\u542bQSPI FLASH\u90e8\u5206\u4e86\uff0c\u8fd9\u91cc\u53ea\u505a\u4ecb\u7ecd\uff09<\/strong><\/h2>\n\n\n\n<p>\u6211\u4eec\u4e4b\u524d\u5236\u4f5c\u7684\u955c\u50cf\u4e2d\u5df2\u7ecf\u5305\u542b\u4e86GPIO(EMIO)\u90e8\u5206\u7684\u5185\u5bb9\u4e86\uff0c\u6240\u4ee5<strong>\u672c\u6b21\u5b9e\u9a8c\u4e0d\u9700\u8981\u91cd\u65b0\u5236\u4f5cVIVADO\u5de5\u7a0b\u4ee5\u53caPetalinux \u7cfb\u7edf\u7684\u91cd\u65b0\u7f16\u8bd1\u64cd\u4f5c<\/strong>\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>GPIO\u6dfb\u52a0\u7684\u8fc7\u7a0b\u7684\u5185\u5bb9\u53ef\u4ee5\u56de\u987e\u4e0b\u5217\u7ae0\u8282\uff1a\n<ul class=\"wp-block-list\">\n<li>Smart Zynq \uff1a<a href=\"http:\/\/www.hellofpga.com\/index.php\/2025\/02\/23\/smart_zynq_petalinux_01\/\">\u57fa\u4e8eSmart Zynq \u7684Petalinux\u5f00\u53d1 \u7ae0\u8282\u4e00 Vivado \u57fa\u7840\u786c\u4ef6\u5de5\u7a0b\u642d\u5efa<\/a><\/li>\n\n\n\n<li>Lemon Zynq \uff1a<a href=\"http:\/\/www.hellofpga.com\/index.php\/2024\/10\/24\/lemon_zynq_petalinux_01\/\">\u57fa\u4e8eLemon Zynq \u7684Petalinux\u5f00\u53d1 \u7ae0\u8282\u4e00 Vivado \u57fa\u7840\u786c\u4ef6\u5de5\u7a0b\u642d\u5efa<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>\u8fd9\u91cc\u6211\u4eec\u56de\u987e\u4e0b\u548cFLASH\u542f\u52a8\u76f8\u5173\u7684\u5185\u5bb9\uff1a<\/p>\n\n\n\n<p>\u5728block design \u7684ZYNQ\u8bbe\u7f6e\u754c\u9762 \u4f7f\u80fdQSPI\u7684\u529f\u80fd \u5982\u4e0b\u56fe\u6240\u793a\uff08\u5f53QSPI \u65f6\u949f\u5927\u4e8e40MHZ\u7684\u65f6\u5019 \u5c31\u9700\u8981\u52fe\u9009Feedback clk\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"643\" height=\"531\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-56.png\" alt=\"\" class=\"wp-image-1089\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-56.png 643w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-56-300x248.png 300w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e8c\u3001PETALINUX\u7684\u7f16\u8bd1\uff08\u548c\u4e4b\u524d\u7b2c\u4e8c\u7ae0\u4ec5\u90e8\u5206\u5730\u65b9\u4e0d\u540c\uff0c\u8fd9\u91cc\u4ec5\u8d34\u51fa\u4e0d\u540c\u7684\u5730\u65b9\uff09<\/strong><\/h2>\n\n\n\n<p><strong>\u5982\u679c\u8981\u56de\u987e\u5185\u5bb9\u53ef\u4ee5\u53c2\u8003\u4e0b\u9762\u90e8\u5206\uff1a<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>PETALINUX \u7684\u7cfb\u7edf\u7684\u7f16\u8bd1\u53ca\u955c\u50cf\u7684\u751f\u6210\uff1a<\/strong>\n<ul class=\"wp-block-list\">\n<li><strong>Smart ZYNQ:<\/strong><a href=\"http:\/\/www.hellofpga.com\/index.php\/2025\/02\/23\/smart_zynq_building_petalinux\/\">\u57fa\u4e8eSmart Zynq \u7684Petalinux\u5f00\u53d1 \u7ae0\u8282\u4e8c \u5728 Ubuntu \u4e0a\u5b8c\u6210 Petalinux \u7684\u5de5\u7a0b\u521b\u5efa\u53ca\u7f16\u8bd1\u5168\u8fc7\u7a0b(TF\u5361\u542f\u52a8)<\/a><\/li>\n\n\n\n<li><strong>Lemon ZYNQ:<\/strong><a href=\"http:\/\/www.hellofpga.com\/index.php\/2024\/10\/25\/lemon_zynq_building_petalinux\/\">\u57fa\u4e8eLemon Zynq \u7684Petalinux\u5f00\u53d1 \u7ae0\u8282\u4e8c \u5728 Ubuntu \u4e0a\u5b8c\u6210 Petalinux \u7684\u5de5\u7a0b\u521b\u5efa\u53ca\u7f16\u8bd1\u5168\u8fc7\u7a0b(TF\u5361\u542f\u52a8)<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>\u533a\u522b\u7684\u5730\u65b9\u5728 petalinux-config \u914d\u7f6e\u9875\u9762\uff0c\u5373 \u547d\u4ee4\u884c\u4e2d\u65ad\u8f93\u5165petalinux-config &#8211;get-hw-description=. \u540e\u7684\u914d\u7f6e\u90e8\u5206\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u533a\u522b\u5305\u62ec\u4e0b\u97623\u4e2a\u5730\u65b9  \n<ul class=\"wp-block-list\">\n<li><strong>a) boot&nbsp;image&nbsp;settings <\/strong>\uff1a\u6539 primary flash\uff08\u539f\u5148TF\u542f\u52a8\u662fprimary SD\uff09<\/li>\n\n\n\n<li><strong>b) kernel image settings<\/strong> \uff1a\u6539 primary flash\uff08\u539f\u5148TF\u542f\u52a8\u662fprimary SD\uff09<\/li>\n\n\n\n<li><strong>c)<\/strong> <strong>Root filesystem type \uff08\u6839\u6587\u4ef6\u7cfb\u7edf\uff09<\/strong>\uff1a\u6539 INITRAMFS (\u539f\u5148TF\u542f\u52a8\u662fSD card)<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>\u5176\u4f59\u90e8\u5206\u5185\u5bb9\u90fd\u548c\u4e4b\u524d\u7b2c\u4e8c\u7ae0\u8282\u4e00\u81f4\u3002<\/p>\n\n\n\n<p><strong>a) boot&nbsp;image&nbsp;settings <\/strong><\/p>\n\n\n\n<p>\u7528\u952e\u76d8\u4e0a\u7684\u4e0a\u4e0b\u5de6\u53f3\u952e\u79fb\u52a8\u5149\u6807\uff0c\u9009\u62e9Subsystem AUTO Hardware Settings \u6309\u4e0b\u56de\u8f66\uff08\u6309\u4e24\u4e0bESC\u53ef\u4ee5\u9000\u56de\u4e0a\u4e00\u5c42\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"681\" height=\"340\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-124.png\" alt=\"\" class=\"wp-image-8462\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-124.png 681w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-124-300x150.png 300w\" sizes=\"auto, (max-width: 681px) 100vw, 681px\" \/><\/figure>\n\n\n\n<p>\u9009\u62e9Advanced bootable images storage Settings \uff0c\u6309\u4e0b\u56de\u8f66<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"690\" height=\"352\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-125.png\" alt=\"\" class=\"wp-image-8463\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-125.png 690w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-125-300x153.png 300w\" sizes=\"auto, (max-width: 690px) 100vw, 690px\" \/><\/figure>\n\n\n\n<p>\u9009\u62e9 boot image settings\u9009\u9879 \u56de\u8f66<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"699\" height=\"357\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-126.png\" alt=\"\" class=\"wp-image-8464\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-126.png 699w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-126-300x153.png 300w\" sizes=\"auto, (max-width: 699px) 100vw, 699px\" \/><\/figure>\n\n\n\n<p>\uff08\u8fd9\u4e2a\u754c\u9762\u4e0b\u65b9\u53ef\u4ee5\u9009image\u7684\u540d\u5b57\uff0c\u4fdd\u6301\u9ed8\u8ba4\u5373\u53ef\uff09\u63a5\u7740\u6211\u4eec\u9009\u62e9 image storage media \u56de\u8f66<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"739\" height=\"357\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-71.png\" alt=\"\" class=\"wp-image-9556\" style=\"width:628px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-71.png 739w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-71-300x145.png 300w\" sizes=\"auto, (max-width: 739px) 100vw, 739px\" \/><\/figure>\n\n\n\n<p class=\"has-vivid-red-color has-text-color has-link-color wp-elements-af77348e680f3e533759a9de993da675\"><strong>\u9009\u62e9 primary flash \u5e76\u6309\u56de\u8f66 \uff08\u8fd9\u4e00\u6b65\u4e0eTF \u542f\u52a8\u4e0d\u540c\uff09<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"682\" height=\"328\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-73.png\" alt=\"\" class=\"wp-image-9559\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-73.png 682w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-73-300x144.png 300w\" sizes=\"auto, (max-width: 682px) 100vw, 682px\" \/><\/figure>\n\n\n\n<p>\u4e4b\u540e\u8fde\u6309\u4e24\u6b21ESC \u53ef\u4ee5\u8fd4\u56de\u4e0a\u4e00\u7ea7\uff0c \u4e00\u76f4\u8fd4\u56de\uff0c\u76f4\u5230\u56de\u5230\u6700\u521d\u7684\u521d\u59cb\u754c\u9762\u3002<\/p>\n\n\n\n<p><strong>b \uff09kernel image settings<\/strong><\/p>\n\n\n\n<p>\u9009\u62e9Subsystem AUTO Hardware Settings \u6309\u4e0b\u56de\u8f66<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"681\" height=\"340\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-124.png\" alt=\"\" class=\"wp-image-8462\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-124.png 681w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-124-300x150.png 300w\" sizes=\"auto, (max-width: 681px) 100vw, 681px\" \/><\/figure>\n\n\n\n<p>\u9009\u62e9Advanced bootable images storage Settings \uff0c\u6309\u4e0b\u56de\u8f66<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"696\" height=\"337\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-75.png\" alt=\"\" class=\"wp-image-9561\" style=\"width:638px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-75.png 696w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-75-300x145.png 300w\" sizes=\"auto, (max-width: 696px) 100vw, 696px\" \/><\/figure>\n\n\n\n<p>\u9009\u62e9kernel image settings<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"694\" height=\"357\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-129.png\" alt=\"\" class=\"wp-image-8467\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-129.png 694w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-129-300x154.png 300w\" sizes=\"auto, (max-width: 694px) 100vw, 694px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"717\" height=\"351\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-74.png\" alt=\"\" class=\"wp-image-9560\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-74.png 717w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-74-300x147.png 300w\" sizes=\"auto, (max-width: 717px) 100vw, 717px\" \/><\/figure>\n\n\n\n<p class=\"has-vivid-red-color has-text-color has-link-color wp-elements-553717aac514b7d4ab0ec7f22e164f62\"><strong>\u5982\u679c\u4e0a\u8ff0\u754c\u9762\u4e0d\u662f\u9ed8\u8ba4primary flash\uff0c\u5219\u70b9\u8fdb\u53bb\u4fee\u6539\u6210primary flash\uff0c\u4e4b\u540e\u7528\u591a\u6b21\u53cc\u51fbESC\u7684\u65b9\u5f0f\u56de\u5230\u521d\u59cb\u83dc\u5355\u3002\uff08\u8fd9\u4e00\u6b65\u4e0eTF \u542f\u52a8\u4e0d\u540c\uff09<\/strong><\/p>\n\n\n\n<p><strong>c ) Root filesystem type \u9009\u62e9\uff08\u6839\u6587\u4ef6\u7cfb\u7edf\uff09<\/strong><\/p>\n\n\n\n<p>\u9009\u62e9Image Packaging Configuration<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"359\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-131.png\" alt=\"\" class=\"wp-image-8469\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-131.png 700w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-131-300x154.png 300w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n\n\n\n<p>\u9009\u62e9 Root filesystem type\uff08\u8fd9\u91cc\u7cfb\u7edf\u9ed8\u8ba4\u53ef\u80fd\u5c31\u662fINITRAMFS\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"673\" height=\"333\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-77.png\" alt=\"\" class=\"wp-image-9563\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-77.png 673w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-77-300x148.png 300w\" sizes=\"auto, (max-width: 673px) 100vw, 673px\" \/><\/figure>\n\n\n\n<p>\u9009\u62e9\u7684INITRAMFS \uff08INITRAMFS\u6587\u4ef6\u7cfb\u7edf\u7684\u6570\u636e\u90fd\u662f\u4e34\u65f6\u7684\uff0c\u65ad\u7535\u4f1a\u6062\u590d\u539f\u6837\uff0c \u4f18\u70b9\u662f\u4e0d\u5bb9\u6613\u88ab\u4fee\u6539\u5e76\u4e14\u64cd\u4f5c\u7b80\u5355\uff0c\u4f46\u662f\u4f7f\u7528\u573a\u666f\u4f1a\u56e0\u6b64\u53d7\u9650\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"663\" height=\"319\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-76.png\" alt=\"\" class=\"wp-image-9562\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-76.png 663w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-76-300x144.png 300w\" sizes=\"auto, (max-width: 663px) 100vw, 663px\" \/><\/figure>\n\n\n\n<p>\u4e4b\u540e\u6309\u591a\u6b21ESC\u56de\u5230\u6839\u83dc\u5355,\u4fdd\u5b58\u8bbe\u7f6e \u9009\u62e9save \u5e76\u70b9\u9009ok \u5bf9\u8bbe\u7f6e\u8fdb\u884c\u4fdd\u5b58,\u4e4b\u540e\u9009\u62e9EXIT\u9000\u51fa\u8bbe\u7f6e\u9875\u9762\u3002<\/p>\n\n\n\n<p>\u4e4b\u540e\u53c2\u8003\u7b2c\u4e8c\u7ae0\u7684\u5185\u5bb9\uff0c\u5b8c\u6210\u5269\u4e0b\u7684\u7f16\u8bd1\u8fc7\u7a0b\uff1a<\/p>\n\n\n\n<ul id=\"block-10a01016-1d9b-4f57-9070-a4f90493438a\" class=\"wp-block-list\">\n<li><strong>Smart ZYNQ:<\/strong><a href=\"http:\/\/www.hellofpga.com\/index.php\/2025\/02\/23\/smart_zynq_building_petalinux\/\">\u57fa\u4e8eSmart Zynq \u7684Petalinux\u5f00\u53d1 \u7ae0\u8282\u4e8c \u5728 Ubuntu \u4e0a\u5b8c\u6210 Petalinux \u7684\u5de5\u7a0b\u521b\u5efa\u53ca\u7f16\u8bd1\u5168\u8fc7\u7a0b(TF\u5361\u542f\u52a8)<\/a><\/li>\n\n\n\n<li><strong>Lemon ZYNQ:<\/strong><a href=\"http:\/\/www.hellofpga.com\/index.php\/2024\/10\/25\/lemon_zynq_building_petalinux\/\">\u57fa\u4e8eLemon Zynq \u7684Petalinux\u5f00\u53d1 \u7ae0\u8282\u4e8c \u5728 Ubuntu \u4e0a\u5b8c\u6210 Petalinux \u7684\u5de5\u7a0b\u521b\u5efa\u53ca\u7f16\u8bd1\u5168\u8fc7\u7a0b(TF\u5361\u542f\u52a8)<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e09\u3001\u627e\u5230\u6211\u4eec\u7f16\u8bd1\u751f\u6210\u7684\u955c\u50cf\u6587\u4ef6<\/strong><\/h2>\n\n\n\n<p>1\uff09\u6253\u5f00\u5de5\u7a0b\u6587\u4ef6\u5939\u5185\u7f16\u8bd1\u751f\u6210\u7684images\u6587\u4ef6\u5939\u4e0b\u7684linux \u6587\u4ef6\u5939<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"231\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-138-1024x231.png\" alt=\"\" class=\"wp-image-8492\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-138-1024x231.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-138-300x68.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-138-768x173.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-138.png 1033w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>2\uff09\u590d\u5236\u6587\u4ef6 BOOT.bin\u3001i zynq_fsbl.elf\u8fd9\u4e24\u4e2a\u6587\u4ef6<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"993\" height=\"525\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-78.png\" alt=\"\" class=\"wp-image-9571\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-78.png 993w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-78-300x159.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-78-768x406.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u7136\u540e\u56de\u5230windows \u4e0b\uff0c\u7c98\u8d34\u5230\u6211\u4eec\u4e4b\u524d\u521b\u5efa\u7684Vivado \u5de5\u7a0b\u7684images\uff08\u4e34\u65f6\u521b\u5efa\uff09\u6587\u4ef6\u5939\u4e2d<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"243\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-79-1024x243.png\" alt=\"\" class=\"wp-image-9572\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-79-1024x243.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-79-300x71.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-79-768x182.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-79.png 1074w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u56de\u5230SDK\u754c\u9762\uff08\u53ef\u4ee5\u662f\u5de5\u7a0b\u4e00\u521b\u5efa\u7684\u5de5\u7a0b\uff09 \u70b9\u9009Program Flash<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"298\" height=\"225\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-221.png\" alt=\"\" class=\"wp-image-1906\"\/><\/figure>\n\n\n\n<p>Image File \u9009\u62e9\u5de5\u7a0b\u5de5\u7a0b\u76ee\u5f55\u4e0b\u7684 BOOT.bin\uff0c FSBL File \u9009\u62e9\u5de5\u7a0b\u76ee\u5f55\u4e0b \u7684zynq_fsbl.elf Flash Type \u9009\u62e9qspi-x4-single&nbsp;<strong>\u7136\u540e\u5c06\u677f\u5b50\u62e8\u7801\u5f00\u5173\u8c03\u6574\u5230JTAG\u6a21\u5f0f\uff0c\u5e76\u91cd\u65b0\u4e0a\u7535\uff0c\u4e4b\u540e\u518d\u70b9\u51fbPROGRAM \u5f00\u59cb\u4e0b\u8f7d(\u5fc5\u987b\u5728JTAG\u6a21\u5f0f\u4e0b\uff0c\u62e8\u7801\u5f00\u5173\u8c03\u6574\u5230JTAG \u6a21\u5f0f \u5e76\u4e14\u91cd\u542f\u677f\u5b50\u6216\u6309\u4e0bPOR RST\u6309\u952e\u91cd\u542f)<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"552\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-81-1024x552.png\" alt=\"\" class=\"wp-image-9574\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-81-1024x552.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-81-300x162.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-81-768x414.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-81.png 1051w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"376\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-27.png\" alt=\"\" class=\"wp-image-2891\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-27.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-27-239x300.png 239w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/figure>\n\n\n\n<p>\u518d\u70b9\u51fbProgram \u9009\u9879<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"558\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-82-1024x558.png\" alt=\"\" class=\"wp-image-9575\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-82-1024x558.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-82-300x163.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-82-768x419.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-82.png 1035w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u4e4b\u540e\u7cfb\u7edf\u5f00\u59cb\u70e7\u5f55\u56fa\u4ef6\u5230FLASH\u91cc<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"565\" height=\"319\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-227.png\" alt=\"\" class=\"wp-image-1915\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-227.png 565w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-227-300x169.png 300w\" sizes=\"auto, (max-width: 565px) 100vw, 565px\" \/><\/figure>\n\n\n\n<p><strong>\u7b49\u5f85\u8fdb\u5ea6\u6761\u6d88\u5931\uff0c\u5e76\u4e14\u63d0\u793a<\/strong>Successful\u7684\u65f6\u5019\u4ee3\u8868\u56fa\u5316\u6210\u529f\u4e86<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"508\" height=\"223\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-229.png\" alt=\"\" class=\"wp-image-1917\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-229.png 508w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-229-300x132.png 300w\" sizes=\"auto, (max-width: 508px) 100vw, 508px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u56db\u3001\u4e0a\u7535\u6d4b\u8bd5<\/strong><\/h2>\n\n\n\n<p><strong>\u5c06\u8df3\u7ebf\u4f4d\u7f6e\u6362\u56de\u5230QSPI\u4e0a<\/strong> \uff08\u8fd9\u91cc\u4ee5Smart ZYNQ\u4e3a\u4f8b\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"317\" height=\"405\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-30.png\" alt=\"\" class=\"wp-image-2894\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-30.png 317w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-30-235x300.png 235w\" sizes=\"auto, (max-width: 317px) 100vw, 317px\" \/><\/figure>\n\n\n\n<p><strong>\u5907\u6ce8 \u5b9e\u9645\u6d4b\u8bd5\u8fc7\u7a0b\u4e2d\u4f1a\u53d1\u73b0 \u865a\u62df\u673a \u548cwindows \u4e89\u62a2\u4e32\u53e3\u7684\u8d44\u6e90\u7684\u60c5\u51b5\uff0c\u5bfc\u81f4windows \u4e0b \u65e0\u6cd5\u8bbf\u95ee\u4e32\u53e3\uff0c\u6240\u4ee5\u8fd9\u91cc\u6d4b\u8bd5\u7684\u65f6\u5019\uff08\u628a\u4e32\u53e3\u9ed8\u8ba4\u8bbe\u7f6e\u8fde\u63a5\u5230windows \uff09 \u6216\u8005\u4e34\u65f6\u6302\u8d77\u865a\u62df\u673a<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"529\" height=\"462\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/12\/image-99.png\" alt=\"\" class=\"wp-image-2242\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/12\/image-99.png 529w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/12\/image-99-300x262.png 300w\" sizes=\"auto, (max-width: 529px) 100vw, 529px\" \/><\/figure>\n\n\n\n<p>\u63a5\u4e0b\u6765\u53ef\u4ee5\u5bf9\u4e3b\u677f\u8fdb\u884c\u4e0a\u7535\u3002 \u4e0a\u7535\u4e4b\u540e\u677f\u5b50\u4e0a\u7684POWER\u706f\u4ee5\u53caDONE\u706f\u5c06\u4f1a\u4eae\u8d77\uff0c\u5982\u679c\u6211\u4eec\u7684UART\u548c\u7535\u8111\u8fde\u63a5\u4e86\uff0c\u6b64\u65f6\u7528putty\u7b49\u4e13\u4e1a\u8f6f\u4ef6\u67e5\u770b\u4e32\u53e3\u4fe1\u606f\uff08<strong>\u6ce2\u7279\u7387115200<\/strong>\uff09\uff0c\u53ef\u4ee5\u770b\u5230\u7cfb\u7edf\u5df2\u7ecf\u542f\u52a8\uff0c\u4e32\u53e3\u6b63\u5728\u53d1\u9001\u542f\u52a8\u7684\u65e5\u5fd7\u4fe1\u606f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"961\" height=\"568\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-83.png\" alt=\"\" class=\"wp-image-9577\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-83.png 961w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-83-300x177.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-83-768x454.png 768w\" 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>\u81f3\u6b64\u6211\u4eec\u7684PETALINUX QSPI FLASH\u542f\u52a8\u5b9e\u9a8c\u6210\u529f\u4e86\uff0c\u5269\u4e0b\u529f\u80fd\u9a8c\u8bc1\u64cd\u4f5c\u53ef\u4ee5\u53c2\u8003<a href=\"http:\/\/www.hellofpga.com\/index.php\/2025\/02\/25\/petalinux_boot_test\/\">\u57fa\u4e8eSmart Zynq\u4e0eLemon Zynq \u7684Petalinux\u5f00\u53d1 \u7ae0\u8282\u56db \u542f\u52a8\u9a8c\u8bc1<\/a><\/p>\n\n\n\n<p>\u518d\u6b21\u8bf4\u660e \u677f\u5b50\u4e0a\u7684QSPI FLASH \u4ec5\u4ec5\u53ea\u670916MB\uff0c\u53ea\u80fd\u8dd1\u8f7b\u91cf\u5316\u7684\u5e94\u7528\uff0c\u5982\u679c\u4f60\u7684\u5e94\u7528\u6bd4\u8f83\u590d\u6742\uff0c\u8fd8\u662f\u5efa\u8bae\u6309\u7167\u4e4b\u524d\u7684\u7ae0\u8282\u628a\u7cfb\u7edf\u653e\u5230TF\u5361\u4e0a\u6765\u8fd0\u884c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u5c06\u521d\u5c1d\u8bd5 \u8dd1\u4e00\u904dPetalinux \u5236\u4f5czynq\u7684 linux\u542f\u52a8\u955c\u50cf\uff0c\u4ee5\u6b64\u6765\u719f\u6089zynq\u7684linux\u5f00\u53d1\u6d41\u7a0b\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-4048","post","type-post","status-publish","format-standard","hentry","category-smart-zynq-spsl"],"views":1607,"_links":{"self":[{"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/4048","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=4048"}],"version-history":[{"count":22,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/4048\/revisions"}],"predecessor-version":[{"id":9597,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/4048\/revisions\/9597"}],"wp:attachment":[{"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/media?parent=4048"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/categories?post=4048"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/tags?post=4048"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}