Kernel 5.0 development thread

User avatar
memeka
Posts: 4327
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: 15 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: 280
Joined: Mon Aug 26, 2013 6:05 pm
languages_spoken: english
Has thanked: 4 times
Been thanked: 1 time
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: 4327
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: 15 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: 91
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 3 times
Been thanked: 13 times
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.
Maintainer of RetroELEC (XU4 support!)

MastaG
Posts: 280
Joined: Mon Aug 26, 2013 6:05 pm
languages_spoken: english
Has thanked: 4 times
Been thanked: 1 time
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: 91
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 3 times
Been thanked: 13 times
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 ;)
Maintainer of RetroELEC (XU4 support!)

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: 4327
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: 15 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: 32121
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 119 times
Been thanked: 292 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: 91
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 3 times
Been thanked: 13 times
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.
Maintainer of RetroELEC (XU4 support!)

stmicro
Posts: 249
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: 1 time
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: 32121
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 119 times
Been thanked: 292 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: 91
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 3 times
Been thanked: 13 times
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 :)
Maintainer of RetroELEC (XU4 support!)

User avatar
memeka
Posts: 4327
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: 15 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: 91
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 3 times
Been thanked: 13 times
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).
Maintainer of RetroELEC (XU4 support!)

User avatar
memeka
Posts: 4327
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: 15 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.

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

Re: Kernel 5.0 development thread

Unread post by MastaG » Tue Apr 23, 2019 4:28 pm

I noticed that on the XU3 kenrel 5.0.3 actually makes the analog audio jack detect my speakers as stereo device.
When reverting back to 4.14.111+ it will detect the jack as mono device which makes it sound like crap.
So kernel 5.0.3 with "default-sample-rate = 48000" in /etc/pulse/daemon.conf is the way to be.

Antonio66
Posts: 13
Joined: Sat Oct 29, 2016 5:01 am
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: Kernel 5.0 development thread

Unread post by Antonio66 » Fri Apr 26, 2019 1:48 am

Hello !

I have downloaded and successfully installed using the config file find in this thread the kernel 5.0.3+.
I have the lastest ubuntu 19.04 on XU4 . the new kernel works great .
but every time i digit apt upgrade I got the following error is it normal ?
The log file says is missing a header file after a while : /var/lib/dkms/mali-midgard/16.0/build/mali_kbase_dma_fence.h:23:10: fatal error: linux/fence.h: No such file or directory

Setting up mali-midgard-dkms (16.0+pristine-4) ...
Building for 5.0.3+
Building for architecture armhf
This package appears to be a binaries-only package
you will not be able to build against kernel 5.0.3+
since the package source was not provided
Removing old mali-midgard-16.0 DKMS files...

------------------------------
Deleting module version: 16.0
completely from the DKMS tree.
------------------------------
Done.
Loading new mali-midgard-16.0 DKMS files...
Building for 5.0.3+
Building initial module for 5.0.3+
ERROR (dkms apport): kernel package linux-headers-5.0.3+ is not supported
Error! Bad return status for module build on kernel: 5.0.3+ (armv7l)
Consult /var/lib/dkms/mali-midgard/16.0/build/make.log for more information.
dpkg: error processing package mali-midgard-dkms (--configure):
installed mali-midgard-dkms package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of mali-t62x-x11-driver:armhf:
mali-t62x-x11-driver:armhf depends on mali-midgard-dkms; however:
Package mali-midgard-dkms is not configured yet.

