Odroid C2 mainline kernel support

Moderators: mdrjr, odroid

Re: Odroid C2 mainline kernel support

Unread postby Ely » Wed Sep 05, 2018 5:42 am

I went ahead and got it working using libMali in aml's buildroot (package/meson-mali/lib/arm64/r7p0/m450/dummy/libMali.so). Also had to compile the utgard module from https://github.com/superna9999/meson_gx ... 1_meson_gx.

And it works! Got mpv with v4l2+drmprime in zerocopy. The typical commandline is
Code: Select all
mpv --drm-connector=HDMI-A-1 --vo=gpu --gpu-context=drm --hwdec=auto <input>


Code: Select all
root@libretech-cc:~# mpv --drm-connector=HDMI-A-1 --vo=gpu --gpu-context=drm --hwdec=auto 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
[vo/gpu] VT_GETMODE failed: Inappropriate ioctl for device
[vo/gpu/opengl] Failed to set up VT switcher. Terminal switching will be unavailable.
[vo/gpu/opengl] Could not choose EGLConfig for GLES 3.x!
Using hardware decoding (v4l2m2m).
No video PTS! Making something up. Using 60.000000 FPS.
VO: [gpu] 1920x1080 drm_prime
[vo/gpu] Using HW-overlay mode. No GL filtering is performed on the video!
ALSA lib ../../alsa-lib-1.1.6/src/confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib ../../alsa-lib-1.1.6/src/conf.c:4555:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib ../../alsa-lib-1.1.6/src/confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib ../../alsa-lib-1.1.6/src/conf.c:4555:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib ../../alsa-lib-1.1.6/src/confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib ../../alsa-lib-1.1.6/src/conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib ../../alsa-lib-1.1.6/src/conf.c:5034:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib ../../../alsa-lib-1.1.6/src/pcm/pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM default
[ao/alsa] Playback open error: No such file or directory
[ao/oss] Can't open audio device /dev/dsp: No such file or directory
[ao] Failed to initialize audio driver 'oss'
Could not open/initialize audio device -> no sound.
Audio: no audio
No video PTS! Making something up. Using 60.000000 FPS.
Ignoring further missing PTS warnings.
V: 00:00:02 / 00:10:34 (0%)


Quite a few errors/warnings but they seem without consequence.
Ely
 
Posts: 39
Joined: Sat Jan 31, 2015 9:27 pm
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby scpcom » Wed Sep 05, 2018 7:42 am

Which buildroot version contains a r7p0 dummy version?
20170630 and 20170814 only contains this:
buildroot/package/meson-mali/lib/arm64/r7p0/m450/libMali.so
buildroot/package/meson-mali/lib/arm64/r7p0/m450/wayland/libMali.so
buildroot/package/meson-mali/lib/arm64/r7p0/m450-X/libMali.so

The wayland version does not contain libgbm symbols:
Code: Select all
mpv: symbol lookup error: mpv: undefined symbol: gbm_bo_get_width
scpcom
 
Posts: 75
Joined: Thu Jun 23, 2016 8:07 am
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby scpcom » Wed Sep 05, 2018 10:45 am

All working fine now.
- Built kernel and mali packages with r7p0 (lib from buildroot_openlinux_kernel_4.9_fbdev_20180418)
- Booted into clean Debian buster/testing
- Installed u-boot, kernel and mali:
http://seafile.servator.de/sbc/odroid/n ... nstall.txt

ffmpeg patch ist not needed.
scpcom
 
Posts: 75
Joined: Thu Jun 23, 2016 8:07 am
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby Ely » Wed Sep 05, 2018 5:06 pm

scpcom wrote:All working fine now.
- Built kernel and mali packages with r7p0 (lib from buildroot_openlinux_kernel_4.9_fbdev_20180418)
- Booted into clean Debian buster/testing
- Installed u-boot, kernel and mali:
http://seafile.servator.de/sbc/odroid/n ... nstall.txt

ffmpeg patch ist not needed.


Great! Though I'm surprised you don't need the ffmpeg patch.. Are you sure it's using v4l2m2m and not v4l2m2m_copy ?
Ely
 
Posts: 39
Joined: Sat Jan 31, 2015 9:27 pm
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby scpcom » Thu Sep 06, 2018 1:59 am

It uses v4l2m2m_copy, what is the difference?
scpcom
 
Posts: 75
Joined: Thu Jun 23, 2016 8:07 am
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby Ely » Thu Sep 06, 2018 2:04 am

scpcom wrote:It uses v4l2m2m_copy, what is the difference?


v4l2m2m_copy needs to copy the frames first, so you get a massive performance hit. v4l2m2m is zero-copy, i.e straight from the decoder to the display (but for that you need the FFmpeg patches :<).
Ely
 
Posts: 39
Joined: Sat Jan 31, 2015 9:27 pm
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby scpcom » Thu Sep 06, 2018 3:29 am

OK, makes sense.
I added ffmpeg to install instructions above.

On the screen I see no difference, C2 does have enough power to run with v4l2m2m_copy.
Outside of X11 we can use zero-copy now. I hope there will be some solution for X11 too.
scpcom
 
Posts: 75
Joined: Thu Jun 23, 2016 8:07 am
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby scpcom » Fri Sep 07, 2018 8:29 am

Update 20180904
- Added linux-4.18.y-v4l-1001-WIP-drm-meson-support_overlay_plane_for_video_rendering.patch
linux-4.18-odroidc2-build.tar.gz linux-image-4.18.6-20180904-c2-arm64.zip linux-image-4.18.6-20180904-c2-mali-r7p0-arm64.zip

My default kernel still uses the mali r6p1 driver, additionally you can download the other one for r7p0.

The net patch is not in 4.18.6 but landed in master:
https://github.com/torvalds/linux/commi ... cro/stmmac
scpcom
 
Posts: 75
Joined: Thu Jun 23, 2016 8:07 am
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby moon.linux » Fri Sep 07, 2018 1:37 pm

@scpcom nice job. I have tested this kernel image and it's looks good. But sill having some issue with iperf testing it' stalls in between transfer of packets.
moon.linux
 
Posts: 1163
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby Ely » Fri Sep 07, 2018 9:50 pm

moon.linux wrote:@scpcom nice job. I have tested this kernel image and it's looks good. But sill having some issue with iperf testing it' stalls in between transfer of packets.


I believe you need a revert for a patch that broke Gbit ethernet with high throughputs on amlogic products with external phys. https://lore.kernel.org/patchwork/patch/977432/.
Ely
 
Posts: 39
Joined: Sat Jan 31, 2015 9:27 pm
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby outhudd9 » Sat Sep 08, 2018 4:00 am

Looks like great work, I've been trying to get it working on top of a stock ubuntu-18.04-3.16-mate-odroid-c2-20180620.img

Should this be possible?

I get this error from the ffmpeg install script:

Code: Select all
Unpacking ffmpeg (7:4.0.2-9v4l2drmprime4) over (7:3.4.2-2) ...
dpkg: dependency problems prevent configuration of libavcodec58:arm64:
 libavcodec58:arm64 depends on libcodec2-0.8.1; however:
  Package libcodec2-0.8.1 is not installed.
 libavcodec58:arm64 depends on libva2 (>= 2.2.0); however:
  Version of libva2:arm64 on system is 2.1.0-3.
 libavcodec58:arm64 depends on libx265-160 (>= 2.8); however:
  Package libx265-160 is not installed.

dpkg: error processing package libavcodec58:arm64 (--install):
 dependency problems - leaving unconfigured
Setting up libavutil56:arm64 (7:4.0.2-9v4l2drmprime4) ...
dpkg: dependency problems prevent configuration of libavdevice58:arm64:
 libavdevice58:arm64 depends on libavcodec58 (= 7:4.0.2-9v4l2drmprime4) | libavcodec-extra58 (= 7:4.0.2-9v4l2drmprime4); however:
  Package libavcodec58:arm64 is not configured yet.
  Package libavcodec-extra58 is not installed.
 libavdevice58:arm64 depends on libsndio7.0 (>= 1.1.0); however:
  Package libsndio7.0 is not installed.

