Embedded Linux low power use BusyBox to make Rtcwake timing wake system __linux

Source: Internet
Author: User

First, introduce Rtcwake

Rtcwake is a clock-wake Linux tool using the following methods:

http://blog.csdn.net/bulreed/article/details/19907691


Second, if your bin Usr/bin sbin usr/sbin do not rtcwake this tool to do.

Answer: Make Yourself a

Mock not a landlord dish, landlord found several genius solved this problem, the landlord is a piece of A7 board, of course, the kernel is also cropped,

File system is also done by themselves, found that the various bin directory is not rtcwake because the file system did not choose this,

or the BusyBox version of the file system is too low, not clear busybox can see the link to understand

http://blog.csdn.net/linuxarmsummary/article/details/12612269


Third, start to do their own rtcwake

Download busybox-1.20.2.tgz (the landlord is using this, if the higher version should also have no problem)

1. Decompression


2. Configure make Menuconfig-> Busybox settings->build Options


Select Build BusyBox as a static binary (the individual understands that you don't need other LIB support when you use this)

Here you can set the target platform of the cross-compilation tool chain cross Compiler prefix (also can be set in the terminal interface, set here, only need to enter "arm-linux-gnueabihf-" on it, very convenient. )


3. Tick Rtcwake:make menuconfig-> Linux System utilities->rtcwake


All right. Configuration End save Exit compilation.


4. Compile ~ Install

Make compilation

Make install Installation

After installation, a _install folder is produced under the BusyBox folder, which is the bin file in various bin directories.

Overwrite these files to the original Rootfs and burn to your board to use Rcwake.


Four, Test success:


Run: Use Rtcwake to suspend the system for 60 seconds after the memory starts



V. Problems encountered

Sometimes the system dies after the system is rtcwake, because this evil essence

Random:nonblocking Pool is initialized

and system printing level about according to the contents of this link to set up a bit better http://blog.csdn.net/pinganddu/article/details/51006461







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.