Jump to content

Le Potato / C2 / K2 4.19 LTS testing thread


TonyMac32

Recommended Posts

57 minutes ago, Neil Armstrong said:

I looked in the /boot directory of the Ubuntu images and it's empty


I found and fix a problem. Some images were corrupted - I did upload new one, but corrupted had higher linking priority. Not anymore ... checking if that happened elsewhere too.

Link to comment
Share on other sites

I fixed some u-boot bug, happening in boards with 1GB of RAM, that could not load u-boot. Here is the console log with the failure:

Spoiler

resetting ...
bl31 reboot reason: 0xd
bl31 reboot reason: 0x0
system cmd  1.
GXL:BL1:9ac50e:a1974b;FEAT:ADFC318C;POC:0;RCY:0;USB:0;SPI:0;CHK:AA;EMMC:400;NAND:81;SD:0;READ:0;0.0;CHK:0;
no sdio debug board detected
TE: 1726106

BL2 Built : 11:58:42, May 27 2017.
gxl gc3c9a84 - xiaobo.gu@droid05

set vcck to 1120 mv
set vddee to 1000 mv
Board ID = 6
CPU clk: 1200MHz
DQS-corr enabled
DDR scramble enabled
DDR3 chl: Rank0+1 @ 912MHz - FAIL
DDR3 chl: Rank0 @ 912MHz - PASS
Rank0: 1024MB(auto)-2T-13
DataBus test pass!
AddrBus test pass!
Load fip header from SD, src: 0x0000c200, des: 0x01400000, size: 0x00004000
New fip structure!
Load bl30 from SD, src: 0x00010200, des: 0x01100000, size: 0x0000d600
Load bl31 from SD, src: 0x00020200, des: 0x05100000, size: 0x00018400
Load bl33 from SD, src: 0x0003c200, des: 0x01000000, size: 0x00081200
NOTICE:  BL3-1: v1.0(release):3348978
NOTICE:  BL3-1: Built : 15:44:01, May 12 2017
[BL31]: GXL CPU setup!
mpu_config_enable:ok
[Image: gxl_v1.1.3221-2cfba69 2017-05-27 16:03:58 qiufang.dai@droid07]
OPS=0x82
4b 3 4b 94 98 ec 53 5f 9 91 ee 70 [2.165399 Inits done]
secure task start!
high task start!
low task start!
ERROR:   Error initializing runtime service opteed_fast


U-Boot 2018.11-armbian (Jan 11 2019 - 19:16:55 +0100) libretech-cc

DRAM:  1 GiB
MMC:   mmc@72000: 0, mmc@74000: 1
Loading Environment from EXT4... ** File not found /boot/boot.env **

** Unable to read "/boot/boot.env" from mmc0:1 **
In:    serial@4c0
Out:   serial@4c0
Err:   serial@4c0
[BL31]: tee size: 0
[BL31]: tee size: 0
Net:
Warning: ethernet@c9410000 (eth0) using random MAC address - 86:e2:d9:ef:ec:60
eth0: ethernet@c9410000
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
3048 bytes read in 2 ms (1.5 MiB/s)
## Executing script at 1f000000
154 bytes read in 0 ms
"Synchronous Abort" handler, esr 0x96000010
elr: 000000000104abe4 lr : 00000000010492dc (reloc)
elr: 000000003ffa3be4 lr : 000000003ffa22dc
x0 : 000000003df7e2c0 x1 : 0000000044000000
x2 : 000000000000009a x3 : 0000000000000000
x4 : 0000000000000013 x5 : 0000000000000098
x6 : 0000000000000036 x7 : 000000003ffbf1e0
x8 : 0000000000000100 x9 : 0000000000000000
x10: 000000003df7ed70 x11: 000000003df63480
x12: 0000000000000000 x13: 0000000000000200
x14: 0000000000000000 x15: 00000000ffffffff
x16: 0000000000000000 x17: 0000000000000020
x18: 000000003df56df8 x19: 0000000000000000
x20: 0000000000000000 x21: 000000003df7e2c0
x22: 0000000000000000 x23: 000000003ffc2188
x24: 0000000000000000 x25: 000000000000000a
x26: 0000000000000001 x27: 000000000000009a
x28: 0000000000000000 x29: 000000003df4dff0

Resetting CPU ...

 

Reference to the commit: https://github.com/armbian/build/commit/01571c0a4c6c3e7cdb1fec8c99465d8fc00c8c90

Link to comment
Share on other sites

@Neil Armstrong It works from what I can tell, also realized I was using the wrong input on my 4K monitor, switched and was able to verify 4k 60 Hz.  Awesome!  Side note, I saw the patchset land on the mailinglist, will that work on all dw-hdmi 2.0 controllers? 

 

[edit]  @JMCC this was a fresh build, so your bugfix is verified on my side to work with the 2GB board as well. 

Link to comment
Share on other sites

3 hours ago, JMCC said:

I fixed some u-boot bug, happening in boards with 1GB of RAM, that could not load u-boot. Here is the console log with the failure:


I will rebuild those images ASAP.

Link to comment
Share on other sites

6 hours ago, Igor said:


I will rebuild those images ASAP.

Good to hear.

 

Also, some comments about wifi. RTL8188CUS (Odroid wifi module 3) has an excellent driver in this kernel. It's much faster and much more stable than in any other kernel I have tried. But support for RTL8188EUS (Comfast WU810N) seems to have been completely dropped, it is not even recognized, while any other Armbian kernel I've used it was recognized although performance wasn't too good. Is this the expected behavior?

Link to comment
Share on other sites

5 hours ago, JMCC said:

seems to have been completely dropped, it is not even recognized, while any other Armbian kernel I've used it was recognized although performance wasn't too good. Is this the expected behavior?


