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.

TMDX654GPEVM: Touchscreen problem

Part Number: TMDX654GPEVM

hello team

i built Yocto project at TMDX654GPEVM and boot up

so i can see this page

but touch screen did not work 

so i see am65xx-evm.conf

#@TYPE: Machine
#@NAME: AM65xx EVM
#@DESCRIPTION: Machine configuration for the TI AM65xx EVM

require conf/machine/include/am65xx.inc

MACHINE_FEATURES += "touchscreen"

IMAGE_FSTYPES += "tar.xz wic.xz"

SERIAL_CONSOLES = "115200;ttyS2 115200;ttyS1"
SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"

KERNEL_DEVICETREE = " \
    ti/k3-am654-base-board.dtb ti/k3-am654-gp.dtbo \
    ti/k3-am654-evm-hdmi.dtbo ti/k3-am654-idk.dtbo \
    ti/k3-am654-evm-csi2-ov490.dtbo ti/k3-am654-evm-csi2-ov5640.dtbo \
    ti/k3-am654-evm-oldi-lcd1evm.dtbo ti/k3-am654-evm-tc358876.dtbo \
    ti/k3-am654-pcie-usb2.dtbo ti/k3-am654-pcie-usb3.dtbo \
    ti/k3-am654-base-board-jailhouse.dtbo \
"

UBOOT_MACHINE = "am65x_evm_a53_defconfig"

OPTEEMACHINE = "k3"
OPTEEFLAVOR = "am65x"
OPTEEOUTPUTMACHINE = "k3"

# Please note that booting AM65xx platform also requires
# tiboot3.bin and sysfw.itb, which are provided by meta-arago
# u-boot-k3-r5 and ti-sci-fw recipes
IMAGE_BOOT_FILES = "tispl.bin u-boot.img"
WKS_FILE ?= "sdimage-bootpart.wks"

do_image_wic[depends] += "u-boot:do_deploy"

conf file have 

MACHINE_FEATURES += "touchscreen"

how can i use my touchscreen

