WeTek Community Forum

Ubuntu 16.04 Mate & Minimal for WeTek Play 2

QuadbeatQuadbeat Posts: 188WeTek Community Member
edited June 2017 in Linux
Hello,

Latest release

21.10.2016

Ubuntu 16.04 LTS minimal - 21.10.2016

What is new:
  • Login with root/wetek credentials is fixed
  • Wi-Fi is working (ifconfig wlan0 up , iwlist wlan0 scan)
  • Bluetooth is working (hciconfig -a , hcitool scan)
  • DVB driver fully functional
  • Added LED's control
  • Kernel synced with latest Odroid changes 3.14.79 https://github.com/theripper/linux/tree/wetek-3.14.y
  • apt-get is fully functional now
Hints:

How to enable Optical/S-PDIF output

echo 1 > /sys/class/audiodsp/digital_raw
echo 2 > /sys/class/audiodsp/digital_codec
echo audio_on > /sys/class/amhdmitx/amhdmitx0/config
echo spdif_unmute > /sys/devices/platform/spdif_codec/spdif_mute

minisatip as full SAT>IP server

Download - minisatip for WeTek Play 2



Old releases

06.09.2016
Username: wetek
Password: wetek

and

Username: root
Password: wetek

How to install it:

Download desired .img file, unpack it with 7zip and flash it to microSD card with Win32 Disk Imager.

NOTE: Be sure that You are running latest WeTek Play 2Android Firmware

Ubuntu 16.04 LTS Mate and minimal builds are based on Odroid C2 code from HardKernel.

Fork of Odroid C2 Kernel for WeTek:

https://github.com/theripper/linux/commits/odroidc2-3.14.y

In case somebody wants to build own:

make wetek_defconfig

make -j4 Image dtbs modules
«13