https://github.com/armbian/documentation/commit/63c02d26ceca64d032696247e7c4657f4656a1ce
https://github.com/armbian/build/commit/730c1f6f4d6a5f45418c39e789f63b8da4fb1411 (not yet included in latest images, but included via apt update)


1m from router.

RTL8188CUS

Spoiler

[  4]   0.00-1.00   sec  8.32 MBytes  69.7 Mbits/sec    0    345 KBytes       
[  4]   1.00-2.00   sec  8.76 MBytes  73.5 Mbits/sec   15    447 KBytes       
[  4]   2.00-3.00   sec  7.46 MBytes  62.5 Mbits/sec    0    518 KBytes       
[  4]   3.00-4.00   sec  6.34 MBytes  53.2 Mbits/sec    0    566 KBytes       
[  4]   4.00-5.00   sec  7.02 MBytes  58.9 Mbits/sec    2    428 KBytes       
[  4]   5.00-6.00   sec  7.27 MBytes  61.0 Mbits/sec    0    460 KBytes       
[  4]   6.00-7.00   sec  7.27 MBytes  61.0 Mbits/sec    0    478 KBytes       
[  4]   7.00-8.00   sec  7.33 MBytes  61.5 Mbits/sec    0    488 KBytes       
[  4]   8.00-9.00   sec  7.15 MBytes  59.9 Mbits/sec    0    489 KBytes       
[  4]   9.00-10.00  sec  6.96 MBytes  58.4 Mbits/sec    0    489 KBytes       

 

RTL8188EUS

Spoiler

[  4]   0.00-1.00   sec  3.30 MBytes  27.7 Mbits/sec    0    154 KBytes       
[  4]   1.00-2.00   sec  2.73 MBytes  22.9 Mbits/sec    0    264 KBytes       
[  4]   2.00-3.00   sec  3.29 MBytes  27.6 Mbits/sec    0    397 KBytes       
[  4]   3.00-4.00   sec  3.04 MBytes  25.6 Mbits/sec   11    341 KBytes       
[  4]   4.00-5.00   sec  1.93 MBytes  16.2 Mbits/sec    0    395 KBytes       
[  4]   5.00-6.00   sec  1.99 MBytes  16.7 Mbits/sec    0    436 KBytes       
[  4]   6.00-7.00   sec  2.24 MBytes  18.8 Mbits/sec    0    464 KBytes       
[  4]   7.00-8.00   sec  1.86 MBytes  15.6 Mbits/sec    1    332 KBytes       
[  4]   8.00-9.00   sec  2.24 MBytes  18.8 Mbits/sec    0    365 KBytes       
[  4]   9.00-10.00  sec  2.49 MBytes  20.8 Mbits/sec    0    387 KBytes       

 

MT7610 at 5G

Spoiler

[  4]   0.00-1.00   sec  4.53 MBytes  38.0 Mbits/sec    0    209 KBytes       
[  4]   1.00-2.00   sec  5.03 MBytes  42.2 Mbits/sec    0    411 KBytes       
[  4]   2.00-3.00   sec  4.66 MBytes  39.1 Mbits/sec    0    583 KBytes       
[  4]   3.00-4.00   sec  7.08 MBytes  59.4 Mbits/sec   61    481 KBytes       
[  4]   4.00-5.00   sec  12.4 MBytes   104 Mbits/sec   11    382 KBytes       
[  4]   5.00-6.00   sec  12.0 MBytes   101 Mbits/sec    0    414 KBytes       
[  4]   6.00-7.00   sec  8.26 MBytes  69.3 Mbits/sec    0    431 KBytes       
[  4]   7.00-8.00   sec  2.24 MBytes  18.8 Mbits/sec    0    443 KBytes       
[  4]   8.00-9.00   sec  7.39 MBytes  62.0 Mbits/sec    0    447 KBytes       
[  4]   9.00-10.00  sec  8.26 MBytes  69.3 Mbits/sec    0    447 KBytes       

 

MT7601U

Spoiler

[  4]   0.00-1.00   sec  9.73 MBytes  81.6 Mbits/sec    0    407 KBytes       
[  4]   1.00-2.00   sec  8.45 MBytes  70.9 Mbits/sec   15    421 KBytes       
[  4]   2.00-3.00   sec  8.20 MBytes  68.8 Mbits/sec    0    477 KBytes       
[  4]   3.00-4.00   sec  8.45 MBytes  70.9 Mbits/sec    0    515 KBytes       
[  4]   4.00-5.00   sec  9.07 MBytes  76.1 Mbits/sec    4    393 KBytes       
[  4]   5.00-6.00   sec  9.13 MBytes  76.6 Mbits/sec    0    420 KBytes       
[  4]   6.00-7.00   sec  9.13 MBytes  76.6 Mbits/sec    0    433 KBytes       
[  4]   7.00-8.00   sec  9.57 MBytes  80.3 Mbits/sec    0    440 KBytes       
[  4]   8.00-9.00   sec  9.20 MBytes  77.2 Mbits/sec    0    440 KBytes       
[  4]   9.00-10.00  sec  9.20 MBytes  77.1 Mbits/sec    0    452 KBytes  

 

 

Link to comment
Share on other sites

6 hours ago, Igor said:


https://github.com/armbian/documentation/commit/63c02d26ceca64d032696247e7c4657f4656a1ce
https://github.com/armbian/build/commit/730c1f6f4d6a5f45418c39e789f63b8da4fb1411 (not yet included in latest images, but included via apt update)


1m from router.

RTL8188CUS

  Reveal hidden contents