dpkg: error processing package libavdevice58:arm64 (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libavfilter7:arm64:
 libavfilter7:arm64 depends on libavcodec58 (= 7:4.0.2-9v4l2drmprime4) | libavcodec-extra58 (= 7:4.0.2-9v4l2drmprime4); however:
  Package libavcodec58:arm64 is not configured yet.
  Package libavcodec-extra58 is not installed.
 libavfilter7:arm64 depends on liblilv-0-0 (>= 0.14.2~dfsg0); however:
  Package liblilv-0-0 is not installed.
 libavfilter7:arm64 depends on libopencv-core3.2; however:
  Package libopencv-core3.2 is not installed.
 libavfilter7:arm64 depends on libopencv-imgproc3.2; however:
  Package libopencv-imgproc3.2 is not installed.

dpkg: error processing package libavfilter7:arm64 (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libavformat58:arm64:
 libavformat58:arm64 depends on libavcodec58 (= 7:4.0.2-9v4l2drmprime4) | libavcodec-extra58 (= 7:4.0.2-9v4l2drmprime4); however:
  Package libavcodec58:arm64 is not configured yet.
  Package libavcodec-extra58 is not installed.
 libavformat58:arm64 depends on libssh-gcrypt-4 (>= 0.8.0); however:
  Version of libssh-gcrypt-4:arm64 on system is 0.8.0~20170825.94fa1e38-1build1.

dpkg: error processing package libavformat58:arm64 (--install):
 dependency problems - leaving unconfigured
Setting up libpostproc55:arm64 (7:4.0.2-9v4l2drmprime4) ...
Setting up libswscale5:arm64 (7:4.0.2-9v4l2drmprime4) ...
dpkg: dependency problems prevent configuration of ffmpeg:
 ffmpeg depends on libavcodec58 (= 7:4.0.2-9v4l2drmprime4) | libavcodec-extra58 (= 7:4.0.2-9v4l2drmprime4); however:
  Package libavcodec58:arm64 is not configured yet.
  Package libavcodec-extra58 is not installed.
 ffmpeg depends on libavdevice58 (= 7:4.0.2-9v4l2drmprime4); however:
  Package libavdevice58:arm64 is not configured yet.
 ffmpeg depends on libavfilter7 (= 7:4.0.2-9v4l2drmprime4) | libavfilter-extra7 (= 7:4.0.2-9v4l2drmprime4); however:
  Package libavfilter7:arm64 is not configured yet.
  Package libavfilter-extra7 is not installed.
 ffmpeg depends on libavformat58 (= 7:4.0.2-9v4l2drmprime4); however:
  Package libavformat58:arm64 is not configured yet.

dpkg: error processing package ffmpeg (--install):
 dependency problems - leaving unconfigured
Setting up libavresample4:arm64 (7:4.0.2-9v4l2drmprime4) ...
Setting up libswresample3:arm64 (7:4.0.2-9v4l2drmprime4) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for man-db (2.8.3-2) ...
Errors were encountered while processing:
 libavcodec58:arm64
 libavdevice58:arm64
 libavfilter7:arm64
 libavformat58:arm64
 ffmpeg


I get this from mpv:

Code: Select all
odroid@odroid:~$ mpv --vo=gpu --gpu-context=drm --hwdec=auto http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_60fps_normal.mp4

Error parsing option gpu-context (option not found)
Setting commandline option --gpu-context=drm failed.

Exiting... (Fatal error)
outhudd9
 
Posts: 21
Joined: Wed May 02, 2018 10:52 pm
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby scpcom » Sat Sep 08, 2018 8:10 am

ffmpeg is for Debian buster/testing only. But you don't need it.

Ubuntu 18.04 does have an older mpv version, you can use this parameters:

Code: Select all
mpv --vo=drm --ao=alsa --hwdec=auto http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_60fps_normal.mp4
Last edited by scpcom on Sat Sep 08, 2018 9:20 am, edited 1 time in total.
scpcom
 
Posts: 75
Joined: Thu Jun 23, 2016 8:07 am
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby scpcom » Sat Sep 08, 2018 9:17 am

Update 20180906
- Kernel 4.18.6
- Added mali-r7p0-ump_kernel_linux-r6p1-compat.patch
- Added linux-4.18.y-net-revert_net-stmmac-do_not_keep_rearming_the_coalesce_timer_in_stmmac_xmit.patch
linux-4.18-odroidc2-build.tar.gz linux-image-4.18.6-20180906-c2-arm64.zip

mali driver r7p0 is default now.
I found the r7p0 API is the same as r6p1, only UMP driver needed a small patch to be backward compatible.
scpcom
 
Posts: 75
Joined: Thu Jun 23, 2016 8:07 am
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby scpcom » Mon Sep 10, 2018 7:55 am

Update 20180910
- Backported ffmpeg 4.0.2 and mpv 0.29.0 to Ubuntu 18.04
ffmpeg-4.0.2-odroidc2-build.tar.gz ffmpeg-4.0.2-9v4l2drmprime4-bionic-arm64.zip
mpv-0.29.0-odroidc2-build.tar.gz mpv-0.29.0-bionic-arm64.zip

Full video acceleration (zero-copy) can be tested under Ubuntu 18.04 now:
odroid-c2-kernel-4.1x-v4l2m2m-install.txt
scpcom
 
Posts: 75
Joined: Thu Jun 23, 2016 8:07 am
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby moon.linux » Mon Sep 10, 2018 2:25 pm

Hi scpcon
I could not install ffmpeg and mpv on my Odroid c2 18.04 because of missing dependency.
Code: Select all
root@odroid:~/scpcom# apt-get install unzip wget
Reading package lists... Done
Building dependency tree
Reading state information... Done
unzip is already the newest version (6.0-21ubuntu1).
unzip set to manually installed.
wget is already the newest version (1.19.4-1ubuntu2.1).
wget set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@odroid:~/scpcom#
root@odroid:~/scpcom# wget -N http://seafile.servator.de/sbc/odroid/next/u-boot-2018.03.001-c2.zip
--2018-09-10 04:36:24--  http://seafile.servator.de/sbc/odroid/next/u-boot-2018.03.001-c2.zip
Resolving seafile.servator.de (seafile.servator.de)... 193.41.144.157
Connecting to seafile.servator.de (seafile.servator.de)|193.41.144.157|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 234919 (229K) [application/zip]
Saving to: 'u-boot-2018.03.001-c2.zip'

u-boot-2018.03.001-c2.zip             100%[======================================================================>] 229.41K  --.-KB/s    in 0.1s

2018-09-10 04:36:25 (1.75 MB/s) - 'u-boot-2018.03.001-c2.zip' saved [234919/234919]

root@odroid:~/scpcom# unzip u-boot-2018.03.001-c2.zip
Archive:  u-boot-2018.03.001-c2.zip
  inflating: odroid-c2-u-boot-image_2018.03.001_arm64.deb
  inflating: install-u-boot.sh
root@odroid:~/scpcom# sudo bash -e install-u-boot.sh
Selecting previously unselected package odroid-c2-u-boot-image.
(Reading database ... 151685 files and directories currently installed.)
Preparing to unpack odroid-c2-u-boot-image_2018.03.001_arm64.deb ...
Unpacking odroid-c2-u-boot-image (2018.03.001) ...
Setting up odroid-c2-u-boot-image (2018.03.001) ...
OK

Please run:
cd /usr/lib/u-boot/odroid-c2/
sudo ./sd_fusing.sh /dev/mmcblk0

Before rebooting make sure you have a compatible kernel and boot.cmd/boot.scr installed.
root@odroid:~/scpcom# cd /usr/lib/u-boot/odroid-c2/
root@odroid:/usr/lib/u-boot/odroid-c2# sudo ./sd_fusing.sh /dev/mmcblk0
442+0 records in
442+0 records out
442 bytes copied, 0.0147553 s, 30.0 kB/s
96+0 records in
96+0 records out
49152 bytes (49 kB, 48 KiB) copied, 0.00347707 s, 14.1 MB/s
1248+0 records in
1248+0 records out
638976 bytes (639 kB, 624 KiB) copied, 0.0451049 s, 14.2 MB/s
not an sg device, or old sg driver
eject: unable to eject, last error: Invalid argument
Finished.
root@odroid:/usr/lib/u-boot/odroid-c2# cd -
/root/scpcom
root@odroid:~/scpcom# wget -N http://seafile.servator.de/sbc/odroid/next/linux-image-4.18.6-20180906-c2-arm64.zip
--2018-09-10 04:37:28--  http://seafile.servator.de/sbc/odroid/next/linux-image-4.18.6-20180906-c2-arm64.zip
Resolving seafile.servator.de (seafile.servator.de)... 193.41.144.157
Connecting to seafile.servator.de (seafile.servator.de)|193.41.144.157|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 26234837 (25M) [application/zip]
Saving to: 'linux-image-4.18.6-20180906-c2-arm64.zip'

linux-image-4.18.6- 100%[===================>]  25.02M   929KB/s    in 26s

2018-09-10 04:37:54 (987 KB/s) - 'linux-image-4.18.6-20180906-c2-arm64.zip' save                                                                     d [26234837/26234837]

root@odroid:~/scpcom# unzip linux-image-4.18.6-20180906-c2-arm64.zip
Archive:  linux-image-4.18.6-20180906-c2-arm64.zip
  inflating: install-linux.sh
  inflating: install-dtb.sh
  inflating: install-image.sh
  inflating: install-uinitrd.sh
  inflating: linux-headers-4.18.6+c2_4.18.6-20180906-c2_arm64.deb
  inflating: linux-image-4.18.6+c2_4.18.6-20180906-c2_arm64.deb
  inflating: linux-libc-dev_4.18.6-20180906-c2_arm64.deb
  inflating: meson-vdec-firmware_20180830-1_arm64.deb
root@odroid:~/scpcom# sudo bash -e install-linux.sh
Selecting previously unselected package linux-image-4.18.6+c2.
(Reading database ... 151693 files and directories currently installed.)
Preparing to unpack linux-image-4.18.6+c2_4.18.6-20180906-c2_arm64.deb ...
Unpacking linux-image-4.18.6+c2 (4.18.6-20180906-c2) ...
Setting up linux-image-4.18.6+c2 (4.18.6-20180906-c2) ...
update-initramfs: Generating /boot/initrd.img-4.18.6+c2
Selecting previously unselected package meson-vdec-firmware.
(Reading database ... 153115 files and directories currently installed.)
Preparing to unpack meson-vdec-firmware_20180830-1_arm64.deb ...
Unpacking meson-vdec-firmware (20180830-1) ...
Setting up meson-vdec-firmware (20180830-1) ...
Using meson-gxbb-odroidc2.dtb
Using boot=UUID=0966-01D4 for /dev/mmcblk0p1
Using root=UUID=e139ce78-9841-40fe-8823-96a304a09859 for /dev/mmcblk0p2
Image Name:
Created:      Mon Sep 10 04:38:42 2018
Image Type:   ARM Linux Script (uncompressed)
Data Size:    6300 Bytes = 6.15 kB = 0.01 MB
Load Address: 00000000
Entry Point:  00000000
Contents:
   Image 0: 6292 Bytes = 6.14 kB = 0.01 MB
Using vmlinuz-4.18.6+c2
update-initramfs: Generating /boot/initrd.img-4.18.6+c2
Image Name:   uInitrd
Created:      Mon Sep 10 04:38:56 2018
Image Type:   AArch64 Linux RAMDisk Image (uncompressed)
Data Size:    12043045 Bytes = 11760.79 kB = 11.49 MB
Load Address: 00000000
Entry Point:  00000000
OK
root@odroid:~/scpcom#
root@odroid:~/scpcom#
root@odroid:~/scpcom# wget -N http://seafile.servator.de/sbc/odroid/next/mali450                                                                     -meson-gx-r7p0-arm64.zip
--2018-09-10 04:39:01--  http://seafile.servator.de/sbc/odroid/next/mali450-meso                                                                     n-gx-r7p0-arm64.zip
Resolving seafile.servator.de (seafile.servator.de)... 193.41.144.157
Connecting to seafile.servator.de (seafile.servator.de)|193.41.144.157|:80... co                                                                     nnected.
HTTP request sent, awaiting response... 200 OK
Length: 2858561 (2.7M) [application/zip]
Saving to: 'mali450-meson-gx-r7p0-arm64.zip'

mali450-meson-gx-r7 100%[===================>]   2.73M  1.01MB/s    in 2.7s

2018-09-10 04:39:04 (1.01 MB/s) - 'mali450-meson-gx-r7p0-arm64.zip' saved [28585                                                                     61/2858561]

root@odroid:~/scpcom# unzip mali450-meson-gx-r7p0-arm64.zip
Archive:  mali450-meson-gx-r7p0-arm64.zip
  inflating: install-mali-driver.sh
  inflating: mali450-dummy-meson_20170630-r7p0-1_arm64.deb
  inflating: mali450-fbdev-meson_20170630-r7p0-1_arm64.deb
  inflating: mali450-meson_20170630-r7p0-1_arm64.deb
  inflating: mali450-wayland-drm-meson_20170630-r7p0-1_arm64.deb
  inflating: mali450-wayland-fbdev-meson_20170630-r7p0-1_arm64.deb
  inflating: install-mali-dev.sh
  inflating: mali450-meson-dev.tar.gz
root@odroid:~/scpcom# sudo bash -e install-mali-driver-r7p0.sh -dummy
bash: install-mali-driver-r7p0.sh: No such file or directory
root@odroid:~/scpcom# sudo bash -e install-mali-driver.sh -dummy
Selecting previously unselected package mali450-dummy-meson.
(Reading database ... 153128 files and directories currently installed.)
Preparing to unpack mali450-dummy-meson_20170630-r7p0-1_arm64.deb ...
Unpacking mali450-dummy-meson (20170630-r7p0-1) ...
Setting up mali450-dummy-meson (20170630-r7p0-1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
none libEGL.so.1.0.0

none libGLESv1_CM.so.1.1.0

none libGLESv2.so.2.0.0

none libgbm.so.1.0.0
none libgbm.so.1.0
libgbm.so.1.0.0 libgbm.so.1
Adding 'local diversion of /usr/lib/aarch64-linux-gnu/libgbm.so.1 to /usr/lib/aa                                                                     rch64-linux-gnu/libgbm.so.1.distrib'
none libgbm.so
Adding 'local diversion of /usr/lib/aarch64-linux-gnu/libgbm.so.1.0.0 to /usr/li                                                                     b/aarch64-linux-gnu/libgbm.so.1.0.0.distrib'

Adding 'local diversion of /usr/lib/aarch64-linux-gnu/libMali.so to /usr/lib/aar                                                                     ch64-linux-gnu/libMali.so.distrib'
OK
root@odroid:~/scpcom# wget -N http://seafile.servator.de/sbc/odroid/next/ffmpeg-4.0.2-9v4l2drmprime4-bionic-arm64.zip
--2018-09-10 04:40:11--  http://seafile.servator.de/sbc/odroid/next/ffmpeg-4.0.2-9v4l2drmprime4-bionic-arm64.zip
Resolving seafile.servator.de (seafile.servator.de)... 193.41.144.157
Connecting to seafile.servator.de (seafile.servator.de)|193.41.144.157|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 22180624 (21M) [application/zip]
Saving to: 'ffmpeg-4.0.2-9v4l2drmprime4-bionic-arm64.zip'

ffmpeg-4.0.2-9v4l2drmprime4-bionic-ar 100%[======================================================================>]  21.15M  1006KB/s    in 21s

2018-09-10 04:40:33 (1009 KB/s) - 'ffmpeg-4.0.2-9v4l2drmprime4-bionic-arm64.zip' saved [22180624/22180624]

root@odroid:~/scpcom# unzip ffmpeg-4.0.2-9v4l2drmprime4-bionic-arm64.zip
Archive:  ffmpeg-4.0.2-9v4l2drmprime4-bionic-arm64.zip
  inflating: ffmpeg_4.0.2-9v4l2drmprime4_arm64.deb
  inflating: ffmpeg-doc_4.0.2-9v4l2drmprime4_all.deb
  inflating: libavcodec58_4.0.2-9v4l2drmprime4_arm64.deb
  inflating: libavcodec-extra_4.0.2-9v4l2drmprime4_all.deb
  inflating: libavcodec-extra58_4.0.2-9v4l2drmprime4_arm64.deb
  inflating: libavdevice58_4.0.2-9v4l2drmprime4_arm64.deb
  inflating: libavfilter7_4.0.2-9v4l2drmprime4_arm64.deb
  inflating: libavfilter-extra_4.0.2-9v4l2drmprime4_all.deb
  inflating: libavfilter-extra7_4.0.2-9v4l2drmprime4_arm64.deb
  inflating: libavformat58_4.0.2-9v4l2drmprime4_arm64.deb
  inflating: libavresample4_4.0.2-9v4l2drmprime4_arm64.deb
  inflating: libavutil56_4.0.2-9v4l2drmprime4_arm64.deb
  inflating: libpostproc55_4.0.2-9v4l2drmprime4_arm64.deb
  inflating: libswresample3_4.0.2-9v4l2drmprime4_arm64.deb
  inflating: libswscale5_4.0.2-9v4l2drmprime4_arm64.deb
  inflating: install-ffmpeg.sh
   creating: dev/
  inflating: dev/libavdevice-dev_4.0.2-9v4l2drmprime4_arm64.deb
  inflating: dev/libavutil-dev_4.0.2-9v4l2drmprime4_arm64.deb
  inflating: dev/install-ffmpeg-dev.sh
  inflating: dev/libpostproc-dev_4.0.2-9v4l2drmprime4_arm64.deb
  inflating: dev/libswresample-dev_4.0.2-9v4l2drmprime4_arm64.deb
  inflating: dev/libavformat-dev_4.0.2-9v4l2drmprime4_arm64.deb
  inflating: dev/libavresample-dev_4.0.2-9v4l2drmprime4_arm64.deb
  inflating: dev/libavfilter-dev_4.0.2-9v4l2drmprime4_arm64.deb
  inflating: dev/libavcodec-dev_4.0.2-9v4l2drmprime4_arm64.deb
  inflating: dev/libswscale-dev_4.0.2-9v4l2drmprime4_arm64.deb
  inflating: install-ffmpeg-dev.sh
root@odroid:~/scpcom# vi install-ffmpeg-dev.sh
root@odroid:~/scpcom# sudo bash -e install-ffmpeg-dev.sh
Selecting previously unselected package libavcodec-dev:arm64.
(Reading database ... 153136 files and directories currently installed.)
Preparing to unpack .../libavcodec-dev_4.0.2-9v4l2drmprime4_arm64.deb ...
Unpacking libavcodec-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
Selecting previously unselected package libavformat-dev:arm64.
Preparing to unpack .../libavformat-dev_4.0.2-9v4l2drmprime4_arm64.deb ...
Unpacking libavformat-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
Selecting previously unselected package libavutil-dev:arm64.
Preparing to unpack .../libavutil-dev_4.0.2-9v4l2drmprime4_arm64.deb ...
Unpacking libavutil-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
Selecting previously unselected package libavresample-dev:arm64.
Preparing to unpack .../libavresample-dev_4.0.2-9v4l2drmprime4_arm64.deb ...
Unpacking libavresample-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
Selecting previously unselected package libswresample-dev:arm64.
Preparing to unpack .../libswresample-dev_4.0.2-9v4l2drmprime4_arm64.deb ...
Unpacking libswresample-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
Selecting previously unselected package libswscale-dev:arm64.
Preparing to unpack .../libswscale-dev_4.0.2-9v4l2drmprime4_arm64.deb ...
Unpacking libswscale-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
dpkg: dependency problems prevent configuration of libavcodec-dev:arm64:
 libavcodec-dev:arm64 depends on libavcodec58 (= 7:4.0.2-9v4l2drmprime4) | libavcodec-extra58 (= 7:4.0.2-9v4l2drmprime4); however:
  Package libavcodec58 is not installed.
  Package libavcodec-extra58 is not installed.

dpkg: error processing package libavcodec-dev:arm64 (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libavformat-dev:arm64:
 libavformat-dev:arm64 depends on libavcodec-dev (= 7:4.0.2-9v4l2drmprime4); however:
  Package libavcodec-dev:arm64 is not configured yet.
 libavformat-dev:arm64 depends on libavformat58 (= 7:4.0.2-9v4l2drmprime4); however:
  Package libavformat58 is not installed.

dpkg: error processing package libavformat-dev:arm64 (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libavutil-dev:arm64:
 libavutil-dev:arm64 depends on libavutil56 (= 7:4.0.2-9v4l2drmprime4); however:
  Package libavutil56 is not installed.

dpkg: error processing package libavutil-dev:arm64 (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libavresample-dev:arm64:
 libavresample-dev:arm64 depends on libavutil-dev (= 7:4.0.2-9v4l2drmprime4); however:
  Package libavutil-dev:arm64 is not configured yet.
 libavresample-dev:arm64 depends on libavresample4 (= 7:4.0.2-9v4l2drmprime4); however:
  Package libavresample4 is not installed.

dpkg: error processing package libavresample-dev:arm64 (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libswresample-dev:arm64:
 libswresample-dev:arm64 depends on libavutil-dev (= 7:4.0.2-9v4l2drmprime4); however:
  Package libavutil-dev:arm64 is not configured yet.
 libswresample-dev:arm64 depends on libswresample3 (= 7:4.0.2-9v4l2drmprime4); however:
  Package libswresample3 is not installed.

dpkg: error processing package libswresample-dev:arm64 (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libswscale-dev:arm64:
 libswscale-dev:arm64 depends on libavutil-dev (= 7:4.0.2-9v4l2drmprime4); however:
  Package libavutil-dev:arm64 is not configured yet.
 libswscale-dev:arm64 depends on libswscale5 (= 7:4.0.2-9v4l2drmprime4); however:
  Package libswscale5 is not installed.

dpkg: error processing package libswscale-dev:arm64 (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libavcodec-dev:arm64
 libavformat-dev:arm64
 libavutil-dev:arm64
 libavresample-dev:arm64
 libswresample-dev:arm64
 libswscale-dev:arm64
root@odroid:~/scpcom#
root@odroid:~/scpcom#
root@odroid:~/scpcom# sudo apt-get install libavcodec-extra58
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libavcodec-extra58 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libavcodec-extra58' has no installation candidate
root@odroid:~/scpcom#
root@odroid:~/scpcom# sudo apt-get install libavcodec-extra
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libavcodec-dev : Depends: libavcodec58 (= 7:4.0.2-9v4l2drmprime4) but it is not installable or
                           libavcodec-extra58 (= 7:4.0.2-9v4l2drmprime4) but it is not installable
 libavcodec-extra : Depends: libavcodec-extra57 but it is not going to be installed
 libavformat-dev : Depends: libavformat58 (= 7:4.0.2-9v4l2drmprime4) but it is not installable
 libavresample-dev : Depends: libavresample4 (= 7:4.0.2-9v4l2drmprime4) but it is not installable
 libavutil-dev : Depends: libavutil56 (= 7:4.0.2-9v4l2drmprime4) but it is not installable
 libswresample-dev : Depends: libswresample3 (= 7:4.0.2-9v4l2drmprime4) but it is not installable
 libswscale-dev : Depends: libswscale5 (= 7:4.0.2-9v4l2drmprime4) but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@odroid:~/scpcom#
root@odroid:~/scpcom#
root@odroid:~/scpcom# sudo apt-get install libavcodec-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libavcodec-dev is already the newest version (7:4.0.2-9v4l2drmprime4).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libavcodec-dev : Depends: libavcodec58 (= 7:4.0.2-9v4l2drmprime4) but it is not installable or
                           libavcodec-extra58 (= 7:4.0.2-9v4l2drmprime4) but it is not installable
 libavformat-dev : Depends: libavformat58 (= 7:4.0.2-9v4l2drmprime4) but it is not installable
 libavresample-dev : Depends: libavresample4 (= 7:4.0.2-9v4l2drmprime4) but it is not installable
 libavutil-dev : Depends: libavutil56 (= 7:4.0.2-9v4l2drmprime4) but it is not installable
 libswresample-dev : Depends: libswresample3 (= 7:4.0.2-9v4l2drmprime4) but it is not installable
 libswscale-dev : Depends: libswscale5 (= 7:4.0.2-9v4l2drmprime4) but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@odroid:~/scpcom# apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
  libavcodec-dev libavformat-dev libavresample-dev libavutil-dev libswresample-dev libswscale-dev
0 upgraded, 0 newly installed, 6 to remove and 0 not upgraded.
6 not fully installed or removed.
After this operation, 23.9 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 153284 files and directories currently installed.)
Removing libavformat-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
Removing libavcodec-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
Removing libavresample-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
Removing libswresample-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
Removing libswscale-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
Removing libavutil-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
root@odroid:~/scpcom#
root@odroid:~/scpcom#
root@odroid:~/scpcom# sudo bash -e install-ffmpeg-dev.sh
Selecting previously unselected package libavcodec-dev:arm64.
(Reading database ... 153136 files and directories currently installed.)
Preparing to unpack .../libavcodec-dev_4.0.2-9v4l2drmprime4_arm64.deb ...
Unpacking libavcodec-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
Selecting previously unselected package libavformat-dev:arm64.
Preparing to unpack .../libavformat-dev_4.0.2-9v4l2drmprime4_arm64.deb ...
Unpacking libavformat-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
Selecting previously unselected package libavutil-dev:arm64.
Preparing to unpack .../libavutil-dev_4.0.2-9v4l2drmprime4_arm64.deb ...
Unpacking libavutil-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
Selecting previously unselected package libavresample-dev:arm64.
Preparing to unpack .../libavresample-dev_4.0.2-9v4l2drmprime4_arm64.deb ...
Unpacking libavresample-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
Selecting previously unselected package libswresample-dev:arm64.
Preparing to unpack .../libswresample-dev_4.0.2-9v4l2drmprime4_arm64.deb ...
Unpacking libswresample-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
Selecting previously unselected package libswscale-dev:arm64.
Preparing to unpack .../libswscale-dev_4.0.2-9v4l2drmprime4_arm64.deb ...
Unpacking libswscale-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
dpkg: dependency problems prevent configuration of libavcodec-dev:arm64:
 libavcodec-dev:arm64 depends on libavcodec58 (= 7:4.0.2-9v4l2drmprime4) | libavcodec-extra58 (= 7:4.0.2-9v4l2drmprime4); however:
  Package libavcodec58 is not installed.
  Package libavcodec-extra58 is not installed.

dpkg: error processing package libavcodec-dev:arm64 (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libavformat-dev:arm64:
 libavformat-dev:arm64 depends on libavcodec-dev (= 7:4.0.2-9v4l2drmprime4); however:
  Package libavcodec-dev:arm64 is not configured yet.
 libavformat-dev:arm64 depends on libavformat58 (= 7:4.0.2-9v4l2drmprime4); however:
  Package libavformat58 is not installed.

dpkg: error processing package libavformat-dev:arm64 (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libavutil-dev:arm64:
 libavutil-dev:arm64 depends on libavutil56 (= 7:4.0.2-9v4l2drmprime4); however:
  Package libavutil56 is not installed.

dpkg: error processing package libavutil-dev:arm64 (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libavresample-dev:arm64:
 libavresample-dev:arm64 depends on libavutil-dev (= 7:4.0.2-9v4l2drmprime4); however:
  Package libavutil-dev:arm64 is not configured yet.
 libavresample-dev:arm64 depends on libavresample4 (= 7:4.0.2-9v4l2drmprime4); however:
  Package libavresample4 is not installed.

dpkg: error processing package libavresample-dev:arm64 (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libswresample-dev:arm64:
 libswresample-dev:arm64 depends on libavutil-dev (= 7:4.0.2-9v4l2drmprime4); however:
  Package libavutil-dev:arm64 is not configured yet.
 libswresample-dev:arm64 depends on libswresample3 (= 7:4.0.2-9v4l2drmprime4); however:
  Package libswresample3 is not installed.

dpkg: error processing package libswresample-dev:arm64 (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libswscale-dev:arm64:
 libswscale-dev:arm64 depends on libavutil-dev (= 7:4.0.2-9v4l2drmprime4); however:
  Package libavutil-dev:arm64 is not configured yet.
 libswscale-dev:arm64 depends on libswscale5 (= 7:4.0.2-9v4l2drmprime4); however:
  Package libswscale5 is not installed.

dpkg: error processing package libswscale-dev:arm64 (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libavcodec-dev:arm64
 libavformat-dev:arm64
 libavutil-dev:arm64
 libavresample-dev:arm64
 libswresample-dev:arm64
 libswscale-dev:arm64
root@odroid:~/scpcom# sudo apt-get install libavutil-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libavutil-dev is already the newest version (7:4.0.2-9v4l2drmprime4).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libavcodec-dev : Depends: libavcodec58 (= 7:4.0.2-9v4l2drmprime4) but it is not installable or
                           libavcodec-extra58 (= 7:4.0.2-9v4l2drmprime4) but it is not installable
 libavformat-dev : Depends: libavformat58 (= 7:4.0.2-9v4l2drmprime4) but it is not installable
 libavresample-dev : Depends: libavresample4 (= 7:4.0.2-9v4l2drmprime4) but it is not installable
 libavutil-dev : Depends: libavutil56 (= 7:4.0.2-9v4l2drmprime4) but it is not installable
 libswresample-dev : Depends: libswresample3 (= 7:4.0.2-9v4l2drmprime4) but it is not installable
 libswscale-dev : Depends: libswscale5 (= 7:4.0.2-9v4l2drmprime4) but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@odroid:~/scpcom# apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
  libavcodec-dev libavformat-dev libavresample-dev libavutil-dev libswresample-dev libswscale-dev
0 upgraded, 0 newly installed, 6 to remove and 0 not upgraded.
6 not fully installed or removed.
After this operation, 23.9 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 153284 files and directories currently installed.)
Removing libavformat-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
Removing libavcodec-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
Removing libavresample-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
Removing libswresample-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
Removing libswscale-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
Removing libavutil-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
root@odroid:~/scpcom# sudo bash -e install-ffmpeg-dev.sh
Selecting previously unselected package libavcodec-dev:arm64.
(Reading database ... 153136 files and directories currently installed.)
Preparing to unpack .../libavcodec-dev_4.0.2-9v4l2drmprime4_arm64.deb ...
Unpacking libavcodec-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
Selecting previously unselected package libavformat-dev:arm64.
Preparing to unpack .../libavformat-dev_4.0.2-9v4l2drmprime4_arm64.deb ...
Unpacking libavformat-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
Selecting previously unselected package libavutil-dev:arm64.
Preparing to unpack .../libavutil-dev_4.0.2-9v4l2drmprime4_arm64.deb ...
Unpacking libavutil-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
Selecting previously unselected package libavresample-dev:arm64.
Preparing to unpack .../libavresample-dev_4.0.2-9v4l2drmprime4_arm64.deb ...
Unpacking libavresample-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
Selecting previously unselected package libswresample-dev:arm64.
Preparing to unpack .../libswresample-dev_4.0.2-9v4l2drmprime4_arm64.deb ...
Unpacking libswresample-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
Selecting previously unselected package libswscale-dev:arm64.
Preparing to unpack .../libswscale-dev_4.0.2-9v4l2drmprime4_arm64.deb ...
Unpacking libswscale-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
dpkg: dependency problems prevent configuration of libavcodec-dev:arm64:
 libavcodec-dev:arm64 depends on libavcodec58 (= 7:4.0.2-9v4l2drmprime4) | libavcodec-extra58 (= 7:4.0.2-9v4l2drmprime4); however:
  Package libavcodec58 is not installed.
  Package libavcodec-extra58 is not installed.

dpkg: error processing package libavcodec-dev:arm64 (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libavformat-dev:arm64:
 libavformat-dev:arm64 depends on libavcodec-dev (= 7:4.0.2-9v4l2drmprime4); however:
  Package libavcodec-dev:arm64 is not configured yet.
 libavformat-dev:arm64 depends on libavformat58 (= 7:4.0.2-9v4l2drmprime4); however:
  Package libavformat58 is not installed.

dpkg: error processing package libavformat-dev:arm64 (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libavutil-dev:arm64:
 libavutil-dev:arm64 depends on libavutil56 (= 7:4.0.2-9v4l2drmprime4); however:
  Package libavutil56 is not installed.

dpkg: error processing package libavutil-dev:arm64 (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libavresample-dev:arm64:
 libavresample-dev:arm64 depends on libavutil-dev (= 7:4.0.2-9v4l2drmprime4); however:
  Package libavutil-dev:arm64 is not configured yet.
 libavresample-dev:arm64 depends on libavresample4 (= 7:4.0.2-9v4l2drmprime4); however:
  Package libavresample4 is not installed.

dpkg: error processing package libavresample-dev:arm64 (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libswresample-dev:arm64:
 libswresample-dev:arm64 depends on libavutil-dev (= 7:4.0.2-9v4l2drmprime4); however:
  Package libavutil-dev:arm64 is not configured yet.
 libswresample-dev:arm64 depends on libswresample3 (= 7:4.0.2-9v4l2drmprime4); however:
  Package libswresample3 is not installed.

dpkg: error processing package libswresample-dev:arm64 (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libswscale-dev:arm64:
 libswscale-dev:arm64 depends on libavutil-dev (= 7:4.0.2-9v4l2drmprime4); however:
  Package libavutil-dev:arm64 is not configured yet.
 libswscale-dev:arm64 depends on libswscale5 (= 7:4.0.2-9v4l2drmprime4); however:
  Package libswscale5 is not installed.

dpkg: error processing package libswscale-dev:arm64 (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libavcodec-dev:arm64
 libavformat-dev:arm64
 libavutil-dev:arm64
 libavresample-dev:arm64
 libswresample-dev:arm64
 libswscale-dev:arm64
root@odroid:~/scpcom# sudo apt-get install libswscale5-devl
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libswscale5-devl
root@odroid:~/scpcom# sudo apt-get install libswscale5-del
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libswscale5-del
root@odroid:~/scpcom# sudo apt-get install libswscale5-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libswscale5-dev
root@odroid:~/scpcom#
root@odroid:~/scpcom#
root@odroid:~/scpcom# sudo apt-get install libswscale-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libswscale-dev is already the newest version (7:4.0.2-9v4l2drmprime4).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libavcodec-dev : Depends: libavcodec58 (= 7:4.0.2-9v4l2drmprime4) but it is not installable or
                           libavcodec-extra58 (= 7:4.0.2-9v4l2drmprime4) but it is not installable
 libavformat-dev : Depends: libavformat58 (= 7:4.0.2-9v4l2drmprime4) but it is not installable
 libavresample-dev : Depends: libavresample4 (= 7:4.0.2-9v4l2drmprime4) but it is not installable
 libavutil-dev : Depends: libavutil56 (= 7:4.0.2-9v4l2drmprime4) but it is not installable
 libswresample-dev : Depends: libswresample3 (= 7:4.0.2-9v4l2drmprime4) but it is not installable
 libswscale-dev : Depends: libswscale5 (= 7:4.0.2-9v4l2drmprime4) but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@odroid:~/scpcom# sudo apt-get install libavformat-dev libavcodec-dev libavresample-dev libavutil-dev libswresample-dev libswscale-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libavutil-dev is already the newest version (7:4.0.2-9v4l2drmprime4).
libavcodec-dev is already the newest version (7:4.0.2-9v4l2drmprime4).
libavresample-dev is already the newest version (7:4.0.2-9v4l2drmprime4).
libswscale-dev is already the newest version (7:4.0.2-9v4l2drmprime4).
libswresample-dev is already the newest version (7:4.0.2-9v4l2drmprime4).
libavformat-dev is already the newest version (7:4.0.2-9v4l2drmprime4).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libavcodec-dev : Depends: libavcodec58 (= 7:4.0.2-9v4l2drmprime4) but it is not installable or
                           libavcodec-extra58 (= 7:4.0.2-9v4l2drmprime4) but it is not installable
 libavformat-dev : Depends: libavformat58 (= 7:4.0.2-9v4l2drmprime4) but it is not installable
 libavresample-dev : Depends: libavresample4 (= 7:4.0.2-9v4l2drmprime4) but it is not installable
 libavutil-dev : Depends: libavutil56 (= 7:4.0.2-9v4l2drmprime4) but it is not installable
 libswresample-dev : Depends: libswresample3 (= 7:4.0.2-9v4l2drmprime4) but it is not installable
 libswscale-dev : Depends: libswscale5 (= 7:4.0.2-9v4l2drmprime4) but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@odroid:~/scpcom# apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
  libavcodec-dev libavformat-dev libavresample-dev libavutil-dev libswresample-dev libswscale-dev
0 upgraded, 0 newly installed, 6 to remove and 0 not upgraded.
6 not fully installed or removed.
After this operation, 23.9 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 153284 files and directories currently installed.)
Removing libavformat-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
Removing libavcodec-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
Removing libavresample-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
Removing libswresample-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
Removing libswscale-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
Removing libavutil-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
root@odroid:~/scpcom#
root@odroid:~/scpcom#
root@odroid:~/scpcom# sudo apt-get install libavformat-dev libavcodec-dev libavresample-dev libavutil-dev libswresample-dev libswscale-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  libavcodec-dev libavformat-dev libavresample-dev libavutil-dev libswresample-dev libswscale-dev
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 6179 kB of archives.
After this operation, 23.3 MB of additional disk space will be used.
Get:1 http://ports.ubuntu.com/ubuntu-ports bionic-updates/universe arm64 libavutil-dev arm64 7:3.4.4-0ubuntu0.18.04.1 [297 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports bionic-updates/universe arm64 libswresample-dev arm64 7:3.4.4-0ubuntu0.18.04.1 [57.3 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports bionic-updates/universe arm64 libavcodec-dev arm64 7:3.4.4-0ubuntu0.18.04.1 [4571 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports bionic-updates/universe arm64 libavformat-dev arm64 7:3.4.4-0ubuntu0.18.04.1 [1071 kB]
Get:5 http://ports.ubuntu.com/ubuntu-ports bionic-updates/universe arm64 libavresample-dev arm64 7:3.4.4-0ubuntu0.18.04.1 [48.5 kB]
Get:6 http://ports.ubuntu.com/ubuntu-ports bionic-updates/universe arm64 libswscale-dev arm64 7:3.4.4-0ubuntu0.18.04.1 [135 kB]
Fetched 6179 kB in 10s (649 kB/s)
Selecting previously unselected package libavutil-dev:arm64.
(Reading database ... 153136 files and directories currently installed.)
Preparing to unpack .../0-libavutil-dev_7%3a3.4.4-0ubuntu0.18.04.1_arm64.deb ...
Unpacking libavutil-dev:arm64 (7:3.4.4-0ubuntu0.18.04.1) ...
Selecting previously unselected package libswresample-dev:arm64.
Preparing to unpack .../1-libswresample-dev_7%3a3.4.4-0ubuntu0.18.04.1_arm64.deb ...
Unpacking libswresample-dev:arm64 (7:3.4.4-0ubuntu0.18.04.1) ...
Selecting previously unselected package libavcodec-dev:arm64.
Preparing to unpack .../2-libavcodec-dev_7%3a3.4.4-0ubuntu0.18.04.1_arm64.deb ...
Unpacking libavcodec-dev:arm64 (7:3.4.4-0ubuntu0.18.04.1) ...
Selecting previously unselected package libavformat-dev:arm64.
Preparing to unpack .../3-libavformat-dev_7%3a3.4.4-0ubuntu0.18.04.1_arm64.deb ...
Unpacking libavformat-dev:arm64 (7:3.4.4-0ubuntu0.18.04.1) ...
Selecting previously unselected package libavresample-dev:arm64.
Preparing to unpack .../4-libavresample-dev_7%3a3.4.4-0ubuntu0.18.04.1_arm64.deb ...
Unpacking libavresample-dev:arm64 (7:3.4.4-0ubuntu0.18.04.1) ...
Selecting previously unselected package libswscale-dev:arm64.
Preparing to unpack .../5-libswscale-dev_7%3a3.4.4-0ubuntu0.18.04.1_arm64.deb ...
Unpacking libswscale-dev:arm64 (7:3.4.4-0ubuntu0.18.04.1) ...
Setting up libavutil-dev:arm64 (7:3.4.4-0ubuntu0.18.04.1) ...
Setting up libavresample-dev:arm64 (7:3.4.4-0ubuntu0.18.04.1) ...
Setting up libswscale-dev:arm64 (7:3.4.4-0ubuntu0.18.04.1) ...
Setting up libswresample-dev:arm64 (7:3.4.4-0ubuntu0.18.04.1) ...
Setting up libavcodec-dev:arm64 (7:3.4.4-0ubuntu0.18.04.1) ...
Setting up libavformat-dev:arm64 (7:3.4.4-0ubuntu0.18.04.1) ...
root@odroid:~/scpcom# sudo bash -e install-ffmpeg.sh
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  libavcodec-dev libavformat-dev libavresample-dev libavutil-dev libswresample-dev libswscale-dev
0 upgraded, 0 newly installed, 6 to remove and 0 not upgraded.
After this operation, 23.3 MB disk space will be freed.
(Reading database ... 153281 files and directories currently installed.)
Removing libavformat-dev:arm64 (7:3.4.4-0ubuntu0.18.04.1) ...
Removing libavcodec-dev:arm64 (7:3.4.4-0ubuntu0.18.04.1) ...
Removing libavresample-dev:arm64 (7:3.4.4-0ubuntu0.18.04.1) ...
Removing libswscale-dev:arm64 (7:3.4.4-0ubuntu0.18.04.1) ...
Removing libswresample-dev:arm64 (7:3.4.4-0ubuntu0.18.04.1) ...
Removing libavutil-dev:arm64 (7:3.4.4-0ubuntu0.18.04.1) ...
Selecting previously unselected package libavcodec58:arm64.
(Reading database ... 153136 files and directories currently installed.)
Preparing to unpack libavcodec58_4.0.2-9v4l2drmprime4_arm64.deb ...
Unpacking libavcodec58:arm64 (7:4.0.2-9v4l2drmprime4) ...
Selecting previously unselected package libavresample4:arm64.
Preparing to unpack libavresample4_4.0.2-9v4l2drmprime4_arm64.deb ...
Unpacking libavresample4:arm64 (7:4.0.2-9v4l2drmprime4) ...
Selecting previously unselected package libswresample3:arm64.
Preparing to unpack libswresample3_4.0.2-9v4l2drmprime4_arm64.deb ...
Unpacking libswresample3:arm64 (7:4.0.2-9v4l2drmprime4) ...
Selecting previously unselected package libavutil56:arm64.
Preparing to unpack libavutil56_4.0.2-9v4l2drmprime4_arm64.deb ...
Unpacking libavutil56:arm64 (7:4.0.2-9v4l2drmprime4) ...
dpkg: dependency problems prevent configuration of libavcodec58:arm64:
 libavcodec58:arm64 depends on libcodec2-0.7; however:
  Package libcodec2-0.7 is not installed.

dpkg: error processing package libavcodec58:arm64 (--install):
 dependency problems - leaving unconfigured
Setting up libavutil56:arm64 (7:4.0.2-9v4l2drmprime4) ...
Setting up libavresample4:arm64 (7:4.0.2-9v4l2drmprime4) ...
Setting up libswresample3:arm64 (7:4.0.2-9v4l2drmprime4) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Errors were encountered while processing:
 libavcodec58:arm64
root@odroid:~/scpcom# sudo bash -e install-ffmpeg-dev.sh
Selecting previously unselected package libavcodec-dev:arm64.
(Reading database ... 153160 files and directories currently installed.)
Preparing to unpack .../libavcodec-dev_4.0.2-9v4l2drmprime4_arm64.deb ...
Unpacking libavcodec-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
Selecting previously unselected package libavformat-dev:arm64.
Preparing to unpack .../libavformat-dev_4.0.2-9v4l2drmprime4_arm64.deb ...
Unpacking libavformat-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
Selecting previously unselected package libavutil-dev:arm64.
Preparing to unpack .../libavutil-dev_4.0.2-9v4l2drmprime4_arm64.deb ...
Unpacking libavutil-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
Selecting previously unselected package libavresample-dev:arm64.
Preparing to unpack .../libavresample-dev_4.0.2-9v4l2drmprime4_arm64.deb ...
Unpacking libavresample-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
Selecting previously unselected package libswresample-dev:arm64.
Preparing to unpack .../libswresample-dev_4.0.2-9v4l2drmprime4_arm64.deb ...
Unpacking libswresample-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
Selecting previously unselected package libswscale-dev:arm64.
Preparing to unpack .../libswscale-dev_4.0.2-9v4l2drmprime4_arm64.deb ...
Unpacking libswscale-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
dpkg: dependency problems prevent configuration of libavcodec-dev:arm64:
 libavcodec-dev:arm64 depends on libavcodec58 (= 7:4.0.2-9v4l2drmprime4) | libavcodec-extra58 (= 7:4.0.2-9v4l2drmprime4); however:
  Package libavcodec58:arm64 is not configured yet.
  Package libavcodec-extra58 is not installed.

dpkg: error processing package libavcodec-dev:arm64 (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libavformat-dev:arm64:
 libavformat-dev:arm64 depends on libavcodec-dev (= 7:4.0.2-9v4l2drmprime4); however:
  Package libavcodec-dev:arm64 is not configured yet.
 libavformat-dev:arm64 depends on libavformat58 (= 7:4.0.2-9v4l2drmprime4); however:
  Package libavformat58 is not installed.

dpkg: error processing package libavformat-dev:arm64 (--install):
 dependency problems - leaving unconfigured
Setting up libavutil-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
Setting up libavresample-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
Setting up libswresample-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
dpkg: dependency problems prevent configuration of libswscale-dev:arm64:
 libswscale-dev:arm64 depends on libswscale5 (= 7:4.0.2-9v4l2drmprime4); however:
  Package libswscale5 is not installed.

dpkg: error processing package libswscale-dev:arm64 (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libavcodec-dev:arm64
 libavformat-dev:arm64
 libswscale-dev:arm64
root@odroid:~/scpcom# sudo bash -e install-ffmpeg.sh
mv: cannot stat '*-extra*': No such file or directory
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libavcodec58 : Depends: libcodec2-0.7 but it is not going to be installed
 libswresample-dev : Depends: libavutil-dev (= 7:4.0.2-9v4l2drmprime4) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@odroid:~/scpcom#
root@odroid:~/scpcom#
root@odroid:~/scpcom# apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  libcodec2-0.7
The following packages will be REMOVED:
  libavformat-dev libswscale-dev
The following NEW packages will be installed:
  libcodec2-0.7
0 upgraded, 1 newly installed, 2 to remove and 0 not upgraded.
4 not fully installed or removed.
Need to get 187 kB of archives.
After this operation, 5512 kB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 http://ports.ubuntu.com/ubuntu-ports bionic/universe arm64 libcodec2-0.7 arm64 0.7-1 [187 kB]
Fetched 187 kB in 1s (306 kB/s)
(Reading database ... 153308 files and directories currently installed.)
Removing libavformat-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
Removing libswscale-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
Selecting previously unselected package libcodec2-0.7:arm64.
(Reading database ... 153290 files and directories currently installed.)
Preparing to unpack .../libcodec2-0.7_0.7-1_arm64.deb ...
Unpacking libcodec2-0.7:arm64 (0.7-1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Setting up libcodec2-0.7:arm64 (0.7-1) ...
Setting up libavcodec58:arm64 (7:4.0.2-9v4l2drmprime4) ...
Setting up libavcodec-dev:arm64 (7:4.0.2-9v4l2drmprime4) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...


How can I install the correctly dependency for latest ffmpeg and mpv too test Full video acceleration (zero-copy)
moon.linux
 
Posts: 1163
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby rooted » Mon Sep 10, 2018 2:32 pm

@moon.linux

Couldn't you just install the missing depends?

Code: Select all
sudo apt install libswscale5 libswresample3 libavresample4 libavutil56 libavcodec58 libavcodec-extra58
and any others I missed.

I think it's

Code: Select all
libsndio7.0


You may need to build and install that one manually.
User avatar
rooted
 
Posts: 5676
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1, C1+, C2
XU3 Lite, XU4
N1
VU7+
HiFi Shield 2
Smart Power (original)

Re: Odroid C2 mainline kernel support

Unread postby moon.linux » Mon Sep 10, 2018 2:41 pm

I have freshly installed the 18.04 os on odroid c2 and upgraded to the latest updates. but sill I get this message at my end.
Code: Select all
root@odroid:~# sudo apt install libswscale5 libswresample3 libavresample4 libavutil56 libavcodec58 libavcodec-extra58
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libavcodec-extra58 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libswscale5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libswscale5' has no installation candidate
E: Package 'libavcodec-extra58' has no installation candidate
moon.linux
 
Posts: 1163
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby rooted » Mon Sep 10, 2018 2:45 pm

I don't have a C2 running currently but the libswscale5 package is available on Ubuntu 18 for XU4.

However libsndio7.0 is at libsndio6.0 only.
User avatar
rooted
 
Posts: 5676
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1, C1+, C2
XU3 Lite, XU4
N1
VU7+
HiFi Shield 2
Smart Power (original)

Re: Odroid C2 mainline kernel support

Unread postby moon.linux » Mon Sep 10, 2018 3:27 pm

Ok I tried to build the deb package the scripts but it also failed.
Code: Select all
odroid@odroid:~/build$ wget http://seafile.servator.de/sbc/odroid/build/next/ffmpeg-4.0.2-odroidc2-build.tar.gz
--2018-09-10 06:05:37--  http://seafile.servator.de/sbc/odroid/build/next/ffmpeg-4.0.2-odroidc2-build.tar.gz
Resolving seafile.servator.de (seafile.servator.de)... 193.41.144.157
Connecting to seafile.servator.de (seafile.servator.de)|193.41.144.157|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2165 (2.1K) [application/x-gzip]
Saving to: 'ffmpeg-4.0.2-odroidc2-build.tar.gz'

ffmpeg-4.0.2-odroid 100%[===================>]   2.11K  --.-KB/s    in 0s

2018-09-10 06:05:37 (14.0 MB/s) - 'ffmpeg-4.0.2-odroidc2-build.tar.gz' saved [2165/2165]

odroid@odroid:~/build$ tar xvfz ffmpeg-4.0.2-odroidc2-build.tar.gz
build-deps-ffmpeg.sh
build-ffmpeg.sh
install-ffmpeg-dev.sh
install-ffmpeg.sh
prepare-ffmpeg.sh
odroid@odroid:~/build$  sudo bash -e prepare-ffmpeg.sh
[sudo] password for odroid:
--2018-09-10 06:06:08--  http://ftp.us.debian.org/debian/pool/main/f/ffmpeg/ffmpeg_4.0.2.orig.tar.xz
Resolving ftp.us.debian.org (ftp.us.debian.org)... 128.30.2.26, 64.50.236.52, 12 8.61.240.89, ...
Connecting to ftp.us.debian.org (ftp.us.debian.org)|128.30.2.26|:80... connected                                                                     .
HTTP request sent, awaiting response... 200 OK
Length: 8662984 (8.3M) [application/x-tar]
Saving to: 'ffmpeg_4.0.2.orig.tar.xz'

ffmpeg_4.0.2.orig.t 100%[===================>]   8.26M  1007KB/s    in 8.3s

2018-09-10 06:06:17 (1021 KB/s) - 'ffmpeg_4.0.2.orig.tar.xz' saved [8662984/8662984]

--2018-09-10 06:06:17--  http://ftp.us.debian.org/debian/pool/main/f/ffmpeg/ffmpeg_4.0.2.orig.tar.xz.asc
Resolving ftp.us.debian.org (ftp.us.debian.org)... 64.50.233.100, 208.80.154.15, 128.61.240.89, ...
Connecting to ftp.us.debian.org (ftp.us.debian.org)|64.50.233.100|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 473 [text/plain]
Saving to: 'ffmpeg_4.0.2.orig.tar.xz.asc'

ffmpeg_4.0.2.orig.t 100%[===================>]     473  --.-KB/s    in 0s

2018-09-10 06:06:18 (3.07 MB/s) - 'ffmpeg_4.0.2.orig.tar.xz.asc' saved [473/473]

--2018-09-10 06:06:18--  http://ftp.us.debian.org/debian/pool/main/f/ffmpeg/ffmpeg_4.0.2-1.debian.tar.xz
Resolving ftp.us.debian.org (ftp.us.debian.org)... 64.50.233.100, 208.80.154.15, 128.61.240.89, ...
Connecting to ftp.us.debian.org (ftp.us.debian.org)|64.50.233.100|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 46756 (46K) [application/x-xz]
Saving to: 'ffmpeg_4.0.2-1.debian.tar.xz'

ffmpeg_4.0.2-1.debi 100%[===================>]  45.66K  --.-KB/s    in 0.01s

2018-09-10 06:06:18 (3.40 MB/s) - 'ffmpeg_4.0.2-1.debian.tar.xz' saved [46756/46                                                                     756]

--2018-09-10 06:06:18--  http://ftp.us.debian.org/debian/pool/main/f/ffmpeg/ffmp                                                                     eg_4.0.2-1.dsc
Resolving ftp.us.debian.org (ftp.us.debian.org)... 64.50.233.100, 208.80.154.15,                                                                      128.61.240.89, ...
Connecting to ftp.us.debian.org (ftp.us.debian.org)|64.50.233.100|:80... connect                                                                     ed.
HTTP request sent, awaiting response... 200 OK
Length: 5199 (5.1K) [text/prs.lines.tag]
Saving to: 'ffmpeg_4.0.2-1.dsc'

ffmpeg_4.0.2-1.dsc  100%[===================>]   5.08K  --.-KB/s    in 0s

2018-09-10 06:06:19 (27.7 MB/s) - 'ffmpeg_4.0.2-1.dsc' saved [5199/5199]

--2018-09-10 06:06:21--  https://github.com/lrusak/FFmpeg/commit/2bd24d4a37e9793                                                                     295730d383471a4b3711b0f8c.patch
Resolving github.com (github.com)... 192.30.253.113, 192.30.253.112
Connecting to github.com (github.com)|192.30.253.113|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: '2bd24d4a37e9793295730d383471a4b3711b0f8c.patch'

2bd24d4a37e97932957     [ <=>                ]     904  --.-KB/s    in 0.001s

Last-modified header missing -- time-stamps turned off.
2018-09-10 06:06:22 (779 KB/s) - '2bd24d4a37e9793295730d383471a4b3711b0f8c.patch                                                                     ' saved [904]

--2018-09-10 06:06:22--  https://github.com/lrusak/FFmpeg/commit/7395f13df94efd3                                                                     49ad29c8b5bb5942b0d44d6e4.patch
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: '7395f13df94efd349ad29c8b5bb5942b0d44d6e4.patch'

7395f13df94efd349ad     [ <=>                ]     836  --.-KB/s    in 0.001s

Last-modified header missing -- time-stamps turned off.
2018-09-10 06:06:23 (1.29 MB/s) - '7395f13df94efd349ad29c8b5bb5942b0d44d6e4.patc                                                                     h' saved [836]

--2018-09-10 06:06:23--  https://github.com/lrusak/FFmpeg/commit/b5ebaf4bd1377b1                                                                     2bd6b1dbb9e4f45ce5efbec82.patch
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: 'b5ebaf4bd1377b12bd6b1dbb9e4f45ce5efbec82.patch'

b5ebaf4bd1377b12bd6     [ <=>                ]   2.82K  --.-KB/s    in 0.001s

Last-modified header missing -- time-stamps turned off.
2018-09-10 06:06:24 (2.19 MB/s) - 'b5ebaf4bd1377b12bd6b1dbb9e4f45ce5efbec82.patc                                                                     h' saved [2886]

--2018-09-10 06:06:24--  https://github.com/lrusak/FFmpeg/commit/2cb8052ac65a56d                                                                     8a3f347a1e6f12d4449a5a614.patch
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: '2cb8052ac65a56d8a3f347a1e6f12d4449a5a614.patch'

2cb8052ac65a56d8a3f     [  <=>               ]  16.99K  83.8KB/s    in 0.2s

Last-modified header missing -- time-stamps turned off.
2018-09-10 06:06:25 (83.8 KB/s) - '2cb8052ac65a56d8a3f347a1e6f12d4449a5a614.patc                                                                     h' saved [17402]

--2018-09-10 06:06:25--  https://github.com/lrusak/FFmpeg/commit/ab977c2a5ae40d2                                                                     e9a299754df272dfdcc5dd7b1.patch
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: 'ab977c2a5ae40d2e9a299754df272dfdcc5dd7b1.patch'

ab977c2a5ae40d2e9a2     [ <=>                ]   4.71K  --.-KB/s    in 0.002s

Last-modified header missing -- time-stamps turned off.
2018-09-10 06:06:26 (2.71 MB/s) - 'ab977c2a5ae40d2e9a299754df272dfdcc5dd7b1.patc                                                                     h' saved [4822]

--2018-09-10 06:06:26--  https://github.com/lrusak/FFmpeg/commit/3b054f52ec9bb5d                                                                     df79ed99910af4f799d870e57.patch
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: '3b054f52ec9bb5ddf79ed99910af4f799d870e57.patch'

3b054f52ec9bb5ddf79     [ <=>                ]   2.92K  --.-KB/s    in 0.001s

Last-modified header missing -- time-stamps turned off.
2018-09-10 06:06:27 (2.41 MB/s) - '3b054f52ec9bb5ddf79ed99910af4f799d870e57.patc                                                                     h' saved [2988]

--2018-09-10 06:06:27--  https://github.com/lrusak/FFmpeg/commit/78ae926cb6bb75b                                                                     4f0f372cf1530e4326a921b7b.patch
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: '78ae926cb6bb75b4f0f372cf1530e4326a921b7b.patch'

78ae926cb6bb75b4f0f     [ <=>                ]   1.02K  --.-KB/s    in 0.001s

Last-modified header missing -- time-stamps turned off.
2018-09-10 06:06:28 (1.29 MB/s) - '78ae926cb6bb75b4f0f372cf1530e4326a921b7b.patc                                                                     h' saved [1048]

--2018-09-10 06:06:28--  https://github.com/lrusak/FFmpeg/commit/ab4cf3e6fb37cff                                                                     debccca52e36a7b2deb7e729f.patch
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: 'ab4cf3e6fb37cffdebccca52e36a7b2deb7e729f.patch'

ab4cf3e6fb37cffdebc     [ <=>                ]   1.12K  --.-KB/s    in 0s

Last-modified header missing -- time-stamps turned off.
2018-09-10 06:06:29 (3.64 MB/s) - 'ab4cf3e6fb37cffdebccca52e36a7b2deb7e729f.patc                                                                     h' saved [1151]

--2018-09-10 06:06:29--  https://github.com/lrusak/FFmpeg/commit/46003e7aba73a56                                                                     c468faece81430c5e353fa6cb.patch
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: '46003e7aba73a56c468faece81430c5e353fa6cb.patch'

46003e7aba73a56c468     [ <=>                ]   1.05K  --.-KB/s    in 0.001s

Last-modified header missing -- time-stamps turned off.
2018-09-10 06:06:30 (1.86 MB/s) - '46003e7aba73a56c468faece81430c5e353fa6cb.patc                                                                     h' saved [1071]

--2018-09-10 06:06:30--  https://github.com/lrusak/FFmpeg/commit/241ccc7b00d2824                                                                     4cb0566408c7fb3be2d38deda.patch
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: '241ccc7b00d28244cb0566408c7fb3be2d38deda.patch'

241ccc7b00d28244cb0     [ <=>                ]   2.40K  --.-KB/s    in 0.001s

Last-modified header missing -- time-stamps turned off.
2018-09-10 06:06:31 (4.64 MB/s) - '241ccc7b00d28244cb0566408c7fb3be2d38deda.patc                                                                     h' saved [2456]

--2018-09-10 06:06:31--  https://github.com/lrusak/FFmpeg/commit/23eccd46c93fb43                                                                     cf45885c04ecad34486bf1d09.patch
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: '23eccd46c93fb43cf45885c04ecad34486bf1d09.patch'

23eccd46c93fb43cf45     [ <=>                ]   1.56K  --.-KB/s    in 0.001s

Last-modified header missing -- time-stamps turned off.
2018-09-10 06:06:32 (2.08 MB/s) - '23eccd46c93fb43cf45885c04ecad34486bf1d09.patc                                                                     h' saved [1594]

Applying patch debian/patches/2bd24d4a37e9793295730d383471a4b3711b0f8c.patch
patching file libavcodec/v4l2_m2m_dec.c

Applying patch debian/patches/7395f13df94efd349ad29c8b5bb5942b0d44d6e4.patch
patching file libavcodec/v4l2_m2m_dec.c

Applying patch debian/patches/b5ebaf4bd1377b12bd6b1dbb9e4f45ce5efbec82.patch
patching file libavcodec/v4l2_m2m_dec.c

Applying patch debian/patches/2cb8052ac65a56d8a3f347a1e6f12d4449a5a614.patch
patching file libavcodec/v4l2_buffers.c
patching file libavcodec/v4l2_buffers.h
patching file libavcodec/v4l2_context.c
patching file libavcodec/v4l2_m2m.c
patching file libavcodec/v4l2_m2m.h
patching file libavcodec/v4l2_m2m_dec.c

Applying patch debian/patches/ab977c2a5ae40d2e9a299754df272dfdcc5dd7b1.patch
patching file libavcodec/v4l2_buffers.c
patching file libavcodec/v4l2_buffers.h

Applying patch debian/patches/3b054f52ec9bb5ddf79ed99910af4f799d870e57.patch
patching file libavcodec/v4l2_context.c
patching file libavcodec/v4l2_m2m_dec.c

Applying patch debian/patches/78ae926cb6bb75b4f0f372cf1530e4326a921b7b.patch
patching file libavcodec/v4l2_context.c

Applying patch debian/patches/ab4cf3e6fb37cffdebccca52e36a7b2deb7e729f.patch
patching file configure
Hunk #1 succeeded at 3218 (offset -23 lines).
patching file libavcodec/v4l2_buffers.c

Applying patch debian/patches/46003e7aba73a56c468faece81430c5e353fa6cb.patch
patching file libavcodec/v4l2_buffers.c

Applying patch debian/patches/241ccc7b00d28244cb0566408c7fb3be2d38deda.patch
patching file libavcodec/v4l2_buffers.c

Applying patch debian/patches/23eccd46c93fb43cf45885c04ecad34486bf1d09.patch
patching file libavcodec/v4l2_m2m_dec.c

Now at patch debian/patches/23eccd46c93fb43cf45885c04ecad34486bf1d09.patch

Select an editor.  To change later, run 'select-editor'.
  1. /usr/bin/joe
  2. /usr/bin/jstar
  3. /usr/bin/jpico
  4. /usr/bin/jmacs
  5. /bin/nano        <---- easiest
  6. /usr/bin/rjoe
  7. /usr/bin/vim.tiny

Choose 1-7 [5]:
debchange: debian/changelog unmodified; exiting.
odroid@odroid:~/build$
odroid@odroid:~/build$
odroid@odroid:~/build$  sudo bash -e prepare-ffmpeg.sh
--2018-09-10 06:07:26--  http://ftp.us.debian.org/debian/pool/main/f/ffmpeg/ffmp                                                                     eg_4.0.2.orig.tar.xz
Resolving ftp.us.debian.org (ftp.us.debian.org)... 64.50.233.100, 208.80.154.15,                                                                      128.61.240.89, ...
Connecting to ftp.us.debian.org (ftp.us.debian.org)|64.50.233.100|:80... connect                                                                     ed.
HTTP request sent, awaiting response... 304 Not Modified
File 'ffmpeg_4.0.2.orig.tar.xz' not modified on server. Omitting download.

--2018-09-10 06:07:27--  http://ftp.us.debian.org/debian/pool/main/f/ffmpeg/ffmp                                                                     eg_4.0.2.orig.tar.xz.asc
Resolving ftp.us.debian.org (ftp.us.debian.org)... 64.50.233.100, 208.80.154.15,                                                                      128.61.240.89, ...
Connecting to ftp.us.debian.org (ftp.us.debian.org)|64.50.233.100|:80... connect                                                                     ed.
HTTP request sent, awaiting response... 304 Not Modified
File 'ffmpeg_4.0.2.orig.tar.xz.asc' not modified on server. Omitting download.

--2018-09-10 06:07:27--  http://ftp.us.debian.org/debian/pool/main/f/ffmpeg/ffmp                                                                     eg_4.0.2-1.debian.tar.xz
Resolving ftp.us.debian.org (ftp.us.debian.org)... 64.50.233.100, 208.80.154.15,                                                                      128.61.240.89, ...
Connecting to ftp.us.debian.org (ftp.us.debian.org)|64.50.233.100|:80... connect                                                                     ed.
HTTP request sent, awaiting response... 304 Not Modified
File 'ffmpeg_4.0.2-1.debian.tar.xz' not modified on server. Omitting download.

--2018-09-10 06:07:28--  http://ftp.us.debian.org/debian/pool/main/f/ffmpeg/ffmp                                                                     eg_4.0.2-1.dsc
Resolving ftp.us.debian.org (ftp.us.debian.org)... 64.50.233.100, 208.80.154.15,                                                                      128.61.240.89, ...
Connecting to ftp.us.debian.org (ftp.us.debian.org)|64.50.233.100|:80... connect                                                                     ed.
HTTP request sent, awaiting response... 304 Not Modified
File 'ffmpeg_4.0.2-1.dsc' not modified on server. Omitting download.

--2018-09-10 06:07:30--  https://github.com/lrusak/FFmpeg/commit/2bd24d4a37e9793                                                                     295730d383471a4b3711b0f8c.patch
Resolving github.com (github.com)... 192.30.253.113, 192.30.253.112
Connecting to github.com (github.com)|192.30.253.113|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: '2bd24d4a37e9793295730d383471a4b3711b0f8c.patch'

2bd24d4a37e97932957     [ <=>                ]     904  --.-KB/s    in 0s

Last-modified header missing -- time-stamps turned off.
2018-09-10 06:07:31 (4.40 MB/s) - '2bd24d4a37e9793295730d383471a4b3711b0f8c.patc                                                                     h' saved [904]

--2018-09-10 06:07:31--  https://github.com/lrusak/FFmpeg/commit/7395f13df94efd3                                                                     49ad29c8b5bb5942b0d44d6e4.patch
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: '7395f13df94efd349ad29c8b5bb5942b0d44d6e4.patch'

7395f13df94efd349ad     [ <=>                ]     836  --.-KB/s    in 0s

Last-modified header missing -- time-stamps turned off.
2018-09-10 06:07:32 (4.08 MB/s) - '7395f13df94efd349ad29c8b5bb5942b0d44d6e4.patc                                                                     h' saved [836]

--2018-09-10 06:07:32--  https://github.com/lrusak/FFmpeg/commit/b5ebaf4bd1377b1                                                                     2bd6b1dbb9e4f45ce5efbec82.patch
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: 'b5ebaf4bd1377b12bd6b1dbb9e4f45ce5efbec82.patch'

b5ebaf4bd1377b12bd6     [ <=>                ]   2.82K  --.-KB/s    in 0s

Last-modified header missing -- time-stamps turned off.
2018-09-10 06:07:33 (12.2 MB/s) - 'b5ebaf4bd1377b12bd6b1dbb9e4f45ce5efbec82.patc                                                                     h' saved [2886]

--2018-09-10 06:07:33--  https://github.com/lrusak/FFmpeg/commit/2cb8052ac65a56d                                                                     8a3f347a1e6f12d4449a5a614.patch
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: '2cb8052ac65a56d8a3f347a1e6f12d4449a5a614.patch'

2cb8052ac65a56d8a3f     [  <=>               ]  16.99K  79.6KB/s    in 0.2s

Last-modified header missing -- time-stamps turned off.
2018-09-10 06:07:35 (79.6 KB/s) - '2cb8052ac65a56d8a3f347a1e6f12d4449a5a614.patc                                                                     h' saved [17402]

--2018-09-10 06:07:35--  https://github.com/lrusak/FFmpeg/commit/ab977c2a5ae40d2                                                                     e9a299754df272dfdcc5dd7b1.patch
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: 'ab977c2a5ae40d2e9a299754df272dfdcc5dd7b1.patch'

ab977c2a5ae40d2e9a2     [ <=>                ]   4.71K  --.-KB/s    in 0s

Last-modified header missing -- time-stamps turned off.
2018-09-10 06:07:36 (9.59 MB/s) - 'ab977c2a5ae40d2e9a299754df272dfdcc5dd7b1.patc                                                                     h' saved [4822]

--2018-09-10 06:07:36--  https://github.com/lrusak/FFmpeg/commit/3b054f52ec9bb5d                                                                     df79ed99910af4f799d870e57.patch
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: '3b054f52ec9bb5ddf79ed99910af4f799d870e57.patch'

3b054f52ec9bb5ddf79     [ <=>                ]   2.92K  --.-KB/s    in 0.001s

Last-modified header missing -- time-stamps turned off.
2018-09-10 06:07:36 (2.33 MB/s) - '3b054f52ec9bb5ddf79ed99910af4f799d870e57.patc                                                                     h' saved [2988]

--2018-09-10 06:07:37--  https://github.com/lrusak/FFmpeg/commit/78ae926cb6bb75b                                                                     4f0f372cf1530e4326a921b7b.patch
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: '78ae926cb6bb75b4f0f372cf1530e4326a921b7b.patch'

78ae926cb6bb75b4f0f     [ <=>                ]   1.02K  --.-KB/s    in 0s

Last-modified header missing -- time-stamps turned off.
2018-09-10 06:07:37 (3.45 MB/s) - '78ae926cb6bb75b4f0f372cf1530e4326a921b7b.patc                                                                     h' saved [1048]

--2018-09-10 06:07:37--  https://github.com/lrusak/FFmpeg/commit/ab4cf3e6fb37cffdebccca52e36a7b2deb7e729f.patch
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: 'ab4cf3e6fb37cffdebccca52e36a7b2deb7e729f.patch'

ab4cf3e6fb37cffdebc     [ <=>                ]   1.12K  --.-KB/s    in 0s

Last-modified header missing -- time-stamps turned off.
2018-09-10 06:07:38 (3.72 MB/s) - 'ab4cf3e6fb37cffdebccca52e36a7b2deb7e729f.patch' saved [1151]

--2018-09-10 06:07:41--  https://github.com/lrusak/FFmpeg/commit/46003e7aba73a56c468faece81430c5e353fa6cb.patch
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: '46003e7aba73a56c468faece81430c5e353fa6cb.patch'

46003e7aba73a56c468     [ <=>                ]   1.05K  --.-KB/s    in 0.001s

Last-modified header missing -- time-stamps turned off.
2018-09-10 06:07:42 (1.65 MB/s) - '46003e7aba73a56c468faece81430c5e353fa6cb.patc                                                                     h' saved [1071]

--2018-09-10 06:07:42--  https://github.com/lrusak/FFmpeg/commit/241ccc7b00d2824                                                                     4cb0566408c7fb3be2d38deda.patch
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: '241ccc7b00d28244cb0566408c7fb3be2d38deda.patch'

241ccc7b00d28244cb0     [ <=>                ]   2.40K  --.-KB/s    in 0.002s

Last-modified header missing -- time-stamps turned off.
2018-09-10 06:07:43 (997 KB/s) - '241ccc7b00d28244cb0566408c7fb3be2d38deda.patch                                                                     ' saved [2456]

--2018-09-10 06:07:43--  https://github.com/lrusak/FFmpeg/commit/23eccd46c93fb43                                                                     cf45885c04ecad34486bf1d09.patch
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: '23eccd46c93fb43cf45885c04ecad34486bf1d09.patch'

23eccd46c93fb43cf45     [ <=>                ]   1.56K  --.-KB/s    in 0.002s

Last-modified header missing -- time-stamps turned off.
2018-09-10 06:07:44 (991 KB/s) - '23eccd46c93fb43cf45885c04ecad34486bf1d09.patch                                                                     ' saved [1594]

Patch debian/patches/2bd24d4a37e9793295730d383471a4b3711b0f8c.patch is already applied; check your series file
Patch debian/patches/7395f13df94efd349ad29c8b5bb5942b0d44d6e4.patch is already applied; check your series file
Patch debian/patches/b5ebaf4bd1377b12bd6b1dbb9e4f45ce5efbec82.patch is already applied; check your series file
Patch debian/patches/2cb8052ac65a56d8a3f347a1e6f12d4449a5a614.patch is already applied; check your series file
Patch debian/patches/ab977c2a5ae40d2e9a299754df272dfdcc5dd7b1.patch is already applied; check your series file
Patch debian/patches/3b054f52ec9bb5ddf79ed99910af4f799d870e57.patch is already applied; check your series file
Patch debian/patches/78ae926cb6bb75b4f0f372cf1530e4326a921b7b.patch is already applied; check your series file
Patch debian/patches/ab4cf3e6fb37cffdebccca52e36a7b2deb7e729f.patch is already applied; check your series file
Patch debian/patches/46003e7aba73a56c468faece81430c5e353fa6cb.patch is already applied; check your series file
Patch debian/patches/241ccc7b00d28244cb0566408c7fb3be2d38deda.patch is already applied; check your series file
Patch debian/patches/23eccd46c93fb43cf45885c04ecad34486bf1d09.patch is already a                                                                     pplied; check your series file
odroid@odroid:~/build$
odroid@odroid:~/build$
odroid@odroid:~/build$
odroid@odroid:~/build$  sudo bash -e build-ffmpeg.sh 
dpkg-buildpackage -rfakeroot -us -uc -ui
dpkg-buildpackage: info: source package ffmpeg
dpkg-buildpackage: info: source version 7:4.0.2-1
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by James Cowgill <jcowgill@debian.org>
 dpkg-source --before-build ffmpeg-4.0.2
dpkg-buildpackage: info: host architecture arm64
dpkg-source: info: applying 2bd24d4a37e9793295730d383471a4b3711b0f8c.patch
dpkg-source: info: applying 7395f13df94efd349ad29c8b5bb5942b0d44d6e4.patch
dpkg-source: info: applying b5ebaf4bd1377b12bd6b1dbb9e4f45ce5efbec82.patch
dpkg-source: info: applying 2cb8052ac65a56d8a3f347a1e6f12d4449a5a614.patch
dpkg-source: info: applying ab977c2a5ae40d2e9a299754df272dfdcc5dd7b1.patch
dpkg-source: info: applying 3b054f52ec9bb5ddf79ed99910af4f799d870e57.patch
dpkg-source: info: applying 78ae926cb6bb75b4f0f372cf1530e4326a921b7b.patch
dpkg-source: info: applying ab4cf3e6fb37cffdebccca52e36a7b2deb7e729f.patch
dpkg-source: info: applying 46003e7aba73a56c468faece81430c5e353fa6cb.patch
dpkg-source: info: applying 241ccc7b00d28244cb0566408c7fb3be2d38deda.patch
dpkg-source: info: applying 23eccd46c93fb43cf45885c04ecad34486bf1d09.patch
 debian/rules clean
dh clean
   debian/rules override_dh_auto_clean
make[1]: Entering directory '/home/odroid/build/ffmpeg-4.0.2'
[ ! -d debian/standard ] || rm -r debian/standard; [ ! -d debian/extra ] || rm -r debian/extra; [ ! -d debian/static ] || rm -r debian/static;
make[1]: Leaving directory '/home/odroid/build/ffmpeg-4.0.2'
   dh_clean
 dpkg-source -b ffmpeg-4.0.2
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building ffmpeg using existing ./ffmpeg_4.0.2.orig.tar.xz
patching file libavcodec/v4l2_m2m_dec.c
Hunk #1 FAILED at 221.
1 out of 1 hunk FAILED
dpkg-source: info: the patch has fuzz which is not allowed, or is malformed
dpkg-source: info: if patch '2bd24d4a37e9793295730d383471a4b3711b0f8c.patch' is  correctly applied by quilt, use 'quilt refresh' to update it
dpkg-source: error: LC_ALL=C patch -t -F 0 -N -p1 -u -V never -E -b -B .pc/2bd24d4a37e9793295730d383471a4b3711b0f8c.patch/ --reject-file=- < ffmpeg-4.0.2.orig.P                                                                     nLH_3/debian/patches/2bd24d4a37e9793295730d383471a4b3711b0f8c.patch subprocess returned exit status 1
dpkg-buildpackage: error: dpkg-source -b ffmpeg-4.0.2 subprocess returned exit s                                                                     tatus 2
debuild: fatal error at line 1152:
dpkg-buildpackage -rfakeroot -us -uc -ui failed
odroid@odroid:~/build$ tar xvfz ffmpeg-4.0.2-odroidc2-build.tar.gz
build-deps-ffmpeg.sh
build-ffmpeg.sh
install-ffmpeg-dev.sh
install-ffmpeg.sh
prepare-ffmpeg.sh
odroid@odroid:~/build$  sudo bash -e build-ffmpeg.sh
 dpkg-buildpackage -rfakeroot -us -uc -ui
dpkg-buildpackage: info: source package ffmpeg
dpkg-buildpackage: info: source version 7:4.0.2-1
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by James Cowgill <jcowgill@debian.org>
 dpkg-source --before-build ffmpeg-4.0.2
dpkg-buildpackage: info: host architecture arm64
 debian/rules clean
dh clean
   debian/rules override_dh_auto_clean
make[1]: Entering directory '/home/odroid/build/ffmpeg-4.0.2'
[ ! -d debian/standard ] || rm -r debian/standard; [ ! -d debian/extra ] || rm -r debian/extra; [ ! -d debian/static ] || rm -r debian/static;
make[1]: Leaving directory '/home/odroid/build/ffmpeg-4.0.2'
   dh_clean
 dpkg-source -b ffmpeg-4.0.2
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building ffmpeg using existing ./ffmpeg_4.0.2.orig.tar.xz
patching file libavcodec/v4l2_m2m_dec.c
Hunk #1 FAILED at 221.
1 out of 1 hunk FAILED
dpkg-source: info: the patch has fuzz which is not allowed, or is malformed
dpkg-source: info: if patch '2bd24d4a37e9793295730d383471a4b3711b0f8c.patch' is correctly applied by quilt, use 'quilt refresh' to update it
dpkg-source: error: LC_ALL=C patch -t -F 0 -N -p1 -u -V never -E -b -B .pc/2bd24d4a37e9793295730d383471a4b3711b0f8c.patch/ --reject-file=- < ffmpeg-4.0.2.orig.j6hi8P/debian/patches/2bd24d4a37e9793295730d383471a4b3711b0f8c.patch subprocess returned exit status 1
dpkg-buildpackage: error: dpkg-source -b ffmpeg-4.0.2 subprocess returned exit status 2
debuild: fatal error at line 1152:
dpkg-buildpackage -rfakeroot -us -uc -ui failed
odroid@odroid:~/build$
moon.linux
 
Posts: 1163
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby scpcom » Mon Sep 10, 2018 7:29 pm

@moon.linux
If you just want to install the binary, use the correct script after unpack:

Code: Select all
sudo bash -e install-ffmpeg.sh

"libswscale5 libswresample3 libavresample4 libavutil56 libavcodec58 libavcodec-extra58" are not missing depends, the are in the zip file.

the build works like this (should be done in empty folder):
Code: Select all
wget -N http://seafile.servator.de/sbc/odroid/build/next/ffmpeg-4.0.2-odroidc2-build.tar.gz
tar xzvf ffmpeg-4.0.2-odroidc2-build.tar.gz
sudo bash -e build-deps-ffmpeg.sh
bash -e prepare-ffmpeg.sh
bash -e build-ffmpeg.sh

Additionally (only for building) you may need to solve conflict between mali-x11 and things like libegl1-mesa-dev. I do not have packaged a reproducable solution for this yet.
scpcom
 
Posts: 75
Joined: Thu Jun 23, 2016 8:07 am
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby outhudd9 » Tue Sep 11, 2018 7:18 am

This is great, thanks a lot for this!

Working very well here, even without stopping X11 or logging into console. :)
outhudd9
 
Posts: 21
Joined: Wed May 02, 2018 10:52 pm
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby scpcom » Tue Sep 11, 2018 9:59 am

Update 20180911
- Kernel 4.18.7
- Added install of depends to ffmpeg and mpv
linux-4.18-odroidc2-build.tar.gz linux-image-4.18.7-20180910-c2-arm64.zip
odroid-c2-kernel-4.1x-v4l2m2m-install.txt

Install is tested now with minimal and mate:
ubuntu-18.04-3.16-minimal-odroid-c2-20180626
ubuntu-18.04-3.16-mate-odroid-c2-20180620

@outhudd9
Cool, i did not test this combination before, mali dummy works with X11 too and mpv can use zero-copy.
scpcom
 
Posts: 75
Joined: Thu Jun 23, 2016 8:07 am
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby moon.linux » Tue Sep 11, 2018 4:18 pm

Thanks for your new instruction all the installation went smooth with no hick up's.
Code: Select all
root@odroid:~# uname -a
Linux odroid 4.18.7+c2 #1 SMP PREEMPT Sun Sep 9 23:19:17 UTC 2018 aarch64 aarch64 aarch64 GNU/Linux
root@odroid:~#

mpv -v
Code: Select all
root@odroid:~# mpv -v
[cplayer] Command line options: '-v'
[cplayer] mpv 0.29.0 Copyright © 2000-2018 mpv/MPlayer/mplayer2 projects
[cplayer]  built on UNKNOWN
[cplayer] ffmpeg library versions:
[cplayer]    libavutil       56.14.100
[cplayer]    libavcodec      58.18.100
[cplayer]    libavformat     58.12.100
[cplayer]    libswscale      5.1.100
[cplayer]    libavfilter     7.16.100
[cplayer]    libswresample   3.1.100
[cplayer] ffmpeg version: 4.0.2-9v4l2drmprime4
[cplayer]
[cplayer] Configuration: ./waf configure --prefix=/usr --libdir=/usr/lib/aarch64-linux-gnu --confdir=/etc/mpv --zshdir=/usr/share/zsh/vendor-completions --enable-cdda --enable-dvdnav --enable-dvdread --enable-libmpv-shared --enable-libsmbclient --enable-sdl2 --enable-sndio --enable-zsh-comp --disable-build-date --enable-dvbin
[cplayer] List of enabled features: 52arch alsa asm atomics caca cdda cplayer cplugins debug-build drm drmprime dvbin dvdnav dvdread dvdread-common egl-drm egl-helpers egl-x11 fchmod ffmpeg gbm gbm.h gl gl-wayland gl-x11 glibc-thread-name glob glob-posix gnuc gpl iconv jack jpeg lcms2 libaf libarchive libass libass-osd libav-any libavcodec libavdevice libbluray libdl libm libmpv-shared librt libsmbclient linux-fstatfs lua optimize oss-audio plain-gl posix posix-or-mingw posix-spawn posix-spawn-native pthreads pulse rubberband sdl2 sndio stdatomic uchardet vaapi vaapi-drm vaapi-egl vaapi-glx vaapi-wayland vaapi-x-egl vaapi-x11 vdpau vdpau-gl-x11 vt.h vulkan wayland wayland-protocols x11 xv zlib zsh-comp
[cplayer] Reading config file /etc/mpv/encoding-profiles.conf
[cplayer] mpv 0.29.0 Copyright © 2000-2018 mpv/MPlayer/mplayer2 projects
[cplayer]  built on UNKNOWN
[cplayer] ffmpeg library versions:
[cplayer]    libavutil       56.14.100
[cplayer]    libavcodec      58.18.100
[cplayer]    libavformat     58.12.100
[cplayer]    libswscale      5.1.100
[cplayer]    libavfilter     7.16.100
[cplayer]    libswresample   3.1.100
[cplayer] ffmpeg version: 4.0.2-9v4l2drmprime4
[cplayer]
[cplayer] Usage:   mpv [options] [url|path/]filename
[cplayer]
[cplayer] Basic options:
[cplayer]  --start=<time>    seek to given (percent, seconds, or hh:mm:ss) position
[cplayer]  --no-audio        do not play sound
[cplayer]  --no-video        do not play video
[cplayer]  --fs              fullscreen playback
[cplayer]  --sub-file=<file> specify subtitle file to use
[cplayer]  --playlist=<file> specify playlist file
[cplayer]
[cplayer]  --list-options    list all mpv options
[cplayer]  --h=<string>      print options which contain the given string in their name
[cplayer]
[ytdl_hook] script-opts/ytdl_hook.conf not found.
[ytdl_hook] lua-settings/ytdl_hook.conf not found.
[stats] script-opts/stats.conf not found.
[stats] lua-settings/stats.conf not found.
[ytdl_hook] Exiting...
[stats] Exiting...
[osc] script-opts/osc.conf not found.
[osc] lua-settings/osc.conf not found.
[osc] Exiting...
root@odroid:~#


Great Job I was able to play the bbb_sunflower_1080p_60fps_normal.mp4 smoothly using mpv :D
moon.linux
 
Posts: 1163
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby outhudd9 » Wed Sep 12, 2018 4:37 am

This also works for playing this Sky News live stream through mpv and youtube-dl: https://www.youtube.com/watch?v=XOacA3RYrXk

Also works for videos from HLS sources through streamlink.

I've tested it working to play Acestream links in mpv on the c2 also (via acestream-launcher). Very nice!
outhudd9
 
Posts: 21
Joined: Wed May 02, 2018 10:52 pm
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby odroid » Thu Sep 13, 2018 9:07 am

Mali GPU 3D driver performance is fine too.
I hope Kernel 4.19 LTS can support the HEVC(H.265) 4K video decoding. ;)
It seems to be the last major issue in the mainline kernel.
User avatar
odroid
Site Admin
 
Posts: 28855
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Odroid C2 mainline kernel support

Unread postby rooted » Fri Sep 14, 2018 10:56 am

scpcom wrote:Update 20180911
- Kernel 4.18.7
- Added install of depends to ffmpeg and mpv
linux-4.18-odroidc2-build.tar.gz linux-image-4.18.7-20180910-c2-arm64.zip
odroid-c2-kernel-4.1x-v4l2m2m-install.txt

Install is tested now with minimal and mate:
ubuntu-18.04-3.16-minimal-odroid-c2-20180626
ubuntu-18.04-3.16-mate-odroid-c2-20180620

@outhudd9
Cool, i did not test this combination before, mali dummy works with X11 too and mpv can use zero-copy.
When trying to install the kernel I get this:

Code: Select all
./install-linux.sh
(Reading database ... 161435 files and directories currently installed.)
Preparing to unpack linux-image-4.18.7+c2_4.18.7-20180910-c2_arm64.deb ...
Unpacking linux-image-4.18.7+c2 (4.18.7-20180910-c2) over (4.18.7-20180910-c2) ...
Setting up linux-image-4.18.7+c2 (4.18.7-20180910-c2) ...
update-initramfs: Generating /boot/initrd.img-4.18.7+c2
install-linux.sh: 38: install-linux.sh: Bad substitution


It's something wrong with this line:

Code: Select all
b=${b/-$kver/}
User avatar
rooted
 
Posts: 5676
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1, C1+, C2
XU3 Lite, XU4
N1
VU7+
HiFi Shield 2
Smart Power (original)

Re: Odroid C2 mainline kernel support

Unread postby scpcom » Sat Sep 15, 2018 7:17 am

Nothing wrong there :-)
Just use bash as described in the howto:
odroid-c2-kernel-4.1x-v4l2m2m-install.txt
scpcom
 
Posts: 75
Joined: Thu Jun 23, 2016 8:07 am
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby rooted » Sat Sep 15, 2018 7:54 am

scpcom wrote:Nothing wrong there :-)
Just use bash as described in the howto:
odroid-c2-kernel-4.1x-v4l2m2m-install.txt
I thought my shell was bash, I will give it a go. Thanks.
User avatar
rooted
 
Posts: 5676
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1, C1+, C2
XU3 Lite, XU4
N1
VU7+
HiFi Shield 2
Smart Power (original)

Re: Odroid C2 mainline kernel support

Unread postby brad » Mon Sep 17, 2018 9:00 pm

I have I2S output playing nicely with some patches on top of 4.18-rc1 using Jerome's work https://github.com/jeromebrunet/linux/c ... n/gx-audio

I added a device tree entry for the sound card and setup a dummy codec based on the pcm5102a simple driver but I found the sound output was distorted and crackly. After days of trying to get some decent quality sound I tried something random and inverted the main ao clock in the driver and you know what I get some decent sounding speakers. In addition the driver is mmap'ed fast and compatible with jack sound server.

Neil has committed a next version of yocto linux (sumo-next) build which includes a WIP version of the vdec and the base for audio on gxbb https://github.com/superna9999/meta-mes ... son64-4.18

I will try out the HDMI audio config from Neils git to see how I2S output works with my UDA1380 board (HDMI audio uses I2S internally so shared with I2S pins) and to see if I need to invert clocks for I2s output quality.

Ill then make a patch if its needed to see if others can test I2S quality.
brad
 
Posts: 716
Joined: Tue Mar 29, 2016 1:22 pm
Location: Australia
languages_spoken: english
ODROIDs: C2 N1

Re: Odroid C2 mainline kernel support

Unread postby brad » Mon Sep 17, 2018 10:10 pm

Neil's patches from yocto linux for v4.18.8 sumo-next did not apply 100% cleanly to v4.18.8 but rejects were device tree and very easy to fix. I now have a video decoder with some v4l2 support which seems kind of cool and also HDMI audio. I haven't installed mali kernel module or user-space as yet as no sound on the I2S pins (only HDMI) and I2S is my priority. Ill try some i2s and then the mali + vdec.

Code: Select all
rad@odroidc2:~$ uname -a
Linux odroidc2 4.18.8-dirty #2 SMP PREEMPT Mon Sep 17 12:44:26 UTC 2018 aarch64 aarch64 aarch64 GNU/Linux
brad@odroidc2:~$ lsmod
Module                  Size  Used by
fuse                   98304  3
overlay                81920  0
cpufreq_conservative    16384  0
cpufreq_powersave      16384  0
meson_vdec             53248  0
videobuf2_dma_contig    20480  1 meson_vdec
videobuf2_memops       16384  1 videobuf2_dma_contig
v4l2_mem2mem           24576  1 meson_vdec
videobuf2_v4l2         24576  2 meson_vdec,v4l2_mem2mem
videobuf2_common       40960  3 meson_vdec,videobuf2_v4l2,v4l2_mem2mem
videodev              200704  4 meson_vdec,videobuf2_v4l2,videobuf2_common,v4l2_mem2mem
snd_soc_meson_spdif_dai    16384  0
snd_soc_meson_i2s_dai    16384  1
snd_soc_meson_aiu_spdif_dma    16384  0
snd_soc_meson_aiu_i2s_dma    16384  1
snd_soc_simple_card    16384  0
ao_cec                 16384  0
crc32_ce               16384  0
media                  36864  1 videodev
meson_rng              16384  0
snd_soc_simple_card_utils    16384  1 snd_soc_simple_card
snd_soc_hdmi_codec     16384  1
meson_ir               16384  0
rng_core               16384  1 meson_rng
rc_core                36864  2 meson_ir
snd_soc_meson_audio_core    16384  0
meson_gxbb_wdt         16384  0
nvmem_meson_efuse      16384  0
ipv6                  380928  34
btrfs                 946176  0
libcrc32c              16384  1 btrfs
xor                    20480  1 btrfs
zstd_decompress        77824  1 btrfs
zstd_compress         159744  1 btrfs
xxhash                 16384  2 zstd_compress,zstd_decompress
raid6_pq              106496  1 btrfs
dw_hdmi_i2s_audio      16384  0
dw_hdmi_cec            16384  0
meson_dw_hdmi          20480  0
meson_drm              49152  3 meson_dw_hdmi
dw_hdmi                32768  2 meson_dw_hdmi,dw_hdmi_i2s_audio
cec                    49152  3 dw_hdmi_cec,dw_hdmi,ao_cec
drm_kms_helper        172032  4 meson_dw_hdmi,meson_drm,dw_hdmi
dwmac_generic          16384  0
realtek                16384  1
drm                   405504  7 meson_dw_hdmi,meson_drm,drm_kms_helper,dw_hdmi
dwmac_meson8b          16384  0
stmmac_platform        20480  2 dwmac_meson8b,dwmac_generic
stmmac                118784  3 dwmac_meson8b,stmmac_platform,dwmac_generic
drm_panel_orientation_quirks    16384  1 drm
brad
 
Posts: 716
Joined: Tue Mar 29, 2016 1:22 pm
Location: Australia
languages_spoken: english
ODROIDs: C2 N1

Re: Odroid C2 mainline kernel support

Unread postby scpcom » Tue Sep 18, 2018 5:30 am

Update 20180917
- Kernel 4.18.8
linux-4.14-odroidc2-build.tar.gz linux-image-4.14.70-20180915-c2-arm64.zip
linux-4.18-odroidc2-build.tar.gz linux-image-4.18.8-20180917-c2-arm64.zip

@brad
My build also contains already the yocto and vdec patches.

If you are interested you can run this on any linux:
Code: Select all
tar xzf linux-4.18-odroidc2-build.tar.gz
bash -e prepare-linux.sh

Than you find a sub folder named "linux" and my patchset in linux/patches/series

On Debian/Ubuntu you can also run a full build: odroid-c2-kernel-4.1x-mainline-build.txt
scpcom
 
Posts: 75
Joined: Thu Jun 23, 2016 8:07 am
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby rooted » Tue Sep 18, 2018 6:01 am

Like and thanks ^^^^

I wish their was a like or thanks button.
User avatar
rooted
 
Posts: 5676
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1, C1+, C2
XU3 Lite, XU4
N1
VU7+
HiFi Shield 2
Smart Power (original)

Re: Odroid C2 mainline kernel support

Unread postby brad » Tue Sep 18, 2018 11:17 am

scpcom wrote:@brad
My build also contains already the yocto and vdec patches.


Thank you I will try to add my additions to the series.
brad
 
Posts: 716
Joined: Tue Mar 29, 2016 1:22 pm
Location: Australia
languages_spoken: english
ODROIDs: C2 N1

Re: Odroid C2 mainline kernel support

Unread postby tuxx » Sat Sep 22, 2018 3:00 pm

I built my own archlinux package (mainly in order to add PREEMPT), based on official PKGBUILD but with my own config , using 4.18.9 sources.

One thing I noticed, is that although I set noop to be the default I/O scheduler, it does not even exist:

#
# IO Schedulers
#
CONFIG_IOSCHED_NOOP=y
CONFIG_IOSCHED_DEADLINE=y
CONFIG_IOSCHED_CFQ=y
CONFIG_CFQ_GROUP_IOSCHED=y
# CONFIG_DEFAULT_DEADLINE is not set
# CONFIG_DEFAULT_CFQ is not set
CONFIG_DEFAULT_NOOP=y
CONFIG_DEFAULT_IOSCHED="noop"


Code: Select all
[root@test ~]# cat /sys/block/mmcblk0/queue/scheduler
[mq-deadline] kyber bfq none



In addition, I chose ondemand as the default governor, but I am not able to confirm it, as the following path does not exist:

Code: Select all
/sys/devices/system/cpu/cpu*/cpufreq/scaling_governor


Any help is highly appreciated!
User avatar
tuxx
 
Posts: 48
Joined: Fri Mar 11, 2016 6:42 am
languages_spoken: english
ODROIDs: C1+, C2

Re: Odroid C2 mainline kernel support

Unread postby brad » Sun Sep 23, 2018 9:03 am

tuxx wrote:I built my own archlinux package (mainly in order to add PREEMPT), based on official PKGBUILD but with my own config , using 4.18.9 sources.

One thing I noticed, is that although I set noop to be the default I/O scheduler, it does not even exist:

#
# IO Schedulers
#
CONFIG_IOSCHED_NOOP=y
CONFIG_IOSCHED_DEADLINE=y
CONFIG_IOSCHED_CFQ=y
CONFIG_CFQ_GROUP_IOSCHED=y
# CONFIG_DEFAULT_DEADLINE is not set
# CONFIG_DEFAULT_CFQ is not set
CONFIG_DEFAULT_NOOP=y
CONFIG_DEFAULT_IOSCHED="noop"


Code: Select all
[root@test ~]# cat /sys/block/mmcblk0/queue/scheduler
[mq-deadline] kyber bfq none



In addition, I chose ondemand as the default governor, but I am not able to confirm it, as the following path does not exist:

Code: Select all
/sys/devices/system/cpu/cpu*/cpufreq/scaling_governor


Any help is highly appreciated!


SCPI frequency scaling is not compatible with some older versions of the hardkernel bootloader in mainline so was disabled in the device tree. If you are using a recent version it can be enabled with a change to the device tree. Change the scpi_clocks to "okay"

arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts

FROM:

Code: Select all
&scpi_clocks {
        status = "disabled";
};


TO:

Code: Select all
&scpi_clocks {
        status = "okay";
};
brad
 
Posts: 716
Joined: Tue Mar 29, 2016 1:22 pm
Location: Australia
languages_spoken: english
ODROIDs: C2 N1

Re: Odroid C2 mainline kernel support

Unread postby brad » Sun Sep 23, 2018 12:43 pm

brad wrote:
scpcom wrote:@brad
My build also contains already the yocto and vdec patches.


Thank you I will try to add my additions to the series.


I got there in the end more patches than I initially thought were needed to get the clk framework up to scratch and mclk output working correctly for I2s pins.

I organised a patch series to add I2S functionality to @scpcom 4.18.9+c2 build

http://repo.builtonline.net/patches/4.18-c2/audio/

The series file with order is here http://repo.builtonline.net/patches/4.1 ... audio-test

First 7 patches are from Jerome brunett's git https://github.com/jeromebrunet/linux/t ... n/gx-audio and the last 2 are my hacks to enable a pcm5102a dummy codec and add a test device tree entry for the C2.

Id be interested to see if others could test out basic quality, I could also try to set some alternative codec chip configs if it would be useful as long as they are not too complex. The meson patches only allow 2 channel playback at the moment.

The config sets the odroid c2 hardware up as follows on the odroid 7 pin AO header (see https://wiki.odroid.com/odroid-c2/hardw ... connectors) and leaves the HDMI audio intact. I2S will always output for the moment (even if only HDMI is being selected as it shares the same pin config)

4 - I2S MCLK
5 - I2S LRCLK
6 - I2S SCLK
7 - I2S Data Output

I can try to add the SPDIF output to device tree if its wanted also.
brad
 
Posts: 716
Joined: Tue Mar 29, 2016 1:22 pm
Location: Australia
languages_spoken: english
ODROIDs: C2 N1

Re: Odroid C2 mainline kernel support

Unread postby scpcom » Wed Sep 26, 2018 7:56 am

Update 20180924
- Kernel 4.18.9
- Added 7 patches from wip/meson/gx-audio
- Added linux-4.18.y-jeromebrunet-2008-asoc-codecs-force-enable-pcm5102a.patch (using SND_SOC_MESON in Kconfig instead of CONFIG_SND_SOC_MESON)
- Added linux-4.18.y-jeromebrunet-2009-arm64-dts-meson-gxbb-odroidc2-add-testing-i2s-entries.patch (replaced spaces with tabs)
linux-4.18-odroidc2-build.tar.gz linux-image-4.18.9-20180924-c2-arm64.zip
scpcom
 
Posts: 75
Joined: Thu Jun 23, 2016 8:07 am
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby brad » Wed Sep 26, 2018 5:19 pm

Tested and working, thank you @scpcom for incorporating the audio and fixing my messy patches :)
brad
 
Posts: 716
Joined: Tue Mar 29, 2016 1:22 pm
Location: Australia
languages_spoken: english
ODROIDs: C2 N1

Re: Odroid C2 mainline kernel support

Unread postby brad » Sun Sep 30, 2018 10:16 am

Using Update 20180924 and Hardkernel Minimal 18.04 upgraded to Ubuntu Cosmic development release vlc works from the command line with the vdec. I failed to make ffmpg / mpv work with any reasonable acceleration.

Im using the hikey libMali.so but cannot start weston or mutter with Mali on 4.18 (not sure why as yet). Gnome and weston works but I cannot get it to find the Mali driver for the moment.

Ill look back at the versions of all the components to ensure I have not missed anything as I at least had Mali working with weston last year on Debian Sid with some patches for mutter.
brad
 
Posts: 716
Joined: Tue Mar 29, 2016 1:22 pm
Location: Australia
languages_spoken: english
ODROIDs: C2 N1

Re: Odroid C2 mainline kernel support

Unread postby brad » Mon Oct 01, 2018 7:45 pm

HI hardkernel,
video decoder firmware is in development releases for the Odroid C2 in mainline and my testing show it can work very well. But the libMali binary lets us down as it does not support the symbols required for current userspace software. Can hardkernel prompt amlogic once again on the matter? A universal libMali.so would be ideal which supports everything, maybe fbdev, X11, wayland, drm, ext, gbm (I don't care for X11 imo its legacy but would be nice to have for compatibility reasons)

Otherwise I need to start backporting shinny new software on bionic or stretch (and cosmic / sid) to work with current libMali (Hikey mind you). This is very painful and not very realistic.

Can you ask amlogic and arm for a shinny new libMali.so for the 450? We want everything in one blob (I personally don't care for X11 but others do), might this be possible in the next 12 months?

- vdec decodes bbb on DRM based console well in vlc (and most things I throw at it although I haven't tested 4K)
- Hikey libMali in es2 mode on weston works fine, glmark2-es2-wayland score gives a scrore of close to 500 on weston (ill run one again and post it without background noise and it should improve)
- libMali does not work with gnome, mutter or kde due to missing symbols for the current userspace softweare implemented in recent distribution releases. It expects releases of the blob which are kept up to date with relative recent releases of the current standard (such as what is in today's Ubuntu / Debian)
- X11 is legacy and not worth the thousands of hours of effort with many distributions phasing it out as it can be reproduced with Xwayland and protocols now and in the future.
- X11 is complex, bloated and requires additional amsoc code compiled every release and for a small memory foot wayland makes more sense on a board such as C2 with 2G ram.

I want a new shinny new libMali.so blob can you get me one for C2 that works with shinny new user-space software? It needs to be shinny :)

I want gbm waylannd support with the with_modifiers Mali extensions to support the Ubuntu Cosmic minimal image and gnome3.
brad
 
Posts: 716
Joined: Tue Mar 29, 2016 1:22 pm
Location: Australia
languages_spoken: english
ODROIDs: C2 N1

Re: Odroid C2 mainline kernel support

Unread postby memeka » Mon Oct 01, 2018 7:52 pm

@brad no you won't get new symbols in there, and amlogic cannot do anything because ARM did not implement them.
ARM does the driver implementation, amlogic/HK just do minor changes specific to the platform.
The easiest to have those symbols is to use my libgbm_compat library: https://oph.mdrjr.net/memeka/bionic/gbm ... _compat.so
Just edit /etc/environment and add this line:
Code: Select all
LD_PRELOAD=/path/to/gbm_compat.so

And all will work, including gnome.
User avatar
memeka
 
Posts: 4055
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: Odroid C2 mainline kernel support

Unread postby brad » Mon Oct 01, 2018 9:01 pm

memeka wrote:@brad no you won't get new symbols in there, and amlogic cannot do anything because ARM did not implement them.
ARM does the driver implementation, amlogic/HK just do minor changes specific to the platform.
The easiest to have those symbols is to use my libgbm_compat library: https://oph.mdrjr.net/memeka/bionic/gbm ... _compat.so
Just edit /etc/environment and add this line:
Code: Select all
LD_PRELOAD=/path/to/gbm_compat.so

And all will work, including gnome.


Thanks memeka :) you are always a big help, the compat solution looks solid compared to the hair I have pulled out, do you know if the vdec works fine on mutter or gnome and Mali working? does gl and e2s work with same Mali blob whatever it is?
brad
 
Posts: 716
Joined: Tue Mar 29, 2016 1:22 pm
Location: Australia
languages_spoken: english
ODROIDs: C2 N1

Re: Odroid C2 mainline kernel support

Unread postby memeka » Mon Oct 01, 2018 10:45 pm

i haven't tested on c2 the 4.x kernel yet, but if it works on drm, it should work with wayland too...
User avatar
memeka
 
Posts: 4055
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: Odroid C2 mainline kernel support

Unread postby scpcom » Sat Oct 06, 2018 10:24 pm

Update 20181002
- Kernel 4.18.11
- Added drm dumb buffer support to fbturbo
linux-4.18-odroidc2-build.tar.gz linux-image-4.18.11-20181002-c2-arm64.zip
xserver-xorg-video-fbturbo-c2.zip xserver-xorg-video-fbturbo-c2-bionic-arm64.zip

fbturbo can work with drm bumb buffers now to support all libMali variants.
Just add "UseDumb" "true" to 99-fbturbo.conf to enable it or "UseDumb" "false" to switch back to UMP.
With UMP it has the same performance as before (90-100 fps in glmark2-es2), with dumb buffers I get around 30 fps, so I will look for some fine tuning.

brad wrote:I want a new shinny new libMali.so blob can you get me one for C2 that works with shinny new user-space software? It needs to be shinny :)

I want gbm waylannd support with the with_modifiers Mali extensions to support the Ubuntu Cosmic minimal image and gnome3.

I have more hope in this one:
meta-meson/tree/koen/sumo-v4l2-lima
https://github.com/superna9999/meta-mes ... -4.18/lima
https://github.com/superna9999/meta-mes ... phics/mesa
I was able to compile mesa-lima and the kernel driver for Ubuntu but did not get it to work yet, need more time for testing (also the driver itself still is in development).

PS: I do not think X11 is legacy yet or bloated. As far as I know only GNOME and KDE support native wayland, all other Desktop environments still use X11. But for a smaller memory footprint LXDE/MATE/XFCE4 is the better choice for devices like C2. A desktop with XFCE4/X11 only uses around 275 MB on my C2.
scpcom
 
Posts: 75
Joined: Thu Jun 23, 2016 8:07 am
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby campbell » Mon Oct 08, 2018 2:12 am

scpcom, apologies if this has already been answered, but are these modifications of yours making it back into upstream? Specifically, are they available through the linux-aarch64 package in archlinuxarm? And/or are you coordinating with the linux-meson.com efforts?
campbell
 
Posts: 301
Joined: Thu Sep 03, 2015 1:13 pm
languages_spoken: english
ODROIDs: XU3, XU4, C2, C1+, Cloudshell, Smart Power

Re: Odroid C2 mainline kernel support

Unread postby nobe » Sat Oct 13, 2018 4:48 pm

some of you guys might be interested in this talk from Maxime Jourdan : Upstream multimedia on Amlogic SoCs @ Embedded Recipes 2018 Conference
https://www.youtube.com/watch?v=39TrUK0dUO8&t=6126
nobe
 
Posts: 114
Joined: Sun Feb 07, 2016 9:52 pm
languages_spoken: english, french
ODROIDs: Odroid-C2

Re: Odroid C2 mainline kernel support

Unread postby scpcom » Sun Nov 11, 2018 8:15 am

Update 20181110
- Kernel 4.19.1
- fbturbo: added strict compiler options, fixes related to the compiler errors,
unified message output and significant boost for Mali UMP (fbturbo-xf86cfg_and_fixes.patch)
- fbturbo: Implemented full dumb buffer support and improved display initialization based on armsoc code (fbturbo-gt.patch)
- fbturbo: Added EXA for dumb buffer mode (fbturbo-exa.patch)
linux-4.18-odroidc2-build.tar.gz linux-image-4.18.17-20181110-c2-arm64.zip
linux-4.19-odroidc2-build.tar.gz linux-image-4.19.1-20181110-c2-arm64.zip
xserver-xorg-video-fbturbo-c2.zip xserver-xorg-video-fbturbo-c2-bionic-arm64.zip

For Mali UMP you need only fbturbo-xf86cfg_and_fixes.patch to boost up 3D speed.
glmark2-es score was around 90 before, now it is above 120.
For Mali with dumb buffers with fbturbo-gt.patch and fbturbo-exa.patch it is now on the same level as armsoc driver.
You still need to compile only one driver that will work wit all libMali variants.
The only option that needs to be set manually in /usr/share/X11/xorg.conf.d/99-fbturbo.conf is "UseDumb".
All other components get detected on runtime.
fbturbo with DRI2 also works with other hardware now.

On C2:
Debian stretch with UMP, Kernel 3.16 and 4.18: score 121 (up to 157 FPS)
Debian stretch with Dumb, Kernel 4.18: score 41 (up to 47 FPS)
Debian buster with UMP, Kernel 3.16 and 4.18: score 124 (up to 150 FPS)
Debian buster with Dumb, Kernel 4.18: score 41 (up to 47 FPS)
Ubuntu xenial with UMP, Kernel 3.16 and 4.18: score 124 (up to 162 FPS)
Ubuntu xenial with Dumb, Kernel 4.18: score 41 (up to 47 FPS)
Ubuntu bionic with UMP, Kernel 3.16 and 4.18: score 121 (up to 150 FPS)
Ubuntu bionic with Dumb, Kernel 4.18: score 34 (up to 38 FPS)

On N1:
Debian stretch with Dumb, Kernel 4.4: score 44 (up to 109 FPS)

@campbell
No, I am not coordinating this with any project (maybe I am to lazy to do so). Patches for fbturbo and Legacy Kernel 3.1x mostly get part of the vendor packages/github repo.
The mainline patches are 90% taken from people who commit them to upstream. My own mainline patches may always stay out-of-tree because they do things that are not wanted in the mainline kernel (especially the UMP thing).

@nobs
Thak you, interesting video.
scpcom
 
Posts: 75
Joined: Thu Jun 23, 2016 8:07 am
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby dante6913 » Mon Nov 12, 2018 10:22 pm

rooted wrote:
scpcom wrote:Update 20180911
- Kernel 4.18.7
- Added install of depends to ffmpeg and mpv
linux-4.18-odroidc2-build.tar.gz linux-image-4.18.7-20180910-c2-arm64.zip
odroid-c2-kernel-4.1x-v4l2m2m-install.txt

Install is tested now with minimal and mate:
ubuntu-18.04-3.16-minimal-odroid-c2-20180626
ubuntu-18.04-3.16-mate-odroid-c2-20180620

@outhudd9
Cool, i did not test this combination before, mali dummy works with X11 too and mpv can use zero-copy.
When trying to install the kernel I get this:

Code: Select all
./install-linux.sh
(Reading database ... 161435 files and directories currently installed.)
Preparing to unpack linux-image-4.18.7+c2_4.18.7-20180910-c2_arm64.deb ...
Unpacking linux-image-4.18.7+c2 (4.18.7-20180910-c2) over (4.18.7-20180910-c2) ...
Setting up linux-image-4.18.7+c2 (4.18.7-20180910-c2) ...
update-initramfs: Generating /boot/initrd.img-4.18.7+c2
install-linux.sh: 38: install-linux.sh: Bad substitution


It's something wrong with this line:

Code: Select all
b=${b/-$kver/}


Sorry for the noob question.
For install on ubuntu 18.04 with kernell 3.16 I only need this

wget -N http://seafile.servator.de/sbc/odroid/n ... -arm64.zip
wget -N http://seafile.servator.de/sbc/odroid/n ... -arm64.zip
unzip ffmpeg-4.0.2-9v4l2drmprime4-bionic-arm64.zip
unzip chromaprint-1.4.3-bionic-arm64.zip
sudo bash -e install-ffmpeg.sh

wget -N http://seafile.servator.de/sbc/odroid/n ... -arm64.zip
unzip mpv-0.29.0-bionic-arm64.zip
sudo bash -e install-mpv.sh

sudo reboot

Or am I missing something.
Thanks

Ok, I was confused with the instructions, finally I made it work for me.
thanks
dante6913
 
Posts: 81
Joined: Sat Oct 01, 2016 7:16 am
languages_spoken: english, Portuguese
ODROIDs: C2

Previous

Return to General Chat

Who is online

Users browsing this forum: No registered users and 2 guests