Hardware can enter the system, the first is to test the stability of memory, need a memory test tool.
Generally choose Memtester This Linux software, as follows: http://pyropus.ca/software/memtester/
Unzip the Memtester to android/external/(this article has the Android SDK for the default reader)
--------------------------------------------------------------------------------------------------------------- --------------
Transplantation:
1: Replace "CC" (usually in the first line of the file) with "ARM-LINUX-ANDROIDEABI-GCC" in Conf-ld and CONF-CC files respectively
2: Write android.mk, code as follows:
1 Local_path: = $ (call my-dir)2include $ (clear_vars)3 local_src_files: = memtester.c tests.c 4 local_module: = memtester
5 $ (Local_path) 6 include $ (build_executable)
Line 1: Return the current path; line 2: Clear the local_xxx variable; line 3: Compile the module source file;
Line 4: The module outputs the name of Line 5: The additional C header file, and the production executable (also the library, depending on the variable).
Line 1 2 3 4 6 is the most basic template for android.mk.
This migration is complete!
--------------------------------------------------------------------------------------------------------------- --------------
Compile:
CD Android,source build/envsetup.sh,lunch the corresponding platform
mmm android/external/memtester-xxx ("xxx" for your memtester version)
Eventually generate the executable file in/system/bin memtester!
Porting Memtester to the Android platform