[  4]   0.00-1.00   sec  8.32 MBytes  69.7 Mbits/sec    0    345 KBytes       
[  4]   1.00-2.00   sec  8.76 MBytes  73.5 Mbits/sec   15    447 KBytes       
[  4]   2.00-3.00   sec  7.46 MBytes  62.5 Mbits/sec    0    518 KBytes       
[  4]   3.00-4.00   sec  6.34 MBytes  53.2 Mbits/sec    0    566 KBytes       
[  4]   4.00-5.00   sec  7.02 MBytes  58.9 Mbits/sec    2    428 KBytes       
[  4]   5.00-6.00   sec  7.27 MBytes  61.0 Mbits/sec    0    460 KBytes       
[  4]   6.00-7.00   sec  7.27 MBytes  61.0 Mbits/sec    0    478 KBytes       
[  4]   7.00-8.00   sec  7.33 MBytes  61.5 Mbits/sec    0    488 KBytes       
[  4]   8.00-9.00   sec  7.15 MBytes  59.9 Mbits/sec    0    489 KBytes       
[  4]   9.00-10.00  sec  6.96 MBytes  58.4 Mbits/sec    0    489 KBytes       

 

RTL8188EUS

  Reveal hidden contents


[  4]   0.00-1.00   sec  3.30 MBytes  27.7 Mbits/sec    0    154 KBytes       
[  4]   1.00-2.00   sec  2.73 MBytes  22.9 Mbits/sec    0    264 KBytes       
[  4]   2.00-3.00   sec  3.29 MBytes  27.6 Mbits/sec    0    397 KBytes       
[  4]   3.00-4.00   sec  3.04 MBytes  25.6 Mbits/sec   11    341 KBytes       
[  4]   4.00-5.00   sec  1.93 MBytes  16.2 Mbits/sec    0    395 KBytes       
[  4]   5.00-6.00   sec  1.99 MBytes  16.7 Mbits/sec    0    436 KBytes       
[  4]   6.00-7.00   sec  2.24 MBytes  18.8 Mbits/sec    0    464 KBytes       
[  4]   7.00-8.00   sec  1.86 MBytes  15.6 Mbits/sec    1    332 KBytes       
[  4]   8.00-9.00   sec  2.24 MBytes  18.8 Mbits/sec    0    365 KBytes       
[  4]   9.00-10.00  sec  2.49 MBytes  20.8 Mbits/sec    0    387 KBytes       

 

MT7610 at 5G

  Reveal hidden contents


[  4]   0.00-1.00   sec  4.53 MBytes  38.0 Mbits/sec    0    209 KBytes       
[  4]   1.00-2.00   sec  5.03 MBytes  42.2 Mbits/sec    0    411 KBytes       
[  4]   2.00-3.00   sec  4.66 MBytes  39.1 Mbits/sec    0    583 KBytes       
[  4]   3.00-4.00   sec  7.08 MBytes  59.4 Mbits/sec   61    481 KBytes       
[  4]   4.00-5.00   sec  12.4 MBytes   104 Mbits/sec   11    382 KBytes       
[  4]   5.00-6.00   sec  12.0 MBytes   101 Mbits/sec    0    414 KBytes       
[  4]   6.00-7.00   sec  8.26 MBytes  69.3 Mbits/sec    0    431 KBytes       
[  4]   7.00-8.00   sec  2.24 MBytes  18.8 Mbits/sec    0    443 KBytes       
[  4]   8.00-9.00   sec  7.39 MBytes  62.0 Mbits/sec    0    447 KBytes       
[  4]   9.00-10.00  sec  8.26 MBytes  69.3 Mbits/sec    0    447 KBytes       

 

MT7601U

  Reveal hidden contents


[  4]   0.00-1.00   sec  9.73 MBytes  81.6 Mbits/sec    0    407 KBytes       
[  4]   1.00-2.00   sec  8.45 MBytes  70.9 Mbits/sec   15    421 KBytes       
[  4]   2.00-3.00   sec  8.20 MBytes  68.8 Mbits/sec    0    477 KBytes       
[  4]   3.00-4.00   sec  8.45 MBytes  70.9 Mbits/sec    0    515 KBytes       
[  4]   4.00-5.00   sec  9.07 MBytes  76.1 Mbits/sec    4    393 KBytes       
[  4]   5.00-6.00   sec  9.13 MBytes  76.6 Mbits/sec    0    420 KBytes       
[  4]   6.00-7.00   sec  9.13 MBytes  76.6 Mbits/sec    0    433 KBytes       
[  4]   7.00-8.00   sec  9.57 MBytes  80.3 Mbits/sec    0    440 KBytes       
[  4]   8.00-9.00   sec  9.20 MBytes  77.2 Mbits/sec    0    440 KBytes       
[  4]   9.00-10.00  sec  9.20 MBytes  77.1 Mbits/sec    0    452 KBytes  

 

 

Working for me too on my C2. The performance of RTL8188EUS is an order of magnitude faster than legacy kernel, and it doesn't drop connection after a few minutes as before.

Link to comment
Share on other sites

On 12/28/2018 at 1:41 PM, rino said:

Accelerated 4K full-screen video in vlc on Armbian Bionic 4.19 beta image of Le Potato is working.

 

 

I followed your steps and didn't work. I did my tests on an Odroid C2, not sure if that would make a difference. It fails when opening vaapi, and keeps doing SW decoding:

Spoiler

vlc bbb_sunflower_2160p_30fps_normal.mp4 
VLC media player 3.0.4 Vetinari (revision 3.0.4-0-gf615db6332)
[0000aaaaee170580] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
QXcbConnection: XCB error: 8 (BadMatch), sequence: 536, resource id: 52428809, major code: 2 (ChangeWindowAttributes), minor code: 0
[0000ffff58009fb0] main filter error: Failed to create video converter
libva info: VA-API version 1.1.0
libva info: va_getDriverName() returns -1
libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)
[0000ffff540be0d0] vaapi_drm generic error: vaInitialize: unknown libva error
[h264 @ 0xffff6cdcf3f0] co located POCs unavailable
[h264 @ 0xffff6cdb3ed0] mmco: unref short failure
QObject::~QObject: Timers cannot be stopped from another thread

 

 

 

