{"id":42503,"date":"2023-09-27T06:23:53","date_gmt":"2023-09-26T22:23:53","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=42503"},"modified":"2023-09-27T06:23:53","modified_gmt":"2023-09-26T22:23:53","slug":"gxpzckcs","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/42503.html","title":{"rendered":"Grub\u4e0b\u914d\u7f6e\u4e32\u53e3\u53c2\u6570"},"content":{"rendered":"
Grub\u662fLinux\u7cfb\u7edf\u4e2d\u5e38\u7528\u7684\u5f15\u5bfc\u7a0b\u5e8f\uff0c\u5b83\u53ef\u4ee5\u5728\u7cfb\u7edf\u542f\u52a8\u65f6\u8bbe\u7f6e\u548c\u66f4\u6539\u7cfb\u7edf\u53c2\u6570\uff0c\u5176\u4e2d\u5305\u62ec\u4e32\u53e3\u53c2\u6570\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u5728Grub\u4e0b\u914d\u7f6e\u4e32\u53e3\u53c2\u6570\uff0c\u4ee5\u6b63\u786e\u4f7f\u7528\u4e32\u53e3\u901a\u4fe1\u3002<\/p>\n
\u9996\u5148\uff0c\u9700\u8981\u786e\u5b9a\u4e32\u53e3\u7684\u53c2\u6570\uff0c\u5305\u62ec\u6ce2\u7279\u7387\u3001\u6570\u636e\u4f4d\u3001\u505c\u6b62\u4f4d\u548c\u6821\u9a8c\u4f4d\u7b49\uff0c\u8fd9\u4e9b\u53c2\u6570\u53ef\u4ee5\u5728\u786c\u4ef6\u8bbe\u7f6e\u4e2d\u627e\u5230\u3002\u4e00\u822c\u6765\u8bf4\uff0c\u6ce2\u7279\u7387\u8bbe\u7f6e\u4e3a9600\uff0c\u6570\u636e\u4f4d\u8bbe\u7f6e\u4e3a8\u4f4d\uff0c\u505c\u6b62\u4f4d\u8bbe\u7f6e\u4e3a1\u4f4d\uff0c\u6821\u9a8c\u4f4d\u8bbe\u7f6e\u4e3a\u65e0\u3002<\/p>\n
\u786e\u5b9a\u4e86\u4e32\u53e3\u53c2\u6570\u540e\uff0c\u5c31\u53ef\u4ee5\u5728Grub\u4e0b\u8bbe\u7f6e\u76f8\u5e94\u7684\u53c2\u6570\u4e86\u3002\u9996\u5148\uff0c\u9700\u8981\u8fdb\u5165Grub\u7684\u547d\u4ee4\u884c\u6a21\u5f0f\uff0c\u53ef\u4ee5\u5728\u7cfb\u7edf\u542f\u52a8\u65f6\u6309\u4e0b\u201cc\u201d\u952e\u8fdb\u5165Grub\u547d\u4ee4\u884c\u6a21\u5f0f\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6eGrub\u7684\u5f15\u5bfc\u9879\u6765\u8fdb\u5165Grub\u547d\u4ee4\u884c\u6a21\u5f0f\u3002<\/p>\n
\u5728Grub\u547d\u4ee4\u884c\u6a21\u5f0f\u4e0b\uff0c\u53ef\u4ee5\u4f7f\u7528\u201cserial\u201d\u547d\u4ee4\u6765\u8bbe\u7f6e\u4e32\u53e3\u53c2\u6570\u3002serial\u547d\u4ee4\u683c\u5f0f\u5982\u4e0b\uff1a<\/p>\n
serial –unit=n –speed=baud –parity=parity –word=bits –stop=bits<\/p>\n
\u5176\u4e2d\uff0cn\u8868\u793a\u4e32\u53e3\u53f7\uff0cbaud\u8868\u793a\u6ce2\u7279\u7387\uff0cparity\u8868\u793a\u6821\u9a8c\u4f4d\uff0cbits\u8868\u793a\u6570\u636e\u4f4d\u548c\u505c\u6b62\u4f4d\u3002\u6839\u636e\u4e0a\u9762\u786e\u5b9a\u7684\u53c2\u6570\uff0c\u53ef\u4ee5\u8f93\u5165\u5982\u4e0b\u547d\u4ee4\uff1a<\/p>\n
serial –unit=0 –speed=9600 –parity=none –word=8 –stop=1<\/p>\n
\u8f93\u5165\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528\u201cboot\u201d\u547d\u4ee4\u6765\u542f\u52a8\u7cfb\u7edf\uff0c\u6b64\u65f6\u4e32\u53e3\u53c2\u6570\u5df2\u7ecf\u8bbe\u7f6e\u5b8c\u6210\u3002<\/p>\n
\u5728Grub\u4e0b\u914d\u7f6e\u4e32\u53e3\u53c2\u6570\u65f6\uff0c\u9700\u8981\u6ce8\u610f\u53c2\u6570\u7684\u4e00\u81f4\u6027\uff0c\u5373Grub\u4e0b\u7684\u53c2\u6570\u5fc5\u987b\u4e0e\u786c\u4ef6\u8bbe\u7f6e\u7684\u53c2\u6570\u5b8c\u5168\u4e00\u81f4\uff0c\u5426\u5219\u4e32\u53e3\u901a\u4fe1\u5c06\u65e0\u6cd5\u6b63\u5e38\u5de5\u4f5c\u3002<\/p>\n
Grub\u6709\u4e0d\u540c\u7684\u7248\u672c\uff0c\u6bcf\u4e2a\u7248\u672c\u7684Grub\u90fd\u6709\u4e0d\u540c\u7684\u547d\u4ee4\uff0c\u56e0\u6b64\u5728Grub\u4e0b\u914d\u7f6e\u4e32\u53e3\u53c2\u6570\u65f6\uff0c\u9700\u8981\u6ce8\u610fGrub\u7684\u7248\u672c\uff0c\u4ee5\u4fbf\u4f7f\u7528\u6b63\u786e\u7684\u547d\u4ee4\u3002<\/p>\n
Grub\u662fLinux\u7cfb\u7edf\u4e2d\u5e38\u7528\u7684\u5f15\u5bfc\u7a0b\u5e8f\uff0c\u53ef\u4ee5\u5728\u7cfb\u7edf\u542f\u52a8\u65f6\u8bbe\u7f6e\u548c\u66f4\u6539\u7cfb\u7edf\u53c2\u6570\uff0c\u5176\u4e2d\u5305\u62ec\u4e32\u53e3\u53c2\u6570\u3002<\/strong>\u672c\u6587\u4ecb\u7ecd\u4e86\u5982\u4f55\u5728Grub\u4e0b\u914d\u7f6e\u4e32\u53e3\u53c2\u6570\uff0c\u4ee5\u6b63\u786e\u4f7f\u7528\u4e32\u53e3\u901a\u4fe1\u3002\u9996\u5148\uff0c\u9700\u8981\u786e\u5b9a\u4e32\u53e3\u7684\u53c2\u6570\uff0c\u7136\u540e\u5728Grub\u547d\u4ee4\u884c\u6a21\u5f0f\u4e0b\uff0c\u4f7f\u7528\u201cserial\u201d\u547d\u4ee4\u6765\u8bbe\u7f6e\u4e32\u53e3\u53c2\u6570\uff0c\u6700\u540e\u4f7f\u7528\u201cboot\u201d\u547d\u4ee4\u6765\u542f\u52a8\u7cfb\u7edf\u3002\u5728Grub\u4e0b\u914d\u7f6e\u4e32\u53e3\u53c2\u6570\u65f6\uff0c\u9700\u8981\u6ce8\u610f\u53c2\u6570\u7684\u4e00\u81f4\u6027\uff0c\u4ee5\u53caGrub\u7684\u7248\u672c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" Grub\u662fLinux\u7cfb\u7edf\u4e2d\u5e38\u7528\u7684\u5f15\u5bfc\u7a0b\u5e8f\uff0c\u5b83\u53ef\u4ee5\u5728\u7cfb\u7edf\u542f\u52a8\u65f6\u8bbe\u7f6e\u548c\u66f4\u6539\u7cfb\u7edf\u53c2\u6570\uff0c\u5176\u4e2d\u5305\u62ec\u4e32\u53e3\u53c2\u6570\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u5728Grub\u4e0b\u914d\u7f6e\u4e32\u53e3\u53c2\u6570\uff0c\u4ee5\u6b63\u786e\u4f7f\u7528\u4e32\u53e3\u901a\u4fe1\u3002Gr<\/p>\n","protected":false},"author":1,"featured_media":4132,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"categories":[36],"tags":[69],"class_list":["post-42503","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-cktx"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/42503","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/comments?post=42503"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/42503\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/4132"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=42503"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=42503"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=42503"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}