Kernel 5.0 development thread

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

Re: Kernel 5.0 development thread

Unread post by memeka » Wed Apr 03, 2019 11:14 pm

Just fyi, @MastaG and @escalade:
the plane with zpos=2 where you set CURSOR is not present/used in exynos5 (XU4) because the hardware for it is not there - it is specific only to exynos4.
so this patch does nothing :)

MastaG
Posts: 261
Joined: Mon Aug 26, 2013 6:05 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: Kernel 5.0 development thread

Unread post by MastaG » Thu Apr 04, 2019 2:44 pm

memeka wrote:
Wed Apr 03, 2019 11:14 pm
Just fyi, @MastaG and @escalade:
the plane with zpos=2 where you set CURSOR is not present/used in exynos5 (XU4) because the hardware for it is not there - it is specific only to exynos4.
so this patch does nothing :)
But does it work as OVERLAY then?

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

Re: Kernel 5.0 development thread

Unread post by memeka » Thu Apr 04, 2019 4:02 pm

MastaG wrote:
Thu Apr 04, 2019 2:44 pm
memeka wrote:
Wed Apr 03, 2019 11:14 pm
Just fyi, @MastaG and @escalade:
the plane with zpos=2 where you set CURSOR is not present/used in exynos5 (XU4) because the hardware for it is not there - it is specific only to exynos4.
so this patch does nothing :)
But does it work as OVERLAY then?
No, that plane does not exist on XU4.
Run modetest and check the output.

escalade
Posts: 13
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 0
Been thanked: 0
Contact:

Re: Kernel 5.0 development thread

Unread post by escalade » Thu Apr 04, 2019 5:55 pm

@memeka

I probably must have been confused during my testing then, thanks for the information :)

Eagerly awaiting your 5.1 tree, having a lot of fun with my XU4 at the moment.

MastaG
Posts: 261
Joined: Mon Aug 26, 2013 6:05 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: Kernel 5.0 development thread

Unread post by MastaG » Thu Apr 04, 2019 11:33 pm

Thx memeka!
I can confirm the issue with the orange emmc card as well.

mmc0: error -5 whilst initialising MMC card

But luckily I also have an old green emmc, which is a bit slower but works fine nevertheless.

escalade
Posts: 13
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 0
Been thanked: 0
Contact:

Re: Kernel 5.0 development thread

Unread post by escalade » Fri Apr 05, 2019 7:37 am

@MastaG

Try updating your dtb, worked for me ;)

m132
Posts: 13
Joined: Sun Jan 24, 2016 1:44 am
languages_spoken: english, polish
ODROIDs: xu4 + cloudshell
Has thanked: 0
Been thanked: 0
Contact:

Re: Kernel 5.0 development thread

Unread post by m132 » Sun Apr 07, 2019 4:55 am

Hi!

I tried everything and can't manage to get the HDMI audio working ever since 4.x kernels. Can anyone there who has it working on a 5.0 kernel post their /proc/asound/cards and output of pactl list sinks, pretty please?

EDIT: Nevermind, it's turned out that the sound doesn't work when sample rate is set to 44.1 kHz, but does with 32 kHz and 48 kHz rates. What's more weird, both of these actually set the output to a lower rate, causing everything to play in "slow motion", the only way I found to get the audio play at correct speed is to set the card to 48 kHz, but feed it with 32 kHz stream instead (i.e. ffmpeg -i file.ogg -f s16le -ar 32000 -ac 2 - | aplay -f S16_LE -r 48000 -c 2 -).

EDIT2: I've rebooted, and the speed issues have fixed themselves, don't ask me. The magic sauce to fix PulseAudio is echo 'default-sample-rate = 48000' >> '/etc/pulse/daemon.conf'. :)

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

Re: Kernel 5.0 development thread

Unread post by memeka » Sun Apr 07, 2019 8:10 am

@odroid - can you try this with the apps that had sound issues?

Code: Select all

echo default-sample-rate = 48000 | sudo tee -a /etc/pulse/daemon.conf
thx @m132 for reporting.

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

Re: Kernel 5.0 development thread

Unread post by odroid » Mon Apr 08, 2019 9:38 am

One user told me there was no sound issue with the ODROID-Vu7A+ display.
The display can accept only 48Khz sampling and it seems to be a root cause.
Anyway, I will try m132's work around a few hours later. ;)

Update: The issue has been fixed with the magical single line. :D
I tried a few media software and there is no issue so far.
But we may need to find why HDMI audio sampling rate was wrongly detected when a new LTS kernel is available.

escalade
Posts: 13
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 0
Been thanked: 0
Contact:

Re: Kernel 5.0 development thread

Unread post by escalade » Fri Apr 12, 2019 1:58 am

@memeka

Adding "quiet" on the kernel command line seems to lead to a lot of bugs for some reason. Causes systemd to choke and corrupt the journal, external USB drives to fail and fails to reboot. Removing "quiet" returns it back to normal.

EDIT: Not entirely sure it was the "quiet" option that triggered it. Definitely some USB Issues on 5.0 I'll just go back to 4.14 which is stable for me while waiting for the next tree.

stmicro
Posts: 241
Joined: Tue Apr 28, 2015 4:23 pm
languages_spoken: english, chinese
ODROIDs: Many Odroids and Rpis.
Location: shenzhen china
Has thanked: 0
Been thanked: 0
Contact:

Re: Kernel 5.0 development thread

Unread post by stmicro » Mon Apr 15, 2019 3:38 pm

I've played with Kernel 5.x weekend and the first impression is very positive. But I wanna go back to official 4.14 due to the WiringPi compatibility. Is there any easy way to install the original kernel instead of flashing os image?

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

Re: Kernel 5.0 development thread

Unread post by odroid » Mon Apr 15, 2019 3:40 pm

stmicro wrote:
Mon Apr 15, 2019 3:38 pm
I've played with Kernel 5.x weekend and the first impression is very positive. But I wanna go back to official 4.14 due to the WiringPi compatibility. Is there any easy way to install the original kernel instead of flashing os image?
This single line command should be enough.
sudo apt install --reinstall linux-odroid-5422

escalade
Posts: 13
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 0
Been thanked: 0
Contact:

Re: Kernel 5.0 development thread

Unread post by escalade » Mon Apr 15, 2019 8:53 pm

Is there any way to switch to 50Hz refresh rate in DRM/KMS on the XU4?

I should probably create a new topic on that, but it seems like @memeka is the guy to answer this :)

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

Re: Kernel 5.0 development thread

Unread post by memeka » Tue Apr 16, 2019 2:18 am

Can’t see why 50Hz wouldn’t work...
What are you’re issues @escalade?

escalade
Posts: 13
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 0
Been thanked: 0
Contact:

Re: Kernel 5.0 development thread

Unread post by escalade » Tue Apr 16, 2019 6:00 pm

@memeka

I could probably formulate myself better. My issue is that I normally use 60Hz, that's what I boot into. But I'm a big fan of emulating older game consoles which run best in 50Hz.

When using X.org there is xrandr to change refresh rate on the fly. On a Raspberry Pi, there's "tvservice" to do the same. On other sbc's "fbset" can be used. So far, I have not found any way to change refresh rate "on the fly" (without rebooting using a custom EDID) on the XU4 (when in DRM/KMS mode without any X.org).

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

Re: Kernel 5.0 development thread

Unread post by memeka » Wed Apr 17, 2019 8:01 pm

Right, got it.
Afair there are entries for resolutions and refresh rate in /sys drm/kms nodes, discovered by parsing edid. I think there is also a “preferred” mode, which in your case is 1080/60. Assuming the software initialises the “preferred” mode, you could change the /sys entry to 1080/50 then run the emulator.
Alternatively you can change the emulator code to select the resolution and refresh you want instead of the “preferred” one.

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 4 guests