{"id":64,"date":"2006-07-31T22:36:04","date_gmt":"2006-07-31T14:36:04","guid":{"rendered":"http:\/\/www.alextwl.idv.tw\/memo\/2006\/07\/31\/linux-serial-console\/"},"modified":"2011-03-28T19:12:11","modified_gmt":"2011-03-28T11:12:11","slug":"linux-serial-console","status":"publish","type":"post","link":"https:\/\/www.alextwl.idv.tw\/memo\/2006\/07\/linux-serial-console\/","title":{"rendered":"Linux Serial Console"},"content":{"rendered":"<p>\u6700\u8fd1\u70ba\u4e86\u6293 kernel \u7684\u5075\u932f\u8a0a\u606f\uff0c\u7531\u65bc\u592a verbose\uff0c\u5c24\u5176\u96e3\u64f7\u53d6\u958b\u6a5f\u8207\u95dc\u6a5f\u6642\u7684\u8a0a\u606f\uff0c\u9019\u6642\u624d\u767c\u73fe\u5230 Serial Console \u5be6\u5728\u662f\u597d\u7269&#8230;<\/p>\n<p>\u525b\u53bb\u93ae\u4e0a\u8cb7\u4e86\u4e00\u689dUSB\u8f49RS232 DB9\uff0c\u53e6\u5916<a href=\"http:\/\/en.wikipedia.org\/wiki\/Null_modem\">Null modem<\/a> \u7684\u7dda<acronym title=\"\u6211\u6307\u9109\u4e0b\u5730\u5340\">\u4e0d\u662f\u5f88\u5bb9\u6613\u8cb7\u5230<\/acronym>\uff0c\u53ef\u4ee5\u8cb7\u4e00\u689d\u666e\u901a\u7684DB9\u5ef6\u9577\u7dda\u4f86\u6539\u3002\u53ef\u53c3\u8003 <a href=\"http:\/\/www.loop-back.com\/null-mod.html\">Null Modem Cable Wiring Diagram<\/a> \u505a\u8df3\u7dda\u3002<\/p>\n<p>GRUB \u8a2d\u5b9a\u7684\u90e8\u5206\uff0c\u6211\u5728 menu.lst \u8a2d\u4e86 serial &#8211;unit=0 &#8211;speed=9600\uff0c\u7136\u5f8c\u8dd1 GRUB \u6642\u518d\u5f9e command line \u8f38\u5165 terminal serial (\u6216 terminal serial console\uff0c\u5982\u679c\u4e0d\u78ba\u5b9a Console \u7dda\u662f\u5426\u6709\u63a5\u597d)\u3002\u898b <a href=\"http:\/\/www.gnu.org\/software\/grub\/manual\/grub.html#Serial-terminal\">GNU GRUB Manual &#8211; Using GRUB via a serial line<\/a>\u3002<\/p>\n<p>\u53e6\uff0ckernel entry \u8981\u52a0\u4e0a console=tty0 console=ttyS0,9600 \u7b49\u53c3\u6578\uff0c\u958b\u6a5f\u8a0a\u606f\u624d\u6703\u9001\u7d66 Serial port\u3002<\/p>\n<p>Debian \u7684 \/etc\/inittab \u5df2\u7d93\u8a2d\u5b9a\u597d\u7d66 ttyS0 \u7528\u7684 getty\u3002\u53d6\u6d88\u8a3b\u89e3\u5373\u53ef\u3002<\/p>\n<blockquote><p>T0:23:respawn:\/sbin\/getty -L ttyS0 9600 vt100<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u70ba\u4e86\u6293 kernel \u7684\u5075\u932f\u8a0a\u606f\uff0c\u7531\u65bc\u592a verbose\uff0c\u5c24\u5176\u96e3\u64f7\u53d6\u958b\u6a5f\u8207\u95dc\u6a5f\u6642\u7684\u8a0a\u606f\uff0c\u9019\u6642\u624d\u767c\u73fe\u5230 Se [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[],"tags":[],"class_list":["post-64","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.alextwl.idv.tw\/memo\/wp-json\/wp\/v2\/posts\/64","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.alextwl.idv.tw\/memo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.alextwl.idv.tw\/memo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.alextwl.idv.tw\/memo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.alextwl.idv.tw\/memo\/wp-json\/wp\/v2\/comments?post=64"}],"version-history":[{"count":1,"href":"https:\/\/www.alextwl.idv.tw\/memo\/wp-json\/wp\/v2\/posts\/64\/revisions"}],"predecessor-version":[{"id":378,"href":"https:\/\/www.alextwl.idv.tw\/memo\/wp-json\/wp\/v2\/posts\/64\/revisions\/378"}],"wp:attachment":[{"href":"https:\/\/www.alextwl.idv.tw\/memo\/wp-json\/wp\/v2\/media?parent=64"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.alextwl.idv.tw\/memo\/wp-json\/wp\/v2\/categories?post=64"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.alextwl.idv.tw\/memo\/wp-json\/wp\/v2\/tags?post=64"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}