# make menuconfig\n<\/code><\/pre>\n<\/p>\n\u8fd9\u79cd\u90fd\u662f\u5185\u6838\u4e2d\u7684\u6a21\u5757\uff0c\u6211\u4eec\u968f\u610f\u9009\u4e00\u9879\u8fdb\u884c\u89e3\u6790\uff1a\u9009DeviceDrivers\uff08\u8bbe\u5907\u9a71\u52a8\uff09<\/p>\n
\u4f1a\u89c1\u5230\u56fe\u4e0a<\/p>\n
1.\u5e26*\u53f7\u7684\u884c\uff0c\u662f\u9009\u4e2d\u7684\u610f\u601d\uff0c\u4e5f\u5c31\u662flinux\u7cfb\u7edf\u7f16\u7a0b\uff0c\u6211\u4eec\u5c06\u628a\u8fd9\u4e2a\u9a71\u52a8\u6a21\u5757\u7f16\u8bd1\u5230\u5185\u6838\u4e2d\u53bb\u3002<\/p>\n
2.\u5e26M\u53f7\u7684\u610f\u8bc6\u662f\uff0c\u5b83\u5c06\u4ee5\u4e00\u4e2a\u6a21\u5757\u5f62\u5f0f\u5b58\u5728\u3002<\/p>\n
<\/p>\n
3.\u4e3a\u7a7a[]\u7684\uff0c\u610f\u601d\u662f\u6ca1\u6709\u4f7f\u7528\u6b64\u529f\u80fd\u3002<\/p>\n
\uff08\u5b9e\u9645\u5728\u4e00\u4e9b\u505a\u5d4c\u5165\u5f0f\u7cfb\u7edf\u5de5\u4f5c\u4e2d\uff0c\u4f1a\u4f9d\u7167\u987b\u8981\uff0c\u9009\u62e9\u6781\u5c11\u7684\u529f\u80fd\uff0c\u9009\u7684\u8d8a\u5c11\uff0c\u542f\u52a8\u8d8a\u5feb\uff0c\u4e5f\u4f1a\u76f8\u5bf9\u7a33\u5b9a\uff09<\/p>\n
\u8fd9\u513f\u6211\u4eec\u4e0d\u505a\u6539\u52a8linux\u5185\u6838\u5f00\u53d1\u5305<\/strong>\uff0c\u9ed8\u8ba4\u5373\u53ef\uff0c\u9000\u51fa\u540e\u7ea2\u65d7linux\u4e0b\u8f7d\uff0c\u5728\u5f53\u524d\u76ee\u5f55\u4e0b\uff0c\u5f00\u59cb\u7f16\u8bd1<\/p>\n\n
#make && make bzImage (\u65f6\u95f4\u8f83\u957f\u53ef\u4ee5\uff0c\u6839\u636e\u81ea\u5df1\u7cfb\u7edf\u914d\u7f6e\u60c5\u51b5\u53ef\u4ee5\u9009\u7528 # make -j4) #\u7f16\u8bd1\u5b89\u88c5\n#make modules_install #\u52a0\u8f7d\u6a21\u5757\n#make install #\u6700\u540e\u4e00\u6b65\u5b89\u88c5kernel\n<\/code><\/pre>\n<\/p>\n\u8fd9\u513f\u5b8c\u6210\u540e\uff0c\u4f1a\u624b\u52a8\u5e2e\u6211\u4eec\u66f4\u6539\u597dgrub\u6587\u4ef6\u4fe1\u606f\uff0c\u4e0d\u7528\u81ea\u5df1\u518d\u505a\u66f4\u6539\u4e86<\/p>\n
\n
#reboot\n<\/code><\/pre>\n<\/p>\n\u91cd\u542f\u673a\u5668\u5373\u53ef<\/p>\n
===============================================<\/p>\n
\u5982\u9700\u5236\u505aRPM\u5185\u6838\u5b89\u88c5\u5305\uff0c\u5c31\u4e0d\u987b\u8981\u8fd0\u884c\u4ee5\u4e0aMake\u6b65\u9aa4\uff0c\u89e3\u538b\u540e\u6b65\u5165\u76ee\u5f55<\/p>\n
\n
# make rpm \uff08\u65f6\u95f4\u8f83\u957f\uff09\n<\/code><\/pre>\n<\/p>\n\u5b8c\u6210\u540e\uff0crpm\u5305\u751f\u6210\u4f4d\u7f6e\uff08\u901a\u5e38\u4f1a\u5728\/root\/\u4e0b\uff09\uff1a<\/p>\n
\n
# cd \/root\/rpmbuild\/\n<\/code><\/pre>\n<\/p>\n\u4e0d\u662f\u672c\u7ae0\u5185\u5bb9\uff0c\u8ffd\u5fc6\u8865\u5145\uff1a\u5de5\u4f5c\u4e2d\u987b\u8981\u5feb\u901f\u5e03\u7f72\uff0c\u4f46\u662f\u5f04\u6210rpm\u5305\uff0c\u4f7f\u7528fpm\u6765\u5f04\u6210rpm\u5305<\/p>\n
##fpm-sdir-trpm-n\u5305\u540d-v1.16.1-d\u2018\u90e8\u7f72\u987b\u8981\u7684\u4f9d\u8d56\u5305\uff0c\u4ee5\u201c,\u201d\u53f7\u9694\u5f00\u6dfb\u5165\u2019-f--post-install\u914d\u7f6e\u811a\u672c\u542f\u52a8\u811a\u672c<\/p>\n
\u6ca1\u6709\u5904\u7406\u4e0d\u4e86\u7684\u95ee\u9898\uff0c\u53ea\u6709\u4e0d\u80fd\u5904\u7406\u7684\u4eba<\/p>\n","protected":false},"excerpt":{"rendered":"
linux\u5185\u6838\u5b98\u7f51\u4e0b\u8f7d\uff1a\u81ea\u884c\u4fee\u6539\u65b9\u62ec\u53f7\u91cc\u7684\u5185\u6838\u7248\u672c\u53f7\uff0c\u6539\u540e\u53bb\u6389\u65b9\u62ec\u53f7\uff0c\u53ea\u8981\u6709\u5c31\u53ef\u4ee5\u76f4\u63a5\u4e0b\u8f7d\u3002163\u7684\u6e90\u7801\u5305\u56fe\u5f62\u5316\u754c\u9762\u67e5\u770b\u7f16\u8bd1\u5185\u5bb9\uff0c\u53ef\u8c03\u8bd5\u5e26*\u53f7\u7684\u884c\uff0c\u662f\u9009\u4e2d\u7684\u610f\u601d\uff0c\u4e5f\u5c31\u662f\uff0c\u6211\u4eec\u5c06\u628a\u8fd9\u4e2a\u9a71\u52a8\u6a21\u5757\u7f16\u8bd1\u5230\u5185\u6838\u4e2d\u53bb\u3002\u8fd9\u91cc\u6211\u4eec\u4e0d\u505a\u6539\u52a8\uff0c\u9ed8\u8ba4\u5373\u53ef\uff0c\u9000\u51fa\u540e\uff0c\u5728\u5f53\u524d\u76ee\u5f55\u4e0b\uff0c\u5f00\u59cb\u7f16\u8bd1\u5982\u9700\u5236\u4f5cRPM\u5185\u6838\u5b89\u88c5\u5305\uff0c\u5c31\u4e0d\u9700\u8981\u8fd0\u884c\u4ee5\u4e0aMake\u6b65\u9aa4\uff0c\u89e3\u538b\u540e\u8fdb\u5165\u76ee\u5f55\u5b8c\u6210\u540e\uff0crpm\u5305\u751f\u6210\u4f4d\u7f6e\uff08\u4e00\u822c\u4f1a\u5728\/root\/\u4e0b\uff09\uff1a<\/p>\n","protected":false},"author":1,"featured_media":269874,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-269873","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-999"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/269873","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=269873"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/269873\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/269874"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=269873"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=269873"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=269873"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}