dpkg: error processing package mali-t62x-x11-driver:armhf (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Processing triggers for libc-bin (2.29-0ubuntu2) ...
Processing triggers for fontconfig (2.13.1-2ubuntu2) ...
Errors were encountered while processing:
mali-midgard-dkms
mali-t62x-x11-driver:armhf
E: Sub-process /usr/bin/dpkg returned an error code (1)

User avatar
memeka
Posts: 4327
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: 15 times
Contact:

Re: Kernel 5.0 development thread

Unread post by memeka » Fri Apr 26, 2019 8:01 am

Mali driver is already included in the kernel.
So you should not install mali-dkms package.

Antonio66
Posts: 13
Joined: Sat Oct 29, 2016 5:01 am
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: Kernel 5.0 development thread

Unread post by Antonio66 » Fri Apr 26, 2019 9:11 am

Thanks Memeka

mali-midgard-dkms was already installed before new kernel installation
I would like remove mali-midgard-dkms but apt is removing entire Xorg !


root@odroid:/home/odroid/Downloads# apt remove mali-midgard-dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
apturl-common atril-common bubblewrap cheese-common dkms fonts-mathjax gir1.2-gstreamer-1.0 gir1.2-gtk-2.0 gir1.2-javascriptcoregtk-4.0 gir1.2-soup-2.4 gnome-desktop3-data
gnome-session-common gnome-video-effects liba52-0.7.4 libaribb24-0 libatrildocument3 libbasicusageenvironment1 libbrotli1 libcddb2 libclutter-1.0-common libcogl-common libdca0
libdjvulibre-text libdjvulibre21 libdmapsharing-3.0-2 libdouble-conversion1 libdvbpsi10 libebml4v5 libenca0 libevdev2 libexiv2-14 libfaad2 libgbm1 libgexiv2-2 libgif7
libgnome-desktop-3-17 libgpod-common libgpod4 libgraphene-1.0-0 libgrilo-0.3-0 libgroupsock8 libgxps2 libinput-bin libinput10 libjavascriptcoregtk-4.0-18 libjs-mathjax libkate1
libkpathsea6 liblirc-client0 liblivemedia64 liblua5.2-0 libmatroska6v5 libmicrodns0 libmng2 libmpcdec6 libmpeg2-4 libmtdev1 libopenmpt-modplug1 libpcre2-16-0 libplacebo7
libpoppler-glib8 libprotobuf-lite17 libqt4-dbus libqt4-network libqt4-script libqt4-sql libqt4-sql-mysql libqt4-xml libqt4-xmlpatterns libqt5core5a libqt5dbus5 libqt5network5
libqtcore4 libqtdbus4 libraw19 libresid-builder0c2a libsgutils2-2 libsidplay2 libspatialaudio0 libspectre1 libunwind8 libusageenvironment3 libva-wayland2 libvlc-bin libvlc5
libvorbisidec1 libvulkan1 libwacom-bin libwacom-common libwacom2 libwayland-server0 libwoff1 libxcb-image0 libxcb-keysyms1 libxcb-render-util0 libxcb-xinput0 libxcb-xv0 libxfont2
libxpresent1 libxvmc1 linux-headers-generic mesa-vulkan-drivers python3-debconf python3-mako python3-markupsafe qdbus qtchooser qtcore4-l10n qttranslations5-l10n shotwell-common
update-notifier-common vlc-bin vlc-data vlc-l10n vlc-plugin-base vlc-plugin-video-splitter vlc-plugin-visualization x11-apps x11-session-utils xfonts-base xfonts-encodings
xfonts-scalable xfonts-utils xinit xinput xserver-common xserver-xorg-legacy yelp-xsl zenity-common
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
appmenu-qt apturl atril cheese deja-dup deja-dup-caja gir1.2-gst-plugins-base-1.0 gir1.2-rb-3.0 gir1.2-webkit2-4.0 glmark2-es2 gnome-session-bin gnome-startup-applications
gstreamer1.0-clutter-3.0 gstreamer1.0-gl gstreamer1.0-gtk3 gufw libatrilview3 libcheese-gtk25 libcheese8 libclutter-1.0-0 libclutter-gst-3.0-0 libclutter-gtk-1.0-0
libcogl-pango20 libcogl-path20 libcogl20 libdbusmenu-qt2 libdirectfb-1.7-7 libegl1-mesa libgoa-backend-1.0-1 libgstreamer-gl1.0-0 libqt4-declarative libqt5gui5 libqt5svg5
libqt5widgets5 libqt5x11extras5 libqtgui4 libwebkit2gtk-4.0-37 libyelp0 mali-midgard-dkms mali-t62x-x11-driver marco mate-desktop-environment-core mate-user-guide
mesa-utils-extra mplayer qt-at-spi qt5-gtk-platformtheme qt5-style-platform-gtk2 qt5-style-plugin-blackberry qt5-style-plugin-cleanlooks qt5-style-plugin-gtk2
qt5-style-plugin-motif qt5-style-plugin-plastique qt5-style-plugins rhythmbox-plugins shotwell sni-qt ubuntu-mate-core ubuntu-mate-desktop ubuntu-mate-guide ubuntu-mate-welcome
ubuntu-release-upgrader-gtk update-manager update-notifier vlc-plugin-video-output xorg xserver-xorg xserver-xorg-core xserver-xorg-input-all xserver-xorg-input-libinput
xserver-xorg-input-wacom xserver-xorg-video-all xserver-xorg-video-amdgpu xserver-xorg-video-ati xserver-xorg-video-fbdev xserver-xorg-video-nouveau xserver-xorg-video-radeon
xserver-xorg-video-vesa yelp zenity
0 upgraded, 0 newly installed, 80 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 205 MB disk space will be freed.
Do you want to continue? [Y/n] n
Abort.

User avatar
memeka
Posts: 4327
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: 15 times
Contact:

Re: Kernel 5.0 development thread

Unread post by memeka » Fri Apr 26, 2019 9:53 am

try installing the mesa gl/egl dev drivers: libegl1-mesa-dev, libgles2-mesa-dev - they should install the mesa drivers, which would replace the mali-midgard-dkms and mali-t62x-x11-driver packages.
then install the hardkernel mali driver (mali-x11 package) assuming you have the "http://deb.odroid.in/5422-s" repository in apt.

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

Re: Kernel 5.0 development thread

Unread post by escalade » Fri Apr 26, 2019 10:55 pm

@memeka

Code: Select all

cat /sys/devices/platform/exynos-drm/drm/card0/card0-HDMI-A-1/modes 
1280x1024
1920x1080
1920x1080i
1920x1080
1920x1080i
1280x960
1280x800
1280x720
1280x720
1024x768
800x600
800x600
720x576
720x480
720x480
640x480
Doesn't list the refresh and I see no way to set a preferred mode in there. Too bad, amiga/c64 emulators perform much better when refresh is correctly set to PAL/50Hz.
Maintainer of RetroELEC (XU4 support!)

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

Re: Kernel 5.0 development thread

Unread post by mad_ady » Fri Apr 26, 2019 11:48 pm

A bit offtopic, but I will set up some xu4s in the following weeks and I wanted to start with memeka's 5.0. What defconfig should I use as base?

User avatar
memeka
Posts: 4327
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: 15 times
Contact:

Re: Kernel 5.0 development thread

Unread post by memeka » Sat Apr 27, 2019 1:45 am

See the thread, i shared mine :)
These users thanked the author memeka for the post:
mad_ady (Sat Apr 27, 2019 1:46 am)

