Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何配置串口 #7

Open
shipujin opened this issue Feb 5, 2024 · 0 comments
Open

如何配置串口 #7

shipujin opened this issue Feb 5, 2024 · 0 comments

Comments

@shipujin
Copy link
Member

shipujin commented Feb 5, 2024

配置:

  1. grub.cfg系统内核启动项后添加启动参数:
 loglevel=7 console=ttyS0,115200
  1. 修改系统配置文件/etc/inittab,添加波特率
--- /etc/inittab.org    2024-02-03 08:28:33.116000000 +0800
+++ /etc/inittab        2024-01-31 08:58:54.676000000 +0800
@@ -57,7 +57,7 @@ c5:12345:respawn:/sbin/agetty 38400 tty5
 c6:12345:respawn:/sbin/agetty 38400 tty6 linux
 
 # Local serial lines:
-#s1:12345:respawn:/sbin/agetty -L ttyS0 9600 vt100
+s1:12345:respawn:/sbin/agetty -L ttyS0 115200,9600 vt100
 #s2:12345:respawn:/sbin/agetty -L ttyS1 9600 vt100
 
 # Dialup lines:

参考文档:
slackware minicom: https://docs.slackware.com/howtos:general_admin:serial_console

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant