Jump to content

sgei

Members
  • Posts

    38
  • Joined

  • Last visited

Posts posted by sgei

  1. Hi,

     

    this fix does not work for BananaPi / BananaPi Pro.

    I have blacklisted the module

     

    nano /etc/modprobe.d/blacklist
    
    blacklist sun4i_drm_hdmi

     

    After that:

     

    update-initramfs -u

     

    But after a reboot, I still have ~10% cpu-load from a kworker process.

     

    2020-10-11_08h57_00.png.802a21b9593460a48fcc5df934afeca8.png

     

    What I get with linux-perf-5.8 is:

     

    2020-10-11_09h44_09.png.40aa4c72491020dc6e94dc2bddca2f9f.png

     

    Any idea?

     

    Steffen

  2. Hi Igor, hi all,

     

    I invested some time in the problem over the weekend and was able to find a solution.

    I also found a workaround for the shutdown/poweroff-issue.

     

    Here is the link to the updated tutorial:

     

     

    Now it would be nice to have a device tree overlay for this display.

     

    @Igor, can you include the driver for the touchscreen by default (kernel config / not as module)?

     

    Can anybody help to create a overlay?

     

    Steffen

     

  3. Hello,

     

    I know there are some threads regarding this issue, but there does not seem to be a correct solution.

     

    Since kernel 4.14 (or maybe earlier), there are some Kworker processes that consume 10-25% CPU.

     

    In May 2018 I once had an image built with the kernel 4.17.13. With this the problem had disappeared.
    But now with the DEV-kernel 4.19.X it's back.

     

    Can someone please investigate or say something about this?

     

    Steffen

  4. Hi Igor, hi team,

     

    we are using Armbian since the the first version.

    We only using it with Banana Pi and Banana Pi Pro.

     

    Yesterday I wanted to build a new image for our BananaPro projects, but unfortunately there is no support for Banana Pi Pro anymore. Why?

     

    Is it possible to continue supporting this board?

     

    What is the difference to the Banana Pi? You still support Banana Pi.

     

    Thanks.

     

    Steffen

  5. root@bpro:/etc/armbianmonitor/datasources# ll
    insgesamt 0
    lrwxrwxrwx 1 root root 27 Aug  8 12:03 pmictemp -> /sys/power/axp_pmu/pmu/temp
    lrwxrwxrwx 1 root root 47 Aug  8 12:03 soctemp -> /sys/devices/virtual/thermal/thermal_zone0/temp
    root@bpro:/etc/armbianmonitor/datasources# cat pmictemp
    31700
    root@bpro:/etc/armbianmonitor/datasources# cat soctemp
    cat: soctemp: Das Argument ist ungültig

     

    /usr/bin/armbianmonitor: Zeile 352: [: -ge: Einstelliger (unärer) Operator erwartet.
         °C 32.2°C   4.89V  0/6
    18:11:45:  960MHz  0.43   8%   3%   4%   0%   0%   0%/usr/bin/armbianmonitor: Zeile 351: read: Lesefehler: 0: Das Argument ist ungültig

     

    Steffen

  6. Hi,

     

    I have a BananaPi and BananaPi Pro connected to the Lemaker 7" TouchLCD.

    When I boot the system, I can't see any console output. I only see a flashing cursor in the left top corner and then it starts the X-window-manager.

     

    What do I have to change to see the boot messags on my LVDS LCD?

     

    I have tried to change the console=both value to tty0 or tty1 via armbian-config, but this doesn't work.

     

    Any ideas?

     

    Here is the output from cat /proc/cmdline:

     

    root=UUID=e9635572-227e-485c-b76d-b4f0d6d34394 rootwait rootfstype=ext4 console=tty1 console=ttyS0,115200 hdmi.audio=EDID:0 disp.screen0_output_mode=1920x1080p60 panic=10 consoleblank=0 loglevel=1 ubootpart=3c5d8b7c-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

     

    Steffen

  7. EDIT: 04.01.2020 - Fixed patches to work with latest armbian sources. (references have changed)

     

    Hi everybody,

     

    Here is a tutorial to enable the Lemaker 7" Touchscreen on BananaPi Pro with Debian Buster and Mainline-Kernel 5.XX.XX.

     

    Kernel: Mainline 5.4.6 / Buster
    Board: BananaPi Pro

     

    WebLinks:

        • https://forum.armbian.com/topic/1905-enabling-lcd-in-u-boot-kernel-472/
        • https://forum.armbian.com/topic/1849-touch-driver-banana-pi/
        • http://www.atakansarioglu.com/getting-started-bananapi-linux/
        • http://forum.lemaker.org/thread-15482-1-1.html
        • http://linux-sunxi.org/LCD

     

    To make the 7"LCD and the Touchscreen working with BananaPi Pro we need to patch some files and change the kernel config to build the driver for the touchscreen.
    To do this we need a working setup of the Armbian build tool chain (https://docs.armbian.com/Developer-Guide_Build-Preparation/)

     

    /home/<USER>/build/cache/sources/u-boot/v201X.XX/configs/Bananapro_defconfig
    /home/<USER>/build/cache/sources/u-boot/v201X.XX/arch/arm/dts/sun7i-a20-bananapro.dts
    /home/<USER>/build/cache/sources/linux-mainline/linux-4.XX.y/arch/arm/boot/dts/sun7i-a20-bananapro.dts

     

    1. U-Boot ( u-boot version that supports the LCD - must be compiled)

     

    Start the build process with ./compile.sh CREATE_PATCHES=yes

     

    When asked for:
    [ warn ] Applying existing u-boot patch [ /home/[USER]/build/output/patch/u-boot-sunxi-current.patch ]
    [ warn ] Make your changes in this directory: [ /home/[USER]/build/cache/sources/u-boot/v201X.XX ]
    [ warn ] Press <Enter> after you are done [ waiting ]

     

    a) edit /home/<USER>/build/cache/sources/u-boot/v201X.XX/configs/Bananapro_defconfig

     

    add the following:

    #7" LVDS LCD
    CONFIG_VIDEO_LCD_MODE="x:1024,y:600,depth:24,pclk_khz:55000,le:100,ri:170,up:10,lo:15,hs:50,vs:10,sync:3,vmode:0"
    CONFIG_VIDEO_LCD_PANEL_LVDS=y
    CONFIG_VIDEO_LCD_POWER="PH12"
    CONFIG_VIDEO_LCD_BL_EN="PH8"
    CONFIG_VIDEO_LCD_BL_PWM="PB2"

     

    b) edit /home/<user>/build/cache/sources/u-boot/v201X.XX/arch/arm/dts/sun7i-a20-bananapro.dts

     

     add after:

     

    &i2c2 {
        ...
    };

     

    the following:

    &i2c3 {
    	status = "okay";
    	pinctrl-names = "default";
    	pinctrl-0 = <&i2c3_pins>;
    	edt: edt-ft5x06@38 {
    		compatible = "edt,edt-ft5x06", "edt,edt-ft5206";
    		reg = <0x38>;
    		pinctrl-names = "default";
    		pinctrl-0 = <&edt_ft5x06_pins_a &edt_ft5x06_pins_b>;
    		interrupt-parent = <&pio>;
    		interrupts = <7 9 IRQ_TYPE_EDGE_FALLING>;
    		touchscreen-size-x = <1024>;
    		touchscreen-size-y = <600>;
    	};
    };

     

    Add these two new sections to the end of the file:

    &pio {
        edt_ft5x06_pins_a: ft5@0 {
            pins = "PH9";
            function = "irq";
            drive-strength = <20>;
            bias-pull-up;
        };
        edt_ft5x06_pins_b: ft5@1 {
            pins = "PH7";
            function = "gpio_out";
            drive-strength = <20>;
            bias-pull-up;
            output-high;
        };
    };
    
    &pwm {
          pinctrl-names = "default";
          pinctrl-0 = <&pwm0_pin>, <&pwm1_pin>;
          status = "okay";
    };

     

    Then save and press <Enter> to continue.

     

    2. Kernel patches - DTB (Device Tree Blob) file that fits to your Kernel and supports pwm

     

    When asked for:
    [ warn ] Applying existing kernel patch [ /home/<USER>/build/output/patch/kernel-sunxi-current.patch ]
    [ warn ] Make your changes in this directory: [ /home/<USER>/build/cache/sources/linux-mainline/orange-pi-5.XX ]
    [ warn ] Press <Enter> after you are done [ waiting ]

     

    c) edit /home/<USER>/build/cache/sources/linux-mainline/orange-pi-5.XX/arch/arm/boot/dts/sun7i-a20-bananapro.dts

     

    add the same lines like section b)

     

    Then save and press <Enter> to continue.

     

    3. Compile Touchdriver

     

    menuconfig > Device Drivers > Input Device Support > Touchscreens > EDT FocalTech FT5x06 I2C Touchscreen support

     

    grafik.png.75a03d1a3b2332b9aaf10e31edfb6198.png

     

    Exit and save the Kernel configuration.

     

    This is the outcome. You probably have a newer version than 19.11.4:

    2020-01-04_18h35_16.thumb.png.3a14d78e4e914cdb8a82cf2423e60d93.png

     


    Now you can flash the image to a SD-Card or you have to install the new DEBs.

     

    2020-01-04_18h38_18.png.6633f8519e653fc1eeee3602a7364c4c.png

     

    dpkg -i linux-u-boot-current-bananapipro_19.11.4_armhf.deb
    dpkg -i linux-dtb-current-sunxi_19.11.4_armhf.deb
    dpkg -i linux-image-current-sunxi_19.11.4_armhf.deb

     

    reboot

     

    The result:

     

    The LCD and the touchscreen are working. :D

     

    Attention!
    There is still the problem with the shutdown.
    When the patches were made for the LCD, the board did not shut down completely during a shutdown (LCD still had voltage and the red LED on the board did not go out).
     

    Workaround:

     

    We need to disable the LCD before the shutdown is finished.

    Therfore we have to create a script in the folder /lib/systemd/system-shutdown

     

    e.g. (as root)

     

    touch /lib/systemd/system-shutdown/lcd_off.sh

    chmod +x /lib/systemd/system-shutdown/lcd_off.sh

    nano /lib/systemd/system-shutdown/lcd_off.sh

     

    add these lines:

     

    #!/bin/bash
    
    # LCD Power			PH12	H=8		(8-1)*32+12		= 236
    # Backlight enable	PH8		H=8		(8-1)*32+8		= 232
    # Backlight PWM		PB2		B=2		(2-1)*32+2		= 34
    
    if [ ! -d "/sys/class/gpio/gpio34" ] 
    then
        sudo sh -c 'echo "34" > /sys/class/gpio/export'
    	sudo sh -c 'echo "out" > /sys/class/gpio/gpio34/direction'
    	sudo sh -c 'echo "1" > /sys/class/gpio/gpio34/value'
    fi
    if [ ! -d "/sys/class/gpio/gpio232" ] 
    then
        sudo sh -c 'echo "232" > /sys/class/gpio/export'
    	sudo sh -c 'echo "out" > /sys/class/gpio/gpio232/direction'
    	sudo sh -c 'echo "1" > /sys/class/gpio/gpio232/value'
    fi
    if [ ! -d "/sys/class/gpio/gpio236" ] 
    then
        sudo sh -c 'echo "236" > /sys/class/gpio/export'
    	sudo sh -c 'echo "out" > /sys/class/gpio/gpio236/direction'
    	sudo sh -c 'echo "1" > /sys/class/gpio/gpio236/value'
    fi
    
    # LCD on/off
    sudo sh -c 'echo "0" > /sys/class/gpio/gpio34/value'
    sudo sh -c 'echo "0" > /sys/class/gpio/gpio232/value'
    sudo sh -c 'echo "0" > /sys/class/gpio/gpio236/value'

     

    The script will be executed right before the board powers off.

     

    Measured power consumption:

     

    PowerON (booting / lcd still off) = 0.4A - 0.5A

    LCD turns on (still booting) = 0.85A - 1.05A

    Boot process ended (LCD on) = 0.75A

    Board on, LCD off = 0.35A - 0.45A ( -> LCD needs around 0.4A power )

    shutdown -h now = 0.00A :D

     

    4. Control the Power of the Backlight:

     

    The backlight PWM is on PIN CON2 PB2.

     

    Following the instructions on

    http://linux-sunxi.org/GPIO#Accessing_the_GPIO_pins_through_sysfs_with_mainline_kernel

    http://forum.lemaker.org/thread-10852-1-1.html

    we have to export GPIO-PIN 34.

     

    (position of letter in alphabet - 1) * 32 + pin number

    position of letter in alphabet: B = 2
    pin number: 2

     

    ( 2 - 1 ) * 32 + 2 = 34

     

    echo 34 > /sys/class/gpio/export
    echo "out" > /sys/class/gpio/gpio34/direction

     

    Power on the Backlight:
    echo "1" > /sys/class/gpio/gpio34/value

     

    Power off the Backlight:
    echo "0" > /sys/class/gpio/gpio34/value

     

    Now we could use a switch connected to a GPIO-IN to control the backlight.

     

    Steffen

  8. Hello,

     

    I've built a new and clean Image for "Armbian_5.34_Bananapipro_Debian_stretch_default_3.4.113_desktop".

     

    The network-manager is not running and can not be started.
     

    root@bananapipro:~# /etc/init.d/network-manager start
    [....] Starting network-manager (via systemctl): network-manager.serviceJob for NetworkManager.service failed because the control process exited with error code.
    See "systemctl status NetworkManager.service" and "journalctl -xe" for details.
     failed!
    root@bananapipro:~#
    root@bananapipro:~# systemctl status NetworkManager.service
    ● NetworkManager.service - Network Manager
       Loaded: loaded (/lib/systemd/system/NetworkManager.service; enabled; vendor preset: enabled)
       Active: failed (Result: exit-code) since Fri 2017-11-17 12:29:11 CET; 2min 36s ago
         Docs: man:NetworkManager(8)
      Process: 1590 ExecStart=/usr/sbin/NetworkManager --no-daemon (code=exited, status=226/NAMESPACE)
     Main PID: 1590 (code=exited, status=226/NAMESPACE)
    
    Nov 17 12:29:11 bananapipro systemd[1]: NetworkManager.service: Unit entered failed state.
    Nov 17 12:29:11 bananapipro systemd[1]: NetworkManager.service: Failed with result 'exit-code'.
    Nov 17 12:29:11 bananapipro systemd[1]: NetworkManager.service: Service hold-off time over, scheduling restart.
    Nov 17 12:29:11 bananapipro systemd[1]: Stopped Network Manager.
    Nov 17 12:29:11 bananapipro systemd[1]: NetworkManager.service: Start request repeated too quickly.
    Nov 17 12:29:11 bananapipro systemd[1]: Failed to start Network Manager.
    Nov 17 12:29:11 bananapipro systemd[1]: NetworkManager.service: Unit entered failed state.
    Nov 17 12:29:11 bananapipro systemd[1]: NetworkManager.service: Failed with result 'exit-code'.

     

    Steffen

  9. Hello guys,

     

    I have tried the following HowTo to get my 7 inch LCD working, but I can't find the file "sources/u-boot/v2016.09/configs/Bananapi_defconfig".

     

    Can anybody help me please?

     

    On 22.9.2016 at 9:00 AM, MartinKeppler said:

    So, now I can tell you how to enable LCD in u-boot and DT.

     

    First getting the source of armbian from https://github.com/igorpecovnik/lib

    Open the file sources/u-boot/v2016.09/configs/Bananapi_defconfig and add:

    
    CONFIG_VIDEO_LCD_MODE="x:800,y:480,depth:24,pclk_khz:30000,le:40,ri:40,up:29,lo:13,hs:48,vs:3,sync:3,vmode:0"
    CONFIG_VIDEO_LCD_POWER="PH12"
    CONFIG_VIDEO_LCD_BL_EN="PH8"
    CONFIG_VIDEO_LCD_BL_PWM="PB2"

    Now LCD is enabled in u-boot. But it will not switch on backlight, because backlight uses pwm and pwm is disabled per default in DT. So you also have to add:

    
    &pwm {
          pinctrl-names = "default";
          pinctrl-0 = <&pwm0_pins_a>, <&pwm1_pins_a>;
          status = "okay";
    };

    Ready!

    But be aware, LCD only turns on if there is no HDMI Monitor plugged in!!

     

    Ok, hopping some one else of you can use this stuff.

     

    Thanks.

     

    Steffen

  10. Hello everybody,

     

    I was running Armbian Wheezy for a very long time. Now I switched to the latest build and I have some problems.

     

    My System:

     

    • BananaPi Pro
    • Lemaker 7" touchscreen with ft5x_ts touch controller
    • Armbian 5.25 Kernel 3.4.113
    • LXDE Desktop (task-lxde-desktop)

     

    Here you can download my image: www.geier-media.de/upload/armbian/armbian_jessie_5.25_3.4.113_4gb_20170319_01.zip

    And here is the install text file: www.geier-media.de/upload/armbian/armbian_jessie_5.25_3.4.113_4gb_20170319_01.txt

     

    Users: root (PW: ".root") / vispro (PW: ".vispro")

     

    The BIN-File for the touchscreen is activated!

     

    In Debian Whezzy I activated the third button emulation with the following tasks:

     

    1. "touch /etc/X11/xorg.conf"
    2. "nano /etc/X11/xorg.conf"
    Section "InputClass"
    	Identifier "Touchscreen"
    	MatchProduct "ft5x_ts"
    	Driver "evdev"
    	Option "EmulateThirdButton" "1"
    	Option "EmulateThirdButtonTimeout" "750"
    	Option "EmulateThirdButtonMoveThreshold" "30"
    EndSection

    Unfortunately it is not working with Debian Jessie.

     

    Does anybody has an idea?

     

    Thanks.

     

    Steffen

  11. Hi,

     

    I updated my image for BananPi from v5.00 (Wheezy) to the latest one (v5.16).

    Everything works fine, but if I run "apt-get upgrade" I get the message that the package "linux-whezzy-root-bananapi" is reserved (will not be installed).

     

    hardware-info says 6 packages to update, but I can't...

     

    Is this correct? Do I need this package to be on the latest version? What to do?

     

    Thanks.

     

    Steffen

    post-233-0-62846500-1470243555_thumb.png

  12. Hi,

     

    for all my automation projects I use BananaPi and BananaPro. As far as I know the difference is the script.bin file.

    Is this right? I will not maintain two Images.

    Right now I use the Image for the BananaPro 5.14. I changed the sym-link to BananaPi.bin. But the hardware-info after login shows "BananaPi Pro".

    Is there anything more I have to do?

     

    Thanks.

     

    Steffen

  13. @kxmx,

     

    Hello, I finally received this display http://de.aliexpress...2256858233.html. It works great, but does not react to touch. I followed this guide http://wiki.lemaker.org/BananaPro/Pi:LCD_Module. There is something more todo? Or it works only with stylus?

     

     

    the display you bought is just a normal LCD without touch. The right one is black like this: LCD with Touch or LCD with Touch

     

    Where are you from? Maybe I can sell one of these to you.

     

    Steffen

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines