{"id":103,"date":"2020-05-25T20:25:56","date_gmt":"2020-05-25T12:25:56","guid":{"rendered":"http:\/\/www.guger.top\/?p=103"},"modified":"2020-07-03T15:46:48","modified_gmt":"2020-07-03T07:46:48","slug":"%e6%9d%82%e4%b9%b1%e7%9a%84%e7%9f%a5%e8%af%86","status":"publish","type":"post","link":"https:\/\/www.guger.top\/index.php\/2020\/05\/25\/%e6%9d%82%e4%b9%b1%e7%9a%84%e7%9f%a5%e8%af%86\/","title":{"rendered":"\u6742\u4e71\u7684\u77e5\u8bc6"},"content":{"rendered":"<p>\u4eca\u5929\u4e1c\u897f\u6ca1\u5230\uff0c\u5199\u70b9\u4e1c\u897f\u6765\u56de\u987e\u4e00\u4e0b\u5427\u3002\u4e3b\u8981\u662f\u4e00\u4e9b\u57fa\u7840\u77e5\u8bc6\u3002\u4ec0\u4e48\u90fd\u6709\u51d1\u5408\u770b\u5427\u3002<\/p>\n<h2>\u4e00\u3001ddr\u7684rank\u548cbank<\/h2>\n<p>\u5185\u5b58\u9897\u7c92\u5728\u8fd9\u6b21\u9879\u76ee\u4e2d\u4e5f\u8be6\u7ec6\u7814\u7a76\u4e86\u4e00\u756a\uff0c\u56e0\u4e3a\u6d89\u53ca\u5230\u5e95\u5c42\u914d\u7f6e\u7b49\u95ee\u9898\u9047\u5230\u4e86\u8bb8\u591a\u4e13\u6709\u540d\u8bcd\u3002\u6545\u8bb0\u5f55\u4e00\u4e0b<\/p>\n<p>\u9996\u5148\u5c42\u7ea7\u5173\u7cfb\u662f\u8fd9\u6837\u7684<\/p>\n<p>[success]\u00a0channel\uff1eDIMM\uff1erank\uff1echip\uff1ebank\uff1erow\/column[\/success]<\/p>\n<p>\u65e0\u56fe\u65e0\u771f\u76f8\u4e0a\u56fe\uff0c\u5f15\u7528\u89c1\u6c34\u5370\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-105\" src=\"https:\/\/www.guger.top\/wp-content\/uploads\/2020\/05\/8f04a1f57fe07692327b9269ba484ce4-300x158.jpg\" alt=\"\" width=\"300\" height=\"158\" srcset=\"https:\/\/www.guger.top\/wp-content\/uploads\/2020\/05\/8f04a1f57fe07692327b9269ba484ce4-300x158.jpg 300w, https:\/\/www.guger.top\/wp-content\/uploads\/2020\/05\/8f04a1f57fe07692327b9269ba484ce4.jpg 640w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-106\" src=\"https:\/\/www.guger.top\/wp-content\/uploads\/2020\/05\/9db89369284749feaa291ef48931618d-300x169.jpg\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/www.guger.top\/wp-content\/uploads\/2020\/05\/9db89369284749feaa291ef48931618d-300x169.jpg 300w, https:\/\/www.guger.top\/wp-content\/uploads\/2020\/05\/9db89369284749feaa291ef48931618d.jpg 640w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-107\" src=\"https:\/\/www.guger.top\/wp-content\/uploads\/2020\/05\/93ec9064210ad7d3091dbf8569b680be-300x169.jpg\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/www.guger.top\/wp-content\/uploads\/2020\/05\/93ec9064210ad7d3091dbf8569b680be-300x169.jpg 300w, https:\/\/www.guger.top\/wp-content\/uploads\/2020\/05\/93ec9064210ad7d3091dbf8569b680be.jpg 640w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-108\" src=\"https:\/\/www.guger.top\/wp-content\/uploads\/2020\/05\/a7e04928ab16fb4cef18df7739f26c0f-300x169.jpg\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/www.guger.top\/wp-content\/uploads\/2020\/05\/a7e04928ab16fb4cef18df7739f26c0f-300x169.jpg 300w, https:\/\/www.guger.top\/wp-content\/uploads\/2020\/05\/a7e04928ab16fb4cef18df7739f26c0f.jpg 640w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>\u89e3\u91ca\uff1achannel\u662f\u901a\u9053\uff1a\u4e00\u4e2a\u901a\u9053\u4e0b\u53ef\u4ee5\u6709\u591a\u4e2aDIMM\u3002<\/p>\n<p>rank\u548cdimm\u7684\u533a\u522b\u5728\u4e8e\uff0c\u4e00\u4e2arank\u662f\u591a\u4e2achip\u6784\u6210\u7684\uff0c\u4e00\u4e2adimm\u4e0a\u53ef\u4ee5\u6709\u591a\u4e2arank\u3002rank\u662f\u6570\u636e\u4f4d\u6269\u5c55\u7684\u95ea\u5b58\u9897\u7c92\u6bcf\u7ec4\u7684\u7edf\u79f0\u3002<\/p>\n<p>\u4e00\u4e2achip\u5c31\u662f\u4e00\u4e2a\u95ea\u5b58\u9897\u7c92\uff0c\u5c31\u662f\u4e00\u4e2a\u82af\u7247\u3002\u4e00\u4e2achip\u4e2d\u5305\u542b\u591a\u7ec4bank\uff0c\u4e00\u4e2abank\u5c31\u662f\u4e00\u7ec4\u5355\u5143\u9635\u5217\u3002<\/p>\n<h2>\u4e8c\u3001mii\u3001rmii\u3001rgmii<\/h2>\n<p>&nbsp;<\/p>\n<h2>\u4e09\u3001dts\u6587\u4ef6\u6811<\/h2>\n<p>linux\u7684\u786c\u4ef6\u4f53\u7cfb\u63cf\u8ff0\u65b9\u5f0f\uff0c\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\u6765\u64cd\u7eb5\u786c\u4ef6<\/p>\n<h2>\u56db\u3001uboot\u548clinux \u8bfb\u5199\u5bc4\u5b58\u5668<\/h2>\n<p>uboot\u901a\u8fc7md\u548cmw\u547d\u4ee4\u64cd\u4f5c<\/p>\n<p>md [<span class=\"hljs-preprocessor\">.b<\/span>, <span class=\"hljs-preprocessor\">.w<\/span>, <span class=\"hljs-preprocessor\">.l<\/span>] address [<span class=\"hljs-preprocessor\"># of objects]<\/span><\/p>\n<p>b:8\u4f4d<br \/>\nw:16\u4f4d<br \/>\nl:32\u4f4d\uff08\u9ed8\u8ba4\uff09<\/p>\n<p>linux\u901a\u8fc7devmem\u64cd\u4f5c<\/p>\n<p>\u8bfb\u5bc4\u5b58\u5668\uff1adevmem + \u7269\u7406\u5730\u5740<\/p>\n<p>\u5199\u5bc4\u5b58\u5668\uff1adevmem + \u7269\u7406\u5730\u5740 + w +\u5199\u5165\u503c<\/p>\n<h2>\u4e94\u3001uClibc\u548cglibc\u7684\u533a\u522b<\/h2>\n<p>\u8be5\u90e8\u5206\u5f15\u7528\u81ea<a href=\"https:\/\/code.google.com\/archive\/p\/openwrt-for-embedded\/issues\/6\" target=\"_blank\"  rel=\"nofollow\" >\u8fd9\u91cc<\/a>\u7531\u4e8e\u4e0d\u65b9\u4fbf\u9605\u8bfb\uff0c\u6545\u4f5c\u5982\u4e0b\u8f6c\u8ff0\u3002<\/p>\n<blockquote><p>uClibc\u548cGlibc\u5e76\u4e0d\u76f8\u540c\uff0c\u4e24\u8005\u6709\u8bb8\u591a\u4e0d\u540c\u4e4b\u5904\uff0c\u800c\u4e14\u4ee5\u4e0b\u4e0d\u540c\u6709\u53ef\u80fd\u7ed9\u4f60\u5e26\u6765\u4e00\u4e9b\u95ee\u9898.<\/p>\n<p>1.uClibc\u6bd4Glibc\u5c0f\uff0c\u867d\u7136uClibc\u548cGlibc\u5728\u5df2\u6709\u7684\u63a5\u53e3\u4e0a\u662f\u517c\u5bb9\u7684\uff0c\u800c\u4e14\u91c7\u7528uClibc\u7f16\u8bd1\u5e94\u7528\u7a0b\u5e8f\u6bd4\u91c7\u7528Glibc\u7f16\u8bd1\u5e94\u7528\u7a0b\u5e8f\u8981\u66f4\u65b9\u4fbf\uff0c\u4f46\u662fuClibc\u5e76\u6ca1\u6709\u5305\u62ecGlibc\u4e2d\u7684\u6240\u6709\u63a5\u53e3\u5b9e\u73b0\uff0c\u56e0\u6b64\u6709\u4e9b\u5e94\u7528\u53ef\u80fd\u5728uClibc\u4e2d\u4e0d\u80fd\u7f16\u8bd1\u3002<br \/>\n2.uClibc\u5728\u53ef\u914d\u7f6e\u6027\u4e0a\u6bd4Glibc\u8981\u597d\u3002<br \/>\n3.uClibc\u5e76\u4e0d\u80fd\u4fdd\u8bc1\u53d1\u5e03\u7684\u5e93\u4e8c\u8fdb\u5236\u517c\u5bb9\u65e7\u7248\u672cuClibc\u5e93\u3002\u5f53\u4e00\u4e2a\u65b0\u7684\u7248\u672cuClibc\u5e93\u88ab\u53d1\u5e03\uff0c\u5219\u53ef\u80fd\u9700\u8981\u4e5f\u53ef\u80fd\u4e0d\u9700\u8981\u91cd\u65b0\u7f16\u8bd1\u5e94\u7528\u7a0b\u5e8f\u3002<br \/>\n4.\u5728Glibc\u4e2d\u8c03\u7528malloc(0)\uff0c\u5c06\u8fd4\u56de\u4e00\u4e2a\u6709\u6548\u7684\u6307\u9488\uff0c\u7136\u800c\u5728uClibc\u4e2d\u8c03\u7528malloc(0)\uff0c\u5219\u8fd4\u56deNULL\u6307\u9488\u3002\u6839\u636e\u5728SuSv3\u4e2d\u5173\u4e8emalloc(0)\u7684\u884c\u4e3a\u7684\u5b9a\u4e49\uff0c\u4e24\u4e2a\u5e93\u7684\u5b9e\u73b0\u90fd\u662f\u6b63\u786e\u7684\u3002\u5bf9\u4e8e\u8c03\u7528relloc(NULL,0)\uff0c\u4e24\u4e2a\u5e93\u7684\u5b9e\u73b0\u4e5f\u4e0d\u540c\u3002\u4e2a\u4eba\u611f\u89c9Glibc\u7684\u5982\u6b64\u5b9e\u73b0\u4e0d\u662f\u7279\u522b\u5b89\u5168\u3002 Glibc\u4e2dmalloc\u7684\u5b9e\u73b0\u53ef\u4ee5\u901a\u8fc7MALLOC_CHECK_ \u73af\u5883\u53d8\u91cf\u8c03\u8282\u3002\u8fd9\u4e2a\u65b9\u6cd5\u4e3b\u8981\u7528\u4e8emalloc\u8c03\u8bd5\u3002\u8fd9\u4e9b\u6269\u5c55\u7684malloc\u8c03\u8bd5\u7279\u6027\u5728uClibc\u4e2d\u662f\u4e0d\u53ef\u7528\u7684\u3002\u5728Linux\u4e0a\u6709\u8bb8\u591a\u6709\u4e9b\u7684malloc\u8c03\u8bd5\u529f\u80fd\u7684\u5e93(\u5982\uff1admalloc,electric fence,valgrind\u7b49)\u6bd4Glibc\u4e2d\u7684\u6269\u5c55\u7684malloc\u8c03\u8bd5\u529f\u80fd\u66f4\u597d\u7528\u3002\u56e0\u6b64uClibc\u4e2d\u53bb\u6389\u8fd9\u4e9b\u529f\u80fd\u7279\u6027\u5e76\u4e0d\u4f1a\u6709\u591a\u6253\u635f\u5931\u3002<br \/>\n5.uClibc\u6ca1\u6709\u63d0\u4f9b\u7528\u4e8e\u6570\u636e\u63a5\u53e3\u7684\u5e93(libdb)\u3002<br \/>\n6.uClibc\u4e0d\u652f\u6301NSS(\/lib\/libnss_*)\uff0c\u5728\u8fd9\u65b9\u9762Glibc\u66f4\u5bb9\u6613\u652f\u6301\u4e0d\u540c\u65b9\u5f0f\u7684\u8ba4\u8bc1\u548cDNS\u89e3\u6790\u3002uClibc\u4ec5\u4ec5\u652f\u6301\u91c7\u7528flat\u53e3\u4ee4\u6587\u4ef6\u6216\u8005shadow\u53e3\u4ee4\u6587\u4ef6\u5b58\u50a8\u6388\u6743\u4fe1\u606f\u3002\u5982\u679c\u9700\u8981\u6bd4\u8fd9\u4e9b\u66f4\u590d\u6742\u7684\u7684\u6388\u6743\uff0c\u53ef\u4ee5\u7f16\u8bd1\u5b89\u88c5pam\u3002<br \/>\n7.uClibc\u4e2d\u7684libresolv\u5e93\u4ec5\u4ec5\u662f\u4e00\u4e2a\u6869\u3002Glibc\u7684libresolv\u5e93\u4e2d\u7684\u90e8\u5206\u5e76\u4e0d\u662f\u5168\u90e8\u7684\u529f\u80fduClibc\u90fd\u63d0\u4f9b\uff0c\u8bb8\u591a\u51fd\u6570\u90fd\u6ca1\u6709\u5b9e\u73b0\u3002<br \/>\n8.\u63d0\u4f9b\u7f51\u7edc\u4fe1\u606f\u670d\u52a1\u652f\u6301(NIS)libnsl\u5e93(\u6700\u521d\u88ab\u79f0\u4e3a\u9ec4\u9875YP)\uff0c\u88abSUN\u6269\u5c55\u4e3a\u53d1\u660e\u4e3aRPC\u5e76\u7528\u4e8e\u7f51\u7edc\u5171\u4eabUnix\u53e3\u4ee4\u6587\u4ef6 \u3002\u4e2a\u4eba\u8ba4\u4e3aNIS\u662f\u4e00\u4e2a\u4ee4\u4eba\u538c\u6076\u7684\u4e1c\u897f\u5e76\u5e94\u8be5\u4f7f\u7528\u3002\u56e0\u6b64\uff0c\u5728\u5b9e\u73b0\u76f8\u540c\u7684\u529f\u80fd\u60c5\u51b5\u4e0b\u91c7\u7528ldap\u6bd4NIS\u66f4\u6709\u6548\u3002uClibc\u867d\u7136\u63d0\u4f9b\u4e00\u4e2a\u6869libnsl\uff0c\u4f46\u5e76\u4e0d\u652f\u6301NIS\u3002\u6211\u4eec\u56e0\u6b64\u4e5f\u4e0d\u63d0\u4f9b\u5728Glibc\u4e0b\u63d0\u4f9b\u7684\u4f4d\u4e8e\/usr\/include\/rpcsvc\u91cc\u7684\u5934\u6587\u4ef6\u3002<br \/>\n9.uClibc\u7684\u533a\u57df\u652f\u6301\u5e76\u4e0d\u662f100%\u7684\u5b8c\u5168\u3002\u6b63\u5728\u8fd9\u65b9\u9762\u52aa\u529b<br \/>\n10.uClibc\u7684\u6570\u636e\u529f\u80fd\u51fd\u6570\u5e93\u5185\u90e8\u4ec5\u4ec5\u652f\u6301long double\uff0c\u8bbe\u7f6e\u5bf9\u4e8elong double\u7684\u652f\u6301\u4e5f\u662f\u975e\u5e38\u6709\u9650\u3002\u4e0e\u6b64\u5bf9\u5e94\u7684\u53ea\u5b9e\u73b0\u4e86\u8f83\u5c11\u7684\u6570\u5b66\u51fd\u6570\u3002\u5982\u679c\u5e94\u7528\u7a0b\u5e8f\u91c7\u7528double\u7c7b\u578b\uff0c\u5219\u4f1a\u7a0b\u5e8f\u4f1a\u8fd0\u884c\u5f97\u8f83\u597d\u3002<br \/>\n11.uClibc\u7684libcrpt\u5e93\u4e0d\u652f\u6301\u53ef\u91cd\u5165crypt_r,setkey_r\u548cencrypt_r\uff0c\u56e0\u4e3a\u8fd9\u4e9b\u4e5f\u4e0d\u662fSuSv3\u6240\u89c4\u5b9a\u7684\u3002<br \/>\n12.uClibc\u76f4\u63a5\u91c7\u7528\u5185\u6838\u7684\u6570\u636e\u7c7b\u578b\u53bb\u5b9a\u4e49\u5927\u591a\u6570\u900f\u660e\u7684\u6570\u636e\u7c7b\u578b\u3002<br \/>\n13.uClibc\u652f\u6301\u91c7\u7528linux\u5185\u6838\u7ed3\u6784\u7279\u6709\u7684\u7ed3\u6784\u4f53\"struct stat\"\u3002<br \/>\n14.uClibc\u7684\u8fd0\u884c\u65f6\u5e93librt\u5f53\u524d\u7f3a\u5c11aio\u63a5\u53e3\u3001\u5168\u90e8\u7684\u65f6\u949f\u63a5\u53e3\u548c\u5171\u4eab\u5185\u5b58\u63a5\u53e3(\u4ec5\u4ec5\u5b9e\u73b0\u5b9a\u65f6\u5668\u63a5\u53e3\u548c\u6d88\u606f\u961f\u5217\u63a5\u53e3)<\/p><\/blockquote>\n<h2>\u4e94\u3001wordpress\u8f6c\u6362https<\/h2>\n<p>\u2460\u628a\u7533\u8bf7\u8bc1\u4e66\uff0c\u5c31\u7528\u514d\u8d39\u7684let's encrypt \u7533\u8bf7\u4e86\u8bc1\u4e66\u3002<\/p>\n<p>\u2461\u4fee\u6539\u56fe\u7247\u94fe\u63a5\u8fdb\u5165sql\u540e\u53f0\u9875\u9762\u6267\u884c<\/p>\n<p>sql\u8bed\u53e5<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\">UPDATE wp_posts SET post_content = replace(post_content, 'http:\/\/\u57df\u540d\/wp-content\/uploads','https:\/\/\u57df\u540d\/wp-content\/uploads');<\/pre>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"nginx\">server\r\n{\r\nlisten 80;\r\nserver_name www.guger.top guger.top;\r\nrewrite ^(.*)$ https:\/\/${server_name}$1 permanent;\r\n}\r\n<\/pre>\n<p>\u2463\u5982\u679c\u8fd8\u662f\u4e0d\u5b89\u5168\u5219\u68c0\u67e5\u662f\u5426\u5b58\u5728http\u94fe\u63a5\uff0c\u82e5\u5b58\u5728\u8fdb\u884c\u66f4\u6b63\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\u4e1c\u897f\u6ca1\u5230\uff0c\u5199\u70b9\u4e1c\u897f\u6765\u56de\u987e\u4e00\u4e0b\u5427\u3002\u4e3b\u8981\u662f\u4e00\u4e9b\u57fa\u7840\u77e5\u8bc6\u3002\u4ec0\u4e48\u90fd\u6709\u51d1\u5408\u770b\u5427\u3002 \u4e00\u3001ddr\u7684rank\u548cbank \u5185\u5b58\u9897\u7c92\u5728\u8fd9\u6b21\u9879\u76ee\u4e2d\u4e5f &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":""},"categories":[1],"tags":[],"class_list":["post-103","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.guger.top\/index.php\/wp-json\/wp\/v2\/posts\/103","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=103"}],"version-history":[{"count":0,"href":"https:\/\/www.guger.top\/index.php\/wp-json\/wp\/v2\/posts\/103\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.guger.top\/index.php\/wp-json\/wp\/v2\/media?parent=103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.guger.top\/index.php\/wp-json\/wp\/v2\/categories?post=103"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.guger.top\/index.php\/wp-json\/wp\/v2\/tags?post=103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}