Posts by kszaq

    Unfortunately it won't. I have played a few videos with .008 and have not experienced out of sync audio. As per sticky thread you need to provide me a sample that exposes the issue, otherwise how can I tell if a fix that I may provide works or not?

    I know which Kodi patch causes the issue but I would prefer to fix it rather than delete it.

    If no sample can be provided, would you be able to reproduce the issue in a fairly short period of time when I provide you a test build to tell whether it's fixed or not?

    @all I have uploaded an updated version of 7.0.2.008 to fix updating device tree when you have LE installed and with fix for unresolved symbol in DVB USB drivers (thanks to Nofan Tasi for pointing this out). To avoid confusion, files have "-fix" suffix. If you haven't experienced issues described above, there is no need to re-update.
    [hr]


    Confluence skin, settings system video output use limited colour range?

    Is that what you want?

    This wont' work for Amlogic as this is not implemented in Kodi. You need to play with sysfs, I don't know yet how this works.
    [hr]


    Can You tell me if there are benefits installing on internal, is LE running smoother on internal memory?


    The benefit is that you have a spare SD card slot and it can run a bit faster if internal memory is faster than your SD card. It all depends on which box you have - some have very fast eMMC (like WeTek Hub: 130 MB/s read speed), some have slow eMMC or NAND. Personally I prefer to run from SD card as it gives you more flexibility.

    You would have to patch media_build - download the patch and replace every drivers/media with linux/drivers/media and place the file in projects/S905/patches/media_build. I have just checked - the patch doesn't apply to latest media_build.


    I run LE from a 32GB class10 Kingston MicroSD. 512MB of the SD are used for LE image. Is all the big remaining space used as storage/disk for Kodi data (database, album/artist/film info, covers, configuration...)? What is also this SD space used for?


    512MB is reserved for LE image files - kernel and SYSTEM whereas the rest of SD card is used for your data (/storage). You can have a look at system information tab in Kodi.


    And what about the internal memory of the box? MX Plus has 1GB DDR3 and 4GB NAND. Does LE use internal NAND when booting from SD? If yes, what does LE read/write from it?


    Internal memory is not used if LE is run from SD card, your data is untouched. If you want to, you can make a script to use internal partitions but that's another story - if you really want to use it for any purpose, please create a separate thread.

    There is one case where my LE builds use internal memory: if you don't provide remote.conf for IR remote control, my builds mount /system internal partition in read-only mode to get remote.conf from it.

    There are sysfs options to turn HDR off but as far as I remember you need to play at least one video to make colours back to normal. Look for those options in /sys/class/amvecm.

    @all Development builds have been deleted, all improvements for S905X are now included in 7.0.2.008 build. :)


    With all these device trees for all different Boxes , i wouldn't count on it being implemented.
    The factory supported boxes which are all the same model with identical hardware and firmware would
    be easy to do.
    So that is what it is all about. :)

    This is correct. That said my S805 builds have only 3 variants that might be possible to update over-the-air. Situation is different with S905 generic builds where you have to manually pick a device tree that fits your hardware - implementing OTA updates is possible but it has too big possibility of software not working properly afterwards. Who knows, maybe someone will come up with an idea how to make one build fit all?


    Try with Realtek in the name gxbb_p200_2G_1Gbit.dtb since MXIII has a Realtek card.

    Edit: I just noticed there is no gxbb_p200_2G_1Gbit_RealtekWiFi.dtb

    kszaq mind uploading one for us MXIII owners, i suspect you want to keep the dtb files as universal as possible.

    In previous builds device tree for MXII was the same as p200_1Gbit except for system partition size. I didn't know it needs modifications for Realtek WiFi. I have uploaded a new device tree for you to try.


    I want to report a kernel module symbol issue
    [ 15.729319@2] dvb_usb_v2: Unknown symbol smp_mb__after_atomic (err 0)
    as a consequence, my USB DVB-T no longer works.

    I hope this can be fixed easily.
    Is your git repository up to date? Then I can try to fix it myself as well.

    have a nice day


    I think this may be due to increased coherent_pool_size. I have re-uploaded .008 with that change reverted. Yes, source code is uploaded to my GitHub, links in the first post.


    Watching a live American Football stream.
    Issues with 48000hz live stream.
    Used another stream 22050hz Played perfect.


    Have you updated your device tree as instructed?

    7.0.2.008 (2016-10-13)
    Source code: GitHub - kszaq/LibreELEC.tv at 7.0.2.008
    Kernel source code: GitHub - kszaq/linux-amlogic-le at 48d3a2fe0559f1b1088b49c4f9d911b2baf7370e
    Downloads: 7.0.2.008

    Important: please read Updating section below!

    Changelog:

    • S905X specific

      • no more booting issues!
      • fixed 4K H264 playback
      • added VP9 hardware decoding support - thanks to braindamagedman for adapting header update function
      • fixed HD Audio and multichannel output by patching device tree (credits to afl1)
    • kernel updated to latest publicly available version from Amlogic
    • fixed output_rgb that forces RGB output
    • fixed channel mapping with 7.1 output
    • minor fixes to installtointernal script
    • moved USB and CEC interrupts away from CPU0 to fix live TV issues for some USB DVB tuners
    • fixed 1/4 screen video with 4K output (credits to wrxtasy)
    • added back advancedsettings.xml to fix audio buffering issues with some live TV channels
    • added a workaround for a black bar above video with 4K SMPTE output (not tested)
    • changed default CPU governor to interactive
    • added console on serial port
    • fixed Kodi option to choose Power button action
    • added aspect ratio detection for H.264 streams - thanks to pec for implementing the patch, chbmuc for PR and HD-Lite channels fix. I also added a check that turns ratio detection on only for streams that need it (to keep CPU usage low)
    • added a workaround to make suspend (partially) work
    • added a possibility to update a device tree during system update
    • bumped coherent_pool_size to 4MB to fix firmware loading for some USB DVB tuners
    • added Kodi patch from RPi for settings option to boost centre audio channel when downmixing
    • added hardware demux buffering patch from Davilla to allow higher bitrate hardware decoding (e.g. "Jellyfish" up to 400Mbps)
    • updated Bluetooth firmware for BCM4335 chip (thanks afl1)
    • memory management optimized a little bit
    • other little fixes and improvements



    Known issues:

    • Opening some high bitrate HEVC files/streams may lead to system lock - this is a bug in Amlogic hardware decoder memory allocation code.
    • If you use S905X device with TV without HDR support the screen will be darker than normal on boot. It goes back to normal after you start/stop a video.
    • Aigale WiFi chips are not supported.
    • Built-in DVB tuners are not supported.
    • Suspend doesn't work most of the times. Temporary solution: use poweroff.
    • Temperature reading not available.
    • Jerky playback of some 29.97fps videos and some Live TV channels (Amlogic HW decoder bug).
    • CEC might not work when your box has incomplatible u-boot or your TV is not that well supported by Amlogic low-level CEC driver.
    • Lots of other things that I did not notice.

    How to install
    [hr]
    I strongly recommend trying running this release from SD card/USB drive before installing to internal memory!

    If you have WeTek Hub, you don't need to use toothpick method: update to latest Android version and make use of dual-boot feature!

    How to choose a device tree:
    You can download device trees blobs (images) from device_trees
    Important: Do not use device trees from previous build! You also cannot use device tree from Android firmware as in 99% cases it won't work.

    • S905: First look for device tree with your box name in it. In case there is no such image, download generic one. Device trees for S905 boxes start with gxbb.

      • example: for a box with 2GB of RAM and 100Mbit Ethernet, you should download gxbb_p200_2G_100M.dtb
      • example: for boxes with Gigabit Ethernet download gxbb_p200_1Gbit.dtb
      • for boxes with Realtek WiFi (e.g. K1 Plus or K2 Pro) download device tree with RealtekWiFi in name
    • S905X: Device trees for these boxes start with gxl. You can leave a tree that is already present on SD card (fresh install only) or choose one according to your RAM amount.


    SD card/USB drive:
    Note: only 1 USB port is able to boot the box. You have to try them all.

    • Download img.gz file and burn it to SD card/USB drive: Installation - LibreELEC
    • After this you will see that drive capacity is 512MB. This is OK as there is a second (hidden) partition on the drive for LE userdata!
    • Download a device tree, rename it to dtb.img and copy it to main folder of SD card/USB drive - replace the one that's already there.
    • To boot the system for the first time you have to use one of the following:

      • toothpick method: disconnect the power supply, insert card/drive, use a toothpick to push reset button and connect the power while holding the button. Wait until LibreELEC logo appears and release the button.
      • recovery method: boot into Android, insert card/thumb drive and choose Reboot to recovery. Your box should boot into LibreELEC.
      • recovery method (take 2nd variant): if you have "Update" app pre-installed open it, insert SD card with LE/connect USB drive, and choose any ZIP file in the app for update. Your box should reboot to LE.


    Internal memory (NAND/eMMC):
    Recommended way: run LE from SD card first. If it runs fine, connect to your box over SSH, execute installtointernal command and follow on-screen instructions. This command wipes SYSTEM and DATA partition!

    CAUTION: If your box has a non-standard partition layout, you will see an error when trying to boot from internal memory for the first time. To solve it, you need to boot one more time from SD card and run installtointernal again.

    Alternative way of installing via recovery (not recommended):

    • (This step is not needed when you have Android on internal memory) Download Android firmware for your box - you should get it from manufacturer or seller - and extract 2 files: recovery.img and dtb.img to your SD card.
    • Download zip file from LibreELEC release folder.
    • Unpack downloaded file to SD card/USB drive - you should now have 5 files on your card: aml_autoscript, factory_update_param.aml, a zip file with an update, dtb.img and recovery.img.
    • Download a device tree for your box, rename downloaded file to ledtb.img and copy it to main folder of SD card.
    • Insert SD card to your box and use "toothpick" method to install it. Alternatively you can boot into Android Recovery and install it manually.

    To boot into recovery after installing LE to internal memory use this procedure:

    • prepare a clean, FAT32-formatted SD card or USB drive
    • copy recovery.img and dtb.img from your Android firmware to SD card (don't use dtb.img for LE!)
    • use "toothpick" method to boot from SD card/USB drive

    Updating
    [hr]
    Update by downloading img.gz to Update folder. You should also download a new device tree, rename it to dtb.img and put in Update folder with an update file. You should have both files in Update folder before rebooting.
    HOW TO:Update LibreELEC - LibreELEC

    CAUTION:

    • If you use a device tree from a previous build, you will experience audio stuttering issues and no passthrough.
    • If you have a device with non-standard partition layout and have LE installed to internal memory, you have to perform a clean install.

    FAQ
    [hr]
    Q: My remote control does not work, what can I do?
    A: Grab remote.conf file from Android firmware (it's available in /system/etc) and copy it to Configuration folder: /storage/.config over SSH or \\your_box_IP\Configuration using Windows shares. You can also put that file to main folder of your SD card. You may need to remap some buttons.

    If you like my work, you can buy me a coffee (or without PayPal account: link)


    OK, let's try once more :)

    Again, I installed the latest OE for the MXQ and the MCE remote worked when connected to the OTG port.
    After upgrading to LE, the remote stopped working.


    Thank you for your help and patience.

    minimoe I have looked through your logs and it seems like with LibreELEC your device is registered and driver loaded but I guess that with new drivers it needs to be configured somehow - LIRC possibly? Sorry, I am not very familiar with these devices. Seems like someone had simliar issue to yours: LibreELEC
    [hr]
    Maintenance release:
    7.0.2.6 7.0.2.6

    Commits from 7.0.2.5 to 7.0.2.6: Comparing 7.0.2.5...7.0.2.6 · kszaq/LibreELEC.tv · GitHub
    Kernel commits from 7.0.2.3 to 7.0.2.4: Comparing b09c854...263a24f · kszaq/linux · GitHub

    Changelog:

    • removed MK808B+ project - you should use MXQ build instead - update as usual, no data wipe needed
    • added USB driver tweaks from OSMC project - these should fix some issues with USB DVB tuners
    • added patches for possible Kodi memory leaks
    • enabled 40MHz channels for Broadcom WiFi chips that support it
    • added a fallback to software decoder for HEVC streams that can't be decoded in hardware
    • added aspect ratio detection for H.264 streams - thanks to pec for implementing the patch, chbmuc for PR and HD-Lite channels fix. I also added a check that turns ratio detection on only for streams that need it (to keep CPU usage low)
    • added a fix for MAC address passed by u-boot in kernel command line
    • fixed Kodi option to choose Power button action - you should note that some boxes will perform "full" power down even when you choose to "suspend" - this is u-boot dependent
    • added Kodi patch from RPi for settings option to boost centre audio channel when downmixing
    • added hardware demux buffering patch from Davilla to allow higher bitrate hardware decoding