NOTE: Enable Linux Serial Console
Overview:
在Single-Board/伺服器MB進行開發/測試時, 不一定都具備影像(VGA)輸出, 這時就透過console port進行指令的輸入, 並監控系統輸出
Do configuration on /etc/default/grub
command: sudo vim /etc/default/grub
原始的設定如下:
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
在GRUB_CMDLINE_LINUX=""
中加入console輸出, 經由ttyS0, Baud值為115200
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
接著使用以下指令更新grub
command: sudo update-grub
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
完成後, 重啟即可
Ref.
https://zhuanlan.zhihu.com/p/447014333
https://www.linusakesson.net/programming/tty/index.php
https://blog.csdn.net/weixin_43863487/article/details/107951863