I also tried with ffmpeg, and the device is recognized but it does not decode any frame. This is the output:

Spoiler

ffmpeg -c:v h264_v4l2m2m -i bbb_sunflower_2160p_30fps_normal.mp4 -f rawvideo output_nv12
ffmpeg version 3.4.4-0ubuntu0.18.04.1 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 7 (Ubuntu/Linaro 7.3.0-16ubuntu3)
  configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/aarch64-linux-gnu --incdir=/usr/include/aarch64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libavresample   3.  7.  0 /  3.  7.  0
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'bbb_sunflower_2160p_30fps_normal.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isomavc1
    creation_time   : 2013-12-18T14:43:04.000000Z
    title           : Big Buck Bunny, Sunflower version
    artist          : Blender Foundation 2008, Janus Bager Kristensen 2013
    comment         : Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net
    genre           : Animation
    composer        : Sacha Goedegebure
  Duration: 00:10:34.53, start: 0.000000, bitrate: 7980 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 3840x2160 [SAR 1:1 DAR 16:9], 7498 kb/s, 30 fps, 30 tbr, 30k tbn, 60 tbc (default)
    Metadata:
      creation_time   : 2013-12-18T14:43:04.000000Z
      handler_name    : GPAC ISO Video Handler
    Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, s16p, 160 kb/s (default)
    Metadata:
      creation_time   : 2013-12-18T14:43:06.000000Z
      handler_name    : GPAC ISO Audio Handler
    Stream #0:2(und): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, 5.1(side), fltp, 320 kb/s (default)
    Metadata:
      creation_time   : 2013-12-18T14:43:06.000000Z
      handler_name    : GPAC ISO Audio Handler
    Side data:
      audio service type: main
[h264_v4l2m2m @ 0xaaaaff943250] driver 'meson-vdec' on card 'Amlogic Video Decoder'
[h264_v4l2m2m @ 0xaaaaff943250] Using device /dev/video0
[h264_v4l2m2m @ 0xaaaaff943250] driver 'meson-vdec' on card 'Amlogic Video Decoder'
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (h264_v4l2m2m) -> rawvideo (native))
Press [q] to stop, [?] for help
[h264_v4l2m2m @ 0xaaaaff943250] output  POLLERR
frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbFinishing stream 0:0 without any data written to it.
Output #0, rawvideo, to 'output_nv12':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isomavc1
    composer        : Sacha Goedegebure
    title           : Big Buck Bunny, Sunflower version
    artist          : Blender Foundation 2008, Janus Bager Kristensen 2013
    comment         : Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net
    genre           : Animation
    encoder         : Lavf57.83.100
    Stream #0:0(und): Video: rawvideo (I420 / 0x30323449), yuv420p, 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 2985984 kb/s, 30 fps, 30 tbn, 30 tbc (default)
    Metadata:
      creation_time   : 2013-12-18T14:43:04.000000Z
      handler_name    : GPAC ISO Video Handler
      encoder         : Lavc57.107.100 rawvideo
frame=    0 fps=0.0 q=0.0 Lsize=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
Exiting normally, received signal 2.
juan@odroidc2:/media/juan/ESD-USB/Video$ ffmpeg -c:v h264_v4l2m2m -i tears_of_steel_1080p.mov -f rawvideo output_nv12
ffmpeg version 3.4.4-0ubuntu0.18.04.1 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 7 (Ubuntu/Linaro 7.3.0-16ubuntu3)
  configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/aarch64-linux-gnu --incdir=/usr/include/aarch64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libavresample   3.  7.  0 /  3.  7.  0
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'tears_of_steel_1080p.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 512
    compatible_brands: qt  
    encoder         : Lavf53.32.100
  Duration: 00:12:14.17, start: 0.000000, bitrate: 6361 kb/s
    Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x800 [SAR 1:1 DAR 12:5], 6162 kb/s, 24 fps, 24 tbr, 24 tbn, 48 tbc (default)
    Metadata:
      handler_name    : DataHandler
      encoder         : libx264
    Stream #0:1(eng): Audio: mp3 (.mp3 / 0x33706D2E), 44100 Hz, stereo, s16p, 191 kb/s (default)
    Metadata:
      handler_name    : DataHandler
File 'output_nv12' already exists. Overwrite ? [y/N] y
[h264_v4l2m2m @ 0xaaaaf27dba00] driver 'meson-vdec' on card 'Amlogic Video Decoder'
[h264_v4l2m2m @ 0xaaaaf27dba00] Using device /dev/video0
[h264_v4l2m2m @ 0xaaaaf27dba00] driver 'meson-vdec' on card 'Amlogic Video Decoder'
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (h264_v4l2m2m) -> rawvideo (native))
Press [q] to stop, [?] for help
[h264_v4l2m2m @ 0xaaaaf27dba00] output  POLLERR
Finishing stream 0:0 without any data written to it.14:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
Output #0, rawvideo, to 'output_nv12':
  Metadata:
    major_brand     : qt  
    minor_version   : 512
    compatible_brands: qt  
    encoder         : Lavf57.83.100
    Stream #0:0(eng): Video: rawvideo (I420 / 0x30323449), yuv420p, 1920x800 [SAR 1:1 DAR 12:5], q=2-31, 442368 kb/s, 24 fps, 24 tbn, 24 tbc (default)
    Metadata:
      handler_name    : DataHandler
      encoder         : Lavc57.107.100 rawvideo
frame=    0 fps=0.0 q=0.0 Lsize=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
Exiting normally, received signal 2.

 

 

 

However, I was successful in getting gles to work on X11, using the module from here: https://github.com/superna9999/meson_gx_mali_450. See attached image.

It was just good enough for running glmark2-es2, when I tried to run Chromium with egl, it failed with EGL_BAD_ALLOC.

[EDIT]: No, it was just a bad flag! Chromium WebGL is also working! See attached pic

 

@Neil Armstrong @TonyMac32 Is there any chance that we patch this mali module into the kernel, so we can test it without the need to compile it separately?

Screenshot_2019-01-16_21-58-30.png

 

Screenshot_2019-01-17_00-45-39.png

Link to comment
Share on other sites

 

Spoiler

 

14 hours ago, JMCC said:

 

I followed your steps and didn't work. I did my tests on an Odroid C2, not sure if that would make a difference. It fails when opening vaapi, and keeps doing SW decoding:

  Reveal hidden contents



vlc bbb_sunflower_2160p_30fps_normal.mp4 
VLC media player 3.0.4 Vetinari (revision 3.0.4-0-gf615db6332)
[0000aaaaee170580] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
QXcbConnection: XCB error: 8 (BadMatch), sequence: 536, resource id: 52428809, major code: 2 (ChangeWindowAttributes), minor code: 0
[0000ffff58009fb0] main filter error: Failed to create video converter
libva info: VA-API version 1.1.0
libva info: va_getDriverName() returns -1
libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)
[0000ffff540be0d0] vaapi_drm generic error: vaInitialize: unknown libva error
[h264 @ 0xffff6cdcf3f0] co located POCs unavailable
[h264 @ 0xffff6cdb3ed0] mmco: unref short failure
QObject::~QObject: Timers cannot be stopped from another thread

 

 

 

I also tried with ffmpeg, and the device is recognized but it does not decode any frame. This is the output:

  Reveal hidden contents



ffmpeg -c:v h264_v4l2m2m -i bbb_sunflower_2160p_30fps_normal.mp4 -f rawvideo output_nv12
ffmpeg version 3.4.4-0ubuntu0.18.04.1 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 7 (Ubuntu/Linaro 7.3.0-16ubuntu3)
  configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/aarch64-linux-gnu --incdir=/usr/include/aarch64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libavresample   3.  7.  0 /  3.  7.  0
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'bbb_sunflower_2160p_30fps_normal.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isomavc1
    creation_time   : 2013-12-18T14:43:04.000000Z
    title           : Big Buck Bunny, Sunflower version
    artist          : Blender Foundation 2008, Janus Bager Kristensen 2013
    comment         : Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net
    genre           : Animation
    composer        : Sacha Goedegebure
  Duration: 00:10:34.53, start: 0.000000, bitrate: 7980 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 3840x2160 [SAR 1:1 DAR 16:9], 7498 kb/s, 30 fps, 30 tbr, 30k tbn, 60 tbc (default)
    Metadata:
      creation_time   : 2013-12-18T14:43:04.000000Z
      handler_name    : GPAC ISO Video Handler
    Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, s16p, 160 kb/s (default)
    Metadata:
      creation_time   : 2013-12-18T14:43:06.000000Z
      handler_name    : GPAC ISO Audio Handler
    Stream #0:2(und): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, 5.1(side), fltp, 320 kb/s (default)
    Metadata:
      creation_time   : 2013-12-18T14:43:06.000000Z
      handler_name    : GPAC ISO Audio Handler
    Side data:
      audio service type: main
[h264_v4l2m2m @ 0xaaaaff943250] driver 'meson-vdec' on card 'Amlogic Video Decoder'
[h264_v4l2m2m @ 0xaaaaff943250] Using device /dev/video0
[h264_v4l2m2m @ 0xaaaaff943250] driver 'meson-vdec' on card 'Amlogic Video Decoder'
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (h264_v4l2m2m) -> rawvideo (native))
Press [q] to stop, [?] for help
[h264_v4l2m2m @ 0xaaaaff943250] output  POLLERR
frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbFinishing stream 0:0 without any data written to it.
Output #0, rawvideo, to 'output_nv12':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isomavc1
    composer        : Sacha Goedegebure
    title           : Big Buck Bunny, Sunflower version
    artist          : Blender Foundation 2008, Janus Bager Kristensen 2013
    comment         : Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net
    genre           : Animation
    encoder         : Lavf57.83.100
    Stream #0:0(und): Video: rawvideo (I420 / 0x30323449), yuv420p, 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 2985984 kb/s, 30 fps, 30 tbn, 30 tbc (default)
    Metadata:
      creation_time   : 2013-12-18T14:43:04.000000Z
      handler_name    : GPAC ISO Video Handler
      encoder         : Lavc57.107.100 rawvideo
frame=    0 fps=0.0 q=0.0 Lsize=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
Exiting normally, received signal 2.
juan@odroidc2:/media/juan/ESD-USB/Video$ ffmpeg -c:v h264_v4l2m2m -i tears_of_steel_1080p.mov -f rawvideo output_nv12
ffmpeg version 3.4.4-0ubuntu0.18.04.1 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 7 (Ubuntu/Linaro 7.3.0-16ubuntu3)
  configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/aarch64-linux-gnu --incdir=/usr/include/aarch64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libavresample   3.  7.  0 /  3.  7.  0
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'tears_of_steel_1080p.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 512
    compatible_brands: qt  
    encoder         : Lavf53.32.100
  Duration: 00:12:14.17, start: 0.000000, bitrate: 6361 kb/s
    Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x800 [SAR 1:1 DAR 12:5], 6162 kb/s, 24 fps, 24 tbr, 24 tbn, 48 tbc (default)
    Metadata:
      handler_name    : DataHandler
      encoder         : libx264
    Stream #0:1(eng): Audio: mp3 (.mp3 / 0x33706D2E), 44100 Hz, stereo, s16p, 191 kb/s (default)
    Metadata:
      handler_name    : DataHandler
