{"id":5445,"date":"2023-11-08T08:46:09","date_gmt":"2023-11-08T00:46:09","guid":{"rendered":"http:\/\/www.hellofpga.com\/?p=5445"},"modified":"2023-11-08T08:46:09","modified_gmt":"2023-11-08T00:46:09","slug":"lcd_driver_2","status":"publish","type":"post","link":"http:\/\/www.hellofpga.com\/index.php\/2023\/11\/08\/lcd_driver_2\/","title":{"rendered":"Xillinux \u7ae0\u8282\u516d (\u8865\u5145)  SmartZynq SP \u677f\u8f7d SPI LCD\u5c4f\u5e55\u9a71\u52a8\u7684\u7f16\u8bd1\u53ca\u5b89\u88c5\uff08\u9009\u770b\uff09"},"content":{"rendered":"\n<p><strong>xillinux \u7cfb\u7edf\u672c\u8eab\u5df2\u7ecf\u81ea\u5e26\u677f\u8f7d\u7684LCD\u7684\u9a71\u52a8\u4e86\uff0c\u6240\u4ee5\u5bf9\u4e8e\u5927\u591a\u6570\u7528\u6237\u6765\u8bf4\u4e0d\u9700\u8981\u518d\u770b\u672c\u7ae0\u8282<\/strong>\uff08\u4e0d\u7528\u91cd\u65b0\u5b89\u88c5\u9a71\u52a8\uff09\u3002\u5982\u679c\u5bf9\u5c4f\u5e55\u9a71\u52a8\u7684\u7f16\u8bd1\u4e0e\u5b89\u88c5\u611f\u5174\u8da3\u7684\u53ef\u4ee5\u53c2\u770b\u672c\u7ae0\u8282\u5185\u5bb9<\/p>\n\n\n\n<p><strong>\u518d\u8bf4\u4e00\u904d\uff1a\u672c\u7ae0\u8282\u5bf9\u4e8e\u5927\u591a\u6570\u4eba\u6765\u8bf4\u4e0d\u662f\u5fc5\u987b\u7684<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u7f16\u8bd1\u5e76\u5b89\u88c5\u9a71\u52a8<\/strong><\/h2>\n\n\n\n<p>1 . \u4ece\u672c\u7ad9\u4e0b\u8f7dfbtft \u9a71\u52a8\u6587\u4ef6<\/p>\n\n\n\n<div class=\"wp-block-file\"><a id=\"wp-block-file--media-d39d0df4-fd84-4554-9f0e-0f938a0e637b\" href=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/10\/fbtft-offset-driver.tar.gz\">fbtft-offset-driver.tar<\/a><a href=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/10\/fbtft-offset-driver.tar.gz\" class=\"wp-block-file__button wp-element-button\" download aria-describedby=\"wp-block-file--media-d39d0df4-fd84-4554-9f0e-0f938a0e637b\">\u4e0b\u8f7d<\/a><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>2.  \u5c06\u4e4b\u51e0\u7ae0\u8282\u521b\u5efa\u7684Xillinux \u7684\u7cfb\u7edfTF\u5361\u901a\u8fc7\u8bfb\u5361\u5668\u548c\u7535\u8111\u8fde\u63a5(<strong>\u5982windows\u63d0\u793a\u683c\u5f0f\u5316\u78c1\u76d8\uff0c\u8bf7\u4e0d\u8981\u8fdb\u884c\u683c\u5f0f\u5316<\/strong>)\uff0c\u5e76\u5c06\u521a\u624d\u4e0b\u8f7d\u4e0b\u6765\u7684 fbtft-offset-driver.tar \u9a71\u52a8\u6587\u4ef6\uff08\u4e0d\u9700\u8981\u89e3\u538b\u7f29\uff09 \u590d\u5236\u5230TF\u5361\u7684\u7b2c\u4e00\u4e2a\u5206\u533a\u4e4b\u4e2d\uff0816M\u7684\u5206\u533a\uff09\uff0c\u4e4b\u540e\u6b63\u5e38\u9000\u51faTF\u5361<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"655\" height=\"362\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/10\/image-39.png\" alt=\"\" class=\"wp-image-5289\" style=\"aspect-ratio:1.8093922651933703;width:552px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/10\/image-39.png 655w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/10\/image-39-300x166.png 300w\" sizes=\"auto, (max-width: 655px) 100vw, 655px\" \/><\/figure>\n\n\n\n<p>3. \u62d4\u4e0bTF\u5361\uff0c\u63a5\u56de\u5230\u6211\u4eec\u7684\u4e3b\u677f\u4e0a\uff0c\u5e76\u4e0a\u7535\u542f\u52a8\u7cfb\u7edf\uff08\u7528putty \u7b49\u4e32\u53e3\u5de5\u5177\u8bfb\u53d6Xillinux \u7684\u8f93\u51fa\u7684\u547d\u4ee4\u884c\uff0c\u4e5f\u53ef\u4ee5\u5916\u63a5hdmi\u663e\u793a\u5668\u548c\u952e\u76d8\u8fdb\u884c\u64cd\u4f5c\uff09<\/p>\n\n\n\n<p>4. \u5728Xillinux \u7cfb\u7edf\u4e0b\u6302\u8f7d TF\u5361\u7b2c\u4e00\u5206\u533a\uff0c\u5e76cd \u8fdb\u5165\u6302\u5728\u540e\u7684\u76ee\u5f55<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>a \u65b0\u5efa\u4e00\u4e2a\u6302\u8f7d\u76ee\u5f55 <\/strong>\nmkdir \/mnt\/udisk\n\n<strong>b \u5c06TF \u7b2c\u4e00\u5206\u533a \u6302\u8f7d\u5230\/mnt\/udisk \u4e0b<\/strong>\nmount \/dev\/mmcblk0p1 \/mnt\/udisk\n\n<strong>c  cd \u8fdb\u5165\u521a\u521a\u521b\u5efa\u7684udisk\u76ee\u5f55<\/strong>\ncd \/mnt\/udisk\/<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"746\" height=\"102\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/10\/image-40.png\" alt=\"\" class=\"wp-image-5291\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/10\/image-40.png 746w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/10\/image-40-300x41.png 300w\" sizes=\"auto, (max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>5. \u89e3\u538b\u7f29 \u521a\u624d\u4e0b\u8f7d\u5e76\u590d\u5236\u5230tf \u5361\u7684\u9a71\u52a8\u538b\u7f29\u5305   fbtft-offset-driver.tar.gz <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">tar -xzf fbtft-offset-driver.tar.gz<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"974\" height=\"416\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/10\/image-41.png\" alt=\"\" class=\"wp-image-5292\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/10\/image-41.png 974w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/10\/image-41-300x128.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/10\/image-41-768x328.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>6. \u8fdb\u5165\u89e3\u538b\u7f29\u540e\u7684\u76ee\u5f55 fbtft-offset-driver<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cd fbtft-offset-driver<\/pre>\n\n\n\n<p>7 . \u5bf9\u9a71\u52a8\u8fdb\u884c\u7f16\u8bd1  make<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">make<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"957\" height=\"598\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/10\/image-42.png\" alt=\"\" class=\"wp-image-5293\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/10\/image-42.png 957w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/10\/image-42-300x187.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/10\/image-42-768x480.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>8. \u5b89\u88c5TFT\u9a71\u52a8<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">make install<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1006\" height=\"643\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/10\/image-43.png\" alt=\"\" class=\"wp-image-5294\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/10\/image-43.png 1006w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/10\/image-43-300x192.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/10\/image-43-768x491.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>9\u3001<strong>\u65b0\u88c5\u7684\u9a71\u52a8\u9700\u8981\u91cd\u65b0\u542f\u52a8\u7cfb\u7edf\u624d\u80fd\u751f\u6548<\/strong> \u91cd\u542f\u7cfb\u7edf\u8bf7\u7528reboot \u547d\u4ee4\u8fdb\u884c\u91cd\u542f<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">reboot<\/pre>\n\n\n\n<p><strong>\u81f3\u6b64 \u9a71\u52a8\u5df2\u7ecf\u7f16\u8bd1\u5e76\u4e14\u5b89\u88c5\u5b8c\u6210<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>xillinux \u7cfb\u7edf\u672c\u8eab\u5df2\u7ecf\u81ea\u5e26\u677f\u8f7d\u7684LCD\u7684\u9a71\u52a8\u4e86\uff0c\u6240\u4ee5\u5bf9\u4e8e\u5927\u591a\u6570\u7528\u6237\u6765\u8bf4\u4e0d\u9700\u8981\u518d\u770b\u672c\u7ae0\u8282\uff08\u4e0d\u7528\u91cd\u65b0\u5b89\u88c5\u9a71\u52a8\uff09\u3002\u5982\u679c\u5bf9\u5c4f\u5e55\u9a71\u52a8\u7684\u7f16\u8bd1\u4e0e\u5b89\u88c5\u611f\u5174\u8da3\u7684\u53ef\u4ee5\u53c2\u770b\u672c\u7ae0\u8282\u5185\u5bb9<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,21],"tags":[],"class_list":["post-5445","post","type-post","status-publish","format-standard","hentry","category-smart-zynq-spsl","category-xillinux"],"views":593,"_links":{"self":[{"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/5445","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=5445"}],"version-history":[{"count":7,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/5445\/revisions"}],"predecessor-version":[{"id":5460,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/5445\/revisions\/5460"}],"wp:attachment":[{"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/media?parent=5445"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/categories?post=5445"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/tags?post=5445"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}