Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

[Android] [Android] [Camera] Can't get IMX214 to work

17

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
17

【Android】 [Android] [Camera] Can't get IMX214 to work

Posted at 12/14/2018 18:05:38      View:3333 | Replies:0        Print      Only Author   [Copy Link] 1#
I'm trying to compile android to allow use of a sensor I have (IMX214 camera from pine).
It has a FPC 30 pin * 0.5mm connector so it works with the physical interface on the Firefly board, and IMX214 should be officially supported on RK3399.
I'm using the official sources and following the instructions on the wiki, so from what I understand .dts and drivers should be already ok and all that I need to change is cam_board.xml.
I checked that the file gets correctly put in /vendor/etc/cam_board.xml in the finished image.
Android works as supposed but the camera doesn't get detected, I tried different configurations in cam_board.xml with no success and I don't know what else to try.
Am I forgetting/missing something?
If I am not can somebody help if I post a logcat/dmesg?
I'll paste the last cam_board.xml I tried to use here.

Thanks in advance for any help.

  1. <?xml version="1.0" ?>
  2. <BoardFile>
  3.                 <BoardXmlVersion version="v0.0xf.0">
  4.                 </BoardXmlVersion>

  5.                 <CamDevie>
  6.                         <HardWareInfo>
  7.                                 <Sensor>
  8.                                         <SensorName name="IMX214" ></SensorName>
  9.                                         <SensorDevID IDname="CAMSYS_DEVID_SENSOR_1A"></SensorDevID>
  10.                                         <SensorHostDevID busnum="CAMSYS_DEVID_MARVIN" ></SensorHostDevID>
  11.                                         <SensorI2cBusNum busnum="1"></SensorI2cBusNum>
  12.                                         <SensorI2cAddrByte byte="2"></SensorI2cAddrByte>
  13.                                         <SensorI2cRate rate="100000"></SensorI2cRate>
  14.                                         <SensorAvdd name="NC" min="28000000" max="28000000" delay="0"></SensorAvdd>
  15.                                         <SensorDvdd name="NC" min="12000000" max="12000000" delay="0"></SensorDvdd>
  16.                                         <SensorDovdd name="NC" min="18000000" max="18000000" delay="5000"></SensorDovdd>
  17.                                         <SensorMclk mclk="24000000" delay="1000"></SensorMclk>
  18.                                         <SensorGpioPwen ioname="NC" active="1" delay="1000"></SensorGpioPwen>
  19.                                         <SensorGpioRst ioname="NC" active="0" delay="1000"></SensorGpioRst>
  20.                                         <SensorGpioPwdn ioname="RK30_PIN1_PC2" active="0" delay="0"></SensorGpioPwdn>
  21.                                         <SensorFacing facing="back"></SensorFacing>
  22.                                         <SensorInterface interface="MIPI"></SensorInterface>
  23.                                         <SensorMirrorFlip mirror="0"></SensorMirrorFlip>
  24.                                         <SensorOrientation orientation="90"></SensorOrientation>
  25.                                         <SensorPowerupSequence seq="1234"></SensorPowerupSequence>
  26.                                         <SensorFovParemeter h="60.0" v="60.0"></SensorFovParemeter>
  27.                                         <SensorAWB_Frame_Skip fps="15"></SensorAWB_Frame_Skip>
  28.                                         <SensorPhy phyMode="CamSys_Phy_Mipi" lane="2"  phyIndex="0" sensorFmt="CamSys_Fmt_Raw_10b"></SensorPhy>
  29.                                 </Sensor>
  30.                                 <VCM>
  31.                                         <VCMDrvName name="BuiltInSensor"></VCMDrvName>
  32.                                         <VCMName name="NC"></VCMName>
  33.                                         <VCMI2cBusNum busnum="1"></VCMI2cBusNum>
  34.                                         <VCMI2cAddrByte byte="0"></VCMI2cAddrByte>
  35.                                         <VCMI2cRate rate="0"></VCMI2cRate>
  36.                                         <VCMVdd name="NC" min="0" max="0" delay="0"></VCMVdd>
  37.                                         <VCMGpioPower ioname="NC" active="0" delay="1000"></VCMGpioPower>
  38.                                         <VCMGpioPwdn ioname="NC" active="0" delay="0"></VCMGpioPwdn>
  39.                                         <VCMCurrent start="20" rated="80" vcmmax="100" stepmode="13"  drivermax="100"></VCMCurrent>
  40.                                 </VCM>
  41.                                 <Flash>
  42.                                         <FlashName name="Internal"></FlashName>
  43.                                         <FlashI2cBusNum busnum="0"></FlashI2cBusNum>
  44.                                         <FlashI2cAddrByte byte="0"></FlashI2cAddrByte>
  45.                                         <FlashI2cRate rate="0"></FlashI2cRate>
  46.                                         <FlashTrigger ioname="NC" active="0"></FlashTrigger>
  47.                                         <FlashEn ioname="NC" active="0"></FlashEn>
  48.                                         <FlashModeType mode="1"></FlashModeType>
  49.                                         <FlashLuminance luminance="0"></FlashLuminance>
  50.                                         <FlashColorTemp colortemp="0"></FlashColorTemp>
  51.                                 </Flash>
  52.                         </HardWareInfo>
  53.                         <SoftWareInfo>
  54.                                 <AWB>
  55.                                         <AWB_Auto support="1"></AWB_Auto>
  56.                                         <AWB_Incandescent support="1"></AWB_Incandescent>
  57.                                         <AWB_Fluorescent support="1"></AWB_Fluorescent>
  58.                                         <AWB_Warm_Fluorescent support="1"></AWB_Warm_Fluorescent>
  59.                                         <AWB_Daylight support="1"></AWB_Daylight>
  60.                                         <AWB_Cloudy_Daylight support="1"></AWB_Cloudy_Daylight>
  61.                                         <AWB_Twilight support="1"></AWB_Twilight>
  62.                                         <AWB_Shade support="1"></AWB_Shade>
  63.                                 </AWB>
  64.                                 <Sence>
  65.                                         <Sence_Mode_Auto support="1"></Sence_Mode_Auto>
  66.                                         <Sence_Mode_Action support="1"></Sence_Mode_Action>
  67.                                         <Sence_Mode_Portrait support="1"></Sence_Mode_Portrait>
  68.                                         <Sence_Mode_Landscape support="1"></Sence_Mode_Landscape>
  69.                                         <Sence_Mode_Night support="1"></Sence_Mode_Night>
  70.                                         <Sence_Mode_Night_Portrait support="1"></Sence_Mode_Night_Portrait>
  71.                                         <Sence_Mode_Theatre support="1"></Sence_Mode_Theatre>
  72.                                         <Sence_Mode_Beach support="1"></Sence_Mode_Beach>
  73.                                         <Sence_Mode_Snow support="1"></Sence_Mode_Snow>
  74.                                         <Sence_Mode_Sunset support="1"></Sence_Mode_Sunset>
  75.                                         <Sence_Mode_Steayphoto support="1"></Sence_Mode_Steayphoto>
  76.                                         <Sence_Mode_Pireworks support="1"></Sence_Mode_Pireworks>
  77.                                         <Sence_Mode_Sports support="1"></Sence_Mode_Sports>
  78.                                         <Sence_Mode_Party support="1"></Sence_Mode_Party>
  79.                                         <Sence_Mode_Candlelight support="1"></Sence_Mode_Candlelight>
  80.                                         <Sence_Mode_Barcode support="1"></Sence_Mode_Barcode>
  81.                                         <Sence_Mode_HDR support="1"></Sence_Mode_HDR>
  82.                                 </Sence>
  83.                                 <Effect>
  84.                                         <Effect_None support="1"></Effect_None>
  85.                                         <Effect_Mono support="1"></Effect_Mono>
  86.                                         <Effect_Solarize support="1"></Effect_Solarize>
  87.                                         <Effect_Negative support="1"></Effect_Negative>
  88.                                         <Effect_Sepia support="1"></Effect_Sepia>
  89.                                         <Effect_Posterize support="1"></Effect_Posterize>
  90.                                         <Effect_Whiteboard support="1"></Effect_Whiteboard>
  91.                                         <Effect_Blackboard support="1"></Effect_Blackboard>
  92.                                         <Effect_Aqua support="1"></Effect_Aqua>
  93.                                 </Effect>
  94.                                 <FocusMode>
  95.                                         <Focus_Mode_Auto support="1"></Focus_Mode_Auto>
  96.                                         <Focus_Mode_Infinity support="1"></Focus_Mode_Infinity>
  97.                                         <Focus_Mode_Marco support="1"></Focus_Mode_Marco>
  98.                                         <Focus_Mode_Fixed support="1"></Focus_Mode_Fixed>
  99.                                         <Focus_Mode_Edof support="1"></Focus_Mode_Edof>
  100.                                         <Focus_Mode_Continuous_Video support="0"></Focus_Mode_Continuous_Video>
  101.                                         <Focus_Mode_Continuous_Picture support="1"></Focus_Mode_Continuous_Picture>
  102.                                 </FocusMode>
  103.                                 <FlashMode>
  104.                                         <Flash_Mode_Off support="1"></Flash_Mode_Off>
  105.                                         <Flash_Mode_On support="1"></Flash_Mode_On>
  106.                                         <Flash_Mode_Torch support="1"></Flash_Mode_Torch>
  107.                                         <Flash_Mode_Auto support="1"></Flash_Mode_Auto>
  108.                                         <Flash_Mode_Red_Eye support="1"></Flash_Mode_Red_Eye>
  109.                                 </FlashMode>
  110.                                 <AntiBanding>
  111.                                         <Anti_Banding_Auto support="1"></Anti_Banding_Auto>
  112.                                         <Anti_Banding_50HZ support="1"></Anti_Banding_50HZ>
  113.                                         <Anti_Banding_60HZ support="1"></Anti_Banding_60HZ>
  114.                                         <Anti_Banding_Off support="1"></Anti_Banding_Off>
  115.                                 </AntiBanding>
  116.                                 <HDR support="1"></HDR>
  117.                                 <ZSL support="1"></ZSL>
  118.                                 <DigitalZoom support="1"></DigitalZoom>
  119.                                 <Continue_SnapShot support="1"></Continue_SnapShot>
  120.                                 <InterpolationRes resolution="0"></InterpolationRes>
  121.                                 <PreviewSize width="1920" height="1080"></PreviewSize>
  122.                                 <FaceDetect support="0" MaxNum="1"></FaceDetect>
  123.                                 <DV>
  124.                                         <DV_QCIF name="qcif" width="176" height="144" fps="10" support="1"></DV_QCIF>
  125.                                         <DV_QVGA name="qvga" width="320" height="240" fps="10" support="1"></DV_QVGA>
  126.                                         <DV_CIF name="cif" width="352" height="288" fps="10" support="1"></DV_CIF>
  127.                                         <DV_VGA name="480p" width="640" height="480" fps="10" support="0"></DV_VGA>
  128.                                         <DV_480P name="480p" width="720" height="480" fps="10" support="0"></DV_480P>
  129.                                         <DV_720P name="720p" width="1280" height="720" fps="10" support="1"></DV_720P>
  130.                                         <DV_1080P name="1080p" width="1920" height="1080" fps="10" support="1"></DV_1080P>
  131.                                 </DV>
  132.                         </SoftWareInfo>
  133.                 </CamDevie>

  134. </BoardFile>
Copy the code
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list