Posts by Nofan Tasi

    log-2016-09-08-02.23.37.zipkodi.gdb.gz

    thanks for 'Almost there' build !

    I installed it on my Mini MX-G p200_2G (16GB/2GB/1Mbps)

    This is follow up on similar 006 report.
    LibreELEC

    Basically: some progress

    - SPDIF output does not work (regardless of system/audio/output settings)
    - I could make bluetooth output work sometimes on EU BOOM 2
    * and it did not stutter nor lag behind live DVB-T video anymore
    * but next attempts say 'error' when connecting (resource temporary unavailable)
    * if I forget and pair (+trust) again it works again (for some time)
    - When play bluetooth via Belkin I65 it does stutter and lag behind live DVB-T video
    perhaps the fact that there are 2 bluetooth outputs near does confuse LE?

    When disabling/enabling bluetooth sometimes I can crash kodi.

    I include gdb on core which basically seems to have infinite stack of PyEval_EvalFrameEx (I only show few)

    Thanks for your great work and for looking into this

    PS: I first tried with keeping previous gxbb_p200_2G_mini_mxg_2_16.dtb and,
    next by toothpick replacing it with new gxbb_p200_1Gbit.bin but no difference ...
    I also tried aml_autoscript from 7.0.2.007

    Let me know what I can do to troubleshoot and I would be very happy to help.
    (maybe I should enable debug logging and/or verbose logging for audio component?)

    You must ask to kszaq, because the 1 post is not mine... Anyway, I followed the instruction in wiki: HOW TO:Update LibreELEC - LibreELEC
    Also, there are some video around on the web, like this :https://www.youtube.com/watch?v=uLvkbw1S3ic

    @willifan & doggyofone
    Agreed: upgrade instructions are LE generic and otherwise device, vendor and architecture independent.
    Whatever 1st page OP instructions are very specific to what thread targets: installing 7.0.2.006 build for S905.
    But one should always keep the baseline instructions in mind and inherit specifics from there.

    Hi kszaq

    I built alex's LibreELEC-Amlogic.aarch64-MiniMX-7.0.2.003 to boot from sdcard.
    (his image is supposed to run from nand, alex kindly instructed how to adjust kernel CONFIG_CMDLINE)

    good: unlike your LibreELEC-S905.aarch64-7.0.2.006, it does play spdif audio (even when output HDMI selected).
    not so good: unlike your LibreELEC-S905.aarch64-7.0.2.006, it does not load dvb_usb_v2 ;(

    In any case, I am sure soon we will see best of both worlds :)

    Thanks kszaq for your work.


    If you use SD card to boot, it always picks dtb.img that is currently on SD card. If it is not present, it uses dtb from internal partition (= when you still have Android on internal partition with old device tree LE won't boot). I am preparing a next build with slight changes to device trees and audio system that might solve your issues. Will be out this week.

    Thanks for patiently explaining the dtb.img mechanics! It is clear to me now. I will certainly provide feedback on your upcoming adjustments. Please take the valuable time you need. ...


    For S/PDIF can you try using device tree with other name: gxbb_p200_2G_iNepo_Q?

    Thanks for kind follow up!
    ... toothpick boot from external sdcard with gxbb_p200_2G_iNepo_Q as dtb.img went just fine.
    And next plain reboot as well.
    But audio artifact symptoms I experienced are similar as with gxbb_p200_2G_mini_mxg_2_16
    - spdif does not work
    - bluetooth stutters
    I am very modestly at your disposal to debug further!
    Also, I notice live dvb-t video/bluetooth audio drifts away more and more (need to check with gxbb_p200_2G_mini_mxg_2_16 too).
    Not being expert I nevertheless feel like there is an audio alsa/pulseaudio/bluetooth issue to be checked.

    log-2016-08-23-18.59.52.ziplog-2016-08-23-19.02.00.ziplog-2016-08-23-19.14.59.zip

    Hi kszaq

    Congratulations and thanks for S905 LE. !

    As requested I create a separate thread for potential bug troubleshooting.

    I have the MiniMX-G (16/2)GB

    Basically, when going from 005 to 006, SPDIF audio stopped working and Bluetooth stutters.

    I created 3 log ZIPs

    (1) log-2016-08-23-18.59.52.zip
    Taken right after boot (with audio out set to HDMI and Bluetooth off)
    and having played a song. By the way HDMI audio works (but my iiyama
    monitor has not so good sound)

    (2) log-2016-08-23-19.02.00.zip
    Taken after setting audio out to pulse: Bluetooth/SPDIF and trying to
    play same song. No SPDIF sound. By the way, SPDIF gets transformed to
    3.5 jack which plugs into UE Boom 2 speaker.

    I see no spdif related issues in log.
    Perhaps alsa needs to be unmuted? I tried so (but maybe not correctly).

    (3) log-2016-08-23-19.14.59.zip
    Taken after turning Bluetooth on and trying to connect to Bluetooth
    speakers ('Belkin I6' and 'UE Boom 2'), Belkin connected easily but UE
    not (because some device was already connected). Finally it
    connected, but audio stutters.

    you may find 'Skipping ... pulseaudio ...' in logs

    Note that previously I had managed to 006 crash kodi but I had already
    removed the crashinfo files from .cache/cores hoping to reproduce
    another crash. So far that, I think, did not succeed to crash again into gdb.

    Still I do see 'Thread ' stack traces in kodi logs...

    Please let me know how I can contribute troubleshooting audio.

    Thanks

    have a nice day

    .005 worked ok but still froze. The card is high quality SanDisk Ultra Plus but thats why I wanted to try the USB to elimate that issue possibility.

    When not certain about external storage state, you can always consider to run filesystem checks on its partitions.
    Note that 2nd partition is ext4 so you may need a Linux computer to fsck it. Or maybe Windows and MaxOSX can file system check ext4 partitions too. ...


    Cannot get .006 to boot past teddy-bear screen with USB (with and without holding in button with pin) and I am using MiniMX. I can get it to work on SD card but, as with all builds I have tried, I get random freeze ups. Therefore, and unfortunately, I'm unable to use LibreElec on my box as I dont wont to destroy the NAND. What to do ? Dont know, tried everything I think. Oh and yes I did try both USB slots (only 2 on this box) and I did use the correct dtb.img (which is the one that works for the SD card).

    did/does .005 work well?


    This is why you need to change device tree: to make S/PDIF audio work. I think for the next release I will modify generic device tree to be more compatible with optical output that is present on most devices.

    oops! My bad!: it turns out, previously, I had been using device tree gxbb_p200_minimx in stead of gxbb_p200_2G_mini_mxg_2_16
    (which, for some reason, I had not noticed to be present).
    So, now I could toothpick boot LE with correct device tree image. Previously such would not have passed teddy bear image.
    However, S/PDIF audio still does not seem to work.
    I can provide alsa,pulseaudio, other info. I looked at some and cannot spot obvious errors.

    Should I perhaps replace aml_autoscript with the one from 7.0.2.006 ?

    Thank you for noticing this! I needed to change drivers install path and now they should work. Please re-download, update and check!

    Hi kszaq

    Sorry for late reaction.

    New 7.0.2.006 image (md5sum 73358453c8c8b1a4e8099d6dc325c6f6) does
    load all kernel modules, including the media_build ones.

    Thanks a lot for the fast fix and support. You are a hero!

    It may be the case I have +/- same box as you, because: the image
    dd-ed verbatim to scdard toothpick boots just fine into LibreELEC. No
    need (for me) to change aml_autoscript or dtb.img on 1st partition.

    DVB-T client/server works great

    I do have one issue though: audio ...

    via HDMI output device audio works fine, but: my monitor audio is not
    really good, so I prefer audio to play via UE Boom 2 bluetooth
    speaker. If I do so via pulseaudio output device, audio stutters. Same
    if I connect to another bluetooth speaker. And, if I physically
    connect via spdif out to UE Boom 2 speaker jack 3.5 in (using a spdif
    to jack 3.5 converter) then there is no sound. And, if I physically
    connect via monitor jack 3.5 out to UE Boom 2 speaker jack 3.5 in, then
    there is sound (again choosing HDMI output device of course). No
    stutter via HDMI output device.

    Note that the bluetooth and spdif audio worked great on 7.0.2.005
    via pulseaudio output device, so I guess perhaps something is wrong
    with pulseaudio/bluetooth/spdif combo. The best audio quality, on 7.0.2.005,
    by the way, was via spdif out to UE Boom 2 speaker jack 3.5 in.
    But, as said, such does not give sound on 7.0.2.006.

    Also: I managed to crash kodi (which spawned a gdb), but I am not
    aware on how to get into gdb for inspection. I crashed by disconnecting
    bluetooth from speaker.

    in ./.kodi/temp/.kodi_crashlog.log I could see plenty
    0x0000007f866a76e8 in PyThread_acquire_lock () from /usr/lib/libpython2.7.so.1.0

    Let me know if and how I can help further debug audio issue.

    Have a nice day.
    [hr]
    minor issue:
    I used to read temperature from /sys/devices/virtual/thermal/thermal_zone0/temp but it gives:
    LibreELEC:~ # cat /sys/devices/virtual/thermal/thermal_zone0/temp
    cat: read error: Invalid argument

    Hi kszaq

    upgrade 7.0.2.005->7.0.2.006 goes a bit tricky on my minimx-g 2GB/16GB

    Initially I dd-ed img to sdcard and all went fine !

    However, dvb kernel modules do not load as there seem to exist 2
    directories:

    LibreELEC:~ # ls /lib/modules
    3.14.29 3.14.29-media_build

    So then I found the special upgrade instructions.

    Like replacing aml_autoscript and device_trees/gxbb_p200_minimx.dtb
    dtb.img on card. However, all this did not pass initial bear logo
    screen.

    Note I have 2 sdcards so I can play safe. All previous was done on 2nd
    card (which was clone of previous 7.0.2.005 one). So now I could try
    upgrade method on previous 7.0.2.005 card by putting img.gz in .update.
    Such went well (decompressed and installed upgrade) and booted initial bear logo screen.
    Then I tried replacing aml_autoscript and device_trees/gxbb_p200_minimx.dtb
    dtb.img on card. However, all this did not pass initial bear logo
    screen either.

    So still I had 2nd card and replaced aml_autoscript and dtb.img with original ones.
    And now all is fine again, toothpick boot OK.

    BUT: still dvb kernel modules do not load. They are in 3.14.29-media_build

    LibreELEC:~ # modprobe dvb-usb-af9035
    modprobe: FATAL: Module dvb-usb-af9035 not found in directory /lib/modules/3.14.29

    So I am a bit confused about the upgrade procedure. Everything seems perfect, except:
    the media_build modules are not loaded.

    downgrade 7.0.2.006->7.0.2.005 (with backup restore) went fine, and dvb works as before.