Jump to content

Kevin Wietzorek

Members
  • Posts

    6
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hey, I've got an Orange Pi Zero Plus 2 (H3) with Armbian 5.41 and mainline 4.14.18 with Debian Stretch. If I try to run X11 with: sudo startx I get the following error: X.Org X Server 1.19.2 Release Date: 2017-03-02 X Protocol Version 11, Revision 0 Build Operating System: Linux 4.9.0-4-armmp-lpae armv7l Debian Current Operating System: Linux orangepizeroplus2 4.14.18-sunxi #24 SMP Fri Feb 9 16:24:32 CET 2018 armv7l Kernel command line: root=UUID=bab2d356-e17e-4857-836a-5fc44cbf541f rootwait rootfstype=ext4 console=tty1 console=ttyS0,115200 hdmi.audio=EDID:0 disp.screen0_output_mode=1920x1080p60 panic=10 consoleblank=0 loglevel=1 ubootpart=451adcfc-01 ubootsource=mmc usb-storage.quirks=0x2537:0x1066:u,0x2537:0x1068:u sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_fb_mem_reserve=16 cgroup_enable=memory swapaccount=1 Build Date: 16 October 2017 09:48:39AM xorg-server 2:1.19.2-1+deb9u2 (https://www.debian.org/support) Current version of pixman: 0.34.0 Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/var/log/Xorg.1.log", Time: Wed May 16 19:22:28 2018 (==) Using config directory: "/etc/X11/xorg.conf.d" (==) Using system config directory "/usr/share/X11/xorg.conf.d" MESA-LOADER: failed to retrieve device information gbm: failed to open any driver (search paths /usr/lib/arm-linux-gnueabihf/dri:${ORIGIN}/dri:/usr/lib/dri) gbm: Last dlopen error: /usr/lib/dri/sun4i-drm_dri.so: cannot open shared object file: No such file or directory failed to load driver: sun4i-drm gbm: failed to open any driver (search paths /usr/lib/arm-linux-gnueabihf/dri:${ORIGIN}/dri:/usr/lib/dri) gbm: Last dlopen error: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: No such file or directory failed to load driver: kms_swrast gbm: failed to open any driver (search paths /usr/lib/arm-linux-gnueabihf/dri:${ORIGIN}/dri:/usr/lib/dri) gbm: Last dlopen error: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory failed to load swrast driver couldn't get display device I have an Orange Pi Zero (H3) with the same Armbian and Kernel version and there no error occurs. Here is my Xorg.1.log: I can't figure out whats the difference, maybe the HDMI? And how I can solve this problem. I would appreciate any help. Thanks
  2. @Blast thanks for your answer I switched to the mainline kernel and got the Waveshare 3.5" (bought one to test it with an original) working with the following configs: /boot/armbianEnv.txt overlays=spi-spidev spi-add-cs1 param_spidev_spi_bus=1 param_spidev_spi_cs=1 For me it only works with with param_spidev_spi_bus=1 When I try param_spidev_spi_bus=0 or comment this parameter out, I get this error message on dmesg: /etc/modules-load.d/fbtft.conf fbtft fbtft_device /etc/modprobe.d/fbtft.conf options fbtft_device rotate=90 name=piscreen speed=16000000 busnum=1 gpios=reset:2,dc:18 txbuflen=32768 fps=25 Here the same, I can only get the display working with: busnum=1, every other parameter or deleting this parameter let the screen white and I get the same error message like above. And the gpio 18 for dc is also only working on my Orange Pi Zero, cause its the right pin. So far so good, the Display works. But my big problem is getting touch work, the ads7846 is inside the Waveshare 3.5" I tried the following user-overlays from @zador.blood.stained https://github.com/armbian/sunxi-DT-overlays/tree/master/examples spi-double-spidev.dts spi-ads7846.dts I edited the spi-ads7846.dts like this: /dts-v1/; /plugin/; / { compatible = "allwinner,sun4i-a10", "allwinner,sun7i-a20", "allwinner,sun8i-h3", "allwinner,sun50i-a64", "allwinner,sun50i-h5"; /* fragment@0 { target-path = "/aliases"; __overlay__ { spi1 = "/soc/spi@01c69000"; }; }; */ fragment@1 { target = <&pio>; __overlay__ { ads7846_pins: ads7846_pins { pins= "PA1"; function = "irq"; //bias-pull-up; }; }; }; fragment@2 { target = <&spi1>; __overlay__ { #address-cells = <1>; #size-cells = <0>; status = "okay"; ads7846@0 { compatible = "ti,ads7846"; reg = <1>; /* Chip Select 0 */ status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&ads7846_pins>; spi-max-frequency = <1600000>; interrupt-parent = <&pio>; interrupts = <0 1 2>; /* PA1 IRQ_TYPE_EDGE_FALLING */ pendown-gpio = <&pio 0 1 0>; /* PA1 */ /* driver defaults, optional */ ti,x-min = /bits/ 16 <0>; ti,y-min = /bits/ 16 <0>; ti,x-max = /bits/ 16 <0x0FFF>; ti,y-max = /bits/ 16 <0x0FFF>; ti,pressure-min = /bits/ 16 <0>; ti,pressure-max = /bits/ 16 <0xFFFF>; ti,x-plate-ohms = /bits/ 16 <400>; }; }; }; }; Added the with the armbian-add-overlay command. After a reboot the dmesg says the following: For me it seems that the Touchscreen is detected by the spi, but I can't use it. Neither if I tried some other IRQ pins like PA10 or PA7 or so.... If I look at the pinout, for me is the PA1 IRQ pin is right. What did I wrong, can anybody help me please. Trying it for days to get it work.... Kind regards Kevin
  3. Hey guys, I need help with my 3.5" TFT with touch (ili9486 + ads7846) Here are some basic infos, using the mainline kernel on an Orange Pi Zero (Chip: H2+): root@orangepizero:~# cat /etc/armbian-release # PLEASE DO NOT EDIT THIS FILE BOARD=orangepizero BOARD_NAME="Orange Pi Zero" BOARDFAMILY=sun8i VERSION=5.38 LINUXFAMILY=sunxi BRANCH=next ARCH=arm IMAGE_TYPE=stable BOARD_TYPE=conf INITRD_ARCH=arm KERNEL_IMAGE_TYPE=zImage On the legacy kernel I used: fbtft_device custom name=fb_ili9486 gpios=dc:18,reset:2 speed=16000000 rotate=90 busnum=1 fps=25 to get the screen working, but on the mainline kernel I get some weird image (see attachment) with rotate=90. I need rotate=90 cause I need the landscape mode. It seems that there is something with the spi speed or the regwidth or so? But I don't know where to change the regwidth in the mainline. Here is my /boot/armbianEnv.txt: verbosity=1 logo=disabled console=both disp_mode=1920x1080p60 overlay_prefix=sun8i-h3 overlays=spi-add-cs1 spi-spidev usbhost2 usbhost3 w1-gpio param_spidev_spi_bus=1 rootdev=UUID=a2c25aee-d15d-4aa7-8f41-ab6bb511776f rootfstype=ext4 user_overlays=touch extraargs="fbcon=map:0" usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u And here is my dmesg | grep spi: [ 8.096553] spi spi1.1: ads7846 spi1.1 1600kHz 8 bits mode=0x00 [ 8.096569] spi spi1.0: spidev spi1.0 1000kHz 8 bits mode=0x00 [ 8.096689] spi spi1.0: Deleting spi1.0 [ 8.097278] spi spi1.1: ads7846 spi1.1 1600kHz 8 bits mode=0x00 [ 8.097286] spi spi1.0: fb_ili9486 spi1.0 16000kHz 8 bits mode=0x00 [ 9.627170] graphics fb0: fb_ili9486 frame buffer, 480x320, 300 KiB video memory, 4 KiB buffer memory, fps=25, spi1.0 at 16 MHz [ 9.821973] ads7846 spi1.1: spi1.1 supply vcc not found, using dummy regulator [ 9.822643] ads7846 spi1.1: touchscreen, irq 52 [ 9.824499] input: ADS7846 Touchscreen as /devices/platform/soc/1c69000.spi/spi_master/spi1/spi1.1/input/input0 And here for dmesg | grep fb: [ 0.000000] Kernel command line: root=UUID=a2c25aee-d15d-4aa7-8f41-ab6bb511776f rootwait rootfstype=ext4 console=tty1 console=ttyS0,115200 hdmi.audio=EDID:0 disp.screen0_output_mode=1920x1080p60 panic=10 consoleblank=0 loglevel=1 ubootpart=378fc799-01 ubootsource=mmc usb-storage.quirks=0x2537:0x1066:u,0x2537:0x1068:u "fbcon=rotate:2" sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_fb_mem_reserve=16 cgroup_enable=memory swapaccount=1 [ 8.086756] fbtft: module is from the staging directory, the quality is unknown, you have been warned. [ 8.095296] fbtft_device: module is from the staging directory, the quality is unknown, you have been warned. [ 8.097236] fbtft_device: GPIOS used by 'fb_ili9486': [ 8.097252] fbtft_device: 'dc' = GPIO18 [ 8.097260] fbtft_device: 'reset' = GPIO2 [ 8.097286] spi spi1.0: fb_ili9486 spi1.0 16000kHz 8 bits mode=0x00 [ 9.022484] fb_ili9486: module is from the staging directory, the quality is unknown, you have been warned. [ 9.627170] graphics fb0: fb_ili9486 frame buffer, 480x320, 300 KiB video memory, 4 KiB buffer memory, fps=20, spi1.0 at 16 MHz As I said, on the legacy kernel the screen worked nice (without touch) but I need to use the mainline for touch. I am thankful for every help.
  4. Thank you for your answer, did you use an Orange Pi Zero too? And which driver did you download? Kind regards
  5. @adrb First of all thanks for your instructions, but if I try to use the compile script in my folder where I copied it, I get the following message: ./compile.sh BRANCH=dev BOARD=orangepizero KERNEL_ONLY=yes PROGRESS_DISPLAY=plain RELEASE=jessie Error: missing build directory structure Please clone the full repository https://github.com/armbian/build/ What did I wrong? I followed all you points till I get this message. Thank you in advance
  6. Hey I followed the instructions on this page: https://kaspars.net/blog/linux/spi-display-orange-pi-zero But I can't get my 3.5" TFT Touchscreen work: https://aliexpress.com/item/3-5-3-5-Zoll-TFT-LCD-Touchscreen-320x480-SPI-RGB-Display-Board-F-r-Raspberry/32834124804.html I’ve got an Orange Pi Zero with armbian (ubuntu with legacy kernel). I only see the backlight LED is working (white screen). On kaspars blog everything looks so easy. I hope someone can help me with my problem. Thank you in advance guys!
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines