Kernel 5.0 development thread

User avatar
memeka
Posts: 4321
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 1 time
Been thanked: 13 times
Contact:

Re: Kernel 5.0 development thread

Unread post by memeka » Fri Mar 08, 2019 11:49 am

odroid wrote:
Fri Mar 08, 2019 11:17 am
Chromium Youtube video sound played too much faster. I felt x2 or more.
Firefox couldn't play any video. I found this message.

Code: Select all

[  934.852246] vidioc_try_fmt:407: Unsupported format for destination.
the try_fmt message is a warning, probably from ffplay. when playing a video, ffmpeg will try all the formats from a list in order, until one is "agreed" on. so it's normal to have this message multiple times when using MFC.
Chromium Youtube - pulse issue? Maybe can be fixed with asoundrc with fixed frequency to 44Khz?
Firefox - no idea...
Are you using h264ify for FF/Chromium? can you disable and let it run the native vp9 codec?

User avatar
odroid
Site Admin
Posts: 31852
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 89 times
Been thanked: 255 times
Contact:

Re: Kernel 5.0 development thread

Unread post by odroid » Fri Mar 08, 2019 12:20 pm

Right. The message was from ffplay and kodi. ;)

I didn't install any add-on to the browsers.
I changed some values in /etc/pulse/daemon.conf to adjust the pulse audio frequency/channel settings.
But youtube sound is still too high pitch. MP3 file playback with Rhythmbox or VLC or ffplay has the same issue.
I don't know why Kodi/ffplay video playback have no such fast sound issue.
I couldn't find any ALSA things yet.
Frankly speaking, I can't recall if the issue existed or not when I played with RC5. :(

frontrange
Posts: 11
Joined: Tue Mar 05, 2019 11:55 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: Kernel 5.0 development thread

Unread post by frontrange » Mon Mar 11, 2019 1:22 am

Bravo memeka! Thanks much for doing this, I'm running your kernel on a couple of HC1's now and all is well so far.

User avatar
memeka
Posts: 4321
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 1 time
Been thanked: 13 times
Contact:

Re: Kernel 5.0 development thread

Unread post by memeka » Tue Mar 12, 2019 10:20 am

@odroid: there seems to be many issues with pulse audio after the latest ubuntu updates ... e.g. viewtopic.php?p=248608#p248608, viewtopic.php?p=248828#p248828, viewtopic.php?p=248810#p248810

cand you please try the fixes from that thread, see if that works?

User avatar
odroid
Site Admin
Posts: 31852
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 89 times
Been thanked: 255 times
Contact:

Re: Kernel 5.0 development thread

Unread post by odroid » Tue Mar 12, 2019 10:47 am

I've checked "default.conf" file of pulseaudio settings. It looks fine.

Code: Select all

[Mapping analog-stereo]
device-strings = front:%f hw:%f
But the audio speed is still twice faster. :(
I though new sound driver or clock source PLL/divider configuration seems to be wrong in Kernel 5.0.
But I don't know why Kodi/ffplay video playback has no such issue.
I hope you will buy a HDMI monitor with built-in speakers. ;)

User avatar
memeka
Posts: 4321
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 1 time
Been thanked: 13 times
Contact:

Re: Kernel 5.0 development thread

Unread post by memeka » Tue Mar 12, 2019 11:56 am

UPDATE

* updated to v.5.0.1
* fixed/improved thermals for HC1

@odroid I would wait for the next kernel version, sound is reworked for all odroid boards. Since 5.0 is not LTS, we can check out 5.1 and see how sounds work. I will provide a 5.1 kernel tree but close to 5.1 release date, and will focus on the next LTS to have everything working very stable.
PS: there are many nice changes queued for 5.1/5.2 for 5422: memory controller driver, sound fixes, sleep function - all very exciting!

User avatar
odroid
Site Admin
Posts: 31852
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 89 times
Been thanked: 255 times
Contact:

Re: Kernel 5.0 development thread

Unread post by odroid » Tue Mar 12, 2019 12:29 pm

I fully agree with you for suspending Kernel 5.0 development until we meet another LTS version again.
Your current 5.0 branch is more than enough to run many different server applications though.
In fact, I'm trying my personal ZoneMinder project on your Kernel 5.0. ;)

User avatar
memeka
Posts: 4321
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 1 time
Been thanked: 13 times
Contact:

Re: Kernel 5.0 development thread

Unread post by memeka » Tue Mar 12, 2019 12:32 pm

odroid wrote:
Tue Mar 12, 2019 12:29 pm
I fully agree with you for suspending Kernel 5.0 development until we meet another LTS version again.
Your current 5.0 branch is more than enough to run many different server applications though.
In fact, I'm trying my personal ZoneMinder project on your Kernel 5.0. ;)
HC1 just got a nice boost with improved thermals :)
Just switched to a HC1+SSD for my armhf compiling so I'm doing more tweaks :D
Even your zoneminder project should work very nice on the HC1 since you don't need USB cameras :D

User avatar
odroid
Site Admin
Posts: 31852
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 89 times
Been thanked: 255 times
Contact:

Re: Kernel 5.0 development thread

Unread post by odroid » Tue Mar 12, 2019 1:15 pm

Yes!
XU4 HDMI output is more comfortable for MFC codec debugging. Once everything works stably, I will switch to HC2 + 6TB HDD probably. :D

MastaG
Posts: 276
Joined: Mon Aug 26, 2013 6:05 pm
languages_spoken: english
Has thanked: 3 times
Been thanked: 1 time
Contact:

Re: Kernel 5.0 development thread

Unread post by MastaG » Tue Mar 12, 2019 4:29 pm

Same here as well.. running your linux 5.0 kernel successfully with Fedora 29 with selinux enabled.
I'll do a public image once I'm done building chromium-ozone-wayland.

User avatar
odroid
Site Admin
Posts: 31852
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 89 times
Been thanked: 255 times
Contact:

Re: Kernel 5.0 development thread

Unread post by odroid » Wed Mar 13, 2019 5:33 pm

I've made a simplified guide to build Kernel 5.0.1 for Ubuntu 18.04 users.

Code: Select all

sudo apt-get install git build-essential libssl-dev bc flex bison
git clone --depth 1 https://github.com/mihailescu2m/linux -b odroidxu4-5.0.y
cd linux/
wget https://dn.odroid.com/5422/odroidxu4_defconfig
mv odroidxu4_defconfig arch/arm/configs/.
make odroidxu4_defconfig
make -j8
sudo make modules_install
sudo cp -f arch/arm/boot/zImage /media/boot
sudo cp -f arch/arm/boot/dts/exynos5422-odroid*dtb /media/boot
sudo cp .config /boot/config-`make kernelrelease`
sudo update-initramfs -c -k `make kernelrelease`
sudo mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n uInitrd -d /boot/initrd.img-`make kernelrelease` /boot/uInitrd-`make kernelrelease`
sudo cp /boot/uInitrd-`make kernelrelease` /media/boot/uInitrd
sync
sudo reboot
The build time was around 30 minutes and you can confirm you are running the latest Kernel on your XU4.

Code: Select all

Linux version 5.0.1+ (odroid@odroid) (gcc version 7.3.0 (Ubuntu/Linaro 7.3.0-27ubuntu1~18.04)) #1 SMP PREEMPT Wed Mar 13 08:19:50 UTC 2019 
The first booting might stop at CRNG generation. Wait 1~2 minutes and do a cold-boot if it doesn't boot automatically. From the second boot, there should be no issue.
Good luck!


Snapshot of Kernel.org as of today. :D
kernel_org.png
kernel_org.png (149.74 KiB) Viewed 3449 times
These users thanked the author odroid for the post:
br0ken.pipe (Mon Apr 15, 2019 3:18 am)

ffwd
Posts: 1
Joined: Tue Jul 31, 2018 2:47 pm
languages_spoken: english, russian, hebrew
ODROIDs: Odroid XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: Kernel 5.0 development thread

Unread post by ffwd » Wed Mar 13, 2019 7:00 pm

5.0.1 works great.

Couldn't understand why the performance is lower until I checked the core speeds:
It's missing the patches for 1.5Ghz on small cores
https://github.com/hardkernel/linux/com ... 8e467307ff
https://github.com/hardkernel/linux/com ... 17f14386bf

added them manually - works fine

MastaG
Posts: 276
Joined: Mon Aug 26, 2013 6:05 pm
languages_spoken: english
Has thanked: 3 times
Been thanked: 1 time
Contact:

Re: Kernel 5.0 development thread

Unread post by MastaG » Wed Mar 13, 2019 7:53 pm

ffwd wrote:
Wed Mar 13, 2019 7:00 pm
5.0.1 works great.

Couldn't understand why the performance is lower until I checked the core speeds:
It's missing the patches for 1.5Ghz on small cores
https://github.com/hardkernel/linux/com ... 8e467307ff
https://github.com/hardkernel/linux/com ... 17f14386bf

added them manually - works fine
Only they don't apply cleanly anymore.
Here's a clean version.
Attachments
1.5GHz.zip
(960 Bytes) Downloaded 27 times

User avatar
memeka
Posts: 4321
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 1 time
Been thanked: 13 times
Contact:

Re: Kernel 5.0 development thread

Unread post by memeka » Wed Mar 13, 2019 7:55 pm

I am not a fan - 1.5 on little core don’t add much performance but stress the chip more.
If I run something demanding, I use taskset on big cores.
Esp since little cores get throttled only at 90C.

MastaG
Posts: 276
Joined: Mon Aug 26, 2013 6:05 pm
languages_spoken: english
Has thanked: 3 times
Been thanked: 1 time
Contact:

Re: Kernel 5.0 development thread

Unread post by MastaG » Wed Mar 13, 2019 8:41 pm

I think we had this one before as well?
https://github.com/archlinuxarm/PKGBUIL ... rame.patch
Should fix

Code: Select all

[   11.019777] smsc95xx: unknown parameter 'macaddr' ignored

User avatar
memeka
Posts: 4321
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 1 time
Been thanked: 13 times
Contact:

Re: Kernel 5.0 development thread

Unread post by memeka » Wed Mar 13, 2019 9:09 pm

@MastaG i thought xu4 mac addresses are fixed (hardware), no need to set them in software...
also i don't get that message...
@odroid?

User avatar
mad_ady
Posts: 6393
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 149 times
Been thanked: 109 times
Contact:

Re: Kernel 5.0 development thread

Unread post by mad_ady » Wed Mar 13, 2019 10:17 pm

That message is for xu3's NIC which doesn't have a mac.

MastaG
Posts: 276
Joined: Mon Aug 26, 2013 6:05 pm
languages_spoken: english
Has thanked: 3 times
Been thanked: 1 time
Contact:

Re: Kernel 5.0 development thread

Unread post by MastaG » Thu Mar 14, 2019 5:29 am

mad_ady wrote:
Wed Mar 13, 2019 10:17 pm
That message is for xu3's NIC which doesn't have a mac.
Thats correct, I'm building on my xu3 and later on I test on xu4 as well.

citydweller
Posts: 2
Joined: Mon Mar 18, 2019 2:07 am
languages_spoken: english,german
ODROIDs: XU4, U3
Has thanked: 0
Been thanked: 0
Contact:

Re: Kernel 5.0 development thread

Unread post by citydweller » Mon Mar 18, 2019 2:11 am

odroid wrote:
Wed Mar 13, 2019 5:33 pm
I've made a simplified guide to build Kernel 5.0.1 for Ubuntu 18.04 users.

Code: Select all

sudo apt-get install git build-essential libssl-dev bc flex bison
git clone --depth 1 https://github.com/mihailescu2m/linux -b odroidxu4-5.0.y
cd linux/
wget https://dn.odroid.com/5422/odroidxu4_defconfig
mv odroidxu4_defconfig arch/arm/configs/.
make odroidxu4_defconfig
make -j8
sudo make modules_install
sudo cp -f arch/arm/boot/zImage /media/boot
sudo cp -f arch/arm/boot/dts/exynos5422-odroid*dtb /media/boot
sudo cp .config /boot/config-`make kernelrelease`
sudo update-initramfs -c -k `make kernelrelease`
sudo mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n uInitrd -d /boot/initrd.img-`make kernelrelease` /boot/uInitrd-`make kernelrelease`
sudo cp /boot/uInitrd-`make kernelrelease` /media/boot/uInitrd
sync
sudo reboot
The build time was around 30 minutes and you can confirm you are running the latest Kernel on your XU4.

Code: Select all

Linux version 5.0.1+ (odroid@odroid) (gcc version 7.3.0 (Ubuntu/Linaro 7.3.0-27ubuntu1~18.04)) #1 SMP PREEMPT Wed Mar 13 08:19:50 UTC 2019 
The first booting might stop at CRNG generation. Wait 1~2 minutes and do a cold-boot if it doesn't boot automatically. From the second boot, there should be no issue.
Good luck!


Snapshot of Kernel.org as of today. :D
kernel_org.png
Hi,
I followed your guide, but after several reboots my xu4 stops with this messages.

User avatar
memeka
Posts: 4321
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 1 time
Been thanked: 13 times
Contact:

Re: Kernel 5.0 development thread

Unread post by memeka » Mon Mar 18, 2019 5:07 am

