Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Where can I find source file of shutdown?  (Read 7529 times)

0 Members and 1 Guest are viewing this topic.

Stan Huang

    Topic Starter


    Beginner

    • Experience: Experienced
    • OS: Windows 7
    Where can I find source file of shutdown?
    « on: March 11, 2014, 08:11:50 PM »
    I setup a development environment of LTIB, which can build a complete Linux system, uImage. Now, my question is where I can find the source code of shutdown. My customer wants it.
    The target and development environment are both Ubuntu.

    Salmon Trout

    • Guest
    Re: Where can I find source file of shutdown?
    « Reply #1 on: March 12, 2014, 11:44:35 AM »
    You could Google 'shutdown source Linux' which will take you to pages like this...

    http://www.cs.fsu.edu/~baker/devices/lxr/http/source/linux/drivers/base/power/shutdown.c?v=2.6.11.8

    Or you could do some lateral thinking and ask on a Linux specific forum, like this one:

    http://ubuntuforums.org/showthread.php?t=721850





    Stan Huang

      Topic Starter


      Beginner

      • Experience: Experienced
      • OS: Windows 7
      Re: Where can I find source file of shutdown?
      « Reply #2 on: March 12, 2014, 10:09:07 PM »
      Thanks. But I might not say it very clearly. Your answer didn't fit my problem. I got Freescale's Ubuntu base source codes and patches from my customer. In initial versions, there is a bug from shutdown command. That's, "shutdown -r" or "shutdown -h" didn't work. In later versions, it works. Now, I would like to find the patches about this bug.

      I setup an LTIB environment which can build uImage from the source base and patches. I think in LTIB environment, I must be able to find shutdown.c and related codes which fixed the bug. But I failed to find them.

      What's the problem? Where can I find those source files in LTIB environment? Thanks.