[OS] HIPSTER STRETCHY PANTS (XU4 debian stretch gnome3-wl)

Moderators: odroid, mdrjr

[OS] HIPSTER STRETCHY PANTS (XU4 debian stretch gnome3-wl)

Unread postby memeka » Sat Mar 04, 2017 3:03 pm

After a lot of teasers, I have decided to share my Gnome3 Wayland XU4 image.

link: http://oph.mdrjr.net/memeka/images/hips ... 032017.img
md5: 041ea0447ed1fd97da125f43960aa8fb
login: odroid (Odroid User)
password: odroid
root password: odroid


There is a lot of work I have put in this image for many years:

* starting with installing gnome3 on the Odroid U3 in 2014: https://www.youtube.com/watch?v=COyZJLHMGDs
* trying gnome3 on the XU4 in 2015: https://www.youtube.com/watch?v=fvhu_OkGKtA
* realising gnome3 can work well only with wayland, and playing with wayland on the original odroid XU in 2014: https://www.youtube.com/watch?v=DRBzOpxEaiU and 2015: https://www.youtube.com/watch?v=5Ha6vFol8ck
* finally getting wayland working on the odroid XU3 at the beginning of 2016 using the TIZEN drivers and the 4.0 kernel: https://www.youtube.com/watch?v=Eza6nIgyZA0
* developing first Mali integration for the 4.x mainline kernel later on in 2016 (kernel 4.7): https://www.youtube.com/watch?v=o0aFehweAyk
* getting gnome3 working after a lot of patching 6 months ago (gnome 3.20 in ubuntu): https://www.youtube.com/watch?v=RbMLkXbB3Gs


This is not the final release I wanted, but more of a preview of Gnome on Wayland. Here is what you're getting:

* kernel 4.9.12 custom - mostly similar to the HK 4.9 kernel, with the main difference that it has my own Mali integration that uses devfreq, with a special governor for mali. Currently it's set at boot to "performance" and uses Mali at 600Mhz, but it can be changed to "simple_ondemand" where it lower the Mali clock to 177Mhz. The HK kernel should work, but I find the GPU performance better with my integration.
* debian 7 stretch rootfs (testing but all packages are frozen)
* Wayland Mali userspace drivers from ARM r12p0
* gnome 3.22 and several apps installed
* BE AWARE THE IMAGE IS SET TO BOOT FROM SD-CARD! if you want emmc, you need to replace /dev/mmcblk1 with /dev/mmcblk0 in /boot/boot.ini and /etc/fstab. Also the monitor is set to DVI mode in boot.init so there's no HDMI audio device -- edit boot.ini to enable it!

What you should be looking for (good and bad):

* gdm3 working. should start automatically on boot
* the image boots in graphical mode mode, but you can run sudo systemctl set-default multi-user.target and at next boot it goes to text-mode -- where you can start gdm3 with sudo service gdm3 start
* from gdm3 login, you can choose Gnome on Wayland session or Wayland session (from the little gear button)
* most gnome3 apps working, with a few caveats: gnome-maps crashes the session (gnome-shell) on exit; gnome-videos (totem) sometimes crashes gnome-shell on exit
* gnome-videos (totem) has full video acceleration: can play video with no issues (using egl and mfc accelerations). like i said above, due to some gnome-shell issue (it works well in weston) sometimes it crashes the session when you exit it.
* gnome videos can play youtube videos accelerated (egl and mfc): https://www.youtube.com/watch?v=IGk9V5tBOCQ
* mpv can play videos very well using egl without crashing using ffmpeg. However, since I did not include my custom mfc-enabled ffmpeg, mpv uses software decoding. You can try applying the patches to ffmpeg and get mpv fully egl and mfc accelerated: https://www.youtube.com/watch?v=Ie7BR3WgXWQ&t=9s
* mpv can play youtube too: https://www.youtube.com/watch?v=ydWF7ADj6jU
* mfc-accelerated decoding on gstreamer (using the default repository package, not my custom encoding-enabled gst) that can use egl accelerated clutterautovideosink and glimagesink (gst-plugins-bad required a simple patch to enable gles2)
* browser: epiphany -- can do egl & gstreamer decoding !!! -- BUT due to a bug in the mali drivers, tabs that use egl (or gstreamer, since it calls for egl) will not be rendered! I have complained about this to ARM, but of course they have not replied. Apparently, there's an internal patch that fixes this bug, which will allow FULL browser acceleration for webgl and video decoding!!! - but these drivers are not published yet. See https://community.arm.com/graphics/f/di ... -in-webkit and https://community.arm.com/graphics/f/di ... ce-drivers
* There are some GTK3 firefox builds that might work well, but also I don't think they have EGL yet.
* XWayland works well, but without EGL. This means you can run chromium and should work well, but without EGL.
* LibreOffice should work well since it's using GTK3: https://www.youtube.com/watch?v=4WT1i9NU7Tk

