Android Transplant IIC device driver notes

Source: Internet
Author: User

I started porting this driver from 2015.7.23, and after looking for information on the Internet, I decided to use the Linux down-drive architecture to complete the drive porting.

The whole step was based on the http://blog.csdn.net/rickbeyond/article/details/7838313 of this great God's blog, and my bitter pit of death began ....

The first day of the afternoon stuck in the third step, that is, the compilation of the Android.mk, the initial report is the following error

Make: * * * No rule to do target '/iic.c', needed by ' out/target/product/generic/obj/shared_libraries/ IIC.DEFAULT_INTERMEDIATES/IIC.O'.  Stop.

The great gods ' blogs were all over me, no! Paralysis of this error on my own met Ah!!!! Well, then in the blog Park and Csdn forum post, until today no one knows, perhaps know, but disdain to answer me ... However, finally to the afternoon before work to find their own half a day to find a statement did not (as follows), so add. And I'm really not going to report this mistake.

Local_shared_libraries: = Liblog libcutils

But!!!!!!! But changed a mistake, said can not find I2c-dev.h header file, open the path, found it seems to have no, OK, then I copy a good, do not know right, hehe

But in the end it really generated. So files, oops crouching groove! This mistake I met the person who is destined! He also did not solve, stuck here, hehe, but that guy directly changed the road, to write a separate driver to go, OK, this pit Daddy road and only left me a person ....

Attach the link to the question yesterday: http://q.cnblogs.com/q/74082/

Finally, the next day ... That is July 24, have to sigh the day is really fast ah!

Well, yes, it's starting to be happy today. Write the second part of the code, using JNI to add the service provider in the application framework layer, and finally!!! update-api!!!!

Lying trough, sure enough, wrong!!!!!!!

1 device/samsung/multimedia/codecs/video/android.mk:Device/samsung/multimedia/codecs/video /exynos4/mfc/exynos5/Android.mk:No Such file or directory2 device/samsung/multimedia/utils/csc/ ANDROID.MK:device/samsung/multimedia/utils/csc/exynos4/exynos5/Android.mk:No such file or Directory3 Make: * * * No rule to make target ' device/samsung/multimedia/utils/csc/exynos4/exynos5/ Android.mk'.  Stop.

Said no file, in fact, the path is not, OK, check android.mk

1Local_path: = $ (Call my-dir)2 3 include $ (clear_vars)4 5Ifeq ($ (filter- outexynos4,$ (Target_board_platform)),)6Include $ (local_path)/exynos4/android.mk7 endif8 9Ifeq ($ (filter- outexynos5,$ (Target_board_platform)),)TenInclude $ (local_path)/exynos5/android.mk One endif A     

The error said in line 10th, enter (Local_path)/exynos5/android.mk this inside, according to the author's meaning should be device/samsung/multimedia/codecs/video/exynos5/ ANDROID.MK Ah!!!

How can it be device/samsung/multimedia/codecs/video/exynos4/mfc/exynos5/android.mk??!!!! Lying trough, so looked at the next device/samsung/multimedia/codecs/video/exynos4/android.mk, said is again into the mfc/android.mk, and then no, eh Ah! No, that is to say the current path is stuck under the DEVICE/SAMSUNG/MULTIMEDIA/CODECS/VIDEO/EXYNOS4/MFC Ah!!! Well, I take it for granted that Locat_path is in this property!!!

So!!! I started messing with the device/samsung/multimedia/codecs/video/android.mk and changed it.

1Local_path: = $ (Call my-dir)2 3Local_cur_path: =$ (Local_path)4 include $ (clear_vars)5 6Ifeq ($ (filter- outexynos4,$ (Target_board_platform)),)7Include $ (local_path)/exynos4/android.mk8 endif9 TenIfeq ($ (filter- outexynos5,$ (Target_board_platform)),) OneInclude $ (local_cur_path)/exynos5/android.mk A endif -     

Add a temporary variable to save the current path, then make Update-api, oops, incredibly past!!! But!!! There's so much in the gutter, but ....

1 build/core/base_rules.mk:166: * * * DEVICE/SAMSUNG/MULTIMEDIA/CODECS/VIDEO/EXYNOS5/MFC_V4L2: MODULE. TARGET. Static_libraries.libsecmfcapi already defined by DEVICE/SAMSUNG/MULTIMEDIA/CODECS/VIDEO/EXYNOS4/MFC.  Stop.

What the hell, what the hell ah ah Ah!!! Module ID to be unique??? I don't have a single module ID. Well, who let you be eldest brother, I go to find Debug.

Android Transplant IIC device driver notes

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.