Posts by kszaq


    kszaq I don't usually use WiFi but I thought I'd test it in case I need to use it in future and I'm having issues

    T95N box - S905 - 1GB/8GB - 2.4 GHz - on SD card - 1080p TV
    Using - gxbb_p200_1G_100M.dtb

    The WiFi enables as expected and connects. When attempting to watch LiveTV or play something from a network share it works fine for about a minute then the WiFi dies and I'm no longer able to ping the box. Requires unplugging and plugging back in to reboot and get the WiFi back for another minute.

    Everything works great on the 100mbit ethernet.

    According to dmesg it is using the RTL871X driver

    RTL871X is a generic label for Realtek drivers. Please try using a device tree for K1 Plus and tell me if it works.


    I play channel_test_lpcm_7.1.mkv with my 5.1 system, and the surround channels I hear from the correct position.
    So I can not confirm this.
    My setup onkyo Tx-nr555 with 5.1 system
    Edit: I try with 7.1auditionOutLeader v2.wav, and sounds good too.

    When you have 5.1 setup, kernel will automatically remap read and surround channels, that's why they may sound OK. With 7.1 system situation is different and we might in fact need to remap the channels in ALSA config a bit.


    kszaq PM'D some logs after using speedtest addon where wifi breaks down and disconnects.
    No rush as i have exhausted the variables to the point of having no idea what i have achieved.

    Can you try running with gxbb_p200_k1_plus.dtb if this is 1GB RAM box or gxbb_p200_k2_pro.dtb for 2GB RAM? These also have Realtek WiFi connected over SDIO bus and some little changes these trees have might help.


    Then renamed it to dtb.img. The install goes fine but neither my stock remote nor the OTG port is working. I'm thinking this is because of the device tree??

    For remote control you need remote.conf from Android firmware. For OTG port please try a new device tree that I've just uploaded: gxbb_p200_2G_1Gbit_OTG.dtb


    I have a strange sound coming every 5 minutes once I stop playing any add-on. During any add-on play pulsating strange sound doesn't come.
    I tried with various setting enabling and disabling... No result. Still having the same problem.
    I am using k1 plus s2 t2 on latest 007 version Libreelec Kszaq build.
    Anyone experiencing same problem?

    This is an issue that I have also experienced from time to time. This seems to be a bug in Amlogic kernel but fortunately today we got a bunch of kernel patches from Amlogic (thanks to Codesnake) and it is supposedly fixed. Next release.


    I have a Mini M8S II (S905X) and 9 time out of 10, I get this:
    "Error in mount flash...bin/sh can't access tty: job control turned off"
    I have to unplug, plug the PS and pray for the box to boot.
    Installed 3 times: on uSD from 003 & 006 2 via upgrade then installed with image burning tool, same results.

    I don't have a S905X device and thus I can't "officially" support it. At this point no one provided a solution to keep framebuffer console working and boot every time, as soon as there's a solution I will merge it into my releases.


    5,1 FLAC : PCM works fine but 7.1 PCM is displayed on the receiver.
    (as expected since this is 5.1 file, nothing comes fron the rear surround speakers)
    (I tested the same files on the Pi3 and everything was OK(5.1 displayed on the Receiver)).

    Amlogic driver at this point sets channel number to either 2.0 or maximum supported channel number by receiver. I hope this is not an issue?


    1- "7.1auditionOutLeader v2.wav": PCM works but the Rear Surround speakers are inverted with the Surround.
    Narrator says Rear Surround Left but is heard in the Surround Left.
    Same thing for the Right side.

    You may be right, I have no way to check it. ;) If this is confirmed by other users, I can modify channel map for future builds.

    ermethic We use the same CEC implementation in our builds: Amlogic driver with support for libCEC from Raybuntu. Not all buttons are recognized because in my builds device is identified as "Player" and not "Recorder" in which case all buttons work. This is to prevent having double devices in CEC menu as this is causing issues for some TVs (including mine).

    You can change it quite easily. Please read these two posts to change CEC behaviour:
    LibreELEC
    LibreELEC


    Is it possible to boot the Wetek Hub from USB ?
    I wrote the img to a USB stick but it doesn't show me the menu to boot from it when rebooting, like it does when i have the bootable SD card in, it just goes straight to internal nand boot.

    I will check with my Hub in a few days. I think we can modify boot procedure so that you can switch between booting from internal and booting from SD/USB (whichever is found).

    7.0.2.007 Almost there build 007 (2016-09-07)

    Changelog:

    • multichannel PCM support (exeperimental as my AVR only does 2.1)
    • DD+ passthrough works
    • Mali driver reverted to r5p1 (again) for improved GUI performance
    • fixed optical S/PDIF entry in device trees
    • WiFi and Bluetooth:

    • 4K:

      • fixed GUI scaling
      • GUI (including Picture Viewer) is rendered at 1080p for optimal performance - rendering at 4K causes video stuttering
      • fixed GUI rect with scaling enabled (thanks codesnake)
    • added a possibility to force RGB output by echo 1 > /sys/class/amhdmitx/amhdmitx0/output_rgb
    • kernel config changed to improve S905X compatibility (thanks pulsar and koenkooi)
    • enable HDR output for supported devices
    • capped CPU frequency at 1.5GHz for lower power consumption and temperatures
    • improved memory management by disabling Android OOM killer and 2 minor kernel patches from Odroid
    • backported 2 Kodi upstream patches for memory leaks
    • added a script to install LE to internal memory while running it from SD card/USB drive
    • minor improvements to USB driver that should help some DVB tuners
    • added support for automatic boot script from balbes150


    Known issues:

    • Not tested on S905X.
    • Built-in DVB tuners are not supported.
    • VP9 hardware decoding is not supported.
    • Suspend doesn't work and when it works, device doesn't wake up properly. Temporary solution: use poweroff. IR power button switches the box off due to this bug.
    • 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.


    Source code: GitHub - kszaq/LibreELEC.tv at 7.0.2.007
    Kernel source code: GitHub - kszaq/linux at bca261f830318cabb95904f63812e7e91f7283a2
    Downloads: 7.0.2.007

    How to install:

    CAUTION: Read the instructions carefully. Installation procedure has changed since 7.0.2.005!

    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

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

      • 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: At the moment there are 2 device trees available: p212_1g and p212_2g. 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!
    • S905 only: 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.
    • S905X only: Keep dtb.img that is provided on SD card.
    • 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.

    Alternatively:

    • (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.


    CAUTION (S905): 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 from 7.0.2.006 or later (devel builds):
    HOW TO:Update LibreELEC - LibreELEC

    To update device tree (this is not needed if everything worked for you at 7.0.2.006):

    • for SD card version simply download device tree and copy it as dtb.img to your SD card
    • for internal memory version follow instructions for new install using recovery
    • alternatively, for internal memory you can run this command: dd if=path_to_new_device_tree of=/dev/dtb bs=256k

    Updating LE running from SD card (7.0.2.005 or earlier):

    • Update as usual: download img.gz, copy it to Update folder and reboot.
    • Wait for reboot procedure to complete.
    • After you device reboots and stops on first logo, connect the card to your computer, download aml_autoscript from release folder and replace the one that you already have on your card.
    • Download device tree and copy it to card: follow step 3 from SD card installation procedure.
    • Use toothpick method to boot the box.


    Updating LE running from internal memory (7.0.2.005 or earlier):
    Follow procedure for new install. Your data won't be affected.

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

    Look at the 4th line of codec info when playing: when it's am-h265 the video is hardware decoded and with ff-h265 it's software (ffmpeg) decoding. The latter makes your CPU produce a lot of heat and throttle, no wonder it stutters after a while.

    Can you give me a sample title that has issues during playback? I have to admit I am now focused on S905 but I can have a look after releasing a new S905 build today (spoiler alert ).


    Opened box for a sticky beak
    https://s20.postimg.io/unyihv1h9/Mini_M8...i_Chip.jpg

    Realtek RTL8723BS

    Link may help Pull Requests · hadess/rtl8723bs · GitHub

    Thanks again

    Thank for the photo. We already have a driver direct from Amlogic and I think it's best to use it. For the next build I will disable power saving in the driver, this may help a bit.
    [hr]


    but at livetv the preview mode is zoomed out, and just a part of pic can i see.

    I will include one more patch for 4K from codesnake, it may help that issue.

    This looks like faulty internal memory partition as being stuck on that screen means that even ramdisk hasn't loaded. Is this the same with .005?