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