LCDproc problem

  • will need support added in our linux-amlogic kernel and support in the device tree before you can use it.


    What exactly are you referring to? I simply think that my config is wrong somehow. Why should something be added to device tree? I doubt the display was ever integrated into device tree on 7.0.2 builds (where it worked just fine). Is the kernel different between Krypton and Jarvis LibreELEC?
    Perhaps I misunderstand your reply?


  • What exactly are you referring to? I simply think that my config is wrong somehow. Why should something be added to device tree? I doubt the display was ever integrated into device tree on 7.0.2 builds (where it worked just fine). Is the kernel different between Krypton and Jarvis LibreELEC?
    Perhaps I misunderstand your reply?

    yes, the kernel is a completely different version. It is most likely missing some bits that are needed. I only just added SPI support for the odriod C2

  • thanks for your reply.I have Installed the addon & configure it but it wont work , lcd is connected by parallel port is possible to get this working on libreelec 64 bit (Generic) i have had it working under windows. when i run the script manually using ( /storage/.kodi/addons/http://service.lcdd/bin/lcdd.start ) i get this


    LibreELEC:~ # /storage/.kodi/addons/http://service.lcdd/bin/lcdd.start
    LCDd 0.5dev, LCDproc Protocol 0.3
    Part of the LCDproc suite
    Copyright (C) 1998-2014 William Ferrell, Selene Scriven
    and many other contributors

    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License
    as published by the Free Software Foundation; either version 2
    of the License, or (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software Foundation,
    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

    ^C
    LibreELEC:~ #

    Edited once, last by darren3976 (November 23, 2016 at 12:16 AM).

  • Hi, I updated my RPi3 from LibreELEC 006 to 009. My LCD stopped working. Maybe I have to do something with my config files. Is here someone to guide me step by step what I should do to solve the problem? (I have installed LCDproc from LibreELEC repo and set Driver correctly)

    Edited once, last by kavehebadi (December 10, 2016 at 4:13 AM).

  • Hi,

    when i try to start lcdd for my hd44780 connected via gpio on my rpi 3, i got the message
    "check_board_rev: This board is not recognized as a Raspberry Pi"
    Currently i've version 8.0.91 installed, but i've tried different versions with out success.

    can anybody help me to get my display running at my pi 3?

  • I have submitted a pull request to update the addon to the latest upstream commit, which among other things fixes hd44780 gpio issues.
    It should be available in the LibreELEC repository shortly.
    I can not test it, since I have no corresponding hardware.

    Use the settings of the addon (add-ons/my add-ons/service/LCDProc) to configure.
    Configuration files are in /storage/.kodi/userdata/addon_data/service.lcdd, acessible via ssh and smb.

    To view the log in ssh: journalctl -u service.lcdd

  • Hi
    my config file is:

    ## Server section with all kinds of settings for the LCDd server ##
    [server]
    DriverPath=/storage/.kodi/addons/http://service.lcdd/lib/lcdproc/
    Driver=hd44780
    Bind=127.0.0.1
    Port=13666
    ReportLevel=3
    User=nobody
    Foreground=no
    Hello=" "
    Hello=" KODI"
    Hello=" Boot up ..."
    Hello=" "
    GoodBye=" "
    GoodBye=" KODI"
    GoodBye=" Shutting Down "
    GoodBye=" "
    WaitTime=5
    ServerScreen=blank
    Backlight=open
    Heartbeat=open
    TitleSpeed=10
    ToggleRotateKey=Enter
    PrevScreenKey=Left
    NextScreenKey=Right
    ## The menu section. The menu is an internal LCDproc client. ##
    [menu]
    MenuKey=Escape
    EnterKey=Enter
    UpKey=Up
    DownKey=Down
    ### Driver sections are below this line, in alphabetical order ###
    ## Hitachi HD44780 driver ##
    [hd44780]
    pin_D7=18
    pin_D6=23
    pin_D5=24
    pin_D4=25
    pin_RS=7
    pin_EN=8
    ConnectionType=raspberrypi
    Port=0x378
    Device=/dev/ttyS0
    Speed=0
    Keypad=no
    Contrast=0
    Backlight=no
    OutputPort=no
    Size=16x4
    CharMap=hd44780_default
    DelayBus=true
    KeyMatrix_4_1=Enter
    KeyMatrix_4_2=Up
    KeyMatrix_4_3=Down
    KeyMatrix_4_4=Escape


    and my log is:

    -- Logs begin at Sat 2016-12-03 17:41:42 IRST, end at Thu 2016-12-15 15:20:09 IRST. --
    Dec 03 17:41:44 LibreELEC systemd[1]: Started LCDProc.
    Dec 03 17:41:44 LibreELEC sh[529]: LCDd version 0.5dev starting
    Dec 03 17:41:44 LibreELEC sh[529]: Using Configuration File: /storage/.kodi/userdata/addon_data/http://service.lcdd/LCDd.conf
    Dec 03 17:41:44 LibreELEC sh[529]: LCDd 0.5dev, LCDproc Protocol 0.3
    Dec 03 17:41:44 LibreELEC sh[529]: Part of the LCDproc suite
    Dec 03 17:41:44 LibreELEC sh[529]: Copyright (C) 1998-2014 William Ferrell, Selene Scriven
    Dec 03 17:41:44 LibreELEC sh[529]: and many other contributors
    Dec 03 17:41:44 LibreELEC sh[529]: This program is free software; you can redistribute it and/or
    Dec 03 17:41:44 LibreELEC sh[529]: modify it under the terms of the GNU General Public License
    Dec 03 17:41:44 LibreELEC sh[529]: as published by the Free Software Foundation; either version 2
    Dec 03 17:41:44 LibreELEC sh[529]: of the License, or (at your option) any later version.
    Dec 03 17:41:44 LibreELEC sh[529]: This program is distributed in the hope that it will be useful,
    Dec 03 17:41:44 LibreELEC sh[529]: but WITHOUT ANY WARRANTY; without even the implied warranty of
    Dec 03 17:41:44 LibreELEC sh[529]: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    Dec 03 17:41:44 LibreELEC sh[529]: GNU General Public License for more details.
    Dec 03 17:41:44 LibreELEC sh[529]: You should have received a copy of the GNU General Public License
    Dec 03 17:41:44 LibreELEC sh[529]: along with this program; if not, write to the Free Software Foundation,
    Dec 03 17:41:44 LibreELEC sh[529]: Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
    Dec 03 17:41:44 LibreELEC sh[529]: Listening for queries on 127.0.0.1:13666
    Dec 03 17:41:44 LibreELEC sh[529]: check_board_rev: This board is not recognized as a Raspberry Pi! Found:BCM2835
    Dec 03 17:41:44 LibreELEC sh[529]: Driver [hd44780] init failed, return code -1
    Dec 03 17:41:44 LibreELEC sh[529]: Could not load driver hd44780
    Dec 03 17:41:44 LibreELEC sh[529]: There is no output driver
    Dec 03 17:41:44 LibreELEC sh[529]: Critical error while initializing, abort.
    Dec 03 17:41:44 LibreELEC systemd[1]: [[0;1;39mservice.lcdd.service: Main process exited, code=exited, status=1/FAILURE[[0m
    Dec 03 17:41:44 LibreELEC systemd[1]: [[0;1;39mservice.lcdd.service: Unit entered failed state.[[0m
    Dec 03 17:41:44 LibreELEC systemd[1]: [[0;1;39mservice.lcdd.service: Failed with result 'exit-code'.[[0m
    Dec 15 15:19:27 LibreELEC systemd[1]: service.lcdd.service: Service hold-off time over, scheduling restart.
    Dec 15 15:19:27 LibreELEC systemd[1]: Stopped LCDProc.
    Dec 15 15:19:27 LibreELEC systemd[1]: Started LCDProc.


    and as it looks it does not work!


  • You are running on RPi (not on RPi2/3), right? If so, try ConnectionType=rpi, as suggested here LCD-Display HD44780 20×4 unter Openelec und Kodi(XBMC) an der Raspberry Pi – Michael Diesterhöft


  • I have submitted a pull request to update the addon to the latest upstream commit, which among other things fixes hd44780 gpio issues.
    It should be available in the LibreELEC repository shortly.
    I can not test it, since I have no corresponding hardware.

    Use the settings of the addon (add-ons/my add-ons/service/LCDProc) to configure.
    Configuration files are in /storage/.kodi/userdata/addon_data/service.lcdd, acessible via ssh and smb.

    To view the log in ssh: journalctl -u service.lcdd

    i've installed this update (v.8.1.101) but no change.

    Code
    screenlist_init()
    driver_load(name="hd44780", filename="/storage/.kodi/addons/service.lcdd/lib/lcdproc/hd44780.so")
    HD44780: using ConnectionType: raspberrypi
    hd44780: Using hd44780_default charmap
    check_board_rev: This board is not recognized as a Raspberry Pi!
    Driver [hd44780] init failed, return code -1

    if i look into the driver dir (/storage/.kodi/addons/http://service.lcdd/lib/lcdproc/) the hd44780.so was updated and now it has 107336 bytes.

    any ideas ?

  • I have found some time, to look into lcdd addon and its dependencies:


    libugpio
    A builded and installed linux is not neccessarry to build libugpio. Libugpio deals direct with the sysfs gpio interface and no kernel functions are used.
    I think we can safely remove linux form libugpio package.mk.
    Has someone tested the hd44780 gpio driver from lcdd?

    lcdd
    Sofar if you build lcdd by hand in a clean environment (make clean, scripts/create_addon lcdd), lirc is not builded before and configure gives a warning

    Code
    checking for main in -llirc_client... no
    configure: WARNING: The lirc driver needs the lirc client library

    When lirc is set as dependency or it is simple installed by another package, lcdd fails to build.

    Code
    In file included from /home/michael/workspace/LibreELEC.tv/build.LibreELEC-imx6.arm-8.0-devel/toolchain/armv7a-libreelec-linux-gnueabi/sysroot/usr/include/lirc/lirc_client.h:124:0,
                     from /home/michael/workspace/LibreELEC.tv/build.LibreELEC-imx6.arm-8.0-devel/lcdd-c05a7de/server/drivers/lircin.c:39:
    /home/michael/workspace/LibreELEC.tv/build.LibreELEC-imx6.arm-8.0-devel/toolchain/armv7a-libreelec-linux-gnueabi/sysroot/usr/include/lirc/curl_poll.h:36:29: error: array type has incomplete element type 'struct pollfd'
     int curl_poll(struct pollfd ufds, unsigned int nfds, int timeout_ms);

    vpeter had give a workaround for this: thread-3793-post-28178.html#pid28178

    Is lirc needed as a dependency for lcdd?