[Learning Development Board] share---iTOP-4412 transplant can

Source: Internet
Author: User

First copy Schindler to provide the libcanjni.tar.gz compression package to the android source code "itop4412_ics/device/samsung/ Common"directory, then use the"tar-xvf libcanjni.tar.gz"command to extract the compressed package as shown in:

Then modify the "device/samsung/smdk4x12/device.mk" file, found in this file

"device/samsung/smdk4x12/ft5x0x_ts.idc:system/usr/idc/ft5x0x_ts.idc," added under his

Add the following content:

Product_copy_files + = \

device/samsung/common/libcanjni/canset.sh:system/bin/canset.sh \

Device/samsung/common/libcanjni/canset:system/bin/canset \

As shown in (highlighted section):

And then save and exit each other.

Next modify the file "device/samsung/smdk4x12/conf/init.smdk4x12.rc", in this file add

Start The services of the can device, such as (highlighted section , Note must be added on the "onboot" above) as shown:

Then save and exit, and then copy the "cantest" test to the "packages/apps" directory, as shown in:

After the modification is complete, go back to the android source directory, execute the "./build_android.sh" script, start compiling android, As shown in the following:

Once the compilation is complete, re-burn the generated "ramdisk-uboot.img" and "system.img" mirrors, and then install the available CAN the test

The program "cantest.apk" (Schindler also provides the source of the test program:cantest), can be tested .

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

[Learning Development Board] share---iTOP-4412 transplant can

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.