error on tool/download-tool

  • Hi,

    I tried to build a libreElec from git - but download-tool fails with

    Code
    Resolving sources.libreelec.tv (sources.libreelec.tv)... 138.68.75.163
    Connecting to sources.libreelec.tv (sources.libreelec.tv)|138.68.75.163|:80... connected.
    HTTP request sent, awaiting response... 301 Moved Permanently
    Location: https://sources.libreelec.tv/mirror/kmscube/kmscube-e6386d1b99366ea7559438c0d3abd2ae2d6d61ac.tar.gz [following]
    --2021-04-18 06:13:00--  https://sources.libreelec.tv/mirror/kmscube/kmscube-e6386d1b99366ea7559438c0d3abd2ae2d6d61ac.tar.gz
    Connecting to sources.libreelec.tv (sources.libreelec.tv)|138.68.75.163|:443... connected.
    HTTP request sent, awaiting response... 404 Not Found
    2021-04-18 06:13:00 ERROR 404: Not Found.

    I guess, the old one (kmscube-98f31bf.tar.xz) does not work?

  • Thank you for that sophisticated response :)

    Didn't heard about Red Herring before - so I learned at trying to understand your response. Fine!

    So I did the download again - this time with logging.

    Of cause - you where right.

    First error is this:

    Code
    --2021-04-18 12:55:29--  http://sources.libreelec.tv/devel/bcm2835-driver-1df55790fb191704c0ce630d4d0713a8beb43a7d.tar.xz
    Resolving sources.libreelec.tv (sources.libreelec.tv)... 138.68.75.163
    Connecting to sources.libreelec.tv (sources.libreelec.tv)|138.68.75.163|:80... connected.
    HTTP request sent, awaiting response... 301 Moved Permanently
    Location: https://sources.libreelec.tv/devel/bcm2835-driver-1df55790fb191704c0ce630d4d0713a8beb43a7d.tar.xz [following]
    --2021-04-18 12:55:29--  https://sources.libreelec.tv/devel/bcm2835-driver-1df55790fb191704c0ce630d4d0713a8beb43a7d.tar.xz
    Connecting to sources.libreelec.tv (sources.libreelec.tv)|138.68.75.163|:443... connected.
    HTTP request sent, awaiting response... 404 Not Found
    2021-04-18 12:55:29 ERROR 404: Not Found.

    next error is this

    When I start the download-tool again (without cleaning the download-cache), the checksum error does not appear. Only the second part (404) will happen.

  • Hi,

    I don't want to build a Generic one.

    The reason for me to build a libreElec from git is, that Penta Sata needs a controller for the included fan to work.

    On debian its possible to install the driver from radxa, but for other linux variants there's no support.

    So I looked into the driver that controls the fan and it consists of just a few python scripts. Not difficult to port/migrate, but libreElec does not have a pip with python. So no way to extend libreElec.

    All other linux variants, that have a mature python support and run on the rock pi4 don't have hardware support for video and don't have multichannel audio over hdmi neither ...

    So extending libreElec is the only choice for me.

    But I don't have experience in patching linux or experience with python or libreElec, so I can't do the job without your help.

  • So no way to extend libreElec.

    after a quick look I think there should be everything there already

    they ship some python scripts and install a kitchen sink of depends from pip

    install the driver from radxa

    they install

    https://s3.setq.io/rockpi/deb/rockpi-penta-0.10.deb the fan.py

    https://s3.setq.io/rockpi/pypi/Adafruit_SSD1306-v1.6.2.zip the driver ?

    and make some changes at the pin output

    The "driver" is already there LibreELEC.tv/packages/addons/addon-depends/adafruit-libraries-depends/Adafruit_Python_SSD1306 at master · LibreELEC/LibreELEC.tv · GitHub so likely it should just some copy/paste needed to have it working. Not sure if anything else is missing.

    just the oled.py looks fishy, but nothing that can't be done I think

  • Thank you very much for your attention!

    Don't know, whether I got it right. I did just some quick research.

    If I got it right, then adafruit is a driver for the little display on top.

    "rockpi-penta" is the fan driver.

    At debian it installs the following python packages:

    Code
    python3-rpi.gpio
    python3-setuptools
    python3-pip
    python3-pil
    python3-spidev
    pigpio
    python3-pigpio

    I issued a 'python help modules' to see, which of the modules is already installed and it looked as none of the above packages is available at libreElec.

    But ...

    ... I have no idea of python and its internals, so I can be wrong.

    I guess the "rpi.gpio" is needed for the pwm to control fanspeed. "spidev" might be used to connect the display ...

    I only want the fan control and nice to have (if possible) the control of the top button - which might be useful to restart the box after shutdown (without switching power off and on). I have no plans in using the display ...

  • Code
    Incorrect checksum calculated on downloaded file: got 896ac76671a9b89836a7014b16cc85b45b041e03fe34a8f529f4718aa2b15cef wanted 0f162bbcef951d5e3fc5e8974f5944c420657edc72bf51e0074f46f30d942722

    Checksum of package downloaded from GitLab has changed. Update packages/graphics/kmscube/package.mk.

    PS: With my Generic setup I cannot download/test kmscube. If there is a volunteer for a fix ...