The redhat9 kernel cannot be shut down after replacement.

Source: Internet
Author: User
After the redhat9 kernel is replaced, it cannot be shut down to solve the problem. elder brother is a little dish, and master is drifting over ...... Background as this is not powerful, it takes more than an hour to compile linux2.6 (although it is simplified and the level is limited), so we have to temporarily change the kernel to 2.4, code learning is still using 2.6 (wait for some money to replace this... the redhat9 kernel cannot be shut down after replacement.
Brother is a little dish, master drifting ...... Background as this is not powerful, it takes more than an hour to compile linux2.6 (although it is simplified and the level is limited), so we have to temporarily change the kernel to 2.4, code learning still uses 2.6 (save some money for another book -_-#). Changed the platform to redhat9 and adopted the kernel version 2.4.37.11. The kernel only enables SMP on the basis of the original redhat9 Kernel. as a result, the power is not stopped,
When I saw this scene, I was confused. what should I do? The system has a problem )/~~ 1. first look at the boot log to find a clue. there is a log that comes to my sight. my god (apm is related to linux power management, which can be directly cut in) is a bit eye-catching. I have roughly understood the reason, how can this problem be solved? For Linux, the code is king. 2. search the code to find the relevant logs directly in the code. for example, I am a stupid user. haha if (smp_num_cpus> 1 )&&! Power_off &&! Smp) {printk (KERN_NOTICE "apm: disabled-APM is not SMP safe. \ n "); return-ENODEV;} I can see it at a glance. I have two CPUs. all power_off and smp are incorrect. I am looking for them. why? In apm_setup, if (strncmp (str, "smp", 3) = 0) {smp =! Invert;} if (strncmp (str, "power-off", 9) = 0) | (strncmp (str, "power_off", 9) = 0 )) power_off =! Invert; invert indicates whether the prefix no-and no _ are available _. 3. solve the problem by adding apm = on, power-off, smp to the startup parameters. the O (cost _ priority) O will be handled in ten minutes. haha ~

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.