console serial configuration issue

Issues related to hardware problems
Post Reply
vlad2310
Posts: 2
Joined: 2023/02/18 11:25:01

console serial configuration issue

Post by vlad2310 » 2023/02/18 12:12:09

I have faced with problem to use serial port /dev/ttyS0 for console.
I try to add to grub: "console=tty0 console=ttyS0,115200",
system start boot but hangs :


[ 4.827094] Write protecting the kernel read-only data: 26624k
[ 4.832089] usb 1-6: New USB device found, idVendor=045e, idProduct=0040, bcdDevice= 3.00
[ 4.842143] usb 1-6: New USB device strings: Mfr=1, Product=3, SerialNumber=0
[ 4.849819] usb 1-6: Product: Microsoft 3-Button Mouse with IntelliEye(TM)
[ 4.857161] Freeing unused kernel image (text/rodata gap) memory: 2040K
[ 4.857241] usb 1-6: Manufacturer: Microsoft
[ 4.868725] Freeing unused kernel image (rodata/data gap) memory: 64K
[ 4.872108] input: Microsoft Microsoft 3-Button Mouse with IntelliEye(TM) as /devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:045E:0040.0003/input/input4
[ 4.886846] x86/mm: Checked W+X mappings: passed, no W+X pages found.
[ 4.890460] hid-generic 0003:045E:0040.0003: input,hidraw0: USB HID v1.10 Mouse [Microsoft Microsoft 3-Button Mouse with IntelliEye(TM)] on usb-0000:00:14.0-6/input0
[ 4.896563] Run /init as init process
[ 4.940552] systemd[1]: systemd 252-4.el9 running in system mode (+PAM +AUDIT +SELINUX -APPARMOR +IMA +SMACK +SECCOMP +GCRYPT +GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS -FIDO2 +IDN2 -IDN -IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY +P11KIT -QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD -BPF_FRAMEWORK +XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified)
[ 4.987133] systemd[1]: Detected architecture x86-64.
[ 4.992766] systemd[1]: Running in initrd.

Welcome to
35.388496] systemd[1]: Hostname set to <mt9012.local>.
;31mCentOS Strea[ 35.473360] systemd[1]: Queued start job for default target Initrd Default Target.
m 9 dracut-057-2[ 35.482832] systemd[1]: Created slice Slice /system/systemd-hibernate-resume.
1.git20230214.el
================================================


from [ 4.992766] systemd[1]: Running in initrd.
System boot very slow.

If I change "console=tty0 console=ttyS0,115200", to "console=ttyS0,115200 "console=tty0 ",
system boot and on monitor I get user prompt but on serial terminal not

[ 7.281570] systemd[1]: systemd-journald.service: Scheduled restart job, restart counter is at 1.
[ 7.291577] systemd[1]: Created slice Slice /system/getty.
[ 7.298600] systemd[1]: Created slice Slice /system/modprobe.
[ 7.305900] systemd[1]: Created slice Slice /system/serial-getty.
[ 7.313505] systemd[1]: Created slice Slice /system/sshd-keygen.
[ 7.321030] systemd[1]: Created slice Slice /system/systemd-fsck.
[ 7.328650] systemd[1]: Created slice User and Session Slice.
[ 7.335821] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[ 7.345202] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ 7.354655] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[ 7.366251] systemd[1]: Reached target Local Encrypted Volumes.
[ 7.373608] systemd[1]: Stopped target Switch Root.
[ 7.379791] systemd[1]: Stopped target Initrd File Systems.
[ 7.386671] systemd[1]: Stopped target Initrd Root File System.
[ 7.393931] systemd[1]: Reached target Local Integrity Protected Volumes.
[ 7.402146] systemd[1]: Reached target Path Units.
[ 7.408323] systemd[1]: Reached target Slice Units.
[ 7.414558] systemd[1]: Reached target Local Verity Protected Volumes.
[ 7.422927] systemd[1]: Listening on Device-mapper event daemon FIFOs.
[ 7.442259] systemd[1]: Listening on LVM2 poll daemon socket.
[ 7.449432] systemd[1]: multipathd control socket was skipped because of an unmet condition check (ConditionPathExists=/etc/multipath.conf).
[ 7.465535] systemd[1]: Listening on Process Core Dump Socket.
[ 7.472827] systemd[1]: Listening on initctl Compatibility Named Pipe.
[ 7.482363] systemd[1]: Listening on udev Control Socket.
[ 7.489523] systemd[1]: Listening on udev Kernel Socket.
[ 7.497326] systemd[1]: Activating swap /dev/mapper/cs_mt9012-swap...
[ 7.507133] Adding 6119420k swap on /dev/mapper/cs_mt9012-swap. Priority:-2 extents:1 across:6119420k SSFS
[ 7.507141] systemd[1]: Mounting Huge Pages File System...
[ 7.526695] systemd[1]: Mounting POSIX Message Queue File System...
[ 7.535570] systemd[1]: Mounting Kernel Debug File System...
[ 7.543794] systemd[1]: Mounting Kernel Trace File System...
[ 7.554215] systemd[1]: Starting Create List of Static Device Nodes...
[ 7.563439] systemd[1]: Starting Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling...
[ 7.577345] systemd[1]: Starting Load Kernel Module configfs...
[ 7.586300] systemd[1]: Starting Load Kernel Module drm...
[ 7.594726] systemd[1]: Starting Load Kernel Module fuse...
[ 7.603929] systemd[1]: Starting Read and set NIS domainname from /etc/sysconfig/network...
[ 7.613922] systemd[1]: systemd-fsck-root.service: Deactivated successfully.
[ 7.621888] systemd[1]: Stopped File System Check on Root Device.
[ 7.629618] systemd[1]: Stopped Journal Service.
[ 7.637727] systemd[1]: Starting Journal Service...
[ 7.646817] systemd[1]: Starting Load Kernel Modules...
[ 7.653632] ACPI: bus type drm_connector registered
[ 7.655163] systemd[1]: Starting Generate network units from Kernel command line...
[ 7.669831] systemd[1]: Starting Remount Root and Kernel File Systems...
[ 7.678232] systemd[1]: Repartition Root Disk was skipped because no trigger condition checks were met.
[ 7.690495] systemd[1]: Starting Coldplug All udev Devices...
[ 7.702115] systemd[1]: Activated swap /dev/mapper/cs_mt9012-swap.
[ 7.710724] systemd[1]: Started Journal Service.
[ 7.752550] systemd-journald[599]: Received client request to flush runtime journal.
[ 7.946287] resource sanity check: requesting [mem 0xfdfff75c-0xfe00175b], which spans more than pnp 00:07 [mem 0xfd6f0000-0xfdffffff]
[ 7.959430] caller pmc_core_probe+0x9c/0x210 [intel_pmc_core] mapping multiple BARs
[ 7.967686] intel_pmc_core INT33A1:00: Assuming a default substate order for this platform
[ 7.978107] intel_pmc_core INT33A1:00: initialized
[ 8.130517] EDAC MC0: Giving out device to module igen6_edac controller Intel_client_SoC MC#0: DEV 0000:00:00.0 (INTERRUPT)
[ 8.142839] EDAC igen6: v2.5
[ 8.171960] intel-lpss 0000:00:10.0: enabling device (0000 -> 0002)
[ 8.191189] intel-lpss 0000:00:10.1: enabling device (0000 -> 0002)
[ 8.210136] intel-lpss 0000:00:15.0: enabling device (0004 -> 0006)
[ 8.217407] idma64 idma64.2: Found Intel integrated DMA 64-bit
[ 8.232121] mei_me 0000:00:16.0: enabling device (0000 -> 0002)
[ 8.236229] intel-lpss 0000:00:15.2: enabling device (0004 -> 0006)
[ 8.246136] idma64 idma64.3: Found Intel integrated DMA 64-bit
[ 8.265233] intel-lpss 0000:00:19.0: enabling device (0004 -> 0006)
[ 8.272574] idma64 idma64.4: Found Intel integrated DMA 64-bit
[ 8.272834] i801_smbus 0000:00:1f.4: SPD Write Disable is set
[ 8.284967] intel-lpss 0000:00:19.2: enabling device (0000 -> 0002)
[ 8.285503] i801_smbus 0000:00:1f.4: SMBus using PCI interrupt
[ 8.287106] idma64 idma64.5: Found Intel integrated DMA 64-bit
[ 8.306856] dw-apb-uart.5: ttyS4 at MMIO 0x4010005000 (irq = 33, base_baud = 6250000) is a 16550A
[ 8.322723] i2c i2c-0: 1/2 memory slots populated (from DMI)
[ 8.329442] intel-lpss 0000:00:1e.0: enabling device (0000 -> 0002)
[ 8.336713] input: PC Speaker as /devices/platform/pcspkr/input/input7
[ 8.336968] idma64 idma64.6: Found Intel integrated DMA 64-bit
[ 8.351497] dw-apb-uart.6: ttyS5 at MMIO 0x4010006000 (irq = 16, base_baud = 6250000) is a 16550A
[ 8.372045] asus_wmi: ASUS WMI generic driver loaded
[ 8.377690] intel-lpss 0000:00:1e.1: enabling device (0000 -> 0002)
[ 8.385170] idma64 idma64.7: Found Intel integrated DMA 64-bit
[ 8.391968] dw-apb-uart.7: ttyS6 at MMIO 0x4010007000 (irq = 17, base_baud = 6250000) is a 16550A
[ 8.412736] asus_wmi: Initialization: 0xffffffff
[ 8.418109] asus_wmi: BIOS WMI version: -1.255
[ 8.423507] asus_wmi: SFUN value: 0xffffffff
[ 8.428445] asus-nb-wmi asus-nb-wmi: Detected BFPI, not ASUSWMI, use DSTS
[ 8.436211] asus_wmi: Failed to set throttle thermal policy (retval): 0xffffffff
[ 8.444554] input: Asus WMI hotkeys as /devices/platform/asus-nb-wmi/input/input8
[ 8.454343] ACPI: battery: new extension: ASUS Battery Extension
[ 8.506843] iTCO_vendor_support: vendor-support=0
[ 8.539616] iTCO_wdt iTCO_wdt: Found a Intel PCH TCO device (Version=6, TCOBASE=0x0400)
[ 8.556719] iTCO_wdt iTCO_wdt: initialized. heartbeat=30 sec (nowayout=0)
[ 8.570161] intel_rapl_common: Found RAPL domain package
[ 8.576152] intel_rapl_common: Found RAPL domain core
[ 8.800319] Console: switching to colour dummy device 80x25
[ 8.806086] i915 0000:00:02.0: vgaarb: deactivate vga console
[ 8.812030] i915 0000:00:02.0: [drm] Using Transparent Hugepages
[ 8.820378] i915 0000:00:02.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=io+mem:owns=io+mem
[ 8.842383] i915 0000:00:02.0: [drm] Finished loading DMC firmware i915/icl_dmc_ver1_09.bin (v1.9)
[ 9.500008] i915 0000:00:02.0: [drm] failed to retrieve link info, disabling eDP
[ 9.547268] [drm] Initialized i915 1.6.0 20201103 for 0000:00:02.0 on minor 0
[ 9.555552] ACPI: video: [Firmware Bug]: ACPI(GFX0) defines _DOD but not _DOS
[ 9.563559] ACPI: video: Video Device [GFX0] (multi-head: yes rom: no post: no)
[ 9.571323] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input9
[ 9.611654] fbcon: i915drmfb (fb0) is primary device
[ 9.656021] Console: switching to colour frame buffer device 240x67
[ 9.687196] i915 0000:00:02.0: [drm] fb0: i915drmfb frame buffer device
[ 9.852294] XFS (dm-2): Mounting V5 Filesystem
[ 9.852754] XFS (mmcblk0p2): Mounting V5 Filesystem
[ 9.931336] XFS (dm-2): Ending clean mount
[ 9.981700] XFS (mmcblk0p2): Ending clean mount
[ 17.955940] PKCS7: Message signed outside of X.509 validity window

[ 19.931235] igc 0000:05:00.0 enp5s0: NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX/TX

Kernel 5.14.0-2[ 20.045001] IPv6: ADDRCONF(NETDEV_CHANGE): enp5s0: link becomes ready
67.t1.el9.x86_64





Serial ports detected correct:
cat /proc/tty/driver/serial
serinfo:1.0 driver revision:
0: uart:16550A port:000003F8 irq:4 tx:51 rx:0 RTS|DTR
1: uart:16550A port:000002F8 irq:3 tx:0 rx:0 CD
2: uart:unknown port:000003E8 irq:4
3: uart:unknown port:000002E8 irq:3
4: uart:16550A mmio:0x4010005000 irq:33 tx:0 rx:0
5: uart:16550A mmio:0x4010006000 irq:16 tx:0 rx:0
6: uart:16550A mmio:0x4010007000 irq:17 tx:0 rx:0
7: uart:unknown port:00000000 irq:0


stty -a -F /dev/ttyS0
speed 115200 baud; rows 24; columns 80; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; discard = ^O; min = 1; time = 0;
-parenb -parodd -cmspar cs8 hupcl -cstopb cread clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon -ixoff -iuclc -ixany -imaxbel iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
-isig -icanon -iexten -echo -echoe -echok -echonl -noflsh -xcase -tostop -echoprt -echoctl -echoke -flusho -extproc

Post Reply