Mike R9FT

Members
  • Content Count

    19
  • Joined

  • Last visited


Reputation Activity

  1. Like
    Mike R9FT got a reaction from Ермаков Влад 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
    Mike R9FT reacted to jernej in 7" hdmi display   
    Actually you can't do much except patch U-Boot. H3 and newer chips uses driver in U-Boot which doesn't consider video-mode variable. Since kernel relies on U-Boot to set up HDMI for now, the only thing you can do is to create U-Boot patch and rebuild the image on your own. You only need to change line 131.
  3. Like
    Mike R9FT got a reaction from Ермаков Влад in Running touchscreen 5 inch at xpt2046   
    Also see here https://forum.armbian.com/index.php?/topic/1589-how-enable-ads7846/
     
  4. Like
    Mike R9FT got a reaction from Ермаков Влад 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