You have an I/O error on emmc.
Can you try with an SD?

User avatar
odroid
Site Admin
Posts: 31852
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 89 times
Been thanked: 255 times
Contact:

Re: Kernel 5.0 development thread

Unread post by odroid » Mon Mar 18, 2019 9:30 am

@citydweller,
I waited a few minutes and unplug/plug the DC plug for a cold boot to complete the first booting process.
After that, it worked fine. I used a 8GB Orange eMMC for the test.
It is worth to try a SD card as memeka recommended.

User avatar
memeka
Posts: 4321
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 1 time
Been thanked: 13 times
Contact:

Re: Kernel 5.0 development thread

Unread post by memeka » Wed Mar 20, 2019 3:07 pm

UPDATE

* updated to 5.0.3
* exynos mixer fix for synchronizing multiple planes (finally!)
* increase mixer bus frequency to 150Mhz to increase bandwidth for 2 planes with 1080p@60 resolution
* change GRPAHICS1 plane type to overlay

bonus: latest version of GNOME hw accelerated desktop (just released 3.32) running on latest kernel version (5.0.3) :)

User avatar
AreaScout
Posts: 1038
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: german, english
ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
N1, Go, VU5A, Show2, CloudShell2,
H2, N2, VU7A, VuShell
Has thanked: 13 times
Been thanked: 43 times
Contact:

Re: Kernel 5.0 development thread

Unread post by AreaScout » Wed Mar 20, 2019 3:36 pm

memeka wrote:
Wed Mar 20, 2019 3:07 pm
UPDATE

* updated to 5.0.3
* exynos mixer fix for synchronizing multiple planes (finally!)
* increase mixer bus frequency to 150Mhz to increase bandwidth for 2 planes with 1080p@60 resolution
* change GRPAHICS1 plane type to overlay

bonus: latest version of GNOME hw accelerated desktop (just released 3.32) running on latest kernel version (5.0.
Ha ! Great news :)

Who did it at the end ? I didn't know that the mixer frequency can be setup, so that was the speed up to go from 30fps to 60fps ?

RG

User avatar
memeka
Posts: 4321
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 1 time
Been thanked: 13 times
Contact:

Re: Kernel 5.0 development thread

Unread post by memeka » Wed Mar 20, 2019 3:55 pm

Samsung ppl did it :) check the Samsung ml
It’s not mixer frequency, it’s the bus clock.
It’s not 30fps to 60fps :) it was always at 60fps but with 2 planes it was double the data on the bus, too much - and some data was getting lost and causing a kernel crash.

User avatar
MysteryScience
Posts: 25
Joined: Sun Dec 23, 2018 9:09 pm
languages_spoken: english, spanish
ODROIDs: XU4Q, XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: Kernel 5.0 development thread

Unread post by MysteryScience » Wed Mar 20, 2019 4:57 pm

memeka wrote:
Wed Mar 20, 2019 3:07 pm
UPDATE

* updated to 5.0.3
* exynos mixer fix for synchronizing multiple planes (finally!)
* increase mixer bus frequency to 150Mhz to increase bandwidth for 2 planes with 1080p@60 resolution
* change GRPAHICS1 plane type to overlay
I should try this :P I will do it with my 32 Gb SD card this night, many thanks Memeka =)))

User avatar
odroid
Site Admin
Posts: 31852
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 89 times
Been thanked: 255 times
Contact:

Re: Kernel 5.0 development thread

Unread post by odroid » Wed Mar 20, 2019 6:12 pm

@memeka,
Did you push the changes of 5.0.3 into your git repo?
It still seems to have 5.0.1. Please confirm.

User avatar
memeka
Posts: 4321
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 1 time
Been thanked: 13 times
Contact:

Re: Kernel 5.0 development thread

Unread post by memeka » Wed Mar 20, 2019 6:40 pm

odroid wrote:
Wed Mar 20, 2019 6:12 pm
@memeka,
Did you push the changes of 5.0.3 into your git repo?
It still seems to have 5.0.1. Please confirm.
I’ll push it first thing tomorrow, when I get to the odroid :D

User avatar
memeka
Posts: 4321
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 1 time
Been thanked: 13 times
Contact:

Re: Kernel 5.0 development thread

Unread post by memeka » Wed Mar 20, 2019 7:23 pm

Pushing now to GitHub :)

User avatar
odroid
Site Admin
Posts: 31852
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 89 times
Been thanked: 255 times
Contact:

Re: Kernel 5.0 development thread

Unread post by odroid » Wed Mar 20, 2019 7:36 pm

Okay :D

Looks fine. :mrgreen:

Code: Select all

odroid@odroid:~$ uname -a
Linux odroid 5.0.3+ #1 SMP PREEMPT Thu Mar 21 03:25:26 UTC 2019 armv7l armv7l armv7l GNU/Linux

MastaG
Posts: 276
Joined: Mon Aug 26, 2013 6:05 pm
languages_spoken: english
Has thanked: 3 times
Been thanked: 1 time
Contact:

Re: Kernel 5.0 development thread

Unread post by MastaG » Thu Mar 21, 2019 9:44 pm

memeka wrote:
Wed Mar 20, 2019 3:55 pm
Samsung ppl did it :) check the Samsung ml
It’s not mixer frequency, it’s the bus clock.
It’s not 30fps to 60fps :) it was always at 60fps but with 2 planes it was double the data on the bus, too much - and some data was getting lost and causing a kernel crash.
Hi could you describe in a few words which use cases these fixes are for?
e.g. running Kodi on multiple DRM planes ? (so no more patching required on the kodi-side?)

EDIT:
See: https://github.com/mihailescu2m/linux/c ... 81841a2f77
Why did you change the CURSOR plane to OVERLAY?

If something uses the CURSOR plane it will be missing now?

Perhaps I'm wrong, but I'm running Kodi on 2 planes here by making a small modification

Code: Select all