File 'output_nv12' already exists. Overwrite ? [y/N] y
[h264_v4l2m2m @ 0xaaaaf27dba00] driver 'meson-vdec' on card 'Amlogic Video Decoder'
[h264_v4l2m2m @ 0xaaaaf27dba00] Using device /dev/video0
[h264_v4l2m2m @ 0xaaaaf27dba00] driver 'meson-vdec' on card 'Amlogic Video Decoder'
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (h264_v4l2m2m) -> rawvideo (native))
Press [q] to stop, [?] for help
[h264_v4l2m2m @ 0xaaaaf27dba00] output  POLLERR
Finishing stream 0:0 without any data written to it.14:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
Output #0, rawvideo, to 'output_nv12':
  Metadata:
    major_brand     : qt  
    minor_version   : 512
    compatible_brands: qt  
    encoder         : Lavf57.83.100
    Stream #0:0(eng): Video: rawvideo (I420 / 0x30323449), yuv420p, 1920x800 [SAR 1:1 DAR 12:5], q=2-31, 442368 kb/s, 24 fps, 24 tbn, 24 tbc (default)
    Metadata:
      handler_name    : DataHandler
      encoder         : Lavc57.107.100 rawvideo
frame=    0 fps=0.0 q=0.0 Lsize=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
Exiting normally, received signal 2.

 

 

 

However, I was successful in getting gles to work on X11, using the module from here: https://github.com/superna9999/meson_gx_mali_450. See attached image.

It was just good enough for running glmark2-es2, when I tried to run Chromium with egl, it failed with EGL_BAD_ALLOC.

[EDIT]: No, it was just a bad flag! Chromium WebGL is also working! See attached pic

 

@Neil Armstrong @TonyMac32 Is there any chance that we patch this mali module into the kernel, so we can test it without the need to compile it separately?

 

 

 

 

Hello @JMCC

 

Could you  kindly tell me how to get gles to work on X11? I want to try mainline kernel with gles on my C2.

 

Thanks so much.

Edited by Tido
added spoiler - for better reading, please do that yourself next time. thx
Link to comment
Share on other sites

11 minutes ago, beautynow said:

 

Hello @JMCC

 

Could you  kindly tell me how to get gles to work on X11? I want to try mainline kernel with gles on my C2.

 

Thanks so much.

Hello. I'm still testing, I want to post a howto/script when I have some more results.

Link to comment
Share on other sites

Aha, I got it. We were missing the firmware.

 

Here is the output of mpv. Notice the line confirming the use of hardware decoding:

Spoiler

$ mpv --hwdec=v4l2m2m-copy bbb_sunflower_1080p_60fps_normal.mp4 
Playing: bbb_sunflower_1080p_60fps_normal.mp4
 (+) Video --vid=1 (*) (h264 1920x1080 60.000fps)
 (+) Audio --aid=1 (*) (mp3 2ch 48000Hz)
     Audio --aid=2 (*) (ac3 6ch 48000Hz)
File tags:
 Artist: Blender Foundation 2008, Janus Bager Kristensen 2013
 Comment: Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net
 Composer: Sacha Goedegebure
 Genre: Animation
 Title: Big Buck Bunny, Sunflower version
libGL error: unable to load driver: meson_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: meson
[vo/gpu/opengl] Suspected software renderer or indirect context.
Using hardware decoding (v4l2m2m-copy).
No video PTS! Making something up. Using 60.000000 FPS.
VO: [gpu] 1920x1080 nv12
AO: [pulse] 48000Hz stereo 2ch float
No video PTS! Making something up. Using 60.000000 FPS.
Ignoring further missing PTS warnings.
AV: 00:00:04 / 00:10:34 (0%) A-V:  0.000 Dropped: 207


Exiting... (Quit)

 

 

Here is a ffmpeg output:

Spoiler