Comments

  • NedScottNedScott Posts: 1,123WeTek Community Member
    Very awesome :D


    former WeTek Support team member, now just a friendly volunteer.
  • lmzalmza Posts: 21WeTek Community Member
    Great, thank you for this. My Play 2 is in transit and is on its way.

    Is the DVB-S2 tuner module included in the Ubuntu image for this kernel? Either as a built-in module or as external loadable module? If not, any idea where I can download this DVB-S2 module and what kernel versions are supported?

    I know with Wetek Play, the driver was not opensource but Wetek did make it available as an external module (.ko).
  • QuadbeatQuadbeat Posts: 188WeTek Community Member
    If not yet working, we will make them working :)
  • psidlopsidlo Posts: 15WeTek Community Member
    X and video acceleration (VLC/Kodi) working?
  • QuadbeatQuadbeat Posts: 188WeTek Community Member
    Kodi should be working with acceleration.
  • ozkaradagozkaradag Posts: 586WeTek Community Member
    Excellent, great news.

    Thanks for info sharing.

    Sincerelly...
  • H0nch0H0nch0 Posts: 210WeTek Community Member
    very nice indeed keep us updated on your dvb support :)
  • gonesupergonesuper Posts: 64WeTek Community Member
    Has anyone tried putting mythTv on this with kodi as a front end
  • lmzalmza Posts: 21WeTek Community Member
    Quadbeat said:

    If not yet working, we will make them working :)

    Hi there. Received my Play with DVB-S2 tuner. Unfortunately the DVB module is not included in the Ubuntu LTS minimal image.

    I did see wetekdvb.ko is included in the LibreElec for Play 2, but this is using kernel 3.14.29. The Ubuntu Minimal has kernel 3.14.65+
    wetek@wetek:~$ su - root
    Password:
    root@wetek:~# dmesg | grep dvb
    root@wetek:~# ls /dev/d
    di0 disk/ dri/
    root@wetek:~# lsmod
    Module Size Used by
    i2c_gpio 4304 0
    gxbb_wdt 3419 0
    dhd 864361 0
    cfg80211 472770 1 dhd
    ipv6 375777 18
    autofs4 28145 2
    root@wetek:~# uname -a
    Linux wetek 3.14.65+ #5 SMP PREEMPT Mon Sep 5 15:00:02 CEST 2016 aarch64 aarch64 aarch64 GNU/Linux
    Please could you build a module for the Ubuntu kernel. I had a quick look at the Ubuntu Mate image as well and I also cannot seem to find the wetekdvb.ko module as well.

    Thank you.
  • amsterdamxxxamsterdamxxx Posts: 94WeTek Community Member
    Does Ubuntu goes on a Wetek Hub?
  • AnimaAnima Posts: 1,784WeTek Support Team

    Does Ubuntu goes on a Wetek Hub?

    This version is made for the Wetek Play2
    the hub does have a working ubuntu version yet.

    Best regards

  • messertmessert Posts: 30WeTek Community Member
    Wifi not connect in my device. Have anybody same problem?
  • lmzalmza Posts: 21WeTek Community Member
    Noticed that 8 days ago that dvb was enabled in https://github.com/theripper/linux/tree/wetek-3.14.y device tree. It is built as a built-in kernel module.

    The new wetek_defconfig (line 1331):
    #
    # WetekPlay driver
    #
    CONFIG_AM_DVB=y
    I then built the new kernel successfully which is now at version 3.14.77 and ran

    make modules_install

    I then replaced the Image and meson64_wetekplay2.dtb on the FAT partition of the SD card with the newly built files.

    Ubuntu minimal boots up fine, but the dvb driver still does not load. I do however get a message now with dmesg at boot time:
    root@wetek:~# dmesg | grep dvb
    [ 4.536313] wetek-dvb dvb: Failed to acquire Wetek i2c-1 adapter ...
    Any suggestions on how I can get this dvb driver to load and work properly?

    Thank you.
  • the_ripperthe_ripper Posts: 28WeTek Community Member
    Hello @lmza ,

    pull again kernel and recompile all again, I added changes in defconfig regarding I2C. It was compiling as module but I2C need to be working on boot so tuner/demod can be detected and thats why there is error with "Failed to acquire ........". Regarding DVB module soon will be available.

    Thx.
  • ozkaradagozkaradag Posts: 586WeTek Community Member
    This is a super news.

    Sincerelly...
  • lmzalmza Posts: 21WeTek Community Member

    Thank you @the_ripper.

    Yes, made some progress after recompiling:

    root@wetek:/lib/modules# dmesg | grep AVL
    [ 7.426016] wetek-dvb dvb: Checking for AVL6211 DVB-S/S2 demod ...
    [ 7.430237] i2c i2c-1: AVL6211+AV2011 DVB-S/S2 successfully attached

    root@wetek:/lib/modules# dmesg | grep dvb
    [ 4.897936] wetek-dvb dvb: Found Wetek i2c-1 adapter ...
    [ 4.903041] wetek-dvb dvb: ts0: parallel
    [ 4.907003] wetek-dvb dvb: dmx rst ctl = ffffffc05b68f480
    [ 4.912273] wetek-dvb dvb: asyncfifo rst ctl = ffffffc05b68f580
    [ 4.918191] wetek-dvb dvb: ahbarb0 rst ctl = ffffffc05b68f680
    [ 4.923830] wetek-dvb dvb: uparsertop rst ctl = ffffffc05b68f780
    [ 5.746014] wetek-dvb dvb: Wetek NIM(s) detection in progress ...
    [ 5.749583] wetek-dvb dvb: Checking for Sony CXD2837 DVB-C/T/T2 demod ...
    [ 6.606012] wetek-dvb dvb: Checking for Panasonic MN88436 ATSC demod ...
    [ 7.426016] wetek-dvb dvb: Checking for AVL6211 DVB-S/S2 demod ...
    [ 7.436231] wetek-dvb dvb: Total Wetek NIM(s) found: 1
    root@wetek:/lib/modules#


    , but yes, dvb module still outstanding:

    root@wetek:~# ls /dev/d
    di0 disk/ dri/


    Thank you.
  • the_ripperthe_ripper Posts: 28WeTek Community Member
    @lmza
    I uploaded for you 2 files. Please copy new boot.ini and you have wetekdvb.ko too, so try to insmod it and see if you have dvb adapter.

    https://mega.nz/#!qQcFmKyC!k9q93HcEr3-FcGa5pJlpyFADyk3KTx__UMwnYMVPPFM

    Thanks.
  • lmzalmza Posts: 21WeTek Community Member
    Thank you @the_ripper

    I have tried insmod, but received following error:

    root@wetek:/lib/modules/3.14.77# insmod wetekdvb.ko
    insmod: ERROR: could not insert module wetekdvb.ko: Invalid module format


    modinfo shows:

    root@wetek:/lib/modules/3.14.77# modinfo wetekdvb.ko
    filename: /lib/modules/3.14.77/wetekdvb.ko
    license: Proprietary
    depends:
    vermagic: 3.14.77+ SMP preempt mod_unload aarch64
    parm: adapter_nr:DVB adapter numbers (array of short)


    The compiled version is 3.14.77 and not 3.14.77+. Should it still work?
    uname -a
    Linux wetek 3.14.77 #1 SMP PREEMPT Mon Sep 19 03:42:45 UTC 2016 aarch64 aarch64 aarch64 GNU/Linux


    If it should work I would try and recompile everything again and try again?
  • lmzalmza Posts: 21WeTek Community Member
    B) @the_ripper

    Great work, I have dvb interface now.

    root@wetek:~# ls /dev/dvb/adapter0/
    demux0 demux1 demux2 dvr0 dvr1 dvr2 frontend0 net0 net1 net2


    I do not have a satellite feed where I am at the moment. I will buy another Play 2 and ship it to colleague. Will test lock, etc then.

    Thank you for all the assistance.
  • QuadbeatQuadbeat Posts: 188WeTek Community Member
    Updated 1st post with URL for DVB Driver download.
  • ozkaradagozkaradag Posts: 586WeTek Community Member
    Great news, thanks to all.

    Sincerelly...
  • messertmessert Posts: 30WeTek Community Member
    İs there a news about wifi. Wifi did not for me
  • the_ripperthe_ripper Posts: 28WeTek Community Member
    edited September 2016
    @messert
    Is dhd module loaded, check with lsmod command. Check dmesg if there is wifi part of the log when module is loading ... I hope you are advance Linux user.
  • lmzalmza Posts: 21WeTek Community Member
    How difficult would it we to enable the LED drivers in the Linux kernel for the Wetek Play 2?

    So basically to allow the LAN and WIFI LEDs to work.

    I was able to enable the default Amlogic LED driver in the kernel and recompile, but this only allows to control the power LED (with current defconfig /sys/class/leds is empty). After I enabled amlogic LEDs, I can see:
    root@wetek:~# ls /sys/class/leds/led-sys/ -hal
    total 0
    drwxr-xr-x 3 root root 0 Sep 26 10:08 .
    drwxr-xr-x 3 root root 0 Sep 26 10:08 ..
    -rw-r--r-- 1 root root 4.0K Sep 26 10:10 brightness
    lrwxrwxrwx 1 root root 0 Sep 26 10:08 device -> ../../../sysled
    -r--r--r-- 1 root root 4.0K Sep 26 10:08 max_brightness
    drwxr-xr-x 2 root root 0 Sep 26 10:08 power
    lrwxrwxrwx 1 root root 0 Sep 26 10:08 subsystem -> ../../../../../class/leds
    -rw-r--r-- 1 root root 4.0K Sep 26 10:08 trigger
    -rw-r--r-- 1 root root 4.0K Sep 26 10:08 uevent
    and can control the color/brightness of the power LED now. But LAN and Wifi LED control is missing and so front LEDs are dead.

    With Wetek Play v1, the defconfig included "CONFIG_LEDS_WETEKPLAY=y" , so I assume we need something similar for Wetek Play 2.
  • the_ripperthe_ripper Posts: 28WeTek Community Member
    @lmza
    Dont know if in LE is activated LED control for LAN/WIFI so we can borrow it ?
  • ozkaradagozkaradag Posts: 586WeTek Community Member
    Hello friends,

    They have tuners TBS 5880 and 5990 and I want to use them WP2 on Ubuntu.

    What should I do?

    Sincerelly...
  • the_ripperthe_ripper Posts: 28WeTek Community Member
    @ozkaradag
    Hello, as far I know TBS only provide support for x86 CPU and their precompiled binary files.
    What You could do is to send an email and ask them do they have ARM 64bit support for your TBS device version.

  • ozkaradagozkaradag Posts: 586WeTek Community Member
    Thanks for your message.

    I'll send e-mail write them.

    Sincerelly.

    Further, may be compatibilty it https://github.com/tbsdtv/linux_media ?
  • lmzalmza Posts: 21WeTek Community Member
    After I successfully managed to add the dvb interface with the help from @the_ripper , I tried to tune onto a DVB-S signal. I have tried old szap from dvbtools, szap-s2 from Crazycat and dvbv5-zap and dvbv5-scan from the latest v4l-utils. No success in getting it to lock and got some nasty DISEQC errors: Some output:

    root@wetek:~# szap-s2 -a 0 -f 0 -c /etc/ant1.conf -n 1 -l 9750,10600 -M 2 -C 999 -S 0 -H
    reading channels from file '/etc/ant1.conf'
    zapping to 1 'Ant1Data':
    delivery DVB-S, modulation QPSK
    sat 0, frequency 10970 MHz V, symbolrate 30000000, coderate auto, rolloff 0.35 stream_id -1
    vpid 0x1fff, apid 0x1fff, sid 0x0000
    using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
    FE_DISEQC_SEND_MASTER_CMD failed: Invalid argument
    FE_DISEQC_SEND_BURST failed: Invalid argumen
    status 00 | signal 0% | snr 0% | ber 0 | unc 0 |
    status 00 | signal 0% | snr 0% | ber 0 | unc 0 |


    root@wetek:~# dvb-fe-tool
    Device Availink AVL6211+AV2011 DVB-S/S2 (/dev/dvb/adapter0/frontend0) capabilities:
    CAN_2G_MODULATION
    CAN_FEC_1_2
    CAN_FEC_2_3
    CAN_FEC_3_4
    CAN_FEC_4_5
    CAN_FEC_5_6
    CAN_FEC_6_7
    CAN_FEC_7_8
    CAN_FEC_8_9
    CAN_FEC_AUTO
    CAN_INVERSION_AUTO
    CAN_QPSK
    CAN_RECOVER
    DVB API Version 5.10, Current v5 delivery system: DVBS
    Supported delivery systems:
    [DVBS]
    DVBS2
    DiSEqC VOLTAGE: OFF
    ERROR FE_SET_VOLTAGE: Operation not permitted


    Also got some "i2c wr failed" error messages in Ubuntu's journalctl when trying to tune.

    So it seems like there is a problem with the avl6211 firmware. There is no specific firmware in /lib/firmware for the avl6211. I then copied the dvb-fe-avl6211.fw from the Wetek Play 2 LibreELEC version to /lib/firmware. It did actual lock for a second or so, before the Wetek Play crashes. Had to manually restart the box.

    So off I went and googled, found this old firmware file for Wetek Play 1:
    https://github.com/linux-meson/meta-amlogic/tree/master/recipes-kernel/linux-firmware/firmware-dvb

    Copied it to /lib/firmware and I now get lock. The questions is now is this the best firmware file? Or is there perhaps a newer one I could test that works with Wetek Play 2 and ubuntu? I have not done much testing yet with this old firmware so not sure what problems if any will appear. At least it locks now.
Sign In or Register to comment.
© Copyright 2014 - Creative Dreams | Powered by Vanilla
All times are UTC