Posts by R0bur

    R0bur Might be that with 4.4-Kernel some pinctrls are initialised differently: Please try to replace GPIO_ACTIVE_HIGH to GPIO_ACTIVE_LOW for one or both leds (i.e: set 0x0 to 0x1)

    Thank you for the recommendations!

    I have solved the flashing blue led on RC-events trouble by removing "linux,default-trigger = "rc-feedback";" line from the red led section and putting "linux,default-trigger = "default-on";" line to the blue led section.

    Next I try to play with GPIO_ACTIVE_HIGH and GPIO_ACTIVE_LOW values:

    Code
    0x0 0x0
    
            Power on    Power off
    Blue        +        +
    Red         -        +
    Code
    0x1 0x1
    
            Power on    Power off
    Blue        -        -
    Red         +        -

    "0x0" is most suitable case and red led works as expected. So my trouble is that the blue led doesn't switches its state.

    First at all thank you for the great work of porting LibreELEC to RK3229-based boards!

    The image LibreELEC-RK322x.arm-9.2-devel-20200114140204-0bca75f-rk3228b-v88marsII.img runs fine on my TV-BOX. But power leds display state wrong: blue and red leds both don't glow while the box works, and only blue led glows when the box is off.

    Native firmware of the TV-BOX has DTS-sections:

    while LibreELEC image has:

    I changed "gpios" values in the LibreELEC "leds" section to:

    led_blue gpios = <0x3f 0x7 0x0>

    led_red gpios = <0x6c 0x15 0x0>

    Now blue led glows while the box works and blue and red leds both glow when the box is off. And the blue led flashes on each remote control button pressing.

    I would like more traditional behaviour: only blue led glows while the box works and only red led glows when the box power off.

    How do I do correct power leds settings?

    Here is a message about successfully running Debian Linux on RK3229 TV box:

    External Content www.youtube.com
    Content embedded from external sources will not be displayed without your consent.
    Through the activation of external content, you agree that personal data may be transferred to third party platforms. We have provided more information on this in our privacy policy.

    I don't know is it true or not.

    I would like to enable swapping for the LibreELEC 8.2.3.1-m201d because AmLogic S805 TV Box has only 512 Mb RAM and freezes on the YouTube browsing.

    What I do:

    1) Set the build options to:

    Code
    SWAP_SUPPORT="yes"
    SWAP_ENABLED_DEFAULT="no"
    SWAPFILESIZE="256"

    and the Linux kernel options to:

    Code
    CONFIG_SWAP=y
    FRONTSWAP=y
    HIBERNATION=n
    MTD_SWAP=n
    ZCACHE=y
    ZCACHE_DEBUG=n

    2) Compile and create the developer release image, install the image to the SD Card and boot it.

    3) Customise the swap configuration file:

    Code
    #cp /etc/swap.conf /storage/.config/
    #sed -i 's/SWAP_ENABLED="no"/SWAP_ENABLED="yes"/' /storage/.config/swap.conf

    and create the file /storage/.config/autostart.sh with contents:

    Bash
    #!/bin/sh
    sysctl -qw vm.swappiness=40

    But after all the swapping does not work:

    What is my mistake?

    I would like to build LibreELEC image for MXQ S805 m201d device from sources GitHub - kszaq/LibreELEC.tv: 'Just enough OS' for Kodi using the guide: Compile [LibreELEC.wiki] .

    But after the command:

    PROJECT=S805 SYSTEM=m201d ARCH=arm make image

    and a lot of compilation time I got linker error:

    I use Lubuntu 16.04.3-i386 (32 bit) fresh VM as host system, gcc version 5.4.0 20160609 (Ubuntu 5.4.0-5ubuntu1~16.04.9).

    I suppose that wrong architecture (64 bit) libssl and libcrypto were created (because linker says 'skipping incompatible...') but I don't know how to resolve this issue.

    Which way is to continue building process?

    P.S. Before this issue I got error:

    In file (...) /usr/include/features.h fatal error: sys/cdefs.h: No such file or directory

    and resolved this issue installing g++-multilib:

    sudo apt install g++-multilib.