Solve the Problem of serial port occupation by the xen kernel in centos5

Source: Internet
Author: User

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.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.