Well, this turned out to be a long summary. Please let me know your findings. And please try and debug issues and contribute.
Cheers and thanks to all that helped and made this possible!

PS: kodi and retroarch should work on this image if they are configured for the wayland backend (even if the latest kodi doesn't support officially wayland anymore, there are unofficial repositories that still maintain wayland compatibility). You've already seen kodi on wayland working on my image: https://www.youtube.com/watch?v=o0aFehweAyk

PSS: if you're wondering about the naming:
* hipster - well, according to @mdrjr, wayland is for hipsters :)
* stretchy - based on debian stretch
* pants - first release, getting you all with your pants down :P
Last edited by memeka on Mon Mar 06, 2017 1:54 pm, edited 6 times in total.
User avatar
memeka
 
Posts: 3338
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: [OS] HIPSTER STRETCHY PANTS (XU4 debian stretch gnome3-w

Unread postby memeka » Sat Mar 04, 2017 3:06 pm

PATCHES:

Gnome3/Mutter
==============

Gnome3 Wayland support has improved A LOT and continues to improve each version. For example, in Gnome 3.18, I had to patch mutter, clutter, and cogl. Now, in 3.22, there is only mutter to apply a few patches. In 3.24, I've seen the patching is way simpler - just replace one string for another (the string checks an OpenGL-ES extension), and that's it!
Here are the patches for 3.22:
1: use software cursor (else the mouse cursor will not be rendered)
Code: Select all
commit d2a6c6a55ba3d7aaf88a494de3e4e84a08325cac
Author: memeka <mihailescu2m@gmail.com>
Date:   Tue Nov 1 09:39:01 2016 +1030

    exynos: use software cursor

    Signed-off-by: memeka <mihailescu2m@gmail.com>

diff --git a/src/backends/native/meta-cursor-renderer-native.c b/src/backends/native/meta-cursor-renderer-native.c
index f4ea8d2..aad315c 100644
--- a/src/backends/native/meta-cursor-renderer-native.c
+++ b/src/backends/native/meta-cursor-renderer-native.c
@@ -329,7 +329,9 @@ should_have_hw_cursor (MetaCursorRenderer *renderer,
   if (!has_valid_cursor_sprite_gbm_bo (cursor_sprite))
     return FALSE;

-  return TRUE;
+  // exynos hack: use software cursor
+  return FALSE;
+  // return TRUE;
 }

 static gboolean


2. enable GLES2 driver as default (or else it will try OpenGL and fail)
Code: Select all
commit 220e562b0f92d457c2b06a5d04ace86219fb7dfa
Author: memeka <mihailescu2m@gmail.com>
Date:   Tue Nov 1 10:03:18 2016 +1030

    mali on wayland: enable gles2 driver as default

    Signed-off-by: memeka <mihailescu2m@gmail.com>

diff --git a/debian/rules b/debian/rules
index 6aba938..92611a8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,7 +13,14 @@ override_dh_autoreconf:
 ifeq ($(DEB_HOST_ARCH_OS),linux)
 CONFFLAGS = \
        --enable-wayland \
-       --enable-native-backend
+       --enable-native-backend \
+       --enable-kms-egl-platform \
+       --enable-wayland-egl-platform \
+       --enable-wayland-egl-server \
+       --with-default-driver=gles2 \
+       --enable-cogl-gles2 \
+       --enable-gles2 \
+       --with-gles2-libname=libGLESv2.so.2
 else
 CONFFLAGS += \
        --disable-wayland-egl-platform \

This patch is for the debian packaging; for other systems you need to adapt it and add the configure flags from above.

3. use eglGetPlatformDisplayEXT instead of eglGetDisplay to initialize EGL (because eglGetDisplay fails)
Code: Select all
commit 250520ace3c953667e8e9d10b2568be851797815
Author: memeka <mihailescu2m@gmail.com>
Date:   Mon Feb 27 12:45:57 2017 +1030

    mali on wayland: try eglGetPlatformDisplayEXT before eglGetDisplay

    Signed-off-by: memeka <mihailescu2m@gmail.com>

diff --git a/src/backends/native/meta-renderer-native.c b/src/backends/native/meta-renderer-native.c
index 103e6ad..ae7f247 100644
--- a/src/backends/native/meta-renderer-native.c
+++ b/src/backends/native/meta-renderer-native.c
@@ -235,31 +235,15 @@ static EGLDisplay
 meta_egl_get_display (void *native)
 {
   EGLDisplay dpy = NULL;
-  const char *client_exts = eglQueryString (NULL, EGL_EXTENSIONS);

-  if (g_strstr_len (client_exts, -1, "EGL_KHR_platform_base"))
-    {
-      PFNEGLGETPLATFORMDISPLAYEXTPROC get_platform_display =
-       (void *) eglGetProcAddress ("eglGetPlatformDisplay");
-
-      if (get_platform_display)
-       dpy = get_platform_display (EGL_PLATFORM_GBM_MESA, native, NULL);
-
-      if (dpy)
-       return dpy;
-    }
-
-  if (g_strstr_len (client_exts, -1, "EGL_EXT_platform_base"))
-    {
-      PFNEGLGETPLATFORMDISPLAYEXTPROC get_platform_display =
+  PFNEGLGETPLATFORMDISPLAYEXTPROC get_platform_display =
        (void *) eglGetProcAddress ("eglGetPlatformDisplayEXT");

-      if (get_platform_display)
-       dpy = get_platform_display (EGL_PLATFORM_GBM_MESA, native, NULL);
+  if (get_platform_display)
+       dpy = get_platform_display (EGL_PLATFORM_GBM_KHR, native, NULL);

-      if (dpy)
+  if (dpy)
        return dpy;
-    }

   return eglGetDisplay ((EGLNativeDisplayType) native);
 }


That's it! Pretty easy :)

Linux kernel
===========

Like I said, everything should be ok (albeit maybe slower EGL) with the HK kernel. But for those that want to keep track of my own kernel, you can find it at https://github.com/mihailescu2m/linux/t ... dxu4-4.9.y.
Please not I am always rebasing the patches, so you'll need to force updates :)
My config: https://transfer.sh/t5zqE/memeka.config
Last edited by memeka on Mon Mar 20, 2017 10:48 am, edited 1 time in total.
User avatar
memeka
 
Posts: 3338
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: [OS] HIPSTER STRETCHY PANTS (XU4 debian stretch gnome3-w

Unread postby mad_ady » Sun Mar 05, 2017 1:04 am

Yes, excellent, but is it gluten-free? [emoji14]
Lots of people were waiting for this :)
User avatar
mad_ady
 
Posts: 1427
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU3, C1+, C2

Re: [OS] HIPSTER STRETCHY PANTS (XU4 debian stretch gnome3-w

Unread postby memeka » Sun Mar 05, 2017 4:55 am

All uploaded, enjoy :)
User avatar
memeka
 
Posts: 3338
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: [OS] HIPSTER STRETCHY PANTS (XU4 debian stretch gnome3-w

Unread postby fleixi » Sun Mar 05, 2017 11:58 pm

Nice. It seems to be that im a hipster :-)

I have tried to get wayland working for years too but without much sucess, nice to see its working.

How about kodi. Do i need to compile for my self and if yes could you post the link to the source with wayland and mfc buildin? I have only found the source without mfc patch

do have kodi 17 have the same problems on wayland than on x11
fleixi
 
Posts: 110
Joined: Sun Apr 27, 2014 3:48 am
languages_spoken: english, german
ODROIDs: XU

Re: [OS] HIPSTER STRETCHY PANTS (XU4 debian stretch gnome3-w

Unread postby memeka » Mon Mar 06, 2017 3:14 am

fleixi wrote:Nice. It seems to be that im a hipster :-)

I have tried to get wayland working for years too but without much sucess, nice to see its working.

How about kodi. Do i need to compile for my self and if yes could you post the link to the source with wayland and mfc buildin? I have only found the source without mfc patch

do have kodi 17 have the same problems on wayland than on x11


i haven't tried kodi yet (well, i tried kodi 16 6 months ago, but don't have that source).
i would make a diff between the owersun source and mainline kodi (to get the mfc patch), apply that patch to the source you found, and compile :)
User avatar
memeka
 
Posts: 3338
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: [OS] HIPSTER STRETCHY PANTS (XU4 debian stretch gnome3-w

Unread postby memeka » Mon Mar 06, 2017 12:46 pm

totem and gnome-maps crashing are because of issues in the mali driver - probably, the driver frees an object too early:

Code: Select all
Core was generated by `totem bbb_720p.mov'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  get_next_argument (signature=0x2c <error: Cannot access memory at address 0x2c>, details=details@entry=0xbee39a9c) at ../src/connection.c:430
430             for(; *signature; ++signature) {
[Current thread is 1 (Thread 0xb213cd70 (LWP 12827))]
(gdb) bt
#0  get_next_argument (signature=0x2c <error: Cannot access memory at address 0x2c>, details=details@entry=0xbee39a9c) at ../src/connection.c:430
#1  0xb4ce69ba in wl_argument_from_va_list (signature=<optimized out>, args=args@entry=0xbee39acc, count=count@entry=20, ap=..., ap@entry=...) at ../src/connection.c:493
#2  0xb4ce5598 in wl_proxy_marshal (proxy=0x7f6bedb0, opcode=1) at ../src/wayland-client.c:692
#3  0xb4f8685e in window_surface_delete () from /usr/lib/arm-linux-gnueabihf/egl-current/libwayland-egl.so.1
#4  0xb4f7e1e4 in eglp_window_surface_specific_deinitialization () from /usr/lib/arm-linux-gnueabihf/egl-current/libwayland-egl.so.1
#5  0xb4f7cd14 in eglp_delete_surface () from /usr/lib/arm-linux-gnueabihf/egl-current/libwayland-egl.so.1
#6  0xb4f7ce74 in eglp_destroy_all_non_current_surfaces () from /usr/lib/arm-linux-gnueabihf/egl-current/libwayland-egl.so.1
#7  0xb4f7a71a in eglp_try_display_finish_terminating () from /usr/lib/arm-linux-gnueabihf/egl-current/libwayland-egl.so.1
#8  0xb4f7b1e2 in eglTerminate () from /usr/lib/arm-linux-gnueabihf/egl-current/libwayland-egl.so.1
#9  0xb4f7b22c in eglp_unload_callback () from /usr/lib/arm-linux-gnueabihf/egl-current/libwayland-egl.so.1
#10 0xb4decc24 in osup_term_unload_hooks () from /usr/lib/arm-linux-gnueabihf/egl-current/libwayland-egl.so.1
#11 0xb4dde4ca in osup_c_unload_hook () from /usr/lib/arm-linux-gnueabihf/egl-current/libwayland-egl.so.1
#12 0xb6fd3f42 in ?? () from /lib/ld-linux-armhf.so.3
Backtrace stopped: previous frame identical to this frame (corrupt stack?)


The window_surface_delete method at #3 sends an invalid proxy object (proxy=0x7f6bedb0) to the wayland library:
Code: Select all
(gdb) print (struct wl_proxy) *0x7f6bedb0
$3 = {object = {interface = 0x7fe1bfc8, implementation = 0x7fb51c30, id = 44}, display = 0x7f660ec0, queue = 0x7f660f2c, flags = 2, refcount = 1, user_data = 0x0, dispatcher = 0x0, version = 3}

(gdb) print (struct wl_interface) *0x7fe1bfc8 # => this is proxy->interface - you can see the name is garbage already
$4 = {name = 0xa93e931d "iXh\377\367าบ\022KP!0\265{D\021L\205\260\025F\034Y#h\003\223\377\367\f\354\016IjF", version = 49, method_count = -2147421248, methods = 0x7f6beda8, event_count = 0, events = 0x0}

(gdb) print (struct wl_message) *0x7f6beda8 # => this is proxy->interface->methods => you can see the signature field cannot be accessed (0x31 is invalid) leading to the segmentation fault
$5 = {name = 0x0, signature = 0x31 <error: Cannot access memory at address 0x31>, types = 0x7fe1bfc8}


I've reported this to ARM and let's hope it will be fixed in the next driver release. https://community.arm.com/graphics/f/di ... segm-fault
User avatar
memeka
 
Posts: 3338
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: [OS] HIPSTER STRETCHY PANTS (XU4 debian stretch gnome3-w

Unread postby rooted » Mon Mar 06, 2017 1:52 pm

Subscribed
User avatar
rooted
 
Posts: 3279
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1
C1+
C2
XU3 Lite
XU4
VU7+
HiFi Shield 2
Smart Power (original)

Re: [OS] HIPSTER STRETCHY PANTS (XU4 debian stretch gnome3-w

Unread postby memeka » Wed Mar 08, 2017 8:35 pm

after installing the image, you should resize your partition to maximum space available:

Code: Select all
sudo fdisk /dev/mmcblk1
p
(see starting block of p2, e.g. 266240)
d (delete)
2 (partition 2)
n (new)
p (primary)
2 (partition 2)
266240 (starting block)
<enter> (it will take ending block as end partition, so you have entire space)
w (write partitions)


exit fdisk, reboot, then run:

Code: Select all
sudo resize2fs /dev/mmcblk1p2


that's it, check out space with:

Code: Select all
df -h
User avatar
memeka
 
Posts: 3338
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: [OS] HIPSTER STRETCHY PANTS (XU4 debian stretch gnome3-w

Unread postby AreaScout » Thu Mar 09, 2017 2:00 am

So for XU3 i only have to replace the kernel or is there some other special thing ? Maybe you can provide your custom kernal sources or binary for XU3 ?

RG
User avatar
AreaScout
 
Posts: 369
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: english, german
ODROIDs: X2, U3, XU3, C2

Re: [OS] HIPSTER STRETCHY PANTS (XU4 debian stretch gnome3-w

Unread postby memeka » Thu Mar 09, 2017 2:26 am

Although I did not test, the image should work on XU3 too.

The kernel is at https://github.com/mihailescu2m/linux and the one used in the image is at commit https://github.com/mihailescu2m/linux/t ... aee8bb8e7c

I will publish the config i used, since it's not in the repository.

If you have a XU3 to test, let me know if the kernel works and if drivers are missing; I can try and make some config changes in the future to include all XU3 features.
User avatar
memeka
 
Posts: 3338
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: [OS] HIPSTER STRETCHY PANTS (XU4 debian stretch gnome3-w

Unread postby blu » Thu Mar 09, 2017 9:01 am

Hi memeka,

I'm the guy who was nagging you to share your work @ cnx ; )

First of all, big thanks for actually sharing it - you've made a difference! Just to give you an idea:

On r14 @ x11 (stock XU4 xenial) (vsync on):
Dancing pirate @ 640x640 8x msaa: 51 fps
Material sphere @ 640x640 8x msaa: 55 fps

..where one big CPU core constantly stays at 85-100% load.

On your r12 @ gnome3-wayland (vsync on):
Dancing pirate @ 640x640 8x msaa : 60fps
Material sphere @ 640x640 8x msaa : 60fps

..where the above are running in parallel! With no CPU cores stuck at 100%!
https://vimeo.com/207552599

It's good to be a hipster! Seriously, though, if this is not a material proof why Wayland is much needed for this platform, let me add a comparison to another similar platform running unity8-mir (MT8163A):

Dancing pirate @ 1920x1200 : 38 fps
Material sphere @ 1920x1200 : 27 fps

That at 1/3 the ALU and 1/2 the RAM BW of the XU4. All thanks to Mir.
Last edited by blu on Fri Mar 10, 2017 5:02 am, edited 5 times in total.
blu
 
Posts: 10
Joined: Wed Mar 08, 2017 11:30 pm
languages_spoken: english
ODROIDs: XU4 eMMC

Re: [OS] HIPSTER STRETCHY PANTS (XU4 debian stretch gnome3-w

Unread postby rooted » Thu Mar 09, 2017 9:06 am

Your video link is bad.
User avatar
rooted
 
Posts: 3279
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1
C1+
C2
XU3 Lite
XU4
VU7+
HiFi Shield 2
Smart Power (original)

Re: [OS] HIPSTER STRETCHY PANTS (XU4 debian stretch gnome3-w

Unread postby blu » Thu Mar 09, 2017 9:53 am

To put things into perspective (and show that Midgard drivers r14 are not the bottleneck), here are the same tests on x11 again, but this time only every 4th frame is shown on screen -- the rest are drawn to completion and thrown away.

r14 @ x11, displayed 1 frame out of 4 (vsync on):
Dancing pirate @ 640x640 8x msaa : 57 fps
Material sphere @ 640x640 8x msaa : 230 fps

Performance of the second test jumps several-fold, as it's really not CPU-dependent in any form, whereas the first increases some, but still the blitting of every 4th frame proves heavier on the fps than wayland's CPU-free surface presentation pipeline.

In conclusion, T628 mp6 on wayland behaves like an entirely different class of GPU compared to the x11 presentation stack.

rooted wrote:Your video link is bad.

Sorry about that. Fixed.
Last edited by blu on Fri Mar 10, 2017 6:42 pm, edited 7 times in total.
blu
 
Posts: 10
Joined: Wed Mar 08, 2017 11:30 pm
languages_spoken: english
ODROIDs: XU4 eMMC

Re: [OS] HIPSTER STRETCHY PANTS (XU4 debian stretch gnome3-w

Unread postby memeka » Thu Mar 09, 2017 1:14 pm

graphics performance is amazing in wayland indeed.
with a few issues to solve, gnome can become extremely usable.
there is elementary os that might be ported, since it's a fork of gnome: https://elementary.io
and also there is enlightenment, which i tried 6 months ago and is faster than gnome - https://www.youtube.com/watch?v=hct0BieTNrM
User avatar
memeka
 
Posts: 3338
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: [OS] HIPSTER STRETCHY PANTS (XU4 debian stretch gnome3-w

Unread postby odroid » Fri Mar 10, 2017 5:59 pm

Yes. I've played with this nice image for several hours.
It is quite impressive and snappy.
I didn't know I can run normal X11 application on gnome3-wayland.
I installed LibreOffice and Chromium 56 from the stock Stretchy ppa and they worked well.
It gave me a very nice user experience. :D

But sometimes it crashed the system and jumped to the login screen.
In worst case(when I kept playing youtube on Chromium) it rebooted due to the wrong DVFS/TMU in Kernel 4.9.
We will fix it soon.
User avatar
odroid
Site Admin
 
Posts: 21746
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: [OS] HIPSTER STRETCHY PANTS (XU4 debian stretch gnome3-w

Unread postby memeka » Fri Mar 10, 2017 7:12 pm

The crashes are issues with the Wayland driver - I've already reported to arm and they are looking into it.
The kernel in the image is different from the HK one, I did not have all thermal patches applied from hk repository - you might see different behavior with your kernel.
User avatar
memeka
 
Posts: 3338
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: [OS] HIPSTER STRETCHY PANTS (XU4 debian stretch gnome3-w

Unread postby fleixi » Sun Mar 12, 2017 6:29 am

Im trying to mount a sdcard with your image on my odroid-xu with an debian jessie running and get this errors:

mount /dev/sdc2 /mnt
mount: wrong fs type, bad option, bad superblock on /dev/sdc2,
missing codepage or helper program, or other error

In some cases useful info is found in syslog - try
dmesg | tail or so.

and dmesg:

[ 2276.489332] [c7] JBD2: Unrecognised features on journal
[ 2276.501409] [c7] EXT4-fs (sdc2): error loading journal

if i trying mount it on an other device with a ubuntu 16.10 i have no problems. Any idea?
fleixi
 
Posts: 110
Joined: Sun Apr 27, 2014 3:48 am
languages_spoken: english, german
ODROIDs: XU

Re: [OS] HIPSTER STRETCHY PANTS (XU4 debian stretch gnome3-w

Unread postby memeka » Sun Mar 12, 2017 6:58 am

fleixi wrote:Im trying to mount a sdcard with your image on my odroid-xu with an debian jessie running and get this errors:

mount /dev/sdc2 /mnt
mount: wrong fs type, bad option, bad superblock on /dev/sdc2,
missing codepage or helper program, or other error

In some cases useful info is found in syslog - try
dmesg | tail or so.

and dmesg:

[ 2276.489332] [c7] JBD2: Unrecognised features on journal
[ 2276.501409] [c7] EXT4-fs (sdc2): error loading journal

if i trying mount it on an other device with a ubuntu 16.10 i have no problems. Any idea?


probably the older kernel in the XU, the ext4 module is too old and does not recognize the ext4 from the sd. Even the XU4 Ubuntu 16.04 doesn't recognize all features (it complains about metadata_csum), although it can mount it.
User avatar
memeka
 
Posts: 3338
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: [OS] HIPSTER STRETCHY PANTS (XU4 debian stretch gnome3-w

Unread postby blu » Mon Mar 13, 2017 6:06 am

memeka wrote:probably the older kernel in the XU, the ext4 module is too old and does not recognize the ext4 from the sd. Even the XU4 Ubuntu 16.04 doesn't recognize all features (it complains about metadata_csum), although it can mount it.

IIRC, it takes e2fsprogs version 1.43.x or newer to either e2fsck or resize2fs hipster stretchy pants, for the metadata_csum alone.
blu
 
Posts: 10
Joined: Wed Mar 08, 2017 11:30 pm
languages_spoken: english
ODROIDs: XU4 eMMC

Re: [OS] HIPSTER STRETCHY PANTS (XU4 debian stretch gnome3-w

Unread postby fleixi » Thu Mar 16, 2017 7:57 am

I didnt know ext4 isnt compatible to older versions. Thanks to clearyfy this.

I really like this image. No enduser cleanups but for developers its really fun. Thanks alot

I only still stuck getting mfc kodi running on wayland ;)
fleixi
 
Posts: 110
Joined: Sun Apr 27, 2014 3:48 am
languages_spoken: english, german
ODROIDs: XU

Re: [OS] HIPSTER STRETCHY PANTS (XU4 debian stretch gnome3-w

Unread postby memeka » Thu Mar 16, 2017 8:10 am

fleixi wrote:I didnt know ext4 isnt compatible to older versions. Thanks to clearyfy this.

I really like this image. No enduser cleanups but for developers its really fun. Thanks alot

I only still stuck getting mfc kodi running on wayland ;)


Yes, I released it for devs atm :) pretty "raw"
Thank you so much for merging the patches for wayland kodi - i was just messaging @oversun yesterday to ask him his compile options since i wanted to start on that. so you took some work off my hands :D
Instead of getting kodi to work, I can look more closely now why encoding with FFmpeg 3.2.4 is not working as good as 3.0.2 :( -- i've added the patches to https://github.com/mihailescu2m/FFmpeg/ ... _m2m-3.2.4

Like @oversun said, he's gonna push some patches for kodi, seems that it didn't work on x11 either. So I think that will fix wayland too.

PS: interface-only, would you say are there any glitches? how's the CPU usage in GUI (comparatively to X11)?
User avatar
memeka
 
Posts: 3338
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: [OS] HIPSTER STRETCHY PANTS (XU4 debian stretch gnome3-w

Unread postby fleixi » Fri Mar 17, 2017 3:09 am

There a only glitches on really fast switching between submenus. it is running really smooth.
I have problems compare x11 kodi 16.2 with wayland kodi 18 Alpha since my skin (cirrus extend) isnt ported to Kodi 18.

But the hardest part in GUI was on x11 the coverflow in the Movie Section. On my old kodi i have had glitches but on wayland kodi 18 there a nearly no glitches.
The only way to get more framedrops is in pvr if i running a HD(720p) programm in background and i move to menus.

Subjective i would say it is better than on x11 Kernel 3.10

The CPU on htop is between 3% - 15% on Kodi idle and thats just small CPUs
fleixi
 
Posts: 110
Joined: Sun Apr 27, 2014 3:48 am
languages_spoken: english, german
ODROIDs: XU

Re: [OS] HIPSTER STRETCHY PANTS (XU4 debian stretch gnome3-w

Unread postby fleixi » Mon Mar 20, 2017 1:37 am

After a few days of testing and configuration i could use the system as my daily system (still some errors but nothing i couldnt deal with).

Now i like to know if you could upload your gnome-patches and kernel-source somewhere so i could keep working with your stuff?
fleixi
 
Posts: 110
Joined: Sun Apr 27, 2014 3:48 am
languages_spoken: english, german
ODROIDs: XU

Re: [OS] HIPSTER STRETCHY PANTS (XU4 debian stretch gnome3-w

Unread postby memeka » Mon Mar 20, 2017 10:33 am

@fleixi -- check second post.

For those that are unhappy with the fact that epiphany browser is slow/not working on some pages, let me remind you this is because the Wayland driver from ARM is missing the nesting compositing extension. I hope in a future release, this feature will be available, and hw-accelerated browsing will work correctly.

In the meantime, you can disable the non-working HW-accelerated rendering, so that pages will render correctly, by setting the environment variable WEBKIT_DISABLE_COMPOSITING_MODE. For example, starting epiphany with:
Code: Select all
WEBKIT_DISABLE_COMPOSITING_MODE=1 epiphany-browser

will allow you to visit pages like youtube.com and render them in software.
User avatar
memeka
 
Posts: 3338
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART


Return to Other OS

Who is online

Users browsing this forum: No registered users and 2 guests