{"id":92,"date":"2020-05-13T16:03:56","date_gmt":"2020-05-13T08:03:56","guid":{"rendered":"http:\/\/www.guger.top\/?p=92"},"modified":"2020-07-21T17:57:06","modified_gmt":"2020-07-21T09:57:06","slug":"%e9%87%8d%e6%9d%a5%e9%87%8d%e6%9d%a5","status":"publish","type":"post","link":"https:\/\/www.guger.top\/index.php\/2020\/05\/13\/%e9%87%8d%e6%9d%a5%e9%87%8d%e6%9d%a5\/","title":{"rendered":"\u91cd\u6765\u91cd\u6765\uff08\u4e00\uff09UBOOT\u90e8\u5206"},"content":{"rendered":"<p>\u7531\u4e8e\u70e7\u5199\u9a71\u52a8\u4e00\u76f4\u6709\u95ee\u9898\uff0c\u4e8e\u662f\u8be2\u95ee\u5ba2\u670d\uff0c\u7ed3\u679c\u95ee\u6211uboot\u70e7\u5199\u6b63\u786e\u4e48\u3002\u3002\u3002\u8001\u5e08\u4e5f\u5efa\u8bae\u6211\u91cd\u65b0\u7814\u7a76\u4e00\u4e0b\u8fd9\u4e2a\u90e8\u5206\uff0c\u6240\u4ee5\u53c8\u56de\u5934\u91cd\u65b0\u6765\u8fc7\u4e00\u6b21\u3002<\/p>\n<p>\u5148\u6536\u8d77\u4e86\u5b89\u88c5\u5305\u6267\u884c\u4e86sdk.clean\u6587\u4ef6\u7136\u540e\u9605\u8bfb\u4e86sdk.unpack\u6587\u4ef6\uff0c\u53d1\u73b0\u91cc\u9762\u6307\u5b9a\u4e86\u82af\u7247\u578b\u53f7\uff0c\u8fd8\u597d3519v101\u548c3516av200\u90fd\u662f\u5927\u5c0f\u6838\u8fd9\u90e8\u5206\u6ca1\u6709\u4ea7\u751f\u9519\u6f0f\u3002<\/p>\n<p>\u9700\u8981\u7f16\u8bd1uboot\u65f6\u7a81\u7136\u60f3\u8d77\u6765\u9700\u8981\u4fee\u6539reg_info.bin\u6587\u4ef6\u3002\u8fd9\u6b21\u6c89\u4e0b\u5fc3\u6765\u8ba4\u771f\u770b\u4e86\u4e00\u4e0b\u91cc\u9762\u7684xslm\u6587\u4ef6\uff0c\u91cc\u9762\u6807\u7b7e\u4e0d\u5c11\uff0c\u9700\u8981\u914d\u7f6e\u5e95\u5c42\u5bc4\u5b58\u5668\u7684\u503c\u3002\u800c\u4e14\u5728\u7ed9\u7684\u7f16\u8bd1uboot\u7684\u6587\u6863\u4e2d\u5f3a\u8c03<a href=\"https:\/\/www.guger.top\/wp-content\/uploads\/2020\/05\/Snipaste_2020-05-12_21-06-18.png\" alt=\"\u91cd\u6765\u91cd\u6765\uff08\u4e00\uff09UBOOT\u90e8\u5206\" title=\"\u91cd\u6765\u91cd\u6765\uff08\u4e00\uff09UBOOT\u90e8\u5206\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-93\" src=\"https:\/\/www.guger.top\/wp-content\/uploads\/2020\/05\/Snipaste_2020-05-12_21-06-18.png\" alt=\"\" width=\"708\" height=\"173\" srcset=\"https:\/\/www.guger.top\/wp-content\/uploads\/2020\/05\/Snipaste_2020-05-12_21-06-18.png 1308w, https:\/\/www.guger.top\/wp-content\/uploads\/2020\/05\/Snipaste_2020-05-12_21-06-18-300x73.png 300w, https:\/\/www.guger.top\/wp-content\/uploads\/2020\/05\/Snipaste_2020-05-12_21-06-18-1024x251.png 1024w, https:\/\/www.guger.top\/wp-content\/uploads\/2020\/05\/Snipaste_2020-05-12_21-06-18-768x188.png 768w\" sizes=\"auto, (max-width: 708px) 100vw, 708px\" \/><\/a><\/p>\n<p>\u4ed4\u7ec6\u67e5\u770b\u4e86\u677f\u5b50\u4e0a\u7684\u5185\u5b58\u4e1d\u5370\uff0c\u8fd9\u4e2a\u662fSEC 925 K4B2G16 46F BYMA \u53ef\u4ee5\u67e5\u8be2\u5230\u662f\u4e09\u661f\u7684\u5185\u5b58\u9897\u7c922G\u662fbit\u6240\u4ee5\u9664\u4ee58\u5c31\u662f\u5355\u9897256M\u7684\uff0c\u6b63\u53cd\u5171\u4e24\u7247\u5171\u8ba1512M<\/p>\n<p>\u80cc\u9762\u8fd8\u6709\u4e00\u4e2a\u5c0f\u8783\u87f9\u7684\u7f51\u7edc\u82af\u7247\uff0c\u662fRTL8201F\uff0c\u4f7f\u7528\u7684RMII\u534f\u8bae\uff0c\u6240\u4ee5\u5185\u5b58\u548c\u7f51\u53e3\u4e24\u90e8\u5206\u90fd\u9700\u8981\u4fee\u6539\u3002\uff08\u5b98\u65b9\u7ed9\u7684\u4f8b\u7a0b\u662f2G\uff0cRGMII\u534f\u8bae\u3002\uff09<\/p>\n<p>\u8fd9\u6b21\u77e5\u9053\u4e86\u82af\u7247\u578b\u53f7\u5c1d\u8bd5\u70e7\u5f55\u4e86\u4e00\u6b21\u8fd8\u662f\u65e0\u6cd5ping\u901a\uff0c\u6240\u4ee5\u4ece\u5934\u5f00\u59cb\u4fee\u6539\u3002<\/p>\n<p>\u53c2\u8003\u7f51\u4e0a\u8d44\u6599\u80af\u5b9a\u9700\u8981\u6539\u4e24\u90e8\u5206\uff1auboot\u5e95\u5c42\u9a71\u52a8\uff0cxlsm\u6587\u4ef6\u7684\u5f15\u811a\u914d\u7f6e\u3002<\/p>\n<p>\u7b2c\u4e00\u6b21\u5c1d\u8bd5\uff0c\u53c2\u8003\u7f51\u4e0a\u7684(\u5931\u8d25\uff09<\/p>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">\/Hi3519AV100_SDK_V2.0.1.0\/osdrv\/opensource\/uboot\/u-boot-2016.11\/include\/configs\/hi3519av100.h<\/code><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"c\">76 \/*Network configuration*\/\r\n77 #define CONFIG_PHY_GIGE\r\n78 #ifdef CONFIG_NET_HIGMACV300\r\n79\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 #define CONFIG_GMAC_NUMS\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1\r\n80\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 #define CONFIG_HIGMAC_PHY0_ADDR\u00a0\u00a0\u00a0\u00a0 1\r\n81\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 #define CONFIG_HIGMAC_PHY0_INTERFACE_MODE\u00a0 \u00a0 \u00a0 \u00a01 \/* rgmii 2, rmii 1*\/<\/pre>\n<p>\u540c\u65f6\u53d1\u73b0\u4e86\u8fd9\u4e2a\u6587\u4ef6\u4e2d\u5b58\u5728\u73af\u5883\u53d8\u91cf\u53ef\u4ee5\u987a\u4fbf\u4fee\u6539\u4e00\u4e0b<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"c\">#define CONFIG_BOOTCOMMAND \"bootm 0x82000000\"\r\n#define CONFIG_BOOTDELAY 1\r\n#define CONFIG_BOOTARGS \"mem=96M console=ttyAMA0,115200\"\r\n#define CONFIG_NETMASK 255.255.0.0 \/* talk on MY local net *\/\r\n#define CONFIG_IPADDR 192.168.124.75 \/* static IP I currently own *\/\r\n#define CONFIG_SERVERIP 192.168.124.17 \/* current IP of tftp server ip *\/\r\n#define CONFIG_ETHADDR 7C:FE:4E:02:17:4A\r\n#define CONFIG_BOOTFILE \"uImage\" \/* file to load *\/\r\n#define CONFIG_BAUDRATE 115200<\/pre>\n<p>\u7136\u540e\u4fee\u6539xlsm\u6587\u4ef6\uff0c\u8be5\u6587\u4ef6\u9700\u8981\u7528\u5b8f\u6240\u4ee5\u9700\u8981\u4f7f\u7528office\uff08\u9ad8\u4e8e2007\u7248\u672c\uff09<\/p>\n<p>multiplex\u4e0b\u4fee\u6539\u4ee5\u4e0b\u5bc4\u5b58\u5668\uff08\u8be5\u90e8\u5206\u7684\u5b9a\u4e49\u5728\/hardware\/chip\/*.xls\u6587\u4ef6\u4e2d\uff0c\u6ca1\u6709\u5728\u7528\u6237\u624b\u518c\u91cc\uff09<\/p>\n\n<table id=\"tablepress-1\" class=\"tablepress tablepress-id-1\" aria-labelledby=\"tablepress-1-name\">\n<tbody class=\"row-striping row-hover\">\n<tr class=\"row-1\">\n\t<td class=\"column-1\">muxctrl_reg93<\/td><td class=\"column-2\">0x174<\/td><td class=\"column-3\">0x2<\/td><td class=\"column-4\">0<\/td><td class=\"column-5\">write<\/td><td class=\"column-6\">31<\/td><td class=\"column-7\">0<\/td><td class=\"column-8\">0x0000000FD<\/td>\n<\/tr>\n<tr class=\"row-2\">\n\t<td class=\"column-1\">muxctrl_reg51<\/td><td class=\"column-2\">0xcc<\/td><td class=\"column-3\">0x1<\/td><td class=\"column-4\">0<\/td><td class=\"column-5\">write<\/td><td class=\"column-6\">31<\/td><td class=\"column-7\">0<\/td><td class=\"column-8\">0x0000000FD<\/td>\n<\/tr>\n<tr class=\"row-3\">\n\t<td class=\"column-1\">PERI_CRG51<\/td><td class=\"column-2\">0xcc<\/td><td class=\"column-3\">0x2<\/td><td class=\"column-4\">0<\/td><td class=\"column-5\">write<\/td><td class=\"column-6\">1<\/td><td class=\"column-7\">2<\/td><td class=\"column-8\">0x0000100D<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"tablepress-1-name\" class=\"tablepress-table-name tablepress-table-name-id-1\">\u7f51\u5361\u4fee\u6539\u7684\u5bc4\u5b58\u5668<\/h2>\n<!-- #tablepress-1 from cache -->\n<p>&nbsp;<\/p>\n<p>\u5927\u6982\u662f\u8fd9\u4e09\u4e2a\u4fee\u6539\u597d\u540e\uff0c\u5c31\u53ef\u4ee5generate binfile\u7136\u540e\u4f7f\u7528\u547d\u4ee4\u8fdb\u884c\u7f16\u8bd1\u3002<\/p>\n<p><a href=\"https:\/\/www.guger.top\/wp-content\/uploads\/2020\/05\/Snipaste_2020-05-13_15-43-16.png\" alt=\"\u91cd\u6765\u91cd\u6765\uff08\u4e00\uff09UBOOT\u90e8\u5206\" title=\"\u91cd\u6765\u91cd\u6765\uff08\u4e00\uff09UBOOT\u90e8\u5206\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-94 \" src=\"https:\/\/www.guger.top\/wp-content\/uploads\/2020\/05\/Snipaste_2020-05-13_15-43-16.png\" alt=\"\" width=\"542\" height=\"171\" srcset=\"https:\/\/www.guger.top\/wp-content\/uploads\/2020\/05\/Snipaste_2020-05-13_15-43-16.png 859w, https:\/\/www.guger.top\/wp-content\/uploads\/2020\/05\/Snipaste_2020-05-13_15-43-16-300x95.png 300w, https:\/\/www.guger.top\/wp-content\/uploads\/2020\/05\/Snipaste_2020-05-13_15-43-16-768x242.png 768w\" sizes=\"auto, (max-width: 542px) 100vw, 542px\" \/><\/a><\/p>\n<p>\u7136\u540e\u7f16\u8bd1\u8fdb\u53bb\u5931\u8d25\u4e86<\/p>\n<p>\u7b2c\u4e8c\u6b21<\/p>\n<p>\u4fee\u6539\u6e90\u7801<strong>\uff08\u4fee\u6539\u65f6\u949f\u9891\u7387\uff09<\/strong><\/p>\n<p>\u627ehigmacv300\u6587\u4ef6\u5939\u4e0b\u7684ctrl.c\u6587\u4ef6\u4e2d\u7684<\/p>\n<p><strong>void higmac_sys_init(void)<\/strong><\/p>\n<p>\u5c06<\/p>\n<p>&nbsp;<\/p>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"c\">v |= PHY_CLK_25M ;<\/code><\/p>\n<p>\u6539\u4e3a<\/p>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"c\">v |= PHY_CLK_50M ;<\/code><\/p>\n<p>\u91cd\u65b0\u7f16\u8bd1\u70e7\u5f55\uff0c\u5c31ping\u901a\u4e86\uff01\uff01\uff01(ping\u4e4b\u524d\u5e94\u5173\u95edwindows\u9632\u706b\u5899\uff0c\u5426\u5219\u4f1a\u5931\u8d25\u3002\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7531\u4e8e\u70e7\u5199\u9a71\u52a8\u4e00\u76f4\u6709\u95ee\u9898\uff0c\u4e8e\u662f\u8be2\u95ee\u5ba2\u670d\uff0c\u7ed3\u679c\u95ee\u6211uboot\u70e7\u5199\u6b63\u786e\u4e48\u3002\u3002\u3002\u8001\u5e08\u4e5f\u5efa\u8bae\u6211\u91cd\u65b0\u7814\u7a76\u4e00\u4e0b\u8fd9\u4e2a\u90e8\u5206\uff0c\u6240\u4ee5\u53c8\u56de\u5934\u91cd\u65b0\u6765\u8fc7\u4e00\u6b21\u3002 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":153,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":""},"categories":[21],"tags":[],"class_list":["post-92","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-21"],"_links":{"self":[{"href":"https:\/\/www.guger.top\/index.php\/wp-json\/wp\/v2\/posts\/92","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.guger.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.guger.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.guger.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.guger.top\/index.php\/wp-json\/wp\/v2\/comments?post=92"}],"version-history":[{"count":0,"href":"https:\/\/www.guger.top\/index.php\/wp-json\/wp\/v2\/posts\/92\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.guger.top\/index.php\/wp-json\/wp\/v2\/media\/153"}],"wp:attachment":[{"href":"https:\/\/www.guger.top\/index.php\/wp-json\/wp\/v2\/media?parent=92"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.guger.top\/index.php\/wp-json\/wp\/v2\/categories?post=92"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.guger.top\/index.php\/wp-json\/wp\/v2\/tags?post=92"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}