How to modify compiling files to support a new camera?
2014-09-26 16:12
399 查看
I got a task for adding a new camera on msm8974 platform, so write something for further use.
Add user-space driver, in “device/yulong/common/coolpad.mk”, follow what other sensor do, for example,
libmmcamera_imx214 \
libmmcamera_imx214_R \
libmmcamera_ov13850 \
libmmcamera_ov13850_R \
Add chromatix libraries in “vendor/qcom/proprietary/common/config/device-vendor.mk”, see below,
#CONFIG_OV13850 START
MM_CAMERA += libchromatix_ov13850_common
MM_CAMERA += libchromatix_ov13850_default_video
MM_CAMERA += libchromatix_ov13850_foxconn_common
MM_CAMERA += libchromatix_ov13850_foxconn_default_video
MM_CAMERA += libchromatix_ov13850_foxconn_hfr_120fps
MM_CAMERA += libchromatix_ov13850_foxconn_hfr_60fps
MM_CAMERA += libchromatix_ov13850_foxconn_hfr_90fps
MM_CAMERA += libchromatix_ov13850_foxconn_preview
MM_CAMERA += libchromatix_ov13850_foxconn_snapshot
MM_CAMERA += libchromatix_ov13850_hfr_90fps
MM_CAMERA += libchromatix_ov13850_liveshot
MM_CAMERA += libchromatix_ov13850_preview
MM_CAMERA += libchromatix_ov13850_snapshot
MM_CAMERA += libchromatix_ov13850_R_common
MM_CAMERA += libchromatix_ov13850_R_default_video
MM_CAMERA += libchromatix_ov13850_R_foxconn_common
MM_CAMERA += libchromatix_ov13850_R_foxconn_default_video
MM_CAMERA += libchromatix_ov13850_R_foxconn_hfr_120fps
MM_CAMERA += libchromatix_ov13850_R_foxconn_hfr_60fps
MM_CAMERA += libchromatix_ov13850_R_foxconn_hfr_90fps
MM_CAMERA += libchromatix_ov13850_R_foxconn_preview
MM_CAMERA += libchromatix_ov13850_R_foxconn_snapshot
MM_CAMERA += libchromatix_ov13850_R_hfr_90fps
MM_CAMERA += libchromatix_ov13850_R_liveshot
MM_CAMERA += libchromatix_ov13850_R_preview
MM_CAMERA += libchromatix_ov13850_R_snapshot
#CONFIG_OV13850 END
Add kernel-space driver in “kernel/drivers/media/platform/msm/camera_v2/sensor/Makefile”
obj-$(CONFIG_OV13850_R) +=ov13850_R.o
Modify “kernel/arch/arm/configs/ msm8974_defconfig” for a new configuration.
CONFIG_OV13850_R=y
I want to remove old “.config” for compiling, but it’s strange that it isn’t in kernel folder, I find it in “/out/target/product/xxxxx(not disclose project)/obj/KERNEL_OBJ/.config”, but after remove such
file, it doesn’t work. I suppose to clean all the project and start a new compiling process, but the project doesn’t allow me to do, finally, I just simply modify the “kernel/drivers/media/platform/msm/camera_v2/sensor/Makefile”
obj-y += ov13850_R.o
Adding a new camera didn’t take much time if you follow other cameras that already exist in compiling chain.
Add user-space driver, in “device/yulong/common/coolpad.mk”, follow what other sensor do, for example,
libmmcamera_imx214 \
libmmcamera_imx214_R \
libmmcamera_ov13850 \
libmmcamera_ov13850_R \
Add chromatix libraries in “vendor/qcom/proprietary/common/config/device-vendor.mk”, see below,
#CONFIG_OV13850 START
MM_CAMERA += libchromatix_ov13850_common
MM_CAMERA += libchromatix_ov13850_default_video
MM_CAMERA += libchromatix_ov13850_foxconn_common
MM_CAMERA += libchromatix_ov13850_foxconn_default_video
MM_CAMERA += libchromatix_ov13850_foxconn_hfr_120fps
MM_CAMERA += libchromatix_ov13850_foxconn_hfr_60fps
MM_CAMERA += libchromatix_ov13850_foxconn_hfr_90fps
MM_CAMERA += libchromatix_ov13850_foxconn_preview
MM_CAMERA += libchromatix_ov13850_foxconn_snapshot
MM_CAMERA += libchromatix_ov13850_hfr_90fps
MM_CAMERA += libchromatix_ov13850_liveshot
MM_CAMERA += libchromatix_ov13850_preview
MM_CAMERA += libchromatix_ov13850_snapshot
MM_CAMERA += libchromatix_ov13850_R_common
MM_CAMERA += libchromatix_ov13850_R_default_video
MM_CAMERA += libchromatix_ov13850_R_foxconn_common
MM_CAMERA += libchromatix_ov13850_R_foxconn_default_video
MM_CAMERA += libchromatix_ov13850_R_foxconn_hfr_120fps
MM_CAMERA += libchromatix_ov13850_R_foxconn_hfr_60fps
MM_CAMERA += libchromatix_ov13850_R_foxconn_hfr_90fps
MM_CAMERA += libchromatix_ov13850_R_foxconn_preview
MM_CAMERA += libchromatix_ov13850_R_foxconn_snapshot
MM_CAMERA += libchromatix_ov13850_R_hfr_90fps
MM_CAMERA += libchromatix_ov13850_R_liveshot
MM_CAMERA += libchromatix_ov13850_R_preview
MM_CAMERA += libchromatix_ov13850_R_snapshot
#CONFIG_OV13850 END
Add kernel-space driver in “kernel/drivers/media/platform/msm/camera_v2/sensor/Makefile”
obj-$(CONFIG_OV13850_R) +=ov13850_R.o
Modify “kernel/arch/arm/configs/ msm8974_defconfig” for a new configuration.
CONFIG_OV13850_R=y
I want to remove old “.config” for compiling, but it’s strange that it isn’t in kernel folder, I find it in “/out/target/product/xxxxx(not disclose project)/obj/KERNEL_OBJ/.config”, but after remove such
file, it doesn’t work. I suppose to clean all the project and start a new compiling process, but the project doesn’t allow me to do, finally, I just simply modify the “kernel/drivers/media/platform/msm/camera_v2/sensor/Makefile”
obj-y += ov13850_R.o
Adding a new camera didn’t take much time if you follow other cameras that already exist in compiling chain.
相关文章推荐
- How to obtain Microsoft support files from online services
- How to create a custom directory for app files inside the ~/Library/Application Support directory.
- How to Use Rsync to Sync New or Changed/Modified Files in Linux
- how to use sqlserver2008 to search in files
- Magento - how to add custom variables to new order E-mail?
- QT12 How to open a new window after successful Login
- How to recover deleted files on Linux
- How to find Domino installation related log files
- How can I use Microsoft Visual C++ 2010 to create MEX files with MATLAB 7.10 (R2010a)?
- Why and How to Enable rc.local Support with Systemd
- How to Modify Public Network Information including VIP in Oracle Clusterware [ID 276434.1]
- How to Hide Zip Files Inside a Picture Without any Extra Software in Windows
- How To Support Old iOS SDK’s in Xcode 5
- How to Play '.rm' files with RhythmBox in Ubuntu?
- How to add Chinese support to an English only BB emulator
- how to modify Visual Studio 2010 environment
- How to extract msu/msp/msi/exe files from the command line
- how to find files containing specfied string
- How to disable new user email activation in JHipster
- 如何在MMIT上使用WMLScript文件(How To Use WMLScript Files With MMIT)