User avatar
memeka
Posts: 4327
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: 15 times
Contact:

Re: Kernel 5.0 development thread

Unread post by memeka » Sat Apr 27, 2019 2:11 am

@escalade

DrmModeModeinfo has a vrefresh property.
Google drm modesetting for examples (eg check the code in https://github.com/grate-driver/libdrm/ ... modetest.c)

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

Re: Kernel 5.0 development thread

Unread post by escalade » Sat Apr 27, 2019 1:41 pm

I do have modetest compiled and running. Running this command makes my screen flicker but doesn't actually change the mode:

Code: Select all

# modetest -M exynos -s 35:720x576-50Hz@XR24
setting mode 720x576-50Hz@XR24 on connectors 35, crtc 33
I don't know, could be my LCD that doesn't support 50Hz for all I know. It's an LCD that came with my bartop from China. Maybe I'll test on HDMI to my OLED later.
Maintainer of RetroELEC (XU4 support!)

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

Re: Kernel 5.0 development thread

Unread post by escalade » Sun Apr 28, 2019 8:52 pm

Had issues with my external USB 3.0 SSD losing connectivity (kernel log: http://ix.io/1Hs7) during heavy usage. Turns out it's a known issue with certain external drives not handling UAS commands in recent kernels. It can be solved by modifying the kernel command line like this: https://unix.stackexchange.com/a/359142
Maintainer of RetroELEC (XU4 support!)

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

Re: Kernel 5.0 development thread

Unread post by MastaG » Thu May 09, 2019 9:19 pm

5.2 has the Panfrost DRM merged: https://www.phoronix.com/scan.php?page= ... DRM-Update
Also a nice video from Collabora showing of Panfrost running on a rockchip Pi 4: https://www.youtube.com/watch?v=6BwR6KUDRkU
These users thanked the author MastaG for the post:
skeetre (Thu May 09, 2019 9:37 pm)

skeetre
Posts: 66
Joined: Mon Apr 29, 2019 11:27 am
languages_spoken: english
ODROIDs: Odroid-N2
Location: FL, USA
Has thanked: 15 times
Been thanked: 11 times
Contact:

Re: Kernel 5.0 development thread

Unread post by skeetre » Thu May 09, 2019 9:37 pm

MastaG wrote:
Thu May 09, 2019 9:19 pm
5.2 has the Panfrost DRM merged: https://www.phoronix.com/scan.php?page= ... DRM-Update
Also a nice video from Collabora showing of Panfrost running on a rockchip Pi 4: https://www.youtube.com/watch?v=6BwR6KUDRkU
Beat me to it. I just read the same article and came here to post it. Glad I did a search first. Hope some folks can test the 5.2 kernel soon and see how well this performs on the N2.
Friends don't let friends use Spectre/Meltdown/Zombieload mitigations.

elatllat
Posts: 1495
Joined: Tue Sep 01, 2015 8:54 am
languages_spoken: english
ODROIDs: XU4, N1, N2
Has thanked: 21 times
Been thanked: 45 times
Contact:

Re: Kernel 5.0 development thread

Unread post by elatllat » Sun May 12, 2019 6:25 am


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

Re: Kernel 5.0 development thread

Unread post by escalade » Fri May 24, 2019 11:31 am

@memeca

Any update on 5.1/5.2 for the XU4? I suppose with panfrost we can use upstream kernel, or is there other patches than GPU needed?
Maintainer of RetroELEC (XU4 support!)

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

Re: Kernel 5.0 development thread

Unread post by odroid » Fri May 24, 2019 12:09 pm

We are waiting for the next LTS Kernel for easier maintenance.
Some people predict 5.4 will be a LTS.
Once any 5.x LTS Kernel appears, we will officially support it for XU4 series.

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

Re: Kernel 5.0 development thread

Unread post by MastaG » Sat May 25, 2019 7:18 am

Thanks Odroid!
By the time the panfrost DRM will be more mature as well :)
Already enjoying memeka's 5.0 on my Xu3 and Xu4.

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

Re: Kernel 5.0 development thread

Unread post by escalade » Tue Jun 18, 2019 11:42 pm

@memeka

Although 5.0.x is EOL'ed, any chance of you updating to the latest 5.0.21 while we wait for a new LTS release? There's been some important bug fixes.
Maintainer of RetroELEC (XU4 support!)

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

Re: Kernel 5.0 development thread

Unread post by MastaG » Wed Jun 19, 2019 5:56 pm

Furthermore Panfrost seems to be progressing very well: https://www.phoronix.com/scan.php?page= ... D-Progress
Anyone who tried the latest mesa snapshot?

User avatar
memeka
Posts: 4327
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: 15 times
Contact:

Re: Kernel 5.0 development thread

Unread post by memeka » Mon Jun 24, 2019 11:21 am

Been busy lately (also on holiday), but I will be back for the next LTS kernel.
5.0.x is as easy as rebasing on top of my repo.

Speederer
Posts: 2
Joined: Tue Jun 25, 2019 3:42 pm
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: Kernel 5.0 development thread

Unread post by Speederer » Tue Jun 25, 2019 3:44 pm

odroid wrote:
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
I tried to restore the original kernel with the above command, but it failed.

Code: Select all

root@odroid:~# apt install --reinstall linux-odroid-5422
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reinstallation of linux-odroid-5422 is not possible, it cannot be downloaded.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Is there any other option?

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

Re: Kernel 5.0 development thread

Unread post by odroid » Tue Jun 25, 2019 4:00 pm

@Speederer,
Do you use our official Ubuntu 18.04 image?

Speederer
Posts: 2
Joined: Tue Jun 25, 2019 3:42 pm
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: Kernel 5.0 development thread

Unread post by Speederer » Tue Jun 25, 2019 5:58 pm

The basic image what I uploaded to the eMMC is one of these images: (I don't remember which one)
ubuntu-18.04.1-4.14-mate-odroid-xu4-20181203.img
ubuntu-18.04.1-4.14-minimal-odroid-xu4-20181203.img

But I updated to the latest ubuntu release 19.04.

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

Re: Kernel 5.0 development thread

Unread post by odroid » Tue Jun 25, 2019 6:01 pm

The kernel role back doesn't work if you updated to 19.04 due to complicated dependencies.
So you have to reflash the OS image again. Sorry about that.

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

Re: Kernel 5.0 development thread

Unread post by MastaG » Fri Jun 28, 2019 5:40 pm

And Panfrost finished their goal of running Gnome: https://www.phoronix.com/scan.php?page= ... n-Panfrost
Also OpenGL ES 2.0 support is nearby as well :)

The XU3/4 have a really bright future now!
I hope we can damn the arm blobs to hell soon!
https://www.collabora.com/news-and-blog ... -panfrost/

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

Re: Kernel 5.0 development thread

Unread post by odroid » Fri Jun 28, 2019 5:47 pm

Looks very promising but she ran the Gnome3 on the Wayland instead of the Xorg. ;)

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

Re: Kernel 5.0 development thread

Unread post by MastaG » Fri Jun 28, 2019 6:11 pm

Any reason why you would prefer X11 over Wayland then?
Afaik Gnome on Wayland runs fully accelerated using EGL/GLES and is able to run X11 applications accelerated as well using Xwayland.

I'm currently running Gnome 3.32 on Wayland using the ARM blobs on Fedora 30 (see my previous screenshot).
I've also built Kodi 18.2 (with Netflix support) , RetroArch, FFmpeg, TVHeadend etc.. and enabled SElinux support.

I wanted to release it for the mass as a nice Fedora-all-purpose image for the end-users so they can either run it as headless server, boot into RetroArch or Kodi (GBM) or just launch the Gnome desktop (and be able to run RetroArch/Kodi within the wayland session).
But ARM's mali blobs are so outdated (requiring stubs) and bugged that I can't even run an accelerated version of Firefox/Chromium without crashes/segfaults.

See: https://bugs.chromium.org/p/chromium/is ... ?id=949096

So I decided to wait for Panfrost to mature a bit and then release a Fedora 31 image instead with a proper accelerated Chrome browser :)

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

Re: Kernel 5.0 development thread

Unread post by odroid » Fri Jun 28, 2019 7:20 pm

Due to the missing/wrong features in the Mali blob from ARM, I have had a big concern about the Wayland.
If Panfrost resolves the issues and Xwayland also works fine, I can live with Wayland. ;)

User avatar
meveric
Posts: 10450
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2
Has thanked: 16 times
Been thanked: 127 times
Contact:

Re: Kernel 5.0 development thread

Unread post by meveric » Fri Jun 28, 2019 8:09 pm

odroid wrote:
Fri Jun 28, 2019 7:20 pm
If Panfrost resolves the issues and Xwayland also works fine, I can live with Wayland. ;)
I agree with that statement :P
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

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

Re: Kernel 5.0 development thread

Unread post by MastaG » Fri Jun 28, 2019 8:37 pm

I think this will happen over time.. since the driver lives within mesa now.. meaning no more outdated EGL/libgbm libraries etc..
But lets wait and see after the summer :)

shell
Posts: 1
Joined: Wed Jul 03, 2019 8:31 pm
languages_spoken: english
ODROIDs: XU-4
Has thanked: 0
Been thanked: 0
Contact:

Re: Kernel 5.0 development thread

Unread post by shell » Wed Jul 03, 2019 11:11 pm

Hello. Sorry for writing in wrong theme... But I not want to create a new thread for a one small question.
I am about to install a fresh kernel from ubuntu repository 5.0.0-20-generic package. All images listed in /boot/ seems fine and links to a new kernel:

Code: Select all

root@home:/boot# ls -al
total 158692
drwxr-xr-x  3 root root     4096 Jul  3 14:22 .
drwxr-xr-x 22 root root     4096 Jun 27 00:28 ..
-rw-------  1 root root  4037590 Jun 26 10:11 System.map-5.0.0-20-generic
-rw-r--r--  1 root root   241868 Jun 26 10:11 config-5.0.0-20-generic
lrwxrwxrwx  1 root root       46 Jul  3 14:22 dtb -> dtbs/5.0.0-20-generic/exynos5422-odroidxu4.dtb
lrwxrwxrwx  1 root root       46 Jul  3 14:22 dtb-5.0.0-20-generic -> dtbs/5.0.0-20-generic/exynos5422-odroidxu4.dtb
drwxr-xr-x  3 root root     4096 Jul  3 14:01 dtbs
-rw-r--r--  1 root root    56387 Jun 19 23:31 exynos5422-odroidhc1.dtb
-rw-r--r--  1 root root    62462 Jun 19 23:31 exynos5422-odroidxu3-lite.dtb
-rw-r--r--  1 root root    63517 Jun 19 23:31 exynos5422-odroidxu3.dtb
-rw-r--r--  1 root root    63628 Jun 19 23:31 exynos5422-odroidxu4-kvm.dtb
-rw-r--r--  1 root root    63484 Jun 19 23:31 exynos5422-odroidxu4.dtb
lrwxrwxrwx  1 root root       27 Jul  3 13:57 initrd.img -> initrd.img-5.0.0-20-generic
-rw-r--r--  1 root root  3500118 May 16  2017 initrd.img-3.10.96+
-rw-r--r--  1 root root  8576424 Jun 17 10:20 initrd.img-4.14.120-160
-rw-r--r--  1 root root  8576572 Jun 27 00:38 initrd.img-4.14.127-164
-rw-r--r--  1 root root  8576510 Jun 27 00:38 initrd.img-4.14.127-164.old-dkms
-rw-r--r--  1 root root  5226970 May 22 14:19 initrd.img-4.14.43-138
-rw-r--r--  1 root root  5226979 May 22 14:19 initrd.img-4.14.85-152
-rw-r--r--  1 root root 34733542 Jul  3 14:22 initrd.img-5.0.0-20-generic
lrwxrwxrwx  1 root root       27 Jul  3 13:57 initrd.img.old -> initrd.img-5.0.0-20-generic
-rw-r--r--  1 root root  4124409 Jul  3  2016 uInitrd-3.10.96-101
-rw-r--r--  1 root root  4128799 Jul  7  2016 uInitrd-3.10.96-113
-rw-r--r--  1 root root  8188402 May 22 14:19 uInitrd-4.14.120-160
-rw-r--r--  1 root root  8576654 Jun 21 12:43 uInitrd-4.14.127-164
-rw-r--r--  1 root root  8187841 May 29  2018 uInitrd-4.14.43-138
-rw-r--r--  1 root root  6083682 Dec 14  2017 uInitrd-4.14.5-92
-rw-r--r--  1 root root  8194914 Dec  3  2018 uInitrd-4.14.85-152
-rw-r--r--  1 root root  5306244 May 11  2017 uInitrd-4.9.27-35
-rw-r--r--  1 root root  5309215 May 16  2017 uInitrd-4.9.28-38
-rw-r--r--  1 root root  5530194 Aug 21  2017 uInitrd-4.9.44-54
-rw-r--r--  1 root root  5577959 Aug 24  2017 uInitrd-4.9.44-56
lrwxrwxrwx  1 root root       24 Jul  3 13:57 vmlinuz -> vmlinuz-5.0.0-20-generic
-rw-------  1 root root  8520192 Jun 26 10:11 vmlinuz-5.0.0-20-generic
lrwxrwxrwx  1 root root       24 Jul  3 13:57 vmlinuz.old -> vmlinuz-5.0.0-20-generic
-rwxr-xr-x  1 root root  5687896 Jun 19 23:31 zImage
But after reboot this Odroid-XU4 device - uname -a shows an old kernel version: 4.14.127-164
Can someone told me what is my problem? And can I somehow install a latest stable version of 5.0 kernel? Without building in manually?

Code: Select all

root@home:/boot# lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.2 LTS
Release:	18.04
Codename:	bionic

User avatar
memeka
Posts: 4327
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: 15 times
Contact:

Re: Kernel 5.0 development thread

Unread post by memeka » Thu Jul 04, 2019 7:59 am

Ubuntu uses /media/boot, not /boot.

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

Re: Kernel 5.0 development thread

Unread post by escalade » Mon Jul 22, 2019 8:55 pm

I've successfully updated to 5.0.21 by doing a diff from vanilla 5.0.3 then reapplied on 5.0.21. Here's the diff in case anyone is interested:

https://github.com/escalade/RetroELEC/r ... 0.21.patch

Managed to get 5.1.18 up and running with a few modifications as well, unfortunately the Mali drivers failed to work with it. I suppose the kernel blob might be incompatible with 5.1, but if anyone has any ideas let me know.

Code: Select all

Jul 21 11:33:25 XU4 emulationstation[22154]: ERROR: The DDK is not compatible with any of the Mali GPUs on the system.
Jul 21 11:33:25 XU4 emulationstation[22154]: The DDK was built for 0x620 r0p1 status range [0..15], but none of the GPUs matched:
Jul 21 11:33:25 XU4 emulationstation[22154]: lvl0:         Error creating SDL window!
Jul 21 11:33:25 XU4 emulationstation[22154]:         Could not initialize EGL
Jul 21 11:33:25 XU4 emulationstation[22154]: lvl0:         Renderer failed to initialize!
Jul 21 11:33:25 XU4 emulationstation[22154]: lvl0:         Window failed to initialize!
Maintainer of RetroELEC (XU4 support!)

User avatar
memeka
Posts: 4327
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: 15 times
Contact:

Re: Kernel 5.0 development thread

Unread post by memeka » Mon Jul 22, 2019 9:41 pm

Let's wait for the next LTS kernel, it will start development in a coupe of months I think.

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 2 guests