{"id":146,"date":"2019-09-06T10:55:19","date_gmt":"2019-09-06T02:55:19","guid":{"rendered":"http:\/\/iqotom.com\/?p=146"},"modified":"2023-04-24T16:53:09","modified_gmt":"2023-04-24T08:53:09","slug":"%e4%bd%bf%e7%94%a8%e4%b8%b2%e5%8f%a3%e7%99%bb%e5%bd%95ubuntu","status":"publish","type":"post","link":"http:\/\/iqotom.com\/?p=146","title":{"rendered":"\u4f7f\u7528\u4e32\u53e3\u767b\u5f55Ubuntu"},"content":{"rendered":"\n<p> \u7535\u8111\u786c\u4ef6\uff1a<a href=\"http:\/\/www.qotom.com\">QOTOM<\/a> Q300P[<em>ubuntu<\/em>]\uff0cQ600P[<em>windows10<\/em>] <\/p>\n\n\n\n<p>Windows\u4e32\u53e3\u4f7f\u7528COM4<\/p>\n\n\n\n<p>Ubuntu\u4e32\u53e3\u4f7f\u7528\u7b2c\u4e00\u4e2a\/dev\/ttyS0\uff0c115200 baud 8n1<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"> \u914d\u7f6eGrub <\/h4>\n\n\n\n<ul><li> \u7f16\u8f91\/etc\/default\/grub\u5e76\u6dfb\u52a0\u4ee5\u4e0b\u4ee3\u7801\uff1a <\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">GRUB_CMDLINE_LINUX=\"console=tty0 console=ttyS0,115200\"\nGRUB_TERMINAL=\"console serial\"\nGRUB_SERIAL_COMMAND=\"serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1\"<\/code><\/pre>\n\n\n\n<ul><li> \u4fee\u6539\u5b8c\u6210\u540e\u7684\u4ee3\u7801\uff1a <\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\"> ...\n GRUB_DEFAULT=0\n #GRUB_TIMEOUT_STYLE=hidden\n GRUB_TIMEOUT=5\n GRUB_DISTRIBUTOR=`lsb_release -i -s 2> \/dev\/null || echo Debian`\n #GRUB_CMDLINE_LINUX_DEFAULT=\"quiet splash\"\n GRUB_CMDLINE_LINUX_DEFAULT=\"\"\n GRUB_CMDLINE_LINUX=\"console=tty0 console=ttyS0,115200\"\n\n # Uncomment to enable BadRAM filtering, modify to suit your needs\n # This works with Linux (no patch required) and with any kernel that obtains\n # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)\n #GRUB_BADRAM=\"0x01234567,0xfefefefe,0x89abcdef,0xefefefef\"\n\n # Uncomment to disable graphical terminal (grub-pc only)\n GRUB_TERMINAL=\"console serial\"\n GRUB_SERIAL_COMMAND=\"serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1\"\n ...<\/code><\/pre>\n\n\n\n<ul><li> \u66f4\u65b0grub <\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">sudo update-grub \u6216 sudo grub-mkconfig -o \/boot\/grub\/grub.cfg<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\"> \u4fee\u6539ttyS0\u914d\u7f6e\u6587\u4ef6 <\/h4>\n\n\n\n<ul><li> \u6dfb\u52a0ttyS0\u914d\u7f6e (\u5982\u679c\u4e0a\u9762\u7684\u65b9\u6cd5\u65e0\u6548\u5c31\u8bd5\u8bd5)<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">vim \/ect\/init\/ttyS0.conf\n# ttyS0 - getty\n#\n# This service maintains a getty on ttyS0 from the point the system is\n# started until it is shut down again.\n\nstart on stopped rc RUNLEVEL=[2345]\nstop on runlevel [!2345]\n\nrespawn\nexec \/sbin\/getty -L 115200 ttyS0 vt100<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\"> WIN10\u6d4b\u8bd5\u7ed3\u679c <\/h4>\n\n\n\n<p> \u4f7f\u7528putty\u8fdb\u884c\u4e32\u53e3\u8fde\u63a5<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"418\" src=\"http:\/\/iqotom.com\/wp-content\/uploads\/2019\/09\/ubuntu-option-serial-console-1024x418.png\" alt=\"\" class=\"wp-image-147\" srcset=\"http:\/\/iqotom.com\/wp-content\/uploads\/2019\/09\/ubuntu-option-serial-console-1024x418.png 1024w, http:\/\/iqotom.com\/wp-content\/uploads\/2019\/09\/ubuntu-option-serial-console-300x123.png 300w, http:\/\/iqotom.com\/wp-content\/uploads\/2019\/09\/ubuntu-option-serial-console-768x314.png 768w, http:\/\/iqotom.com\/wp-content\/uploads\/2019\/09\/ubuntu-option-serial-console.png 1084w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption>serial console<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u7535\u8111\u786c\u4ef6\uff1aQOTOM Q300P[ubuntu]\uff0cQ600P[windows10] Windows\u4e32\u53e3\u4f7f\u7528CO\u2026 <span class=\"read-more\"><a href=\"http:\/\/iqotom.com\/?p=146\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":148,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[19,16,18],"_links":{"self":[{"href":"http:\/\/iqotom.com\/index.php?rest_route=\/wp\/v2\/posts\/146"}],"collection":[{"href":"http:\/\/iqotom.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/iqotom.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/iqotom.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/iqotom.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=146"}],"version-history":[{"count":3,"href":"http:\/\/iqotom.com\/index.php?rest_route=\/wp\/v2\/posts\/146\/revisions"}],"predecessor-version":[{"id":1898,"href":"http:\/\/iqotom.com\/index.php?rest_route=\/wp\/v2\/posts\/146\/revisions\/1898"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/iqotom.com\/index.php?rest_route=\/wp\/v2\/media\/148"}],"wp:attachment":[{"href":"http:\/\/iqotom.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=146"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/iqotom.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=146"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/iqotom.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}