Announcement

Collapse
No announcement yet.

BBB IoT Debian 9.5 4DCAPE-43T - "Remote I/O Error" with touch screen

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • BBB IoT Debian 9.5 4DCAPE-43T - "Remote I/O Error" with touch screen

    THIS HAS BEEN SOLVED:

    As I suspected, I was just missing something.

    I am using the older 4DCAPE-43T display and NOT the 4th GEN display. I can't use the BB-BONE-4D4R overlay. It's as simple as that. I changed the overlay specified to BB-BONE-LCD4-01-00A1.dtbo and voila... everything works! Yay!

    I should note that I did try not specifying an overlay and let the 4.14 kernel cape manager work on its own. That approach wasn't successful either.

    Anyway, I just wanted to post the solution here for everyone since I posted the original problem.

    --- Original Post ---
    I have a feeling this is something simple, but alas, it has escaped my search of the inter-webs.

    I have a BeagleBone Black running the Debian 9.5 2018-10-07 IoT image. Due efforts to get Qt installed on it, it's kernel version is: 4.14.108-ti-r136. I am using a 4DCAPE-43T hardware rev 1.3 LCD display (with resistive touch).

    I seem to have properly set /boot/uEnv.txt to apply the BB-BONE-4D4R-01-00A1.dtbo overlay. The display part works. I just can't get seem to get the touchscreen to work.

    From /opt/scripts/tools/version.sh:

    UBOOT: Booted Device-Tree:[am335x-boneblack-uboot-univ.dts]
    UBOOT: Loaded Overlay:[AM335X-PRU-RPROC-4-14-TI-00A0]
    UBOOT: Loaded Overlay:[BB-BONE-4D4R-01-00A1]
    UBOOT: Loaded Overlay:[BB-BONE-eMMC1-01-00A0]
    UBOOT: Loaded Overlay:[BB-UART2-00A0]
    UBOOT: Loaded Overlay:[BB-UART4-00A0]
    kernel:[4.14.108-ti-r136]
    /boot/uEnv.txt Settings:
    uboot_overlay_options:[enable_uboot_overlays=1]
    uboot_overlay_options:[uboot_overlay_addr0=/lib/firmware/BB-BONE-4D4R-01-00A1.dtbo]
    uboot_overlay_options:[uboot_overlay_addr1=/lib/firmware/BB-UART2-00A0.dtbo]
    uboot_overlay_options:[uboot_overlay_addr2=/lib/firmware/BB-UART4-00A0.dtbo]
    uboot_overlay_options:[disable_uboot_overlay_video=1]
    uboot_overlay_options:[disable_uboot_overlay_audio=1]
    uboot_overlay_options:[disable_uboot_overlay_wireless=1]
    uboot_overlay_options:[uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-14-TI-00A0.dtbo]
    uboot_overlay_options:[enable_uboot_cape_universal=0]
    pkg check: to individually upgrade run: [sudo apt install --only-upgrade <pkg>]
    pkg:[bb-cape-overlays]:[4.14.20200722.0-0~stretch+20200722]
    pkg:[bb-wl18xx-firmware]:[1.20200702.0-0~stretch+20200702]
    pkg:[kmod]:[23-2rcnee1~stretch+20171005]
    pkg:[librobotcontrol]:[1.0.5-git20200715.0-0~stretch+20200716]
    pkg:[firmware-ti-connectivity]:[20190717-2rcnee1~stretch+20200305]
    groups:[debian : debian adm kmem dialout cdrom floppy audio dip video plugdev users systemd-journal i2c bluetooth netdev cloud9ide gpio pwm eqep admin spi tisdk weston-launch xenomai]
    cmdline:[console=ttyO0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk1p1 ro rootfstype=ext4 rootwait uboot_detected_capes=BB-BONE-LCD4-01, coherent_pool=1M net.ifnames=0 quiet]

    So I think I've got the correct overlay loaded and the display certainly works.

    I installed tslib (using $ apt-get install libts-bin and installing the latest from the tslib github repository), and whenever I run ts_test or ts_calibrate, I get:

    ts_open: Remote I/O error
    or
    ts_setup: Remote I/O error

    With dmesg, I see the following entries:

    [ 1.280026] ar1021_i2c 1-004d: touchscreen-offset-x: 250
    [ 1.280043] ar1021_i2c 1-004d: touchscreen-offset-y: 300
    [ 1.301993] input: ar1021 I2C Touchscreen as /devices/platform/ocp/4802a000.i2c/i2c-1/1-004d/input/input1
    [ 1.302437] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 100 kHz

    So something is registering with something... but the touchscreen doesn't work.

    Looked at the device file:
    $ cat /dev/input/event1
    cat: /dev/input/event1: Remote I/O error

    which smells like the same problem as with ts functions.

    I would appreciate any pointers on how to proceed to get the touchscreen functionality to work, in particular with tslib.
    Last edited by kangs; 1 week ago.
Working...
X