{"id":2459,"date":"2019-01-04T17:24:18","date_gmt":"2019-01-04T09:24:18","guid":{"rendered":"http:\/\/www.51cos.com\/?p=2459"},"modified":"2019-01-04T17:26:38","modified_gmt":"2019-01-04T09:26:38","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8openwrt%e4%b8%8b%e6%9b%b4%e6%94%b9flash-ddr%e5%a4%a7%e5%b0%8f","status":"publish","type":"post","link":"http:\/\/www.51cos.com\/?p=2459","title":{"rendered":"\u5982\u4f55\u5728OpenWRT\u4e0b\u66f4\u6539flash\/DDR\u5927\u5c0f"},"content":{"rendered":"<p>\u4fee\u6539openwrt\/target\/linux\/ramips\/dts\/ \u4e0b\u9762\u5bf9\u5e94\u7684dts\u6587\u4ef6\uff1a<\/p>\n<p> \u4ee5\u4e0b\u9762\u8fd9\u4e2a\u6587\u4ef6\u4e3a\u4f8b\uff1a<\/p>\n<p> \/dts-v1\/;<\/p>\n<p>\/include\/ &#8220;mt7628an.dtsi&#8221;<\/p>\n<p>\/ {<br \/>\n\tcompatible = &#8220;mediatek,mt7628an-eval-board&#8221;, &#8220;mediatek,mt7628an-soc&#8221;;<br \/>\n\tmodel = &#8220;Mediatek MT7628AN evaluation board&#8221;;<br \/>\n#0x2000000=32M\uff0c0x4000000=64M\uff0c0x8000000=128M<br \/>\n\tmemory@0 {<br \/>\n\t\tdevice_type = &#8220;memory&#8221;;<br \/>\n\t\treg = &lt;0x0 0x2000000&gt;;<br \/>\n\t};<\/p>\n<p>\tpinctrl {<br \/>\n\t\tstate_default: pinctrl0 {<br \/>\n\t\t\tgpio {<br \/>\n\t\t\t\tralink,group = &#8220;i2c&#8221;, &#8220;jtag&#8221;;<br \/>\n\t\t\t\tralink,function = &#8220;gpio&#8221;;<br \/>\n\t\t\t};<br \/>\n\t\t};<br \/>\n\t};<\/p>\n<p>\tpalmbus@10000000 {<br \/>\n\t\tspi@b00 {<br \/>\n\t\t\tstatus = &#8220;okay&#8221;;<\/p>\n<p>\t\t\tm25p80@0 {<br \/>\n\t\t\t\t#address-cells = &lt;1&gt;;<br \/>\n\t\t\t\t#size-cells = &lt;1&gt;;<br \/>\n\t\t\t\tcompatible = &#8220;en25q64&#8221;;<br \/>\n\t\t\t\treg = &lt;0 0&gt;;<br \/>\n\t\t\t\tlinux,modalias = &#8220;m25p80&#8221;, &#8220;en25q64&#8221;;<br \/>\n\t\t\t\tspi-max-frequency = &lt;10000000&gt;;<br \/>\n\t\t\t\tm25p,chunked-io = &lt;32&gt;;<\/p>\n<p>\t\t\t\tpartition@0 {<br \/>\n\t\t\t\t\tlabel = &#8220;u-boot&#8221;;<br \/>\n\t\t\t\t\treg = &lt;0x0 0x30000&gt;;<br \/>\n\t\t\t\t\tread-only;<br \/>\n\t\t\t\t};<\/p>\n<p>\t\t\t\tpartition@30000 {<br \/>\n\t\t\t\t\tlabel = &#8220;u-boot-env&#8221;;<br \/>\n\t\t\t\t\treg = &lt;0x30000 0x10000&gt;;<br \/>\n\t\t\t\t\tread-only;<br \/>\n\t\t\t\t};<\/p>\n<p>\t\t\t\tfactory: partition@40000 {<br \/>\n\t\t\t\t\tlabel = &#8220;factory&#8221;;<br \/>\n\t\t\t\t\treg = &lt;0x40000 0x10000&gt;;<br \/>\n\t\t\t\t\tread-only;<br \/>\n\t\t\t\t};<br \/>\n#8M SNOR = 8x1024x1024-0x50000=0x7b0000<br \/>\n#16M SNOR = 16x1024x1024-0x50000=0xfb0000<\/p>\n<p>\t\t\t\tpartition@50000 {<br \/>\n\t\t\t\t\tlabel = &#8220;firmware&#8221;;<br \/>\n\t\t\t\t\treg = &lt;0x50000 0x7b0000&gt;;<br \/>\n\t\t\t\t};<br \/>\n\t\t\t};<br \/>\n\t\t};<br \/>\n\t};<br \/>\n};<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4fee\u6539openwrt\/target\/linux\/ramips\/dts\/ \u4e0b\u9762\u5bf9\u5e94\u7684dts\u6587\u4ef6\uff1a \u4ee5\u4e0b\u9762\u8fd9\u4e2a\u6587\u4ef6\u4e3a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-2459","post","type-post","status-publish","format-standard","hentry","category-router"],"_links":{"self":[{"href":"http:\/\/www.51cos.com\/index.php?rest_route=\/wp\/v2\/posts\/2459","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.51cos.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.51cos.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.51cos.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.51cos.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2459"}],"version-history":[{"count":4,"href":"http:\/\/www.51cos.com\/index.php?rest_route=\/wp\/v2\/posts\/2459\/revisions"}],"predecessor-version":[{"id":2463,"href":"http:\/\/www.51cos.com\/index.php?rest_route=\/wp\/v2\/posts\/2459\/revisions\/2463"}],"wp:attachment":[{"href":"http:\/\/www.51cos.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2459"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.51cos.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2459"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.51cos.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}