This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/TDA2PXEVM: if we enable i2c5, apps.out can't run complete

Part Number: TDA2PXEVM

Tool/software: Linux

Hi,

we found if we enable i2c5, apps.out can't execute complete.

our config is:

MAKEAPPNAME?=apps

MAKECONFIG?=tda2px_evm_linux_all

our modify is:

ti_components/os_tools/linux/kernel/omap/arch/arm/boot/dts/dra76-evm-infoadas.dts

/* modules used by BIOS, disable from Linux */
DISABLE_COMPLETE(vip1);
DISABLE_COMPLETE(vip2);
DISABLE_COMPLETE(cal);
//DISABLE_COMPLETE(i2c5);
DISABLE_COMPLETE(wdt2);
DISABLE_COMPLETE(vpe);
DISABLE_COMPLETE(ocmcram1);
DISABLE_COMPLETE(hdmi);
DISABLE_COMPLETE(hdmi0);

we don't know what is "/* modules used by BIOS, disable from Linux */"?

we can't use i2c5?

thanks

  • Hi,

    I2C-5, is required by the M4 firmware which is built using vision-SDK. The ser-des and sensor configuration happens through I2C-5, and since the capture drivers reside in the M4 firmware, it is disabled from Linux.

    The 'modules disabled by Linux' implies, that these modules are used by the M4 firmware, and Linux must not reset its state, or power it off / put it into an idle state.

    Regards
    Shravan

  • Hi Shravan,

    thanks very much.

    we disable i2c5, we can run apps.out

    if we choice
    1: 1CH VIP capture + SGX Copy + DISPLAY

    1: 1CH VIP capture + SGX Copy + DISPLAY

    we got under log.

    [HOST] [IPU2 ] 57.548984 s: VIDEO_SENSOR: INST0 : I2C4 : I2C Addr = 0x30
    [HOST] [IPU2 ] 57.550082 s: src/bsp_deviceI2c.c @ Line 765:
    [HOST] [IPU2 ] 57.550173 s: I2C4: DEV 0x30: RD 0x300a ... ERROR !!!
    [HOST] [IPU2 ] 57.550295 s: src/bsp_deviceI2c.c @ Line 836:
    [HOST] [IPU2 ] 57.550356 s: I2C4: Error timeout 0 ms!!!

    we connected sensor i2c addr is 0x36.
    could you tell us how to modify the i2c address?

    we try to modify vid_sensor.c, build but apps.out no contains the modify.

    we don't know why vision_sdk_load.sh require cmemk.ko in bin folder, but bin folder not has.
    we copy vision_sdk/cmemk.ko to vision_sdk/bin then apps.out can run, is that correct?

    thanks
  • Hi,

    Please make sure you've selected the correct sensor in the 'settings' option of the main menu.
    Also ensure that the vision-daughter card (assuming you're using the vision daughter card), has the correct switch settings. Please refer to section 2.3.3 of VisionSDK_UserGuide_TDA2xx.pdf in the docs folder of Vision SDK for more information.

    Regards
    Shravan