diff --git a/xbmc/windowing/gbm/DRMUtils.cpp b/xbmc/windowing/gbm/DRMUtils.cpp
index df46ad4bdc..ef8b563586 100644
--- a/xbmc/windowing/gbm/DRMUtils.cpp
+++ b/xbmc/windowing/gbm/DRMUtils.cpp
@@ -346,13 +346,13 @@ drmModePlanePtr CDRMUtils::FindPlane(drmModePlaneResPtr resources, int crtc_inde
       {
         drmModePropertyPtr p = drmModeGetProperty(m_fd, props->props[j]);
 
-        if ((strcmp(p->name, "type") == 0) && (props->prop_values[j] != DRM_PLANE_TYPE_CURSOR))
+        if (strcmp(p->name, "type") == 0)
         {
           switch (type)
           {
             case KODI_VIDEO_PLANE:
             {
-              if (SupportsFormat(plane, DRM_FORMAT_NV12))
+              if (SupportsFormat(plane, DRM_FORMAT_NV12) || SupportsFormat(plane, DRM_FORMAT_XRGB8888))
               {
                 CLog::Log(LOGDEBUG, "CDRMUtils::%s - found video plane %u", __FUNCTION__, plane->plane_id);
                 drmModeFreeProperty(p);
@@ -513,6 +513,7 @@ bool CDRMUtils::OpenDrm(bool needConnector)
 {
   static constexpr const char *modules[] =
   {
+    "exynos",
     "i915",
     "amdgpu",
     "radeon",
So instead of modifying the kernel, wouldn't it be better to just change kodi instead?

MastaG
Posts: 276
Joined: Mon Aug 26, 2013 6:05 pm
languages_spoken: english
Has thanked: 3 times
Been thanked: 1 time
Contact:

Re: Kernel 5.0 development thread

Unread post by MastaG » Thu Mar 21, 2019 11:56 pm

@odroid

I finally found a proper fix for the Headphone-jack volume which gets reset back to 0 after each reboot.
alsactl store does seem to save it, but for some strange reason, it doesn't restore it, as it's always reset to 0 (mute).

I've patched the kernel driver to set it at 24 by default.
This doesn't matter much since every modern distro uses Pulseaudio anyways.

@memeka and @odroid
I've played around a bit with the 5.0.3 kernel.
I also experience that the audio playback speed on youtube video's in chromium seems too fast.
I've tested RetroArch with both alsa and pulse driver and sound is OK on my Dreamcast games.
So perhaps the problem is related to Chromium only?

My /etc/alsa/conf.d/ directory..
00-odroid.conf:

Code: Select all

# Odroid configuration

pcm.!default {
    type plug
    slave {
        pcm "hw:0,0"
        format S16_LE
        rate 44100
    }
}

ctl.!default {
    type hw
    card 0
}
50-pulseaudio.conf:

Code: Select all

# Add a specific named PulseAudio pcm and ctl (typically useful for testing)

pcm.pulse {
	type pulse
	hint {
		show {
			@func refer
			name defaults.namehint.basic
		}
		description "PulseAudio Sound Server"
	}
}

ctl.pulse {
	type pulse
}
99-pulseaudio-default.conf:

Code: Select all

# Default to PulseAudio

pcm.!default {
    type pulse
    hint {
        show on
        description "Default ALSA Output (currently PulseAudio Sound Server)"
    }
}

ctl.!default {
    type pulse
}
Now that I think of it, due to 99-pulseaudio-default.conf, everything that uses alsa will route trough puleaudio anyways.
So perhaps it's related to pulseaudio.
Attachments
odroid_xu3_speaker_volume.patch.zip
(513 Bytes) Downloaded 15 times

User avatar
memeka
Posts: 4321
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 1 time
Been thanked: 13 times
Contact:

Re: Kernel 5.0 development thread

Unread post by memeka » Fri Mar 22, 2019 1:56 am

There is no real use of 2 planes at the moment.
Mpv can use 2 planes with drm output, one plane for subtitles/interface.
Kodi uses 2 planes, but one needs to be nv12, which is not the case. I have a patched ffmpeg that converts video to rgb with zero copy, so Kodi can be patched to use a rgb plane with that ffmpeg, but v4l2 drmprime is not working yet in ffmpeg.
Gstreamer can use 2 planes - I want to try building an app where a video is on one plane, and interface is on another plane.

Mutter uses software cursor anyway, I am not aware of anything using that plane. Changing it to overlay allows other apps like mpv and gstreamer to use it.

User avatar
AreaScout
Posts: 1038
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: german, english
ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
N1, Go, VU5A, Show2, CloudShell2,
H2, N2, VU7A, VuShell
Has thanked: 13 times
Been thanked: 43 times
Contact:

Re: Kernel 5.0 development thread

Unread post by AreaScout » Fri Mar 22, 2019 5:38 am

memeka wrote:
Fri Mar 22, 2019 1:56 am
There is no real use of 2 planes at the moment.
Yes but we hope to see gscaler support for it :)

Btw. is the touchscreen driver already implemented and working in kernel 5.0, last time I tested it it was not ?

RG

User avatar
odroid
Site Admin
Posts: 31852
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 89 times
Been thanked: 255 times
Contact:

Re: Kernel 5.0 development thread

Unread post by odroid » Fri Mar 22, 2019 9:26 am

@AreaScout,
You have to add this driver to use our Vu series touch screen.
https://github.com/hardkernel/linux/blo ... v-usb-mt.c

@MastaG ,
Kodi also has no issue of the fast playback audio problem.
But Chromium, Rythmbox and other media players have that issue.
I couldn't find a root cause due to my limited knowledge.
Can you test a MP3 file with Rythmbox or ffplay?

citydweller
Posts: 2
Joined: Mon Mar 18, 2019 2:07 am
languages_spoken: english,german
ODROIDs: XU4, U3
Has thanked: 0
Been thanked: 0
Contact:

Re: Kernel 5.0 development thread

Unread post by citydweller » Sat Mar 23, 2019 6:21 pm

memeka wrote:
Mon Mar 18, 2019 5:07 am
You have an I/O error on emmc.
Can you try with an SD?
Hi,

sorry for the late response. I've tried it with an sdcard and its working.
But the EMMC-card ist not defect. I've already tried with ArchlinuxARM and kernel 5.0+ and it works flawlessly. Also tried with a fresh install of Ubuntu 18.04 minimal server, followed the compiling guide here in the topic with the latest kernel 5.0.3 and got the same error.
First error after reboot
mmc0: tuning execution failed -5
mmc0: error -5 whilst initialising MMC card

I'm using the orange emmc with 32gb, posted here
https://wiki.odroid.com/accessory/emmc/reference_chart

User avatar
AreaScout
Posts: 1038
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: german, english
ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
N1, Go, VU5A, Show2, CloudShell2,
H2, N2, VU7A, VuShell
Has thanked: 13 times
Been thanked: 43 times
Contact:

Re: Kernel 5.0 development thread

Unread post by AreaScout » Sun Mar 24, 2019 12:11 am

odroid wrote:
Fri Mar 22, 2019 9:26 am
@AreaScout,
You have to add this driver to use our Vu series touch screen.
https://github.com/hardkernel/linux/blo ... v-usb-mt.c
Thank you, found it :)

@memeka

Can you cherry pick that commit please https://github.com/hardkernel/linux/com ... 9813c3148f

thx in forward

elatllat
Posts: 1438
Joined: Tue Sep 01, 2015 8:54 am
languages_spoken: english
ODROIDs: XU4, N1, N2
Has thanked: 11 times
Been thanked: 28 times
Contact:

Re: Kernel 5.0 development thread

Unread post by elatllat » Sun Mar 24, 2019 9:29 pm

Likely answered my own crypto question.

MastaG
Posts: 276
Joined: Mon Aug 26, 2013 6:05 pm
languages_spoken: english
Has thanked: 3 times
Been thanked: 1 time
Contact:

Re: Kernel 5.0 development thread

Unread post by MastaG » Tue Mar 26, 2019 5:19 am

So anyways I've got an Fedora 30 image running this kernel with some external patches (1.5GHz on the little cores, volume fix for headphone jack) and selinux enabled.
It has retroach and kodi 18.2 (git) and they run both in headless (drm) and wayland (gnome 3.32).
Chromium m73 runs accelerated under wayland and does video accelerated decoding of h264 videos using v4l2.
Chromium is a bit unstable still, but I'll make a bug report soon.
The only thing that really annoys me is the bug where audio is sampled too fast.
I really hope somebody can look into this soon.

escalade
Posts: 78
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 1 time
Been thanked: 7 times
Contact:

Re: Kernel 5.0 development thread

Unread post by escalade » Wed Mar 27, 2019 9:28 am

I've got the same mmc error as @citydweller. Works fine in 4.14. Tried adding sdhci.debug_quirks2 according to https://bugzilla.kernel.org/show_bug.cgi?id=109231 without any success.

I don't have any sd card so emmc is the only option for me.
Maintainer of RetroELEC (XU4 support!)

User avatar
odroid
Site Admin
Posts: 31852
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 89 times
Been thanked: 255 times
Contact:

Re: Kernel 5.0 development thread

Unread post by odroid » Wed Mar 27, 2019 9:46 am

@escalade,

Which eMMC module do you have?
https://wiki.odroid.com/accessory/emmc/reference_chart

escalade
Posts: 78
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 1 time
Been thanked: 7 times
Contact:

Re: Kernel 5.0 development thread

Unread post by escalade » Wed Mar 27, 2019 11:25 am

The orange 16MB. Here's dmesg from 4.14:
XU4:~ # dmesg | grep mmc
[ 1.982664] dwmmc_exynos 12200000.mmc: IDMAC supports 32-bit address mode.
[ 1.982734] dwmmc_exynos 12200000.mmc: Using internal DMA controller.
[ 1.982744] dwmmc_exynos 12200000.mmc: Version ID is 250a
[ 1.982775] dwmmc_exynos 12200000.mmc: DW MMC controller at irq 83,64 bit host data width,64 deep fifo
[ 1.982938] dwmmc_exynos 12200000.mmc: allocated mmc-pwrseq
[ 2.004572] mmc_host mmc0: Bus speed (slot 0) = 50000000Hz (slot req 400000Hz, actual 396825HZ div = 63)
[ 2.024668] dwmmc_exynos 12220000.mmc: IDMAC supports 32-bit address mode.
[ 2.024695] dwmmc_exynos 12220000.mmc: Using internal DMA controller.
[ 2.024705] dwmmc_exynos 12220000.mmc: Version ID is 250a
[ 2.024736] dwmmc_exynos 12220000.mmc: DW MMC controller at irq 84,64 bit host data width,64 deep fifo
[ 2.048578] mmc_host mmc1: Bus speed (slot 0) = 50000000Hz (slot req 400000Hz, actual 396825HZ div = 63)
[ 2.077560] mmc_host mmc0: Bus speed (slot 0) = 200000000Hz (slot req 200000000Hz, actual 200000000HZ div = 0)
[ 2.078028] mmc_host mmc0: Bus speed (slot 0) = 50000000Hz (slot req 52000000Hz, actual 50000000HZ div = 0)
[ 2.078179] mmc_host mmc0: Bus speed (slot 0) = 266666666Hz (slot req 200000000Hz, actual 133333333HZ div = 1)
[ 2.078328] mmc0: new HS400 MMC card at address 0001
[ 2.078675] mmcblk0: mmc0:0001 AJTD4R 14.6 GiB
[ 2.078887] mmcblk0boot0: mmc0:0001 AJTD4R partition 1 4.00 MiB
[ 2.079101] mmcblk0boot1: mmc0:0001 AJTD4R partition 2 4.00 MiB
[ 2.079308] mmcblk0rpmb: mmc0:0001 AJTD4R partition 3 4.00 MiB
[ 2.079843] mmcblk0: p1 p2
Maintainer of RetroELEC (XU4 support!)

User avatar
odroid
Site Admin
Posts: 31852
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 89 times
Been thanked: 255 times
Contact:

Re: Kernel 5.0 development thread

Unread post by odroid » Wed Mar 27, 2019 11:50 am

I've used Orange 8GB and there was no serious issue.
Did you wait enough time and run a cold boot as described in my instruction?
viewtopic.php?f=95&t=33510&start=100#p249019

escalade
Posts: 78
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 1 time
Been thanked: 7 times
Contact:

Re: Kernel 5.0 development thread

Unread post by escalade » Wed Mar 27, 2019 5:35 pm

Yes, I tried cold booting several times. Switching back to 4.14 works right away, there’s clearly a problem. Same issue as @citydweller.
Maintainer of RetroELEC (XU4 support!)

dante6913
Posts: 96
Joined: Sat Oct 01, 2016 7:16 am
languages_spoken: english, Portuguese
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: Kernel 5.0 development thread

Unread post by dante6913 » Wed Mar 27, 2019 8:49 pm

dante6913 wrote:
Sun Mar 03, 2019 3:46 am
Hi, I'm not being able tu use an emmc card with kernel 5.0 rc8. Building it from a stock 18.04 in ubuntu in the emmc card or copying from the image of a full working sd card with kernel 5.0 allway hang on boot with this error:

mmc0: tunning execution failed: -5.

Kernel 5.0 isn't functional with emmc card?
With emmc card works fine,
I have the same issue as @citydweller. too! Orange emmc card 32gb

escalade
Posts: 78
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 1 time
Been thanked: 7 times
Contact:

Re: Kernel 5.0 development thread

Unread post by escalade » Wed Mar 27, 2019 11:40 pm

There's been some MMC fixes for other host controllers in 5.0.4 that looks very similar to our problem: https://pastebin.com/UDZ21Eif
Maintainer of RetroELEC (XU4 support!)

escalade
Posts: 78
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 1 time
Been thanked: 7 times
Contact:

Re: Kernel 5.0 development thread

Unread post by escalade » Thu Mar 28, 2019 6:32 am

I managed to get it working. First I put my root partition on a USB stick and told the kernel to mount it from there by editing the command line in boot.ini on my MMC card. Once I got up and running I noticed there was a crash in some module due to a corrupt/incompatible DT (don't recall the message). True enough, I hadn't updated my exynos5422-odroidxu4.dtb after updating the kernel from 4.14 to 5.0 (note that I am rolling my own LibreELEC image). After doing so, I can now boot from MMC and dmesg is nice and clean: http://ix.io/1EF3

Everything seems to be in working order. I'm running RetroArch through KMS/GBM and sound is working great.

An added bonus is that my XU4 actually reboots instead of turning off when issuing a reboot. Thanks @memeka! :D
Maintainer of RetroELEC (XU4 support!)

User avatar
memeka
Posts: 4321
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 1 time
Been thanked: 13 times
Contact:

Re: Kernel 5.0 development thread

Unread post by memeka » Thu Mar 28, 2019 6:42 am

Good to hear @escalade.
I’ll move to 5.1 kernel in about a month, and plan to focus more on extras (eg HK drivers) on the next LTS.

escalade
Posts: 78
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 1 time
Been thanked: 7 times
Contact:

Re: Kernel 5.0 development thread

Unread post by escalade » Thu Mar 28, 2019 8:03 pm

@memeka

By the way, as you've made plane 1 "OVERLAY" in exynos_mixer.c you should also make plane 2 into "CURSOR". Without this I had issues with playing videos in Kodi.

Oh, and you seem to have missed this commit in your 5.0 branch. Results in a compilation error if 480x320.bin have been specified in the CONFIG_EXTRA_FIRMWARE option.
Maintainer of RetroELEC (XU4 support!)

MastaG
Posts: 276
Joined: Mon Aug 26, 2013 6:05 pm
languages_spoken: english
Has thanked: 3 times
Been thanked: 1 time
Contact:

Re: Kernel 5.0 development thread

Unread post by MastaG » Wed Apr 03, 2019 4:35 pm

@escalade
Could you please post a diff for the CURSOR overlay?

escalade
Posts: 78
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 1 time
Been thanked: 7 times
Contact:

Re: Kernel 5.0 development thread

Unread post by escalade » Wed Apr 03, 2019 5:13 pm

Maintainer of RetroELEC (XU4 support!)

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 5 guests