thanks to read !
  • Hello,

    What version of the SDK are you building?

    When you use the out of the box software, does the touchscreen respond as expected?

    Regards,

    Nick

  • thanks to reply

    i used lastest bsp version from openembedded.org

    and create-SDcars.sh from Ti website

    i tested touchscreen that prebuilt-image from Ti demo

    and touchscreen is work very well

    i write same mean to korean please use to google transfer.

    i hope you are more understand this issue

    안녕하세요 읽어주셔서 감사합니다.

    오픈임베디드의 가장 최신의 Bsp SDK를 사용하고있습니다. 또한 TI에서 제공하는 prebuilt-image를 통해 터치스크린의 동작을 확인하였습니다.

    감사합니다.

  • Hello Jeawhan,

    Is your question resolved? Or do you need more help?

    If you need more help, then tell us specific information about the Yocto build that does not have a working touchscreen.

    Regards,

    Nick

  • Hello Nick

    I need more help to this problem

    I used Ti-BSP from http://git.yoctoproject.org/cgit/cgit.cgi/meta-ti

    And I built am65xx-evm.conf

    I posted the script in the first post.

    I Checked MACHINE_FEATURES += "touchscreen"

    And then I can made Yocto Build image.

    And I was download PROCESSOR-SDK-LINUX-AM65X from http://www.ti.com/tool/PROCESSOR-SDK-AM65X

    I used  create-SDcars.sh included in the PROCESSOR-SDK-LINUX-AM65X

    but I had problem and posted this forum  "TMDX654GPEVM: I Can't Boot up Yocto Custom Linux" and solve problem

    finally I can boot up Yocto image. but didn't working touchscreen.

    I already boot up Prebuilt image from Ti, when touchscreen working

    thanks to read, and if you want more information please Reply Say to me

    if I solve myself, I will write solution.

    I wait your Reply, have a good day

  • Hello,

    I wanted to point you to this documentation:

    http://software-dl.ti.com/processor-sdk-linux/esd/docs/latest/linux/Overview_Building_the_SDK.html

    This should build the a "exact" SDK provided by TI and should be your first step. 

    Can you please try this to see if a bootable image created by this process enables the touchscreen to work?

    Thank you.

  • hello RonB

    i do your solution.

    so i built 

    MACHINE=am57xx-evm bitbake arago-base-tisdk-image

    and working well

    but this image is just command line image so i built 

    MACHINE=am65xx-evm bitbake arago-core-tisdk-bundle

    because docs said arago-core-tisdk-bundle is Full SDK version

    but I get some compile error 

    ERROR: arago-tiny-image-1.0-r0 do_rootfs: The postinstall intercept hook 'update_udev_hwdb' failed, details in /home/chung/yocto/tisdk/build/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/arago-tiny-image/1.0-r0/temp/log.do_rootfs
    ERROR: arago-tiny-image-1.0-r0 do_rootfs: Function failed: do_rootfs
    ERROR: Logfile of failure stored in: /home/chung/yocto/tisdk/build/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/arago-tiny-image/1.0-r0/temp/log.do_rootfs.342
    ERROR: Task (/home/chung/yocto/tisdk/sources/meta-arago/meta-arago-distro/recipes-core/images/arago-tiny-image.bb:do_rootfs) failed with exit code '1'
    

    I was just following your docs link.

    how can i solve this problem?

    thanks to read my reply

  • Again, the touchscreen worked fine on a prebuilt Linux image provided by TI


    Also, refer to the manual provided by you and run MACHINE = am65xx-evm bitbake arago-base-tisdk-image.
    But currently
    When building with MACHINE = am65xx-evm bitbake arago-core-tisdk-bundle, I get an error like the answer above. 
    Please confirm this problem and I want to answer the first question.


    If you have any additional information you would like to ask for, please request a quick response.

    For additional information, leave the build and conf information for the first question in this post as follows:



    chung@chung:~/yocto/poky/ti-am65$ bitbake core-image-sato
    Loading cache: 100% |############################################| Time: 0:00:00
    Loaded 1553 entries from dependency cache.
    NOTE: Resolving any missing task queue dependencies
    
    Build Configuration:
    BB_VERSION           = "1.42.0"
    BUILD_SYS            = "x86_64-linux"
    NATIVELSBSTRING      = "universal"
    TARGET_SYS           = "aarch64-poky-linux"
    MACHINE              = "am65xx-evm"
    DISTRO               = "poky"
    DISTRO_VERSION       = "2.7.1"
    TUNE_FEATURES        = "aarch64"
    TARGET_FPU           = ""
    meta                 
    meta-poky            
    meta-yocto-bsp       = "my-yocto-2.7.1:38d5c8ea98cfa49825c473eba8984c12edf062be"
    meta-ti              = "master:320a03e45f43ac95005e3c2311bb8f1d8b6918a7"
    
    Initialising tasks: 100% |#######################################| Time: 0:00:03
    Sstate summary: Wanted 0 Found 0 Missed 0 Current 2168 (0% match, 100% complete)
    NOTE: Executing SetScene Tasks
    NOTE: Executing RunQueue Tasks
    NOTE: Tasks Summary: Attempted 6045 tasks of which 6045 didn't need to be rerun and all succeeded.
    

    poky/ti-community-bsp/meta-ti/conf/machine/am65xx-evm.conf

      1 #@TYPE: Machine
      2 #@NAME: AM65xx EVM
      3 #@DESCRIPTION: Machine configuration for the TI AM65xx EVM
      4 
      5 require conf/machine/include/am65xx.inc
      6 
      7 MACHINE_FEATURES += "touchscreen"
      8 
      9 IMAGE_FSTYPES += "tar.xz wic.xz"
     10 
     11 SERIAL_CONSOLES = "115200;ttyS2 115200;ttyS1"
     12 SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
     13 
     14 KERNEL_DEVICETREE = " \
     15     ti/k3-am654-base-board.dtb ti/k3-am654-gp.dtbo \
     16     ti/k3-am654-evm-hdmi.dtbo ti/k3-am654-idk.dtbo \
     17     ti/k3-am654-evm-csi2-ov490.dtbo ti/k3-am654-evm-csi2-ov5640.dtbo \
     18     ti/k3-am654-evm-oldi-lcd1evm.dtbo ti/k3-am654-evm-tc358876.dtbo \
     19     ti/k3-am654-pcie-usb2.dtbo ti/k3-am654-pcie-usb3.dtbo \
     20     ti/k3-am654-base-board-jailhouse.dtbo \
     21 "
     22 
     23 UBOOT_MACHINE = "am65x_evm_a53_defconfig"
     24 
     25 OPTEEMACHINE = "k3"
     26 OPTEEFLAVOR = "am65x"
     27 OPTEEOUTPUTMACHINE = "k3"
     28 
     29 # Please note that booting AM65xx platform also requires
     30 # tiboot3.bin and sysfw.itb, which are provided by meta-arago
     31 # u-boot-k3-r5 and ti-sci-fw recipes
     32 IMAGE_BOOT_FILES = "tispl.bin u-boot.img"
     33 WKS_FILE ?= "sdimage-bootpart.wks"
     34 
     35 do_image_wic[depends] += "u-boot:do_deploy"
    ~                                                                               
    ~                                                       

    yocto/poky/ti-am65/conf/bblayers.conf

      1 # POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf
      2 # changes incompatibly
      3 POKY_BBLAYERS_CONF_VERSION = "2"
      4 
      5 BBPATH = "${TOPDIR}"
      6 BBFILES ?= ""
      7 
      8 BBLAYERS ?= " \
      9   /home/chung/yocto/poky/meta \
     10   /home/chung/yocto/poky/meta-poky \
     11   /home/chung/yocto/poky/meta-yocto-bsp \
     12   /home/chung/yocto/poky/ti-community-bsp/meta-ti \
     13   "
    ~           



  • Hello RonB

    I deleted the existing tisdk and ran the manual again.
    The build command was then executed with MACHINE = am65xx-evm bitbake arago-core-tisdk-bundle.
    After about 15 hours of compilation, I noticed that the hard disk is out of space.
    My hard disk had 350Gb of free space before compiling.
    I wonder if this is normal when I run the above build command.

    I will wait for your reply.


    Ps.
    This comment was made on 11/24 and the following comment was made on 11/22.
    Therefore, the comments below (written on 11/22) are the work I did before deleting tisdk described above, and I recompiled after deleting tisdk to compile in a clean environment.

    ERROR: arago-core-tisdk-bundle-1.0-r0.tisdk17 do_image_tar: Function failed: do_image_tar (log file is located at /home/chung/yocto/tisdk/build/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/arago-core-tisdk-bundle/1.0-r0.tisdk17/temp/log.do_image_tar.6002)
    ERROR: Logfile of failure stored in: /home/chung/yocto/tisdk/build/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/arago-core-tisdk-bundle/1.0-r0.tisdk17/temp/log.do_image_tar.6002
    Log data follows:
    | DEBUG: Executing python function set_image_size
    | DEBUG: 4759222.000000 = 3660940 * 1.300000
    | DEBUG: 4759222.000000 = max(4759222.000000, 65536)[4759222.000000] + 1
    | DEBUG: 4759222.000000 = int(4759222.000000)
    | DEBUG: 4759222 = aligned(4759222)
    | DEBUG: returning 4759222
    | DEBUG: Python function set_image_size finished
    | DEBUG: Executing shell function do_image_tar
    | xz: (stdout): Write error: No space left on device
    | WARNING: /home/chung/yocto/tisdk/build/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/arago-core-tisdk-bundle/1.0-r0.tisdk17/temp/run.do_image_tar.6002:1 exit 1 from 'xz -f -k -c -3 -T 0 --check=crc32 processor-sdk-linux-bundle-am65xx-evm-20191123030548.tar > processor-sdk-linux-bundle-am65xx-evm-20191123030548.tar.xz'
    | ERROR: Function failed: do_image_tar (log file is located at /home/chung/yocto/tisdk/build/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/arago-core-tisdk-bundle/1.0-r0.tisdk17/temp/log.do_image_tar.6002)
    ERROR: Task (/home/chung/yocto/tisdk/sources/meta-arago/meta-arago-distro/recipes-core/images/arago-core-tisdk-bundle.bb:do_image_tar) failed with exit code '1'
    NOTE: Tasks Summary: Attempted 11169 tasks of which 26 didn't need to be rerun and 1 failed.
    
    Summary: 1 task failed:
      /home/chung/yocto/tisdk/sources/meta-arago/meta-arago-distro/recipes-core/images/arago-core-tisdk-bundle.bb:do_image_tar
    Summary: There were 85 WARNING messages shown.
    Summary: There was 1 ERROR message shown, returning a non-zero exit code.
    chung@chung:~/yocto/tisdk/build$ MACHINE=am65xx-evm bitbake arago-core-tisdk-bundle
    Unable to create '/home/chung/yocto/tisdk/sources/bitbake/lib/bb/pysh/pyshtables.py'
    [Errno 28] No space left on device
    ERROR: Unable to start bitbake server (None)
    ERROR: Server log for this session (/home/chung/yocto/tisdk/build/bitbake-cookerdaemon.log):
    --- Starting bitbake server pid 10496 at 2019-11-24 12:39:28.231565 ---
    Traceback (most recent call last):
      File "/home/chung/yocto/tisdk/sources/bitbake/lib/bb/cookerdata.py", line 289, in parseBaseConfiguration
        bb.fetch.fetcher_init(self.data)
      File "/home/chung/yocto/tisdk/sources/bitbake/lib/bb/fetch2/__init__.py", line 511, in fetcher_init
        revs.clear()
      File "/home/chung/yocto/tisdk/sources/bitbake/lib/bb/persist_data.py", line 143, in clear
        self._execute("DELETE FROM %s;" % self.table)
      File "/home/chung/yocto/tisdk/sources/bitbake/lib/bb/persist_data.py", line 62, in _execute
        return self.cursor.execute(*query)
    sqlite3.OperationalError: database or disk is full
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/home/chung/yocto/tisdk/sources/bitbake/lib/bb/daemonize.py", line 83, in createDaemon
        function()
      File "/home/chung/yocto/tisdk/sources/bitbake/lib/bb/server/process.py", line 469, in _startServer
        self.cooker = bb.cooker.BBCooker(self.configuration, self.featureset)
      File "/home/chung/yocto/tisdk/sources/bitbake/lib/bb/cooker.py", line 210, in __init__
        self.initConfigurationData()
      File "/home/chung/yocto/tisdk/sources/bitbake/lib/bb/cooker.py", line 375, in initConfigurationData
        self.databuilder.parseBaseConfiguration()
      File "/home/chung/yocto/tisdk/sources/bitbake/lib/bb/cookerdata.py", line 327, in parseBaseConfiguration
        raise bb.BBHandledException
    bb.BBHandledException
    WARNING: Layer meta-processor-sdk should set LAYERSERIES_COMPAT_meta-processor-sdk in its conf/layer.conf file to list the core layer names it is compatible with.
    WARNING: Layer browser-layer should set LAYERSERIES_COMPAT_browser-layer in its conf/layer.conf file to list the core layer names it is compatible with.
    ERROR: Error parsing configuration files
    Traceback (most recent call last):
      File "/home/chung/yocto/tisdk/sources/bitbake/lib/bb/cookerdata.py", line 289, in CookerDataBuilder.parseBaseConfiguration():
                     if self.data.getVar("BB_WORKERCONTEXT", False) is None:
        >                bb.fetch.fetcher_init(self.data)
                     bb.codeparser.parser_cache_init(self.data)
      File "/home/chung/yocto/tisdk/sources/bitbake/lib/bb/fetch2/__init__.py", line 511, in fetcher_init(d=<bb.data_smart.DataSmart object at 0x7f88f0ea5978>):
                     pass
        >        revs.clear()
             else:
      File "/home/chung/yocto/tisdk/sources/bitbake/lib/bb/persist_data.py", line 143, in SQLTable.clear():
             def clear(self):
        >        self._execute("DELETE FROM %s;" % self.table)
         
      File "/home/chung/yocto/tisdk/sources/bitbake/lib/bb/persist_data.py", line 62, in SQLTable._execute(*query=('DELETE FROM BB_URI_HEADREVS;',)):
                     try:
        >                return self.cursor.execute(*query)
                     except sqlite3.OperationalError as exc:
    sqlite3.OperationalError: database or disk is full
    


  • As a further consideration, the white background yocto I posted first did not perform the calibration of the touch screen.

    I checked your manual (software-dl.ti.com/.../How_to_Guides_Target.html and found that calibration is needed.

    If so, how do I run it initially like the matrix image provided by Ti when I run yocto?

    My guess is that I have to put the corrective code in conf / bblayers.conf, but I couldn't find a description of it, and I couldn't find it because the bblayers.conf inside tisdk was written in a huge folder. I would like to ask for a verification and my method.

  • hello Nick

    I waiting your solution

    please give me answer

    thanks to read

    have a good day

  • Hello,

    It would really be best to get a TI build working on your set up so that you can evaluate something working. The Weston (which includes touchscreen support and calibration) config is quite complex and may have many other problems if deviating away from the SDK. 

    In the above build, it seems that you ran out of disk space. For a complete build, you may need 500GB to 1TB of hard disk space available.

    If you want to do some exploring, please take a look at sources/meta-arago/meta-arago-distro/recipes-graphics/wayland/weston.

    Thank you.

  • Hello RonB

    I have already confirmed that the touchscreen works by using the prebuilt image of the SDK provided by ti.
    What I want is to operate the touch screen on my Yocto image. Please let me know the manual or how to do this.

    thanks

  • Hi,

    I'm sorry, we don't have a manual for this specific task. We do have the below training which should help get you started customizing the SDK Distro into one that works for your needs:

    https://training.ti.com/customizing-yocto-based-linux-distribution-production?context=1135806

    Yocto also has a lot of documentation that may be helpful to you.

    Thank you.