將 Debian 的開機 log 改到 RS232 顯示

一般的 pc linux 都是利用螢幕顯示所有資訊,如果要將訊息利用 RS232 顯示,該如何做?

Debian 利用 grub 做開機管理。所以要從 grub 下手。

3 個步驟:

1. Modify file containing grub configuration in Debian: /etc/default/grub


GRUB_CMDLINE_LINUX_DEFAULT="console=tty0 console=ttyS0,115200 n8"
GRUB_TERMINAL=serial
GRUB_SERIAL_COMMAND="serial --speed=
115200 --unit=0 --word=8 --parity=no --stop=1"

2. update-grub after change

3. edit /etc/inittab to allow logins over Serial Console

T0:23:respawn:/sbin/getty -L ttyS0 115200 vt100


reference:http://grindelsack.blogspot.tw/2011/06/debian6-with-grub2-and-serial.html

留言

這個網誌中的熱門文章

NMEA標準格式 -- GPS

網路 Transformer 的用途

cut,sed,awk 字串處理