Jump to content

Ермаков Влад

Members
  • Posts

    10
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Ермаков Влад reacted to Mike R9FT in Running touchscreen 5 inch at xpt2046   
    Hi
     
    First of all you should build kernel from source. Here is a good guide https://docs.armbian.com/Developer-Guide_Build-Preparation/
    I suggest you to use virtualbox with ubuntu 16.04 x64
     
    Another quick way is to use already compiled https://forum.armbian.com/applications/core/interface/file/attachment.php?id=1209
    Put it to /lib/modules/3.4.113-sun8i/kernel/drivers/input/touchscreen
     
    Also you should update your configuration by using bin2fex and fex2bin utilities. See here https://docs.armbian.com/Hardware_Allwinner/.
    Here is fex config adds:
    [spi0] spi_used = 1 spi_cs_bitmap = 1 spi_mosi = port:PC00<3><default><default><default> spi_miso = port:PC01<3><default><default><default> spi_sclk = port:PC02<3><default><default><default> spi_cs0 = port:PA21<1><1><default><default> [spi_devices] spi_dev_num = 1 [spi_board0] modalias = "ads7846" max_speed_hz = 1500000 bus_num = 0 chip_select = 0 mode = 0 full_duplex = 1 manual_cs = 0  
    reboot,
    load driver with modprobe ads7846.ko -f
     
    calibrate with xinput_calibrator
     
  2. Like
    Ермаков Влад reacted to Mike R9FT in Running touchscreen 5 inch at xpt2046   
    Also see here https://forum.armbian.com/index.php?/topic/1589-how-enable-ads7846/
     
  3. Like
    Ермаков Влад reacted to Mike R9FT in Running touchscreen 5 inch at xpt2046   
    Hi
     
    If you are using 3.4.113 kernel (source https://github.com/igorpecovnik/linux ), it is need to modify ads7846.c driver file. Here is info http://www.orangepi.org/orangepibbsen/forum.php?mod=viewthread&tid=444
    I'v patched this file by hands, update kernel and driver ads7846.ko on board and it is works.
     
    Here is the tool for kernel build https://github.com/armbian/build
    Note you need ubuntu 16.04 x64
     
    Attached ads7846.ko for 3.4.113  tested on Orange Pi One
    Put it to /lib/modules/3.4.113-sun8i/kernel/drivers/input/touchscreen
    If it is not loaded, also try 'modprobe ads7846.ko -f'
     
     
    ads7846.ko
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines