Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Test and fix the Kernel 4.14 features
crashoverride
Posts: 5133
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 375 times
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by crashoverride »

So I did a little test:

Code: Select all

#include <stdio.h>
#include <math.h>

int main()
{
	double value = 0;

	for (int i = 0; i < 20; ++i)
	{
		printf("value=%f (int)value=%d trunc(value)=%f\n", value, (int)value, trunc(value));
		value += 0.1;
	}
}
Generates the following:

Code: Select all

value=0.000000 (int)value=0 trunc(value)=0.000000
value=0.100000 (int)value=0 trunc(value)=0.000000
value=0.200000 (int)value=0 trunc(value)=0.000000
value=0.300000 (int)value=0 trunc(value)=0.000000
value=0.400000 (int)value=0 trunc(value)=0.000000
value=0.500000 (int)value=0 trunc(value)=0.000000
value=0.600000 (int)value=0 trunc(value)=0.000000
value=0.700000 (int)value=0 trunc(value)=0.000000
value=0.800000 (int)value=0 trunc(value)=0.000000
value=0.900000 (int)value=0 trunc(value)=0.000000
value=1.000000 (int)value=0 trunc(value)=0.000000
value=1.100000 (int)value=1 trunc(value)=1.000000
value=1.200000 (int)value=1 trunc(value)=1.000000
value=1.300000 (int)value=1 trunc(value)=1.000000
value=1.400000 (int)value=1 trunc(value)=1.000000
value=1.500000 (int)value=1 trunc(value)=1.000000
value=1.600000 (int)value=1 trunc(value)=1.000000
value=1.700000 (int)value=1 trunc(value)=1.000000
value=1.800000 (int)value=1 trunc(value)=1.000000
value=1.900000 (int)value=1 trunc(value)=1.000000
The line of interest is:

Code: Select all

value=1.000000 (int)value=0 trunc(value)=0.000000
:shock:

[edit]
Results are the same on C2. I guess this is one of those esoteric floating point rounding issues (base 2 vs base 10).

[edit 2]
Using "float" instead of "double" produces the expected result.

mattrix
Posts: 89
Joined: Tue Jan 13, 2015 7:12 am
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by mattrix »

Anyone else getting below occasional errors?

[131564.787696] xhci-hcd xhci-hcd.2.auto: ERROR Transfer event for disabled endpoint or incorrect stream ring
[131564.796001] xhci-hcd xhci-hcd.2.auto: @00000000b684e170 00000000 00000000 04000000 09038001
[131597.693837] sd 1:0:0:0: [sdb] tag#1 uas_eh_abort_handler 0 uas-tag 2 inflight: CMD IN
[131597.700427] sd 1:0:0:0: [sdb] tag#1 CDB: opcode=0x28 28 00 22 c1 fd 30 00 00 20 00
[131597.708756] sd 1:0:0:0: [sdb] tag#0 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD
[131597.715756] sd 1:0:0:0: [sdb] tag#0 CDB: opcode=0x28 28 00 22 c1 fd 10 00 00 20 00
[131597.723839] scsi host1: uas_eh_bus_reset_handler start
[131597.809114] usb 4-1.1.3: reset SuperSpeed USB device number 7 using xhci-hcd

Happens sometimes after 1-2 hours while watching a video over Samba.
Using USB3.0 ext4 drives.

4.9.13-4-ARCH

That was using the config from the ArchArm package.
(https://github.com/archlinuxarm/PKGBUIL ... xu3/config)

I have re-compiled using defconfig and seems stable at the moment.
Will report back if it re-occurs.

elatllat
Posts: 1796
Joined: Tue Sep 01, 2015 8:54 am
languages_spoken: english
ODROIDs: XU4, N1, N2, C4, N2+
Has thanked: 51 times
Been thanked: 117 times
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by elatllat »

4.9.13 is 6+ versions and 5+ local vulnerabilities behind. I was hoping not to but I guess I'll just keep using my own branch... hk will make me into an arch enthusiast next.

bobertuk
Posts: 14
Joined: Mon Sep 07, 2015 8:43 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by bobertuk »

What is the general status of this 4.9x Kernel for XU4?

This is way beyond my understanding but I still take an interest in what is going on. Is the new kernel anywhere near to going live? If it is, I have an XU4 running on the latest 3.10.x so can I upgrade my running version of Ubuntu 16.04.2 LTS to the new Kernel or do I have to start with a completely new image? I'd prefer to be able to upgrade as I have some specific audio software running and configured.

Sorry for the naive questions

Bob

User avatar
odroid
Site Admin
Posts: 35535
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1176 times
Been thanked: 871 times
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by odroid »

Since the Ethernet and USB devices are working stably, it is very worth to take a risk.
Which audio software and sound devices are you going to try?

bobertuk
Posts: 14
Joined: Mon Sep 07, 2015 8:43 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by bobertuk »

odroid wrote:Since the Ethernet and USB devices are working stably, it is very worth to take a risk.
Which audio software and sound devices are you going to try?
I'm using 'max2play' connecting via the odroid USB SPDIF interface and I'm running Logitech Media Server to access my music. I'll be swapping out the odroid USB SPDIF interface sometime soon, replacing it with a high resolution USB to coax SPDIF interface.

I have a fairly up to date image of my running Ubuntu 16.04 LTS so may take the chance and try out Kernel 4.9.x. Is it possible to update my running Ubuntu to 4.9.x and if so how?

Thank you

Bob

mdrjr
Site Admin
Posts: 11766
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 29 times
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by mdrjr »

ATM, not easily. I would like if you could flash a newer image ;)
The one list in the OP.

User avatar
rooted
Posts: 8031
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 724 times
Been thanked: 251 times
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by rooted »

I have a fresh kernel deb package built I could upload somewhere, I needed it to create a 5ghz access point. I created the headers deb also since I often build out of tree drivers.

Which you can't do by the way with the include 8812au (Odroid Module 5) driver, use 5ghz band properly.

*edit*
I'm linking these (kernel|firmware|headers), no guarantees but I did test on my xu4 running DietPi (meveric Debian Jessie) and everything I use works fine.

https://db.tt/gXGTZJUMkg

Code: Select all

sudo dpkg --install *
If something beaks please don't post it here.

User avatar
odroid
Site Admin
Posts: 35535
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1176 times
Been thanked: 871 times
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by odroid »

Kodi 17.1 package has been released and it requires the latest kernel update 4.9.20-21.

Code: Select all

sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade && reboot
A couple of H.264 FHD 60Hz videos were tested and it looks fine for my old eyes.

While Kodi is reporting "Unknown (SW)" its actually using MFC.
There's some bug on reporting the correct codec name probably.

User avatar
rooted
Posts: 8031
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 724 times
Been thanked: 251 times
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by rooted »

Why are the little cores maximum speed now 1300mhz instead of 1500mhz on 4.9.y on odroid git?

*edit*
Maybe it's the wrong dtb.

*edit 2*
It's not the DTB

DarkBahamut
Posts: 332
Joined: Tue Jan 19, 2016 10:19 am
languages_spoken: english
ODROIDs: XU4, N1
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by DarkBahamut »

I'm pretty sure this branch has always been 1300MHz on the A7 cores. I had to edit the dtb to enable 1400MHz on my own builds. It's a simple enough change.

https://github.com/Emerald-Phoenix/linu ... b1f55a42b8

User avatar
rooted
Posts: 8031
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 724 times
Been thanked: 251 times
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by rooted »

DarkBahamut wrote:I'm pretty sure this branch has always been 1300MHz on the A7 cores. I had to edit the dtb to enable 1400MHz on my own builds. It's a simple enough change.

https://github.com/Emerald-Phoenix/linu ... b1f55a42b8
I know it wasn't limited to 1.3 it was 1.5 actually, but this was many months ago and not this exact branch.

I had already changed the DTB but forgot to change the 5800 dtsi.

Thanks for the information.

RodBelaFarin
Posts: 29
Joined: Tue Apr 15, 2014 9:43 pm
languages_spoken: english german
ODROIDs: U3 XU
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by RodBelaFarin »

I don't know why, but actually my system logs out randomly. I did a fresh setup yesterday for my XU4. After updating my Kernel, the kernel version is now 4.9.20-26.

yyaazz
Posts: 11
Joined: Fri Apr 14, 2017 6:01 pm
languages_spoken: english
ODROIDs: XU4 + cloudshell + emmc + SSD + remote control
C2 + emmc
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by yyaazz »

I installed two days ago this Ubuntu 16.04.2 trial : so far so good : cloudhell is fully working : SSD, remote control, LCD display.

I have only some minor annoying things to solve :
- mate bar is doubled : two time the mebu, two time the clock, bluetooth ... I tried to remove all of them in the menu but after some reboot it is coming back.
- When launging chrome I have some yellow rectangles.
- lot of packages are missing to make some try : retroarch, ros ... if someone has a nice sources.list to share it is more than welcome.
- display is laggy more specilly in kodi. I will play a little bit more with it tomorrow.

Thank you to all peaple working, contributing to this release and making our small boards better and better.

crashoverride
Posts: 5133
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 375 times
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by crashoverride »

yyaazz wrote:- When launging chrome I have some yellow rectangles.
This happens when launching a program from a top menu bar icon (quick launch). The following update should address this:
https://github.com/OtherCrashOverride/x ... 87f85b8990

[edit]
Issue identified and corrected:
https://github.com/OtherCrashOverride/x ... 4ba5901bb0

phaseshifter
Posts: 3548
Joined: Fri May 08, 2015 9:12 am
languages_spoken: english
ODROIDs: U-2,U3+,,XU-3,,XU3-LITE,,XU-4
C1+,,C-2,,,
N-1,,N-2,...other odroid acc`s as well
Has thanked: 47 times
Been thanked: 46 times
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by phaseshifter »

i have the same rectangle issue @"crashoverride" i downloaded the files now what do i do with them or where do i place them..sorry my coding aint that great ..thanks phase...
Build It And They Will Come...Be Bold And Mighty Forces Will Come To Your Aid..!!!

crashoverride
Posts: 5133
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 375 times
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by crashoverride »

Its expected that HardKernel will pull the changes, compile, and package the update. When this occurs, the fix will be part of the normal "apt update; apt upgrade" process. There is no need for end-users to compile the driver themselves. The issue is only identified to occur during the specific instance of using a "quick launch" icon.

yyaazz
Posts: 11
Joined: Fri Apr 14, 2017 6:01 pm
languages_spoken: english
ODROIDs: XU4 + cloudshell + emmc + SSD + remote control
C2 + emmc
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by yyaazz »

I had lots of crash with KODI 17.1 and lot of add-ons not working.
After trying to solve issue one by one from the log I discorver something wrong with on python package "libffi":

Code: Select all

sudo apt-get install python-pip python-dev build-essential libffi-dev openssl-dev

sudo pip install --upgrade pip

sudo pip install cryptography --upgrade
I don't know if I did something wrong previously but it has solved lot of problems for me. Let's continue for the other crash ;)

User avatar
odroid
Site Admin
Posts: 35535
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1176 times
Been thanked: 871 times
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by odroid »

crashoverride wrote:
yyaazz wrote:- When launging chrome I have some yellow rectangles.
This happens when launching a program from a top menu bar icon (quick launch). The following update should address this:
https://github.com/OtherCrashOverride/x ... 87f85b8990

[edit]
Issue identified and corrected:
https://github.com/OtherCrashOverride/x ... 4ba5901bb0
This patch has been merged and released with new armsoc driver package.
Appreciate your help always. :D

phaseshifter
Posts: 3548
Joined: Fri May 08, 2015 9:12 am
languages_spoken: english
ODROIDs: U-2,U3+,,XU-3,,XU3-LITE,,XU-4
C1+,,C-2,,,
N-1,,N-2,...other odroid acc`s as well
Has thanked: 47 times
Been thanked: 46 times
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by phaseshifter »

yes has done the trick works all good

RodBelaFarin
Posts: 29
Joined: Tue Apr 15, 2014 9:43 pm
languages_spoken: english german
ODROIDs: U3 XU
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by RodBelaFarin »

Hi all,

I have identified a quite huge problem for me. It seems that all QML based user interfaces don't wort like described here:

https://bugreports.qt.io/browse/QTBUG-48095

My symptoms for now are opening for example QtCreator, I get this error in the Terminal:

QOpenGLContext::makeCurrent() called with non-opengl surface 0xfdcba8
composeAndFlush: makeCurrent() failed

The window appears, but the content is not rendered. Can anyone else confirm this issue?

I actually updated to the newest kernel version: 4.9.20-26

User avatar
meveric
Posts: 11177
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, H2 (J4105), GoA, C4
Has thanked: 49 times
Been thanked: 407 times
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by meveric »

I remember there was a bug in QT5 for ODROID XU3/XU4, although I'm not sure if that's still present in Ubuntu 16.04.
On my Debian Jessie image I had to recompile QT5 with a fix that could solve the issue. Sadly that fix will only work on Debian Jessie.

Do you have an example of what you tried to get to work? I can try if it's working on Debian Jessie or not.
I kinda would like to avoid installing QtCreator, that's rather big for such a small test.

RodBelaFarin
Posts: 29
Joined: Tue Apr 15, 2014 9:43 pm
languages_spoken: english german
ODROIDs: U3 XU
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by RodBelaFarin »

meveric wrote:Do you have an example of what you tried to get to work? I can try if it's working on Debian Jessie or not.
I kinda would like to avoid installing QtCreator, that's rather big for such a small test.
Everything else where I faced to that is related to ROS (Robot Operating System), which is even more complex then "just" compiling QtCreator from source.

Just a stupid question: Is it possible to force the application to use OpenGL ES instead of OpenGL? It seems that a couple of the programs try to use OpenGL:

Code: Select all

Unable to find an X11 visual which matches EGL config 9
Could not initialize OpenGL for RasterGLSurface, reverting to RasterSurface.

Code: Select all

libGL error: unable to load driver: exynos_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: exynos
libGL error: unable to load driver: exynos_dri.so
and so on.

Is it maybe also attached to the hardware acceleration thread?
viewtopic.php?f=146&t=26248

I am very bad in understanding all this relations between Mali - X11 - Wayland - OpenGL - Window Manager - XServer and all the displaying related stuff - sorry. So, would it help to install Mali R12? If yes, how to do that?

User avatar
meveric
Posts: 11177
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, H2 (J4105), GoA, C4
Has thanked: 49 times
Been thanked: 407 times
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by meveric »

RodBelaFarin wrote:Everything else where I faced to that is related to ROS (Robot Operating System), which is even more complex then "just" compiling QtCreator from source.
I was not referring to compiling QtCreator from source.
There are smaller programs that use Qt5 and QML as a basis, for example Cool-Retro-Term, or Otter-Browser.
Both use QML and Qt5 and I know they work on my side. I was just thinking you have a particular program/sample that you tried to get to work, that does not require to compile several GB on data ;)
RodBelaFarin wrote:

Code: Select all

Unable to find an X11 visual which matches EGL config 9
Could not initialize OpenGL for RasterGLSurface, reverting to RasterSurface.
This sound like the Qt5 bug from XU3/XU4, that's how it would show in the past.
RodBelaFarin wrote:Just a stupid question: Is it possible to force the application to use OpenGL ES instead of OpenGL? It seems that a couple of the programs try to use OpenGL:

Code: Select all

libGL error: unable to load driver: exynos_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: exynos
libGL error: unable to load driver: exynos_dri.so
and so on.
Qt5 itself is compiled either against OpenGL or OpenGL ES. On ARM it should always be compiled against OpenGL ES. If not, then already your Qt5 version is broken, and you don't even need to try to get anything QML to work.
RodBelaFarin wrote:Is it maybe also attached to the hardware acceleration thread?
viewtopic.php?f=146&t=26248
No it's not, this thread is about 2D acceleration on the Desktop. The Window Management on the Desktop was always sluggish with the new G2D option a lot of new options are possible, but it's not related to Qt5 and QML.
RodBelaFarin wrote:I am very bad in understanding all this relations between Mali - X11 - Wayland - OpenGL - Window Manager - XServer and all the displaying related stuff - sorry. So, would it help to install Mali R12? If yes, how to do that?
Mali -> GPU (Graphics Card) used on ODROIDs
X11 -> Old Graphics Server used to Display Graphics under Linux, mainly Desktop and Windows
Wayland -> New Graphics Server aimed to replace X11 with newer technologies
OpenGL -> 3D graphic API, if you ever heard of DirectX, you can say OpenGL is similar to it, they it's functions you can use to create 3D accelerated objects, like drawing triangles and such.
OpenGL ES -> (E)mbedded (S)ystem -> lightwight version of OpenGL designed mostly for Mobile devices. Not a full Desktop OpenGL but still hardware accelerated 3D.
Window Manager -> a tool running on an X11 server that handles the way your Windows are shown and displayed... for example OpenBox, Marco, xfwm4.. nothing really to think about.
XServer -> see X11

