{"id":149,"date":"2013-10-10T20:19:13","date_gmt":"2013-10-10T12:19:13","guid":{"rendered":"http:\/\/www.datarelab.com\/blog\/?p=149"},"modified":"2013-10-10T20:19:13","modified_gmt":"2013-10-10T12:19:13","slug":"%e5%a6%82%e4%bd%95%e6%8f%90%e5%8f%96linux%20kernel%e7%9a%84%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/www.datarelab.com\/blog\/Technical_literature\/149.html","title":{"rendered":"\u5982\u4f55\u63d0\u53d6Linux Kernel\u7684\u914d\u7f6e\u6587\u4ef6"},"content":{"rendered":"<p>\u5982\u679c\u4f60\u662f\u4e00\u4e2a\u559c\u6b22\u7f16\u8bd1\u5185\u6838\u7684\u72c2\u4eba\uff0c\u540c\u65f6\u4e5f\u662f\u7ecf\u5e38\u5fd8\u8bb0\u5c06\u9ed8\u8ba4\u7684.config\u6587\u4ef6\u5907\u4efd\u7684\u61d2\u5bb6\u4f19\uff0c\u90a3\u4e48\u4e0b\u9762\u7684\u65b9\u6cd5\u5c06\u4f1a\u4f7f\u4f60\u7684\u5185\u6838\u914d\u7f6e\u5de5\u4f5c\u53d8\u5f97\u66f4\u8f7b\u677e\uff0c\u4ecelinux 2.6\u5f00\u59cb\u5185\u6838\u63d0\u4f9b\u4e86\u4e00\u79cd\u5c06.config\u9644\u52a0\u5230\u6620\u50cf\u6587\u4ef6\u7684\u65b9\u6cd5\uff0c\u901a\u8fc7\u8fd9\u79cd\u65b9\u6cd5\uff0c\u5185\u6838\u914d\u7f6e\u8005\u53ef\u4ee5\u4e0d\u5fc5\u5907\u4efd\u5f53\u524d\u7684.config\u6587\u4ef6\uff0c\u800c\u662f\u5728\u9700\u8981\u7684\u65f6\u5019\u76f4\u63a5\u4ece\u5185\u6838\u6620\u50cf\u4e2d\u63d0\u53d6.config\u6587\u4ef6\u3002\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<p>1. \u914d\u7f6e\u5185\u6838<br \/>\n1.1 make menuconfig\uff1b<br \/>\n1.2 \u9009\u62e9\u5982\u4e0b\uff1a<br \/>\nGeneral setup ---&gt;<br \/>\n&lt; *&gt; Kernel .config support<br \/>\n[*] Enable access to .config through \/proc\/config.gz<br \/>\n1.3 make uImage<br \/>\n2. \u63d0\u53d6\u914d\u7f6e\u6587\u4ef6<br \/>\n2.1 \u65b9\u6cd5\u4e00\uff0c\u4eceuImage\u6587\u4ef6\u4e2d\u63d0\u53d6\uff1a<br \/>\n2.1.1 \u6253\u5f00\u63a7\u5236\u53f0\uff0ccd\u8fdb\u5165\u5230linux\u6e90\u7801\u6811\u6839\u76ee\u5f55\uff0c\u6211\u7684\u4e3a\uff1a\/root\/Desktop\/easy2440\/linux-2.6.30.9-easy2440<br \/>\n2.1.2 \u8f93\u5165\u5982\u4e0b\u547d\u4ee4\uff1ascripts\/extract-ikconfig arch\/arm\/boot\/uImage &gt; config<br \/>\n2.1.3 \u547d\u4ee4\u6267\u884c\u5b8c\u540e\uff0c\u5c06\u4f1a\u5728linux\u6e90\u7801\u6811\u6839\u76ee\u5f55\u4e0b\u9762\u751f\u6210config\u6587\u4ef6\uff1b<br \/>\n2.1.4 config\u6587\u4ef6\u5373\u4e3a\u6211\u4eec\u9700\u8981\u7684\u5185\u6838\u914d\u7f6e\u6587\u4ef6\uff0c\u53ef\u4ee5\u5c06\u5176\u66ff\u4ee3.config\u6587\u4ef6\u3002<br \/>\n2.2 \u65b9\u6cd5\u4e8c\uff0c\u4ece\u5f00\u53d1\u677f\u7684\/proc\/config.gz\u4e2d\u63d0\u53d6\uff1a<br \/>\n2.2.1 \u5c06\u65b0\u751f\u6210\u7684uImage\u6587\u4ef6\u4e0b\u8f7d\u5230\u5f00\u53d1\u677f\uff1b<br \/>\n2.2.2 \u51c6\u5907\u4e32\u53e3\u63a7\u5236\u53f0\uff0c\u542f\u52a8\u5f00\u53d1\u677f\uff1b<br \/>\n2.2.3 \u5f00\u53d1\u677f\u6b63\u5e38\u542f\u52a8\u540e\uff0c\u5728\u63a7\u5236\u53f0\u8f93\u5165\u547d\u4ee4\uff1acat \/proc\/config.gz | gzip -d &gt; \/home\/config<br \/>\n2.2.4 \u547d\u4ee4\u6267\u884c\u5b8c\u540e\uff0c\u5c06\u4f1a\u5728\/home\u76ee\u5f55\u4e0b\u751f\u6210config\u6587\u4ef6<br \/>\n2.2.5 config\u6587\u4ef6\u5373\u4e3a\u6211\u4eec\u9700\u8981\u7684\u5185\u6838\u914d\u7f6e\u6587\u4ef6\uff0c\u53ef\u4ee5\u5c06\u5176\u66ff\u4ee3.config\u6587\u4ef6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u679c\u4f60\u662f\u4e00\u4e2a\u559c\u6b22\u7f16\u8bd1\u5185\u6838\u7684\u72c2\u4eba\uff0c\u540c\u65f6\u4e5f\u662f\u7ecf\u5e38\u5fd8\u8bb0\u5c06\u9ed8\u8ba4\u7684.config\u6587\u4ef6\u5907\u4efd\u7684\u61d2\u5bb6\u4f19\uff0c\u90a3\u4e48\u4e0b\u9762\u7684\u65b9\u6cd5\u5c06\u4f1a\u4f7f\u4f60 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[14],"class_list":["post-149","post","type-post","status-publish","format-standard","hentry","category-Technical_literature","tag-linux"],"views":1700,"_links":{"self":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/posts\/149","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/comments?post=149"}],"version-history":[{"count":0,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/posts\/149\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/media?parent=149"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/categories?post=149"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/tags?post=149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}