After a long time ago, I accidentally saw it again and recorded it for sharing.
Background:The SMS function is provided to the customer's Development System. The device used is the jindi serial port SMS cat. After the system is developed and released to the customer, it finds that the SMS cannot be sent out.
Cause:The system used during development is centos4, while the system installed for the customer is centos5. The default installation for centos5 is with the xen kernel, and the xen kernel occupies the serial port 1, as a result, other devices connected to serial 1 cannot work normally.
Solution:
1. When installing centos, choose not to install the xen kernel.
2. If the xen kernel has been installed, open the grup. conf file in the/boot/grup/path and add the startup Item:
# Grub. conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# Notice: You have a/boot partition. This means that
# All kernel and initrd paths are relative to/boot/, eg.
# Root (hd0, 0)
# Kernel/vmlinuz-version Ro root =/dev/volgroup00/logvol00
# Initrd-version.img/initrd
# Boot =/dev/hda
Default = 0
Timeout = 5
Splashimage = (hd0, 0)/GRUB/splash.xpm.gz
Hiddenmenu
Title centos (2.6.18-128. el5xen)
Root (hd0, 0)
Kernel/xen.gz-2.6.18-128. EL5
Module/vmlinuz-2.6.18-128.el5xen Ro root =/dev/volgroup00/logvol00 rhgb quiet xencons = tty
Module/initrd-2.6.18-128.el5xen.img
Title centos-base (2.6.18-128. EL5)
Root (hd0, 0)
Kernel/vmlinuz-2.6.18-128.el5 Ro root =/dev/volgroup00/logvol00 rhgb quiet
Initrd/initrd-2.6.18-128.el5.img
After the modification, the red font is added ).
# Grub. conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# Notice: You have a/boot partition. This means that
# All kernel and initrd paths are relative to/boot/, eg.
# Root (hd0, 0)
# Kernel/vmlinuz-version Ro root =/dev/volgroup00/logvol00
# Initrd-version.img/initrd
# Boot =/dev/hda
Default = 0
Timeout = 5
Splashimage = (hd0, 0)/GRUB/splash.xpm.gz
Hiddenmenu
Title centos (2.6.18-128. el5xen)
Root (hd0, 0)
Kernel/xen.gz-2.6.18-128. EL5Console = VGA xencons = ttys16 console = ttys16
Module/vmlinuz-2.6.18-128.el5xen Ro root =/dev/volgroup00/logvol00 rhgb quiet xencons = tty
Module/initrd-2.6.18-128.el5xen.img
Title centos-base (2.6.18-128. EL5)
Root (hd0, 0)
Kernel/vmlinuz-2.6.18-128.el5 Ro root =/dev/volgroup00/logvol00 rhgb quiet
Initrd/initrd-2.6.18-128.el5.img
After modification, restart the server to cancel the occupation of the serial port.