{"id":8451,"date":"2024-10-25T14:15:36","date_gmt":"2024-10-25T06:15:36","guid":{"rendered":"http:\/\/www.hellofpga.com\/?p=8451"},"modified":"2025-02-28T22:11:53","modified_gmt":"2025-02-28T14:11:53","slug":"lemon_zynq_building_petalinux","status":"publish","type":"post","link":"http:\/\/www.hellofpga.com\/index.php\/2024\/10\/25\/lemon_zynq_building_petalinux\/","title":{"rendered":"\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)"},"content":{"rendered":"\n<p>\u672c\u6587\u5c06\u5728\u4e0a\u4e00\u7ae0hdf\u6587\u4ef6\u7684\u57fa\u7840\u4e0a\u5b8c\u6210\u5b8c\u6574\u7684Petalinux \u5de5\u7a0b\u7684\u521b\u5efa\u53ca\u7f16\u8bd1\u6d41\u7a0b\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u6b64\u7ae0\u8282\u5185\u5bb9\u9002\u7528\u4e8eLemon ZYNQ\u4e3b\u677f\uff0c\u5982\u662f\u5176\u4ed6\u677f\u5b50\u8bf7\u770b\u5bf9\u5e94\u677f\u5b50\u76ee\u5f55<\/strong><\/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<h2 class=\"wp-block-heading\"><strong>\u542f\u52a8\u65b9\u5f0f\uff1a<\/strong><\/h2>\n\n\n\n<p>\u6211\u4eec\u7684Lemon ZYNQ\uff0c\u6709\u4e24\u79cd\u53ef\u7528\u7684\u542f\u52a8\u4ecb\u8d28\uff1a16MB \u7684 FLASH \u548c TF \u5361\u3002\u867d\u7136\u4e24\u8005\u90fd\u53ef\u4ee5\u7528\u6765\u542f\u52a8 Petalinux\uff0c\u4f46\u9700\u8981\u8003\u8651\u4ee5\u4e0b\u56e0\u7d20\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>FLASH<\/strong>\uff1a\u5bb9\u91cf\u4e3a 16MB\uff0c\u901a\u5e38\u53ea\u9002\u7528\u4e8e\u7b80\u5355\u7684Petalinux\u7cfb\u7edf\u3002<\/li>\n\n\n\n<li><strong>TF \u5361<\/strong>\uff1a\u5bb9\u91cf\u53ef\u81ea\u7531\u6269\u5c55\uff0c\u80fd\u591f\u5bb9\u7eb3\u66f4\u5927\u7684\u5e94\u7528\u548c\u6587\u4ef6\u7cfb\u7edf\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u9274\u4e8e Petalinux \u5e94\u7528\u901a\u5e38\u8d85\u8fc7 16MB\uff0c\u672c\u6559\u7a0b\u5c06\u4e3b\u8981\u6f14\u793a\u5982\u4f55\u5236\u4f5c TF \u5361\u955c\u50cf\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u786c\u4ef6\u8d44\u6e90\uff1a<\/strong><\/h2>\n\n\n\n<p>\u4e3a\u4e86\u4f7f\u672c\u8bd5\u9a8c\u5de5\u7a0b\u7684 Petalinux \u66f4\u52a0\u9002\u5408\u4eca\u540e\u7684\u4e8c\u6b21\u5f00\u53d1\uff0c\u800c\u4e0d\u4ec5\u4ec5\u5c40\u9650\u4e8e\u5b9e\u9a8c\u76ee\u7684\uff0c\u672c\u5de5\u7a0b\u5c06\u96c6\u6210 Petalinux \u53ef\u80fd\u7528\u5230\u7684\u57fa\u7840\u529f\u80fd\u3002\u8fd9\u4e9b\u529f\u80fd\u5305\u62ec UART\u3001\u5343\u5146\u7f51\u7edc\u3001USB HOST\u3001SD\u3001FLASH\u3001LED \u548c\u6309\u952e\u7b49\uff0c\u4ee5\u786e\u4fdd\u7cfb\u7edf\u5728\u540e\u7eed\u5f00\u53d1\u4e2d\u5177\u5907\u5168\u9762\u7684\u529f\u80fd\u652f\u6301\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u6839\u6587\u4ef6\u7cfb\u7edf\uff1a<\/strong><\/h2>\n\n\n\n<p>\u4e3a\u4e86\u4f7f\u672c\u5de5\u7a0b\u7684 Petalinux \u66f4\u52a0\u9002\u5408\u4eca\u540e\u7684\u4e8c\u6b21\u5f00\u53d1\u548c\u4f7f\u7528\uff0c\u672c\u5de5\u7a0b\u5c06\u4e0d\u518d\u91c7\u7528 INITRAMFS \u8fd9\u79cd\u4e34\u65f6\u6839\u6587\u4ef6\u7cfb\u7edf\uff08\u4e0d\u4fdd\u5b58\u6570\u636e\uff09\uff0c\u800c\u662f\u6539\u7528 SD \u6587\u4ef6\u7cfb\u7edf\u3002\u8fd9\u6837\uff0c\u6bcf\u6b21\u5728 Petalinux \u4e2d\u7684\u64cd\u4f5c\u90fd\u5c06\u88ab\u7cfb\u7edf\u6301\u4e45\u4fdd\u5b58\uff0c\u4ece\u800c\u65b9\u4fbf\u540e\u7eed\u7684\u5f00\u53d1\u548c\u7ef4\u62a4\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4ee5\u4e0b\u662f\u5b8c\u6574\u7684\u521b\u5efa\u548c\u7f16\u8bd1\u64cd\u4f5c\uff1a<\/strong><\/h2>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e00\u3001PetaLinux \u5de5\u7a0b\u521b\u5efa<\/strong><\/h2>\n\n\n\n<p>1\uff09\u6253\u5f00\u865a\u62df\u673a\u4e0b\u7684 Ubuntu\u7cfb\u7edf<\/p>\n\n\n\n<p>2\uff09\u5728Ubuntu\u4e0b\u521b\u5efa\u5de5\u7a0b\u76ee\u5f55\uff08\u8fd9\u91cc\u7528\u56fe\u5f62\u754c\u9762\u7684\u65b9\u5f0f\uff0c\u5f53\u7136\u4e5f\u53ef\u4ee5\u7528mkdir\u7684\u65b9\u5f0f\uff09<\/p>\n\n\n\n<p>\u5728home\u6587\u4ef6\u5939\u4e0b \u521b\u5efa\u4e00\u4e2aPetalinux\u6587\u4ef6\u5939\uff08\u5982\u679c\u4e4b\u524d\u5df2\u7ecf\u521b\u5efa\u53ef\u4ee5\u5ffd\u7565\uff09\uff0c\u4e5f\u53ef\u4ee5\u56fe\u5f62\u754c\u9762\u6253\u5f00Home \u6587\u4ef6\u5939\u7136\u540e\u76f4\u63a5\u53f3\u952e\u65b0\u5efa\u4e00\u4e2aPetalinux<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"956\" height=\"584\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-183.png\" alt=\"\" class=\"wp-image-1848\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-183.png 956w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-183-300x183.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-183-768x469.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p><strong>3\uff09 \u521b\u5efaPetalinux \u5de5\u7a0b<\/strong><\/p>\n\n\n\n<p>a) \u5728\u5de5\u7a0b\u6587\u4ef6\u5939\uff08Petalinux\uff09\u7684\u7a7a\u767d\u5904\u53f3\u952e\uff0c\u7136\u540e\u70b9\u9009Open in Terminal \u6253\u5f00\u7ec8\u7aef\u547d\u4ee4\u884c\uff08\u8fd9\u79cd\u65b9\u5f0f\u6253\u5f00\u547d\u4ee4\u884c\u4f1a\u81ea\u52a8\u5b9a\u4f4d\u5230\u5f53\u524d\u6587\u4ef6\u5939\uff09\uff0c\u5f53\u7136\u4e5f\u53ef\u4ee5\u666e\u901a\u65b9\u5f0f\u6253\u5f00\u7ec8\u7aef \uff0c\u518d\u7528CD\u7684\u65b9\u5f0f\u5b9a\u4f4d\u5230\u6b64\u6587\u4ef6\u5939<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"668\" height=\"417\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-188.png\" alt=\"\" class=\"wp-image-1855\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-188.png 668w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-188-300x187.png 300w\" sizes=\"auto, (max-width: 668px) 100vw, 668px\" \/><\/figure>\n\n\n\n<p>b) \u5728\u547d\u4ee4\u884c\u7ec8\u7aef\u4e2d\u8f93\u5165 source \/opt\/pkg\/petalinux\/2018.3\/settings.sh \u5bf9Petalinux \u7684\u73af\u5883\u8fdb\u884c\u52a0\u8f7d<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">source \/opt\/pkg\/petalinux\/2018.3\/settings.sh<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"585\" height=\"177\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-189.png\" alt=\"\" class=\"wp-image-1857\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-189.png 585w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-189-300x91.png 300w\" sizes=\"auto, (max-width: 585px) 100vw, 585px\" \/><\/figure>\n\n\n\n<p>c \uff09\u5728\u547d\u4ee4\u884c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff0c\u6765\u521b\u5efa\u4e00\u4e2aPetalinuxSystem\u7684\u5de5\u7a0b \uff08\u5927\u5bb6\u4e5f\u53ef\u4ee5\u6839\u636e\u9700\u6c42\u81ea\u5df1\u6539\u540d\uff09<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">petalinux-create --type project --template zynq --name PetalinuxSystem<\/pre>\n\n\n\n<p>\u6309\u4e0b\u56de\u8f66\u540e \u540d\u4e3aPetalinux_Net_TEST\u7684\u5de5\u7a0b\u4f1a\u88ab\u521b\u5efa\uff0c\u5e76\u4e14\u521a\u624d\u7684\u6587\u4ef6\u5939\u4e0b\u591a\u4e86\u4e00\u4e2a\u5bf9\u5e94\u7684\u5de5\u7a0b\u6587\u4ef6\u5939<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"558\" height=\"352\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-118.png\" alt=\"\" class=\"wp-image-8454\" style=\"width:495px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-118.png 558w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-118-300x189.png 300w\" sizes=\"auto, (max-width: 558px) 100vw, 558px\" \/><\/figure>\n\n\n\n<p>4\uff09 \u590d\u5236hdf\u6587\u4ef6\u5e76\u7c98\u8d34\u5230\u521a\u624d\u521b\u5efa\u7684\u5de5\u7a0b\u6587\u4ef6\u5939\u4e2d \uff08\u672c\u8282\u5de5\u7a0b\u5efa\u7acb\u5728\u4e0a\u4e00\u8282\u7684hdf\u57fa\u7840\u4e0a\uff0c\u53ef\u4ee5\u76f4\u63a5\u4ece\u4e0a\u4e00\u7ae0\u8282\u7684\u5de5\u7a0b\u4e2d\u590d\u5236\uff0c\u4e5f\u53ef\u4ee5\u5728\u672c\u6587\u6700\u540e\u4e0b\u8f7d\u5f97\u5230\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"786\" height=\"234\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-119.png\" alt=\"\" class=\"wp-image-8455\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-119.png 786w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-119-300x89.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-119-768x229.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e8c\u3001\u542f\u52a8Petalinux \u914d\u7f6e\u9875<\/strong><\/h2>\n\n\n\n<p>1\uff09\u5728\u521a\u624d\u7684\u5728\u547d\u4ee4\u884c\u7ec8\u7aef\u4e2d\u8f93\u5165cd \u8fdb\u5165 \u5de5\u7a0b\u6587\u4ef6\u5939\uff08PetalinuxSystem\uff09<strong>&nbsp;\u5907\u6ce8\uff08cd \u7684\u65f6\u5019 \u53ef\u4ee5\u8f93\u5165\u6587\u4ef6\u5939\u7684\u7b2c\u4e00\u4e2a\u5b57\u6bcd\u7136\u540e\u6309tab\u952e\uff0c\u8fd9\u6837\u76f8\u540c\u540d\u79f0\u7684\u6587\u4ef6\u5939\u5c31\u4f1a\u8df3\u51fa\u6765\uff09<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>cd PetalinuxSystem<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"496\" height=\"70\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-120.png\" alt=\"\" class=\"wp-image-8456\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-120.png 496w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-120-300x42.png 300w\" sizes=\"auto, (max-width: 496px) 100vw, 496px\" \/><\/figure>\n\n\n\n<p>\u8fdb\u5165\u6587\u4ef6\u5939\u540e\uff0c\u6309\u4e0b\u4e0b\u5217\u4ee3\u7801\uff0c \u6307\u5b9a\u5bfc\u5165hdf\u7684\u8def\u5f84\uff08\u56e0\u4e3a\u662f\u5f53\u524d\u547d\u4ee4\u884c\u7684\u8def\u5f84\u6240\u4ee5\u8fd9\u91cc \u5e26\u4e00\u4e2a\u201d.\u201d\u5c31\u53ef\u4ee5\u4e86\uff0c\u4e0d\u7136=\u53f7\u540e\u8ddf\u5177\u4f53\u8def\u5f84\uff09 \u5e76\u6309\u4e0b\u56de\u8f66<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">petalinux-config --get-hw-description=.<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"763\" height=\"121\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-121.png\" alt=\"\" class=\"wp-image-8457\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-121.png 763w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-121-300x48.png 300w\" sizes=\"auto, (max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><\/figure>\n\n\n\n<p>\u4e4b\u540e\u7cfb\u7edf\u5c06\u542f\u52a8\u914d\u7f6e\u9875<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"733\" height=\"114\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-122.png\" alt=\"\" class=\"wp-image-8458\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-122.png 733w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-122-300x47.png 300w\" sizes=\"auto, (max-width: 733px) 100vw, 733px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"749\" height=\"441\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-123.png\" alt=\"\" class=\"wp-image-8459\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-123.png 749w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-123-300x177.png 300w\" sizes=\"auto, (max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><\/figure>\n\n\n\n<p><strong>2\uff09 \u5bf9Petalinux \u8fdb\u884c\u914d\u7f6e<\/strong><\/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 size-full\"><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\"><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 size-full\"><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\"><img loading=\"lazy\" decoding=\"async\" width=\"691\" height=\"357\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-127.png\" alt=\"\" class=\"wp-image-8465\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-127.png 691w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-127-300x155.png 300w\" sizes=\"auto, (max-width: 691px) 100vw, 691px\" \/><\/figure>\n\n\n\n<p>\u9009\u62e9 primary sd\u5e76\u6309\u56de\u8f66(\u5982\u679c\u4f60\u5728vivado \u91cc\u8bbe\u7f6e\u4e86nand flash \u7b49\uff0c\u8fd9\u91cc\u5c31\u6709\u591a\u4e2a\u9009\u9879\u53ef\u9009\u4e86)<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"697\" height=\"345\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-128.png\" alt=\"\" class=\"wp-image-8466\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-128.png 697w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-128-300x148.png 300w\" sizes=\"auto, (max-width: 697px) 100vw, 697px\" \/><\/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 size-full\"><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 size-full\"><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=\"692\" height=\"353\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-130.png\" alt=\"\" class=\"wp-image-8468\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-130.png 692w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-130-300x153.png 300w\" sizes=\"auto, (max-width: 692px) 100vw, 692px\" \/><\/figure>\n\n\n\n<p>\u5982\u679c\u4e0a\u8ff0\u754c\u9762\u4e0d\u662f\u9ed8\u8ba4primary sd\uff0c\u5219\u70b9\u8fdb\u53bb\u4fee\u6539\u6210primary sd\uff0c\u4e4b\u540e\u7528\u591a\u6b21\u53cc\u51fbESC\u7684\u65b9\u5f0f\u56de\u5230\u521d\u59cb\u83dc\u5355\u3002<\/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 size-full\"><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\u53ef\u80fd\u9ed8\u8ba4\u4f1a\u9009\u62e9INITRAMFS\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"694\" height=\"360\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-136.png\" alt=\"\" class=\"wp-image-8474\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-136.png 694w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-136-300x156.png 300w\" sizes=\"auto, (max-width: 694px) 100vw, 694px\" \/><\/figure>\n\n\n\n<p>\u5c06\u7cfb\u7edf\u9ed8\u8ba4\u9009\u62e9\u7684INITRAMFS \u4fee\u6539\u6210 \u6211\u4eec\u9700\u8981\u7684SD card \uff08\u56e0\u4e3aINITRAMFS\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\uff0c\u6240\u4ee5\u8fd9\u91cc\u6211\u4eec\u66f4\u6362\u6839\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b\u4e3aSD card\u7c7b\u578b\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"723\" height=\"434\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-133.png\" alt=\"\" class=\"wp-image-8471\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-133.png 723w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-133-300x180.png 300w\" sizes=\"auto, (max-width: 723px) 100vw, 723px\" \/><\/figure>\n\n\n\n<p>\u4e4b\u540e\u6309\u591a\u6b21ESC\u56de\u5230\u6839\u83dc\u5355<\/p>\n\n\n\n<p><strong>d) \u4fdd\u5b58\u914d\u7f6e\u5e76\u9000\u51fa<\/strong><\/p>\n\n\n\n<p>\u4fdd\u5b58\u8bbe\u7f6e \u9009\u62e9save \u5e76\u70b9\u9009ok \u5bf9\u8bbe\u7f6e\u8fdb\u884c\u4fdd\u5b58<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"697\" height=\"363\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-134.png\" alt=\"\" class=\"wp-image-8480\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-134.png 697w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-134-300x156.png 300w\" sizes=\"auto, (max-width: 697px) 100vw, 697px\" \/><\/figure>\n\n\n\n<p>f \uff09\u9000\u51fa \u8bbe\u7f6e\u754c\u9762<\/p>\n\n\n\n<p>\u4e3b\u83dc\u5355\u9009\u62e9EXIT \u9000\u51fa<\/p>\n\n\n\n<p>\u4e4b\u540e \u7cfb\u7edf\u8fdb\u884c\u914d\u7f6e \uff0c\u6b64\u65f6\u7b49\u5f85\u914d\u7f6e\u7ed3\u675f<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"723\" height=\"173\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-212.png\" alt=\"\" class=\"wp-image-1891\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-212.png 723w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-212-300x72.png 300w\" sizes=\"auto, (max-width: 723px) 100vw, 723px\" \/><\/figure>\n\n\n\n<p>\u5907\u6ce8:\u5f53\u7136\u4e0a\u8ff0\u7684\u8bbe\u7f6e\u754c\u9762\u8fd8\u53ef\u4ee5\u6839\u636e\u9700\u6c42\u8bbe\u7f6e\u66f4\u591a\u7684\u5185\u5bb9\uff0c\u5305\u62ecdtb\u7684\u5b58\u653e\u4f4d\u7f6e\uff0cenv\u7684\u5b58\u653e\u4f4d\u7f6e\u7b49\u3002\u5982\u679c\u6709\u591a\u4e32\u53e3 \uff0c\u591a\u7f51\u53e3\u7684\u60c5\u51b5\u4e0b\u8fd8\u53ef\u4ee5\u8bbe\u7f6e\u4e32\u53e3\u53f7\u548c\u7f51\u53e3\u53f7,\u7f51\u7edcMAC\u5730\u5740\u7b49\u5185\u5bb9\u3002\uff08\u8fd9\u91cc\u9ed8\u8ba4env \u662f\u5b58\u653e\u5728flash\u4e0a\uff0c dtb\u662f\u5b58\u653e\u5728boot image \u4e2d\uff09\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e09\u3001\u5bf9kernel \u8fdb\u884c\u914d\u7f6e\uff0c<\/strong>\u589e\u52a0\u7f51\u7edc\u548c USB_HOST\u90e8\u5206\u9a71\u52a8\uff08kernel \u7f51\u7edc\u548c USB HOST\u529f\u80fd\u5b9e\u9645\u6ca1\u6709\u4f5c\u66f4\u6539\uff09<\/h2>\n\n\n\n<p>\u8f93\u5165\u4e0b\u5217\u547d\u4ee4\u8fdb\u5165kernel\u914d\u7f6e\u9875\u9762\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">petalinux-config -c kernel<\/pre>\n\n\n\n<p>\u4e4b\u540e\u7cfb\u7edf\u4f1a\u8fdb\u5165kernel\u914d\u7f6e\u9875\u3002<\/p>\n\n\n\n<p><strong>1\uff09\u7f51\u7edc\u90e8\u5206\uff1a<\/strong><\/p>\n\n\n\n<p>\u56e0\u4e3a\u6211\u4eec\u7684Lemon Zynq \u4e3b\u677f\u7f51\u7edc\u9ed8\u8ba4\u662f\u63a5\u5728PS MIO\u7aef\uff0c\u6240\u4ee5\u8fd9\u91cc<strong>\u4fdd\u6301\u9ed8\u8ba4\u4e0d\u7528\u4fee\u6539\u5373\u53ef<\/strong>\uff0c\u5982\u679c\u662f\u50cf\u672c\u7ad9\u4e4b\u524dSmart Zynq\u7f51\u7edc\u662f\u63a5\u5728PL\u7aef\uff0c\u7ecf\u8fc7GMII2RGMII\u6a21\u5757\u7684\u8bdd\uff0c\u5219\u9700\u8981\u989d\u5916\u589e\u52a0\u5bf9\u5e94\u7684\u9a71\u52a8\u3002<\/p>\n\n\n\n<p><strong>2) USB HOST\u90e8\u5206\uff1a<\/strong><\/p>\n\n\n\n<p>\u6839\u636e\u521a\u624dwiki \u7f51\u7ad9\u4e0a\u7684\u4ecb\u7ecd\uff0c\u5982\u679c\u9700\u8981\u914d\u7f6e\u6210USB HOST\u6a21\u5f0f\u5219\u9700\u8981 \u5c06kernel\u6309\u7167\u4e0b\u56fe\u8fd9\u6837\u8bbe\u7f6e<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"497\" height=\"352\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/03\/image-6.png\" alt=\"\" class=\"wp-image-3357\" style=\"width:441px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/03\/image-6.png 497w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/03\/image-6-300x212.png 300w\" sizes=\"auto, (max-width: 497px) 100vw, 497px\" \/><\/figure>\n\n\n\n<p>\u56e0\u4e3akernel \u8bbe\u7f6e\u4e2d\u9488\u5bf9\u4e0a\u56feUSB HOST\u4e2d\u7684\u8bbe\u7f6e\u9ed8\u8ba4\u90fd\u662f\u6253\u5f00\u7684\uff0c\u6240\u4ee5kernel\u6211\u4eec\u4e0d\u9700\u8981\u66f4\u6539\u8bbe\u7f6e\uff0c\u76f4\u63a5\u4fdd\u5b58\u540e\u9000\u51fa\u5373\u53ef<\/p>\n\n\n\n<p>3 \uff09\u4fdd\u5b58\u5e76\u9000\u51fa<\/p>\n\n\n\n<p>\u56e0\u4e3a\u4e0a\u8ff0\u4e24\u4e2a\u90e8\u5206\u6211\u4eec\u90fd\u4fdd\u6301\u9ed8\u8ba4\u6ca1\u6709\u8fdb\u884c\u4fee\u6539\uff0c\u6240\u4ee5\u8fd9\u91cc\u6211\u4eec\u76f4\u63a5\u70b9Save \u7136\u540eExit \u9000\u51fakernel \u914d\u7f6e\u754c\u9762<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"678\" height=\"366\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-58.png\" alt=\"\" class=\"wp-image-3025\" style=\"width:487px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-58.png 678w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-58-300x162.png 300w\" sizes=\"auto, (max-width: 678px) 100vw, 678px\" \/><\/figure>\n\n\n\n<p>\u5f39\u51fa\u6765\u7684\u83dc\u5355 \u76f4\u63a5\u9009ok\uff0c\u5e76\u5728\u4e4b\u540e\u51fa\u73b0\u7684\u9009\u9879\u91cc\u70b9exit<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"610\" height=\"324\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-59.png\" alt=\"\" class=\"wp-image-3026\" style=\"width:433px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-59.png 610w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-59-300x159.png 300w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/figure>\n\n\n\n<p>\u4e4b\u540e\u591a\u6b21\u6309ESC\u952e\u8fd4\u56de\u4e3b\u83dc\u5355\uff0c\u7136\u540e\u6309EXIT \u9000\u51fakernel \u8bbe\u7f6e\uff08\u63a5\u7740\u7ee7\u7eed\u6f2b\u957f\u7684\u7b49\u5f85\uff09<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u56db\u3001\u6dfb\u52a0\u8bbe\u5907\u6811\u90e8\u5206<\/strong><\/h2>\n\n\n\n<p>\u4e3a\u4e86\u8ba9USB\u529f\u80fd\u6b63\u5e38\u4f7f\u7528\uff0c\u6211\u4eec\u9700\u8981\u5728\u8bbe\u5907\u6811\u4e0a\u589e\u52a0USB\u7684\u76f8\u5173\u5185\u5bb9\uff0c\u8def\u5f84\u5728 \u6211\u4eec\u521b\u5efa\u7684\u5de5\u7a0b<strong>PetalinuxSystem<\/strong>\u8def\u5f84\u4e0b\u7684 \/project-spec\/meta-user\/recipes-bsp\/device-tree\/files \u5185\u7684 system-user.dtsi\u6587\u4ef6\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"946\" height=\"239\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-135.png\" alt=\"\" class=\"wp-image-8483\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-135.png 946w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-135-300x76.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-135-768x194.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u53cc\u51fb\u6253\u5f00\u8fd9\u4e2a\u6587\u4ef6\uff0c\u5e76\u6309\u4e0b\u56fe\u6240\u793a\uff0c\u5728<strong>\u539f\u5148\u7684\u4ee3\u7801\u540e\u9762\u589e\u52a0<\/strong>\u5982\u4e0b\u5185\u5bb9\uff0c\u4e4b\u540e\u518d<strong>\u4fdd\u5b58\u4e0e\u9000\u51fa<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/include\/ \"system-conf.dtsi\"<br>\/ {<br>};<br><br>\/{<br>    usb_phy0: usb_phy@0 {<br>    compatible = \"ulpi-phy\";<br>    #phy-cells = &lt;0&gt;;<br>    reg = &lt;0xe0002000 0x1000&gt;;<br>    view-port = &lt;0x0170&gt;;<br>    drv-vbus;<br>    };<br>};<br>&amp;usb0 {<br>    dr_mode = \"host\";<br>    usb-phy = &lt;&amp;usb_phy0&gt;;<br>};<\/pre>\n\n\n\n<p>\u4e0a\u8ff0\u5185\u5bb9\u4e2d\u5305\u542b\u4e86USB \u7684\u8bbe\u5907\u6811\u5185\u5bb9\u3002\u4e4b\u540e\u4fdd\u5b58\u5e76\u5173\u95ed\u5373\u53ef\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"522\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-152-1024x522.png\" alt=\"\" class=\"wp-image-8525\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-152-1024x522.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-152-300x153.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-152-768x392.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-152.png 1102w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u5907\u6ce8\uff1a\u7f51\u4e0a\u90e8\u5206\u6559\u7a0b\u5728\u8fd9\u91cc\u90fd\u9700\u8981\u6dfb\u52a0\u7f51\u7edc\u90e8\u5206\u7684\u8bbe\u5907\u6811\uff0c\u4f46\u662f\u7ecf\u8fc7\u5b9e\u9645\u8c03\u8bd5\uff0c2018.3\u7684petalinux\u4e0d\u9700\u8981\u81ea\u5df1\u624b\u52a8\u521b\u5efa\u7f51\u7edc\u7684\u8bbe\u5907\u6811\uff0c<strong>\u7cfb\u7edf\u4f1a\u81ea\u52a8\u5e2e\u6211\u4eec\u5728\u8bbe\u5907\u6811\u91cc\u6dfb\u52a0\u7f51\u7edc\uff0c\u800c\u4e0d\u9700\u8981\u624b\u52a8\u6dfb\u52a0<\/strong>\uff08\u5728\u6ca1\u6709\u7f16\u8bd1\u524d\u770b\u4e0d\u5230\u8bbe\u5907\u6811\uff0c\u6574\u4e2a\u5de5\u7a0b\u7f16\u8bd1\u540e\u7cfb\u7edf\u4f1a\u81ea\u52a8\u5728&nbsp;\/components\/plnx_workspace\/device-tree\/device-tree\u4e0b\u7684pcw.dtsi\u6587\u4ef6\u548c\u548czynq-7000.dtsi\u6587\u4ef6\u4e2d\u81ea\u52a8\u6dfb\u52a0\u4e0a\u7f51\u7edc\u90e8\u5206\u7684\u4e2d\u4e3a\u6211\u4eec\u6dfb\u52a0\u7f51\u7edc\u90e8\u5206\u7684\u8bbe\u5907\u6811\u5185\u5bb9\uff09\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e94\u3001\u7f16\u8bd1\u6574\u4e2a\u5de5\u7a0b<\/strong><\/h2>\n\n\n\n<p>1\uff09 \u56de\u5230\u547d\u4ee4\u884c\u7ec8\u7aef\uff0c\u8f93\u5165\u4ee5\u4e0b\u4ee3\u7801 \u5bf9Petalinux\u8fdb\u884c\u7f16\u8bd1<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">petalinux-build<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"674\" height=\"105\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/03\/image-9.png\" alt=\"\" class=\"wp-image-3365\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/03\/image-9.png 674w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/03\/image-9-300x47.png 300w\" sizes=\"auto, (max-width: 674px) 100vw, 674px\" \/><\/figure>\n\n\n\n<p>\u4e4b\u540e\u53c8\u662f\u6f2b\u957f\u7684\u7b49\u5f85<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"772\" height=\"195\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-15.png\" alt=\"\" class=\"wp-image-2314\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-15.png 772w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-15-300x76.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-15-768x194.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u76f4\u63a5\u5230\u51fa\u73b0\u63d0\u793a successfully built project \u4ee3\u8868\u7f16\u8bd1\u5b8c\u6210\u4e86<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"742\" height=\"430\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-215.png\" alt=\"\" class=\"wp-image-1896\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-215.png 742w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-215-300x174.png 300w\" sizes=\"auto, (max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u516d\u3001\u6253\u5305Petalinux\u7cfb\u7edf<\/strong><\/h2>\n\n\n\n<p>\u7f16\u8bd1\u5b8c\u6210\u540e\uff0c\u9879\u76ee\u5de5\u7a0b\u6587\u4ef6\u5939\u4e0b\u4f1a\u6709image\u6587\u4ef6\u5939\uff0c\u6267\u884cpetalinux -package \u547d\u4ee4 \u5c06zynq_fsbl.elf, system_wrapper.bit\uff0cu-boot.elf, image.ub \u56db\u4e2a\u6587\u4ef6\u6253\u5305\u751f\u6210<br>boot.bin \u6587\u4ef6\uff0c\u8fd9\u6761\u547d\u4ee4\u7528\u4e8e\u5728 Petalinux \u73af\u5883\u4e2d\u521b\u5efa\u4e00\u4e2a\u5b8c\u6574\u7684\u5f15\u5bfc\u6620\u50cf\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">petalinux-package --boot --fsbl .\/images\/linux\/zynq_fsbl.elf --u-boot --fpga --kernel --force<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e03\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 size-large\"><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\u3001image.ub\u3001rootfs.tar.gz \u8fd93\u4e2a\u6587\u4ef6<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"699\" height=\"302\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-139.png\" alt=\"\" class=\"wp-image-8493\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-139.png 699w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-139-300x130.png 300w\" sizes=\"auto, (max-width: 699px) 100vw, 699px\" \/><\/figure>\n\n\n\n<p>\u8fd9\u4e09\u4e2a\u6587\u4ef6\u7684\u5177\u4f53\u5185\u5bb9\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>boot.bin<\/code><\/strong>\uff1a\u5f15\u5bfc\u52a0\u8f7d\u7a0b\u5e8f\uff0c\u5305\u62ec FSBL\u3001U-Boot \u548c\u53ef\u9009\u7684 FPGA \u914d\u7f6e\u3002<\/li>\n\n\n\n<li><strong><code>image.ub<\/code><\/strong>\uff1a\u5185\u6838\u548c\u8bbe\u5907\u6811\u7684\u6620\u50cf\u6587\u4ef6\u3002<\/li>\n\n\n\n<li><strong><code>rootfs.tar.gz<\/code><\/strong>\uff1a\u538b\u7f29\u7684\u6839\u6587\u4ef6\u7cfb\u7edf\u6620\u50cf\uff0c\u5305\u542b\u7528\u6237\u7a7a\u95f4\u6240\u9700\u7684\u6240\u6709\u6587\u4ef6\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u4e0b\u4e00\u8282\u6211\u4eec\u5c06\u4ecb\u7ecdSD\u5361\u7684\u5206\u533a\u4ee5\u53ca\u6587\u4ef6\u7cfb\u7edf\u7684\u70e7\u5f55\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u672c\u8282\u7684\u4e09\u4e2a\u6587\u4ef6\u4ee5\u53ca\u4e0a\u4e00\u8282\u7684hdf\u6587\u4ef6\u4e0b\u8f7d\uff1a<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u672c\u6587\u7684\u955c\u50cf\u6587\u4ef6\u53cahdf\u6587\u4ef6\u4e0b\u8f7d\uff1a<a href=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/02_PetaLinuxSystem_images.zip\">02_PetaLinuxSystem_images<\/a><\/strong><\/li>\n\n\n\n<li><strong>\u6b64\u6587\u4ef6\u57fa\u4e8eLemon Zynq \u4e3b\u677f\u521b\u5efa\u800c\u6765<\/strong><\/li>\n<\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u5c06\u5728\u4e0a\u4e00\u7ae0hdf\u6587\u4ef6\u7684\u57fa\u7840\u4e0a\u5b8c\u6210\u5b8c\u6574\u7684Petalinux \u5de5\u7a0b\u7684\u521b\u5efa\u53ca\u7f16\u8bd1\u6d41\u7a0b<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[],"class_list":["post-8451","post","type-post","status-publish","format-standard","hentry","category-lemon-zynq"],"views":1349,"_links":{"self":[{"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/8451","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=8451"}],"version-history":[{"count":32,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/8451\/revisions"}],"predecessor-version":[{"id":9566,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/8451\/revisions\/9566"}],"wp:attachment":[{"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/media?parent=8451"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/categories?post=8451"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/tags?post=8451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}