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