a little bit simplified, but you should get the idea.

RodBelaFarin
Posts: 29
Joined: Tue Apr 15, 2014 9:43 pm
languages_spoken: english german
ODROIDs: U3 XU
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by RodBelaFarin »

meveric wrote:There are smaller programs that use Qt5 and QML as a basis, for example Cool-Retro-Term, or Otter-Browser.
Both use QML and Qt5 and I know they work on my side. I was just thinking you have a particular program/sample that you tried to get to work, that does not require to compile several GB on data ;)
I tried Otter-Browser and that one works fine for me. But still I have the error message in the background:
Unable to find an X11 visual which matches EGL config 9
Could not initialize OpenGL for RasterGLSurface, reverting to RasterSurface.
meveric wrote:Qt5 itself is compiled either against OpenGL or OpenGL ES. On ARM it should always be compiled against OpenGL ES. If not, then already your Qt5 version is broken, and you don't even need to try to get anything QML to work.
This seems most suitable for me. Can you tell me how you did for Jessie?
meveric wrote: Mali -> GPU (Graphics Card) used on ODROIDs
X11 -> Old Graphics Server used to Display Graphics under Linux, mainly Desktop and Windows
Wayland -> New Graphics Server aimed to replace X11 with newer technologies
OpenGL -> 3D graphic API, if you ever heard of DirectX, you can say OpenGL is similar to it, they it's functions you can use to create 3D accelerated objects, like drawing triangles and such.
OpenGL ES -> (E)mbedded (S)ystem -> lightwight version of OpenGL designed mostly for Mobile devices. Not a full Desktop OpenGL but still hardware accelerated 3D.
Window Manager -> a tool running on an X11 server that handles the way your Windows are shown and displayed... for example OpenBox, Marco, xfwm4.. nothing really to think about.
XServer -> see X11

a little bit simplified, but you should get the idea.
Thank you so much. Will learn that by hard :)

nqdrizzt
Posts: 9
Joined: Sat Apr 29, 2017 1:47 am
languages_spoken: english
ODROIDs: XU3Lite
HC1
C2
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by nqdrizzt »

Hello,
I was wondering if anybody was able to get the HDMI audio output working on a XU3 lite?? :-(

With the beta image and and the latest kernel 4.9.24 compiled on odroid itsself i wasnt able to see any audio HDMI device.
As output device i just can select the standard odroid analog stereo device.

Furthermore, after compiling the kerne and performing an apt-get upgrade it is stuck before the Xserver should start with a blinking cursor in the left upper corner.

Doe anybody have any ideas ?
Sorry for my high level description but I new to all this kernel stuff, took me 2 days to sucessfully compile it.

mdrjr
Site Admin
Posts: 11766
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 29 times
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by mdrjr »

You can try the stock image first and get a idea..

phaseshifter
Posts: 3548
Joined: Fri May 08, 2015 9:12 am
languages_spoken: english
ODROIDs: U-2,U3+,,XU-3,,XU3-LITE,,XU-4
C1+,,C-2,,,
N-1,,N-2,...other odroid acc`s as well
Has thanked: 47 times
Been thanked: 46 times
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by phaseshifter »

it uses the same driver for hdmi and analog stereo out put i use a hdmi audio extractor and it works fine if your screen has audio headphones jack this should work as well ..if streaming i suggest you use chromium as firefox has limits..also from mem the xu3 has a built in dac so use a stereo out jack on the board it will give excellent sound...i will have an xu3lite very soon so i keep up with both boards..
Last edited by phaseshifter on Mon May 01, 2017 7:23 am, edited 2 times in total.

phaseshifter
Posts: 3548
Joined: Fri May 08, 2015 9:12 am
languages_spoken: english
ODROIDs: U-2,U3+,,XU-3,,XU3-LITE,,XU-4
C1+,,C-2,,,
N-1,,N-2,...other odroid acc`s as well
Has thanked: 47 times
Been thanked: 46 times
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by phaseshifter »

how far off are we at getting an official image of 4.9.xx.xx ..???

RodBelaFarin
Posts: 29
Joined: Tue Apr 15, 2014 9:43 pm
languages_spoken: english german
ODROIDs: U3 XU
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by RodBelaFarin »

RodBelaFarin wrote:
meveric wrote:Qt5 itself is compiled either against OpenGL or OpenGL ES. On ARM it should always be compiled against OpenGL ES. If not, then already your Qt5 version is broken, and you don't even need to try to get anything QML to work.
This seems most suitable for me. Can you tell me how you did for Jessie?
I tried it on my own configuring Qt like that:

Code: Select all

./configure -system-zlib -system-libjpeg -system-libpng -qt-xcb -qt-xkbcommon -system-freetype -system-pcre -system-harfbuzz -opengl es2
After installation I am stuck in the same error :(

User avatar
meveric
Posts: 11177
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, H2 (J4105), GoA, C4
Has thanked: 49 times
Been thanked: 407 times
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by meveric »

it's not compiler flags, you need to adapt the code. There is a section that checks for some values, and one of the value does not return correctly for the XU3/XU4, you need to force it to return anyway.
I would have to look for it though.

RodBelaFarin
Posts: 29
Joined: Tue Apr 15, 2014 9:43 pm
languages_spoken: english german
ODROIDs: U3 XU
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by RodBelaFarin »

meveric wrote:you need to adapt the code. There is a section that checks for some values, and one of the value does not return correctly for the XU3/XU4, you need to force it to return anyway.
I would have to look for it though.
That seems to be beyond my scope. I wouldn't even know where to start in the code in such a big library like Qt. If you find time in the coming days, I'd be very thankful ;)

User avatar
odroid
Site Admin
Posts: 35535
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1176 times
Been thanked: 871 times
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by odroid »

Today's update.

- armsoc DDX video driver based on crashoverride's git
- mali DDK driver based ARM's latest r17p0
- new kernel update 4.9.25-28

Update system with sudo apt update && sudo apt upgrade && sudo apt dist-upgrade
If your meta kernel package is kept back, manually update it with sudo apt install linux-image-xu3

glmark2-es2 rendering performance looks great.

Code: Select all

=======================================================
    glmark2 2014.03+git20150611.fa71af2d
=======================================================
    OpenGL Information
    GL_VENDOR:     ARM
    GL_RENDERER:   Mali-T628
    GL_VERSION:    OpenGL ES 3.1 v1.r17p0-01rel0.105a4ebe814535d8123c06e4f5178bb7
=======================================================
[build] use-vbo=false: FPS: 458 FrameTime: 2.183 ms
[build] use-vbo=true: FPS: 584 FrameTime: 1.712 ms
[texture] texture-filter=nearest: FPS: 597 FrameTime: 1.675 ms
[texture] texture-filter=linear: FPS: 599 FrameTime: 1.669 ms
[texture] texture-filter=mipmap: FPS: 568 FrameTime: 1.761 ms
[shading] shading=gouraud: FPS: 489 FrameTime: 2.045 ms
[shading] shading=blinn-phong-inf: FPS: 478 FrameTime: 2.092 ms
[shading] shading=phong: FPS: 464 FrameTime: 2.155 ms
[shading] shading=cel: FPS: 471 FrameTime: 2.123 ms
[bump] bump-render=high-poly: FPS: 324 FrameTime: 3.086 ms
[bump] bump-render=normals: FPS: 623 FrameTime: 1.605 ms
[bump] bump-render=height: FPS: 564 FrameTime: 1.773 ms
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 490 FrameTime: 2.041 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 225 FrameTime: 4.444 ms
[pulsar] light=false:quads=5:texture=false: FPS: 641 FrameTime: 1.560 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 190 FrameTime: 5.263 ms
[desktop] effect=shadow:windows=4: FPS: 285 FrameTime: 3.509 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 39 FrameTime: 25.641 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 40 FrameTime: 25.000 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 40 FrameTime: 25.000 ms
[ideas] speed=duration: FPS: 244 FrameTime: 4.098 ms
[jellyfish] <default>: FPS: 384 FrameTime: 2.604 ms
[terrain] <default>: FPS: 46 FrameTime: 21.739 ms
[shadow] <default>: FPS: 285 FrameTime: 3.509 ms
[refract] <default>: FPS: 89 FrameTime: 11.236 ms
[conditionals] fragment-steps=0:vertex-steps=0: FPS: 619 FrameTime: 1.616 ms
[conditionals] fragment-steps=5:vertex-steps=0: FPS: 504 FrameTime: 1.984 ms
[conditionals] fragment-steps=0:vertex-steps=5: FPS: 608 FrameTime: 1.645 ms
[function] fragment-complexity=low:fragment-steps=5: FPS: 567 FrameTime: 1.764 ms
[function] fragment-complexity=medium:fragment-steps=5: FPS: 476 FrameTime: 2.101 ms
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 577 FrameTime: 1.733 ms
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 568 FrameTime: 1.761 ms
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 490 FrameTime: 2.041 ms
=======================================================
                                  glmark2 Score: 412 
=======================================================
If your score is much lower than mine, change the CPU governor to performance mode.
Check: cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
If output is not "performance", type echo 'GOVERNOR="performance"' | sudo tee /etc/default/cpufrequtils and reboot.

We are close to releasing an official image soon even we are still fighting with the SD host UHS SDR/DDR issues including reset problem.

bobertuk
Posts: 14
Joined: Mon Sep 07, 2015 8:43 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by bobertuk »

odroid wrote:Today's update.

- armsoc DDX video driver based on crashoverride's git
- mali DDK driver based ARM's latest r17p0
- new kernel update 4.9.25-28

etc.....................

We are close to releasing an official image soon even we are still fighting with the SD host UHS SDR/DDR issues including reset problem.
When this official image is released will those on the 3.10.105-138 kernel be able to update direct to 4.9.xx-x via...

Sudo apt update && sudo apt upgrade && sudo apt dist-upgrade

Or is this a full Ubuntu 16.04 LTS 4.9.xx.x image?

It would be much easier more helpful and more user friendly to most users if they can just update the kernel rather have to burn a new image!

Bob

mdrjr
Site Admin
Posts: 11766
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 29 times
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by mdrjr »

There's no ETA yet. We are keeping it as a separate image to keep debugging and improving this release.

phaseshifter
Posts: 3548
Joined: Fri May 08, 2015 9:12 am
languages_spoken: english
ODROIDs: U-2,U3+,,XU-3,,XU3-LITE,,XU-4
C1+,,C-2,,,
N-1,,N-2,...other odroid acc`s as well
Has thanked: 47 times
Been thanked: 46 times
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by phaseshifter »

will in future ....when the new image is released
will it have the governor set by default to "performance"

User avatar
rooted
Posts: 8031
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 724 times
Been thanked: 251 times
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by rooted »

It should be made to follow what the default governor is şet at in the kernel with the boot.ini entry overriding the built in default.

I thought this is how it already worked?

I think Ubuntu has something that may change it?

phaseshifter
Posts: 3548
Joined: Fri May 08, 2015 9:12 am
languages_spoken: english
ODROIDs: U-2,U3+,,XU-3,,XU3-LITE,,XU-4
C1+,,C-2,,,
N-1,,N-2,...other odroid acc`s as well
Has thanked: 47 times
Been thanked: 46 times
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by phaseshifter »

look at the boot.ini file in kernel4.xx.xx it does not contain the over ride codes..
is it that the team has not written it into the file as yet..??

mdrjr
Site Admin
Posts: 11766
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 29 times
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by mdrjr »

We added the option back to boot.ini
It wasn't released yet :)

odroidguy
Posts: 3
Joined: Mon Aug 01, 2016 1:37 pm
languages_spoken: english
ODROIDs: xu4
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by odroidguy »

when the image will be released, running apt-get dist-upgrade will upgrade to the latest kernel?

mdrjr
Site Admin
Posts: 11766
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 29 times
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by mdrjr »

odroidguy wrote:when the image will be released, running apt-get dist-upgrade will upgrade to the latest kernel?
If you are using the 4.9 trial image yes

rncwnd
Posts: 34
Joined: Tue Apr 11, 2017 11:18 pm
languages_spoken: english, german
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by rncwnd »

To run iotop the following kernel options need to be enabled, could you please enabled them in standard config?
  • IRQ_TIME_ACCOUNTING
  • BSD_PROCESS_ACCT
  • TASKSTATS
  • TASK_DELAY_ACCT
  • TASK_XACCT
Thanks.

phaseshifter
Posts: 3548
Joined: Fri May 08, 2015 9:12 am
languages_spoken: english
ODROIDs: U-2,U3+,,XU-3,,XU3-LITE,,XU-4
C1+,,C-2,,,
N-1,,N-2,...other odroid acc`s as well
Has thanked: 47 times
Been thanked: 46 times
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by phaseshifter »

i confirm previous post..phase...you may want to try htop..!!!! or just top in the mean time
Last edited by phaseshifter on Thu May 04, 2017 10:46 pm, edited 1 time in total.

tkaiser
Posts: 673
Joined: Mon Nov 09, 2015 12:30 am
languages_spoken: english
ODROIDs: C1+, C2, XU4, HC1
Has thanked: 0
Been thanked: 5 times
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by tkaiser »

rncwnd wrote:[*]IRQ_TIME_ACCOUNTING
Better use CONFIG_HAVE_IRQ_TIME_ACCOUNTING instead.

rncwnd
Posts: 34
Joined: Tue Apr 11, 2017 11:18 pm
languages_spoken: english, german
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by rncwnd »

phaseshifter wrote:i confirm previous post..phase...you may want to try htop..!!!! or just top in the mean time
iotop shows different info than htop / top. ;)

iotop shows i/o throughput of the disks / flash (sd*, mmc*, hd*, ...).

Thanks for the correct config name tkaiser, I copied the names out of the help texts. Those are missing the prefixes.

phaseshifter
Posts: 3548
Joined: Fri May 08, 2015 9:12 am
languages_spoken: english
ODROIDs: U-2,U3+,,XU-3,,XU3-LITE,,XU-4
C1+,,C-2,,,
N-1,,N-2,...other odroid acc`s as well
Has thanked: 47 times
Been thanked: 46 times
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by phaseshifter »

rather strange..!!

it works on my c-2 okay..should not be hard to implement unless it requires 64 bit processing

rncwnd
Posts: 34
Joined: Tue Apr 11, 2017 11:18 pm
languages_spoken: english, german
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by rncwnd »

It works for sure on XU4. I built the kernel from hardkernels github repo. Enabled the config options, compiled, installed, rebooted and ran iotop (again) :D

Code: Select all

root@odroid:~# iotop -ob
Total DISK READ :     149.49 M/s | Total DISK WRITE :       0.00 B/s
Actual DISK READ:     149.49 M/s | Actual DISK WRITE:       0.00 B/s
  TID  PRIO  USER     DISK READ  DISK WRITE  SWAPIN      IO    COMMAND
12593 idle root       74.74 M/s    0.00 B/s  0.00 %  0.00 % btrfs scrub start /mnt/usb_1
12594 idle root       74.74 M/s    0.00 B/s  0.00 %  0.00 % btrfs scrub start /mnt/usb_1

phaseshifter
Posts: 3548
Joined: Fri May 08, 2015 9:12 am
languages_spoken: english
ODROIDs: U-2,U3+,,XU-3,,XU3-LITE,,XU-4
C1+,,C-2,,,
N-1,,N-2,...other odroid acc`s as well
Has thanked: 47 times
Been thanked: 46 times
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by phaseshifter »

well i have never compiled/built a kernel so lets hope the team can install it in an update...

tkaiser
Posts: 673
Joined: Mon Nov 09, 2015 12:30 am
languages_spoken: english
ODROIDs: C1+, C2, XU4, HC1
Has thanked: 0
Been thanked: 5 times
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by tkaiser »

rncwnd wrote:iotop shows i/o throughput of the disks / flash (sd*, mmc*, hd*, ...).
Not really since it's acting above the block device layer (that would be 'sd*, mmc*, hd*, ...') but of course it's an indispensable tool for 'per process' IO monitoring (which is the reason why Armbian uses appropriate kernel configs on every board supported to let iotop do its work and therefore iotop is useable in most recent OMV image for XU3/XU4 too https://sourceforge.net/projects/openme ... d-XU3_XU4/ :) )

crashoverride
Posts: 5133
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 375 times
Contact:

Re: Ubuntu 16.04.2 trial image to play with 4.9.x LTS Kernel

Post by crashoverride »

For convenience, I have provided (and tested) the iotop related patch here:
https://github.com/OtherCrashOverride/l ... 56b1ea8b28

Post Reply

Return to “Linux Kernel 4.14 Debugging Party”

Who is online

Users browsing this forum: No registered users and 2 guests