Porting Memtester to the Android platform

Source: Internet
Author: User

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

Related Article

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.