ffmpeg -c:v mpeg2_v4l2m2m -i MPEG2_1080i_sample.mkv -f rawvideo output_nv12
ffmpeg version 3.4.4-0ubuntu0.18.04.1 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 7 (Ubuntu/Linaro 7.3.0-16ubuntu3)
  configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/aarch64-linux-gnu --incdir=/usr/include/aarch64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
  WARNING: library configuration mismatch
  avcodec     configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/aarch64-linux-gnu --incdir=/usr/include/aarch64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc
  avfilter    configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/aarch64-linux-gnu --incdir=/usr/include/aarch64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libavresample   3.  7.  0 /  3.  7.  0
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100
[mpeg2_v4l2m2m @ 0xaaaaeb90cba0] driver 'meson-vdec' on card 'Amlogic Video Decoder'
[mpeg2_v4l2m2m @ 0xaaaaeb90cba0] Using device /dev/video0
[mpeg2_v4l2m2m @ 0xaaaaeb90cba0] driver 'meson-vdec' on card 'Amlogic Video Decoder'
[mpeg2_v4l2m2m @ 0xaaaaeb90cba0] output  POLLERR
Input #0, matroska,webm, from 'MPEG2_1080i_sample.mkv':
  Metadata:
    encoder         : libebml v1.3.1 + libmatroska v1.4.2
    creation_time   : 2015-05-28T12:43:09.000000Z
  Duration: 00:01:00.14, start: 0.067000, bitrate: 17990 kb/s
    Stream #0:0: Video: mpeg2video, yuv420p(top first), 1920x1080, SAR 1:1 DAR 16:9, 29.97 fps, 29.97 tbr, 1k tbn, 59.94 tbc (default)
    Metadata:
      BPS             : 17562211
      BPS-eng         : 17562211
      DURATION        : 00:01:00.060000000
      DURATION-eng    : 00:01:00.060000000
      NUMBER_OF_FRAMES: 1800
      NUMBER_OF_FRAMES-eng: 1800
      NUMBER_OF_BYTES : 131848306
      NUMBER_OF_BYTES-eng: 131848306
      _STATISTICS_WRITING_APP: mkvmerge v7.9.0 ('Birds') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.9.0 ('Birds') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2015-05-28 12:43:09
      _STATISTICS_WRITING_DATE_UTC-eng: 2015-05-28 12:43:09
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:1: Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s (default)
    Metadata:
      BPS             : 448000
      BPS-eng         : 448000
      DURATION        : 00:01:00.064000000
      DURATION-eng    : 00:01:00.064000000
      NUMBER_OF_FRAMES: 1877
      NUMBER_OF_FRAMES-eng: 1877
      NUMBER_OF_BYTES : 3363584
      NUMBER_OF_BYTES-eng: 3363584
      _STATISTICS_WRITING_APP: mkvmerge v7.9.0 ('Birds') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.9.0 ('Birds') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2015-05-28 12:43:09
      _STATISTICS_WRITING_DATE_UTC-eng: 2015-05-28 12:43:09
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
[mpeg2_v4l2m2m @ 0xaaaaeb9637c0] driver 'meson-vdec' on card 'Amlogic Video Decoder'
[mpeg2_v4l2m2m @ 0xaaaaeb9637c0] Using device /dev/video0
[mpeg2_v4l2m2m @ 0xaaaaeb9637c0] driver 'meson-vdec' on card 'Amlogic Video Decoder'
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video (mpeg2_v4l2m2m) -> rawvideo (native))
Press [q] to stop, [?] for help
[mpeg2_v4l2m2m @ 0xaaaaeb9637c0] output  POLLERR
Output #0, rawvideo, to 'output_nv12':
  Metadata:
    encoder         : Lavf57.83.100
    Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 745750 kb/s, 29.97 fps, 29.97 tbn, 29.97 tbc (default)
    Metadata:
      BPS             : 17562211
      BPS-eng         : 17562211
      DURATION        : 00:01:00.060000000
      DURATION-eng    : 00:01:00.060000000
      NUMBER_OF_FRAMES: 1800
      NUMBER_OF_FRAMES-eng: 1800
      NUMBER_OF_BYTES : 131848306
      NUMBER_OF_BYTES-eng: 131848306
      _STATISTICS_WRITING_APP: mkvmerge v7.9.0 ('Birds') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.9.0 ('Birds') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2015-05-28 12:43:09
      _STATISTICS_WRITING_DATE_UTC-eng: 2015-05-28 12:43:09
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      encoder         : Lavc57.107.100 rawvideo
frame=   10 fps=0.0 q=-0.0 size=   30208kB time=00:00:00.33 bitrate=741649.4kbitframe=   21 fps= 20 q=-0.0 size=   63744kB time=00:00:00.70 bitrate=745241.7kbitframe=   32 fps= 20 q=-0.0 size=   97024kB time=00:00:01.06 bitrate=744400.2kbitframe=   42 fps= 20 q=-0.0 size=  127488kB time=00:00:01.40 bitrate=745241.7kbitframe=   44 fps= 19 q=-0.0 Lsize=  133650kB time=00:00:01.46 bitrate=745750.4kbits/s speed=0.63x    
video:133650kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%
[mpeg2_v4l2m2m @ 0xaaaaeb9637c0] ff_v4l2m2m_codec_end leaving pending buffers
Exiting normally, received signal 2.

 

 

Though, performance is far from being good yet. Let's see if I can find some time to package everything I have so far into a script, for others to test too.

 

I'm attaching the firmware here. @Igor I'm going to add it to the armbian/firmware repo.

meson-firmware.tgz

Link to comment
Share on other sites

26 minutes ago, Neil Armstrong said:

@Igorthe firnware are stored here https://github.com/LibreELEC/meson-firmware until we manage to get them into linux-firmware...

Here are my results so far with the v4l2 decoder:

  • I'm able to decode h.264 at 1080p correctly.
  • MPEG2 at 1080p, and h.264 at 2160p are accepted by the decoder, but I get no output, it just hangs.
  • HEVC is simply not accepted by the decoder, I can only do SW decoding.

 

Does that correspond to the current status of the driver, or we should be getting something better?

Link to comment
Share on other sites

I made a very rough and basic, alpha (or pre-alpha) script, to test the v4l2 decoder and the mali kernel module.

 

I tried to integrate the mali module into the kernel, but I wasn't able to make it work. No matter what I tried, it was always the same: the module was loaded, you could see it in dmesg and in lsmod, but the "/dev/mali" node was never there. I suppose that is why everywhere on the net, people are compiling the mali module separately from the kernel. Any suggestions to sort this problem out are welcome:

 

In any case, this is the thread for the script:

 

Link to comment
Share on other sites

16 hours ago, JMCC said:

suppose that is why everywhere on the net, people are compiling the mali module separately from the kernel.

 

It's not taking the config you're feeding it, if it's doing what it did to me when I tried it.  I know it's not in his 'need to do' list, but perhaps @Neil Armstrong can shed some light?  I've stuffed Midgard drivers into the kernel for in-tree compilation without much difficulty, but these sources are messing with me.  I also don't claim to be a wizard or a professional.

Link to comment
Share on other sites

2 hours ago, TonyMac32 said:

It's not taking the config you're feeding it

