{"id":256191,"date":"2022-11-20T09:40:52","date_gmt":"2022-11-20T01:40:52","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=256191"},"modified":"2022-11-03T20:41:53","modified_gmt":"2022-11-03T12:41:53","slug":"debian-makeinstall-linuxkernel-61rc2","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/debian-makeinstall-linuxkernel-61rc2.html","title":{"rendered":"Debian\u7f16\u8bd1\u5b89\u88c5\u6700\u65b0\u7684Linux kernel 6.1.0-rc3"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u6ca1\u6709\u7f16\u8bd1\u8fc7Linux kernel\u7684Linux\u8fd0\u7ef4\u5de5\u4f5c\u662f\u4e0d\u5b8c\u6574\u7684<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"<\/p>\n

\u5b89\u88c5\u5fc5\u8981\u7684\u5305<\/strong><\/div>\n
sudo apt update -y &&\r\nsudo apt install make gcc bc -y &&\r\nsudo apt install pkg-config libncurses-dev -y &&\r\nsudo apt install flex -y &&\r\nsudo apt install bison -y &&\r\nsudo apt-get install -y libncurses5-dev flex bison libssl-dev  &&\r\nsudo apt-get install -y wget curl &&\r\nsudo apt install fakeroot -y&&\r\napt-get install  dpkg-dev -y&&\r\napt install rsync kmod cpio -y &&\r\nsudo apt-get install libelf-dev -y<\/pre>\n
\u4e0b\u8f7d6.1rc2\u7684\u6e90\u7801\u5305<\/strong><\/div>\n
wget https:\/\/git.kernel.org\/torvalds\/t\/linux-6.1-rc2.tar.gz\r\ntar -xzvf linux-6.1-rc2.tar.gz\r\ncd linux-6.1-rc2\r\n<\/pre>\n

\u7f16\u8bd1\u5185\u6838\u9700\u8981\u786c\u76d850G\u5de6\u53f3\u7684\u7a7a\u95f4\uff01\uff01\uff01<\/code>
\n\u4ee5\u4e0b\u64cd\u4f5c\u5747\u5728 linux-6.1-rc2 \u76ee\u5f55\u4e2d\u8fdb\u884c\u3002<\/code><\/p>\n

\u751f\u6210.config\u6587\u4ef6<\/strong><\/div>\n

\u4f7f\u7528make menuconfig<\/code>\u547d\u4ee4\u751f\u6210.config\u6587\u4ef6\u3002\u4e0d\u660e\u767d\u88c1\u526a\u5185\u6838\u7684\u64cd\u4f5c\uff0c\u5728\u8fdb\u5165\u84dd\u8272\u80cc\u666f\u7684\u754c\u9762\u540e\uff0c\u76f4\u63a5\u53f3\u65b9\u5411\u952e\u9009\u62e9save\u5373\u53ef\uff0c\u4fdd\u6301\u9ed8\u8ba4\u914d\u7f6e\u3002\u7136\u540eexit\u9000\u51fa\u3002<\/p>\n

make menuconfig<\/pre>\n

\"\"<\/p>\n

\"\"<\/p>\n

\"\"<\/p>\n

\u4fee\u6539config\u6587\u4ef6\u62cd\u9519<\/strong><\/div>\n

\u8fd9\u6837\u9ed8\u8ba4\u751f\u6210\u7684.config\u6587\u4ef6\uff0c\u4f1a\u6709\u4e24\u4e2a\u53c2\u6570\u5e26\u503c\uff1aCONFIG_SYSTEM_TRUSTED_KEYS<\/code>\u548cCONFIG_MODULE_SIG_KEY<\/code>\u53ef\u80fd\u4f1a\u8ba9\u7f16\u8bd1\u51fa\u9519\u3002\u4fee\u6539.config\u6587\u4ef6\uff0c\u5c06\u8fd9\u4e24\u4e2a\u53c2\u6570\u7684\u503c\u7f6e\u7a7a\u3002<\/p>\n

CONFIG_SYSTEM_TRUSTED_KEYS<\/code><\/p>\n

\"\"<\/p>\n

\u5728\u627e\u4e00\u4e0bconfig\u4e2d\u7684\u8fd9\u4e2a\u914d\u7f6e\uff0c\u5982\u679c\u5b58\u5728\u201cCONFIG_SYSTEM_REVOCATION_KEYS\u201d\uff0c\u548c\u4e0a\u8ff0\u64cd\u4f5c\u4e00\u6837\u6e05\u7a7a\u503c\u3002
\nCONFIG_SYSTEM_REVOCATION_KEYS=\"debian\/canonical-revoked-certs.pem\"<\/code>
\n\"\"<\/p>\n

<\/article>\n
<\/div>\n
<\/div>\n
<\/div>\n
\n
\u5f00\u59cb\u7f16\u8bd1<\/strong><\/div>\n<\/div>\n
\n
sudo make -j8<\/pre>\n<\/div>\n
\"\"<\/div>\n
\n
\n
sudo make modules_install\r\nsudo make install<\/pre>\n
\"\"<\/div>\n<\/article>\n
\"\"<\/div>\n<\/div>\n
\"\"<\/div>\n
\"\"<\/div>\n
<\/div>\n
\"\"<\/div>\n
\u5236\u4f5cdeb\u5305<\/strong><\/div>\n
make -j12 deb-pkg<\/pre>\n
\n
\n
\u4e4b\u540e\u4f1a\u518d\u4e0a\u5c42\u76ee\u5f55\u751f\u6210 \u4e09\u4e2adeb\u5305\uff0c\u5728\u5176\u4ed6Debian\u673a\u5668\u4e0a\u76f4\u63a5\u7528\u201c dpkg\u00a0 - i linux*\u201d \u6d3b\u7740\u201capt install .\/linux*.deb\u201d\u5b89\u88c5\u5373\u53ef<\/div>\n
\"\"<\/div>\n
\"\"<\/div>\n
\"\"<\/div>\n<\/article>\n<\/div>\n

\u8fd9\u4e2a\u662f\u6211\u7f16\u8bd1\u7684\u9002\u7528\u4e8edebian11\/ubuntu\u7684Linux kernel6.1\u7684deb\u5b89\u88c5\u5305\uff0chttps:\/\/www.123pan.com\/s\/8KbDVv-eC4JA \u3002\u76f4\u63a5\u5b89\u88c5\u91cd\u542f\u5c31\u53ef\u4ee5\u4f7f\u7528\u3002\u4e0d\u505a\u4efb\u4f55\u53ef\u9760\u6027\u4fdd\u8bc1\uff0c\u8bf7\u907f\u514d\u5728\u751f\u4ea7\u673a\u5668\u4e0a\u4f7f\u7528\u3002<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"

sudo apt update -y && sudo apt install make gcc […]<\/p>\n","protected":false},"author":362,"featured_media":256511,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-256191","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/256191","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\/362"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=256191"}],"version-history":[{"count":24,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/256191\/revisions"}],"predecessor-version":[{"id":256862,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/256191\/revisions\/256862"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/256511"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=256191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=256191"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=256191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}