If that's the case, then we can just use the tough solution: change the defaults in the module source to the ones we need. Kind of a dirty fix but, as I said, it is probably just a temporary solution until something is figured out in upstream mainline.

 

[Edit:] However, in any case, that was not my problem. When I made config changes, I could confirm that it was making a difference in the way the module was compiled (either as a module or as part of the kernel), the options it enabled, etc.. But, again, nothing worked. I even got to the point of applying a patch from the Odroid forums to enable UMP, and the "/dev/ump" node would appear, but mali still would not.

Link to comment
Share on other sites

12 minutes ago, JMCC said:

If that's the case, then we can just use the tough solution:

 

It might also be worth looking into simply scripting the cloning and compiling of such out of tree code as part of the board configs, the amount of work to graft this stuff in can be time consuming.  On another note, did you get the firmwares into the package system?

Link to comment
Share on other sites

18 minutes ago, TonyMac32 said:

simply scripting the cloning and compiling of such out of tree code as part of the board configs

But that would mean losing the module when the board updates the kernel, if I'm not wrong. We would need to do a DKMS package for the module, and that can be time consuming too. Specially if you consider that I tried to compile the module natively on the board and it wouldn't work, so we would need to figure out that problem too.

 

21 minutes ago, TonyMac32 said:

did you get the firmwares into the package system?

I did: https://github.com/armbian/firmware/commit/8bdf0a6b1896a6ce67eb7d10caefeced3cc5e984

Link to comment
Share on other sites

The function might be able to be hooked into the makedeb part of the kernel build script, I haven't spent more than 2-3 minutes considering the option, mostly brainstorming, since this won't be the last such piece of code.

Link to comment
Share on other sites

2 hours ago, JMCC said:

DX910-SW-99002-r7p0-00rel1_meson_gx

I tried to build a Mali module (two versions 6 and 7), executed a script on the system (to install all the files and settings, but left my kernel with Mali modules for Khadas VIM1). When launching the Mali module, the kernel is automatically accepted and the system has a "/dev/mali" device. When you start MPV, the video plays in a window without brakes (with the resolution that the video file itself has) . If the resolution of the desktop 1080, run video 720, the window runs without brakes, but if you try to expand to full screen, the video starts to slow down. Tried Gstreamer, it starts, but when you try to play something, there is nothing on the screen and no sound. This behavior with both Mali 6 and 7 modules (when I replace the module, I also change the libMali library to the same version from the m450-X directory from GIT ). How can I check the overall operation of the armsoc driver ? Perhaps there are some commands\utilities that can show that the driver is using HW mode ?

Link to comment
Share on other sites

1 hour ago, balbes150 said:

 there are some commands\utilities that can show that the driver is using HW mode

Using mpv from the command line console should give you a log, with info about the decoder and display driver it is using. Also with gst-play-1.0 for gstreamer.

 

Also, running glmark2-es2 will tell you whether it is using Mesa SW emulation, or Mali.

 

For last, if you have configured chromium to use acceleration (like my script does), you can check whether it is working by typing in the address bar "chrome://gpu"

 

Edit: And, of course, you can also check /var/log/Xorg.0.log

Link to comment
Share on other sites

I added Mali sources to the kernel sources to build the module together with the kernel. The module is built and the system can load it, but HW does not work and the size of the module is significantly smaller than the one that is built according to the old scheme from a separate directory. Perhaps you need additional options or settings ? I don't know which ones. May be more experienced comrades will be able to suggest what else need to add to fix it ?

 

During the tests, I found several reasons (which are not immediately noticeable) that affect the launch of HW. The sources of the kernel should be only 4.19 (with the corresponding patches), if you try at 4.20, like everything is, but HW does not work. Just be sure to need a script control Hot-HDMI. I wonder why HW doesn't work without it ?

Link to comment
Share on other sites

1 hour ago, balbes150 said:

I added Mali sources to the kernel sources to build the module together with the kernel. The module is built and the system can load it, but HW does not work and the size of the module is significantly smaller than the one that is built according to the old scheme from a separate directory. Perhaps you need additional options or settings ? I don't know which ones. May be more experienced comrades will be able to suggest what else need to add to fix it ?

 

During the tests, I found several reasons (which are not immediately noticeable) that affect the launch of HW. The sources of the kernel should be only 4.19 (with the corresponding patches), if you try at 4.20, like everything is, but HW does not work. Just be sure to need a script control Hot-HDMI. I wonder why HW doesn't work without it ?

Yes, that's the point where everybody gets stuck. @TonyMac32 suggested some posts above that the driver may not be getting the config you feed it, so maybe that can be the cause for the problem.

 

I may give it some other try, but the truth is that I don't think it is worth spending much time on this, until some steps are taken upstream. The v4l2-m2m driver is still immature, and there are also chances that the Lima driver can be mainlined for the next release (see some posts above). It is probably time to wait, and work in some other projects in the meantime (like Rockchip).

 

However, as I said, I may give a try to the possibility of hardcoding the compile options, as a possible temporary solution, as I mentioned some posts above.

Link to comment
Share on other sites

if I change the configuration kernel, change the size of the module. And I added options from the build script 'buid.sh" in the makefile itself. If select the option in the UMP kernel configuration, the build fails.

 

I also do not plan to spend a lot of time, but you can try. :)

Link to comment
Share on other sites

So I'm on a fresh build of a Le Potato desktop...  I'm able to run at 1080p just fine, but no easy config for the higher 2k or 4k resolutions... I tried both latest dev kernel, and next kernel....    Not sure how hard I try to make it work via X config... or go kernel hunting, device tree hacking or what.....   maybe the "default" kernel? eww

(My Tritium H5 can do it :P... same monitor, same cables etc)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines