Odroid XU3/XU4 NEXT thread

Test and fix the Kernel 4.14 features
Post Reply
MastaG
Posts: 324
Joined: Mon Aug 26, 2013 6:05 pm
languages_spoken: english
Has thanked: 22 times
Been thanked: 14 times
Contact:

Re: Odroid XU3/XU4 NEXT thread

Post by MastaG » Wed Mar 01, 2017 7:02 am

Thank you mdrjr,

It's working wonderful now!
All usb issues have been solved, reboot works perfectly as well.

I'm happy :)

MastaG
Posts: 324
Joined: Mon Aug 26, 2013 6:05 pm
languages_spoken: english
Has thanked: 22 times
Been thanked: 14 times
Contact:

Re: Odroid XU3/XU4 NEXT thread

Post by MastaG » Fri Mar 03, 2017 2:50 am

One thing I've noticed though is that HMP seems to be causing a bit of instability.
I'm running TVHeadend on my XU3 with 3 usb dvb-tuners.
This creates some load since it has to descramble quite a few channels simultaneously.
For that I'm using a neon-optimized fork of libdvbcsa: https://github.com/glenvt18/libdvbcsa

However with HMP enabled TVHeadend will crash within a few hours.
Without HMP it doesn't.

However even with HMP enabled I don't see the big and little cores glued together?
In both cases /proc/cpuinfo is showing me 8 cores.
So what's the difference?

I still have to go deeper into the stacktrace, but I've reverted https://github.com/hardkernel/linux/com ... 997945b28d for now.

User avatar
mad_ady
Posts: 8151
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 567 times
Been thanked: 403 times
Contact:

Re: Odroid XU3/XU4 NEXT thread

Post by mad_ady » Fri Mar 03, 2017 3:01 am

HMP shows you 8 cores and moves cpu-intensive processes on the big cores. The 4 processors you refer to is the BL_SWITCHER option.

MastaG
Posts: 324
Joined: Mon Aug 26, 2013 6:05 pm
languages_spoken: english
Has thanked: 22 times
Been thanked: 14 times
Contact:

Re: Odroid XU3/XU4 NEXT thread

Post by MastaG » Fri Mar 03, 2017 3:08 am

Ah well.. that explains it.. Well no need for that in my case.

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

Re: Odroid XU3/XU4 NEXT thread

Post by rooted » Fri Mar 03, 2017 8:59 am

BL_SWITCHER is either broken or severely limits performance, I never researched which.

strause
Posts: 10
Joined: Fri Feb 24, 2017 10:18 pm
languages_spoken: english
Location: Czech Republic
Has thanked: 0
Been thanked: 0
Contact:

Re: Odroid XU3/XU4 NEXT thread

Post by strause » Fri Mar 03, 2017 9:31 pm

Hello, I have still problem with Logitech rumblepad 2 cordless. I though that was patched but I meet problem again.

logitech: probe of 0003:046D:C219.0004 failed with error -1

Here is some information about patch, that was applied to kernel.
https://www.reddit.com/r/RetroPie/comme ... d/d5gou7o/

Can you help me?

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

Re: Odroid XU3/XU4 NEXT thread

Post by elatllat » Sat Mar 04, 2017 12:39 am

strause wrote:...help me?
start a new thread with the output of

Code: Select all

uname -a
and

Code: Select all

dmesg
directly after boot and the issue.

User avatar
Snk
Posts: 275
Joined: Sun Jul 31, 2016 6:43 am
languages_spoken: Portuguese
ODROIDs: XU4 + eMMC 32GB + UART
Has thanked: 0
Been thanked: 0
Contact:

Re: Odroid XU3/XU4 NEXT thread

Post by Snk » Sat Mar 04, 2017 4:09 am

Hello people how are you
I really enjoyed the Kodi 17, but unfortunately it has a lot of lags when playing videos.
I would like to know how I can be doing some correction, I would like to help.
Is it possible to make changes via the UART cable?
Thanks for the attention and knowledge passed on to us novices on Odroid!

User avatar
OverSun
Posts: 1493
Joined: Mon Apr 29, 2013 5:12 pm
languages_spoken: english
Has thanked: 0
Been thanked: 19 times
Contact:

Re: Odroid XU3/XU4 NEXT thread

Post by OverSun » Sat Mar 04, 2017 4:29 am

Kodi is going to get its fixes for 4.x upcoming weeks

MastaG
Posts: 324
Joined: Mon Aug 26, 2013 6:05 pm
languages_spoken: english
Has thanked: 22 times
Been thanked: 14 times
Contact:

Re: Odroid XU3/XU4 NEXT thread

Post by MastaG » Thu Mar 09, 2017 5:46 pm

What about the performance of the mali opengl drivers?
I believe there was an issue with the frequency scaling right?

I'd like to build a new recalbox image with the new 4.9.y kernel and play some n64 and dreamcast games again :D

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

Re: Odroid XU3/XU4 NEXT thread

Post by memeka » Thu Mar 09, 2017 6:04 pm

MastaG wrote:What about the performance of the mali opengl drivers?
I believe there was an issue with the frequency scaling right?

I'd like to build a new recalbox image with the new 4.9.y kernel and play some n64 and dreamcast games again :D
There was no issue with frequency scaling. I don't like frequency scaling because in gnome sometimes is stays lower clock and loses from desktop performance. This is why I'm using a different implementation with a mali governor, which defaults to "performance" (where clock stays at max of 600Mhz all the time) and "ondemand" (which I did not implement properly scaling so it stays at min clock 177Mhz all the time). Just like with CPU "performance" governor, it uses more power than "ondemand" but it's a bit faster.

MastaG
Posts: 324
Joined: Mon Aug 26, 2013 6:05 pm
languages_spoken: english
Has thanked: 22 times
Been thanked: 14 times
Contact:

Re: Odroid XU3/XU4 NEXT thread

Post by MastaG » Thu Mar 09, 2017 6:36 pm

Yeah I just saw your new hipster image, great job man!
Maybe you could send a pull request to hardkernel's linux 4.9.y branch with your mali implementation.

leo5111
Posts: 86
Joined: Sat Jan 14, 2017 9:50 am
languages_spoken: english
Has thanked: 5 times
Been thanked: 1 time
Contact:

Re: Odroid XU3/XU4 NEXT thread

Post by leo5111 » Sun Apr 09, 2017 8:21 am

memeka wrote:
leo5111 wrote:for ubuntu is this faster then the c2?
yes, much faster
by much faster do you mean 2x 3x or what? thinking of building one

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

Re: Odroid XU3/XU4 NEXT thread

Post by memeka » Sun Apr 09, 2017 4:04 pm

leo5111 wrote: by much faster do you mean 2x 3x or what? thinking of building one
what do you think: https://www.youtube.com/watch?v=AkSgm4JF81U

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

Re: Odroid XU3/XU4 NEXT thread

Post by rooted » Sun Apr 09, 2017 5:18 pm

Very nice, what's with the rogue core?

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

Re: Odroid XU3/XU4 NEXT thread

Post by memeka » Sun Apr 09, 2017 5:28 pm

rooted wrote:Very nice, what's with the rogue core?

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

Re: Odroid XU3/XU4 NEXT thread

Post by rooted » Sun Apr 09, 2017 5:35 pm

One core pegged.

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

Re: Odroid XU3/XU4 NEXT thread

Post by memeka » Sun Apr 09, 2017 6:09 pm

rooted wrote:One core pegged.
Oh it was a gnome bug that's been fixed in the meantime :)

leo5111
Posts: 86
Joined: Sat Jan 14, 2017 9:50 am
languages_spoken: english
Has thanked: 5 times
Been thanked: 1 time
Contact:

Re: Odroid XU3/XU4 NEXT thread

Post by leo5111 » Wed Apr 12, 2017 5:02 am

memeka wrote:
leo5111 wrote: by much faster do you mean 2x 3x or what? thinking of building one
what do you think: https://www.youtube.com/watch?v=AkSgm4JF81U
well i never tried on the c2 but i know they say this is faster thats why i asked

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

Re: Odroid XU3/XU4 NEXT thread

Post by memeka » Thu Apr 13, 2017 9:53 am

So .... here's something new:
FullSizeRender.jpg
(79.3 KiB) Downloaded 190 times

Code: Select all

10:15:44.124 T:2451759520    INFO: ffmpeg[9222E1A0]:     Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080, 7162 kb/s, 25 fps, 25 tbr, 600 tbn, 1200 tbc (default)
10:15:44.124 T:2451759520    INFO: ffmpeg[9222E1A0]:     Metadata:
10:15:44.124 T:2451759520    INFO: ffmpeg[9222E1A0]:       creation_time   : 2008-03-18T12:02:23.000000Z
10:15:44.124 T:2451759520    INFO: ffmpeg[9222E1A0]:       handler_name    : Apple Alias Data Handler
10:15:44.124 T:2451759520    INFO: ffmpeg[9222E1A0]:       encoder         : H.264
10:15:44.124 T:2451759520    INFO: ffmpeg[9222E1A0]:     Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 428 kb/s (default)
10:15:44.124 T:2451759520    INFO: ffmpeg[9222E1A0]:     Metadata:
10:15:44.124 T:2451759520    INFO: ffmpeg[9222E1A0]:       creation_time   : 2008-03-18T12:02:23.000000Z
10:15:44.124 T:2451759520    INFO: ffmpeg[9222E1A0]:       handler_name    : Apple Alias Data Handler
10:15:44.124 T:2451759520   DEBUG: CDVDDemuxFFmpeg::AddStream ID: 0
10:15:44.124 T:2451759520   DEBUG: CDVDDemuxFFmpeg::AddStream ID: 1
10:15:44.124 T:2451759520  NOTICE: Opening stream: 0 source: 256
10:15:44.124 T:2451759520  NOTICE: Creating video codec with codec id: 28
10:15:44.124 T:2451759520    INFO: CBitstreamConverter::Open bitstream to annexb init
10:15:44.124 T:2451759520  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: V4L2 mem2mem H.264 decoder wrapper
10:15:44.124 T:2451759520    INFO: ffmpeg[9222E1A0]: [h264_v4l2m2m] Device path not set, probing /dev/video*
10:15:44.129 T:2451759520    INFO: ffmpeg[9222E1A0]: [h264_v4l2m2m] Using device /dev/video10
10:15:44.131 T:2451759520    INFO: ffmpeg[9222E1A0]: [h264_v4l2m2m] Pixelformat nv12 is accepted on capture pool, using it.
10:15:44.214 T:2451759520   DEBUG: ffmpeg[9222E1A0]: [h264_v4l2m2m] Performing useless memcpy() on output pool because buffers do not match
10:15:44.214 T:2451759520   DEBUG: ffmpeg[9222E1A0]: [h264_v4l2m2m] This could be avoided by using av_v4l_buffer_pool_get_buffer*() or av_v4l_buffer_pool_make_pipe()
10:15:44.306 T:2451759520   DEBUG: CDVDVideoCodecFFmpeg - Updated codec: ff-h264_v4l2m2m
10:15:44.306 T:2451759520   DEBUG: CVideoPlayerVideo::OpenStream - open stream with codec id: 28
Currently it's buggy - kodi crashes when you close the file, and playback is slow for some reason (although CPU usage is not high, no core is @100%).
Anyone want to help with the implementation? :D (I'm looking at you @Oversun)

EDIT:

Code: Select all

0:17:01.694 T:2206200224   DEBUG: CVideoPlayerVideo::CalcDropRequirement - hurry: 1
10:17:03.386 T:2206200224   DEBUG: Previous line repeats 8 times.
10:17:03.386 T:2206200224   DEBUG: CVideoPlayerVideo::CalcDropRequirement - hurry: 0
10:17:03.571 T:2206200224   DEBUG: CVideoPlayerVideo::CalcDropRequirement - hurry: 1
10:17:05.270 T:2206200224   DEBUG: Previous line repeats 8 times.
10:17:05.270 T:2206200224   DEBUG: CVideoPlayerVideo::CalcDropRequirement - hurry: 0
10:17:05.458 T:2206200224   DEBUG: CVideoPlayerVideo::CalcDropRequirement - hurry: 1
10:17:05.835 T:2206200224   DEBUG: Previous line repeats 1 times.
10:17:05.835 T:2206200224   DEBUG: CVideoPlayerVideo::CalcDropRequirement - hurry: 0
10:17:06.023 T:2206200224   DEBUG: CVideoPlayerVideo::CalcDropRequirement - hurry: 1
10:17:07.906 T:2293236128   DEBUG: Previous line repeats 9 times.

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

Re: Odroid XU3/XU4 NEXT thread

Post by rooted » Thu Apr 13, 2017 12:23 pm

Is that file interlaced?

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

Re: Odroid XU3/XU4 NEXT thread

Post by memeka » Thu Apr 13, 2017 1:26 pm

rooted wrote:Is that file interlaced?
No

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

Re: Odroid XU3/XU4 NEXT thread

Post by memeka » Thu Apr 13, 2017 9:07 pm

Just a note:
One thing to check is the pts values, since CPU is low but playback is slow maybe the ffmpeg codec has issues with pts...

Aeronaut
Posts: 23
Joined: Mon Aug 31, 2015 6:38 pm
languages_spoken: english, german
ODROIDs: ODROID-XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: Odroid XU3/XU4 NEXT thread

Post by Aeronaut » Mon May 01, 2017 5:57 pm

mad_ady wrote:How do you change the Fan PWM percentage for the 4.9 kernel? Meaning if I reach 60C I'd like the fan to blow with 30% RPM, If I get to 70C, blow with 60% and anything higher, blow with 100%?
I found the trip points in /sys/devices/virtual/thermal/thermal_zone0/trip_point_[0-2]_temp and I can change them. They are linked to cooling devices (cdev[0-6]), but the cooling devices don't have an obvious link to what PWM they should employ.
I can manually change the current PWM of the fan by echoing 0-255 in /sys/devices/platform/pwm-fan:/hwmon/hwmon0/pwm1.

But does anyone know where the missing link is hiding?
Any progress on that?
My custom Odroid FAN is making high noise when its at PWM 110 and now I just want to be at PWM 255 when Temp is 70°C...
Maybe somebody can write a little guide how to configure that?

Something else that makes me unsure is that on my XU4 are thermal_zone0 - 4:

Code: Select all

# cat /sys/devices/virtual/thermal/thermal_zone[0-4]/type
cpu0-thermal
cpu1-thermal
cpu2-thermal
cpu3-thermal
gpu-thermal
# cat /sys/devices/virtual/thermal/thermal_zone[0-4]/temp
71000
57000
74000
72000
65000
Are there 5 Sensors on the CPU and if so can it be that there are such high Temperatures differences?

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

Re: Odroid XU3/XU4 NEXT thread

Post by rooted » Tue May 02, 2017 12:26 pm

Unfortunately that whine is unavoidable unless you set the lowest speed above the point the whine goes away, it's different on each fan and each person's hearing.

Aeronaut
Posts: 23
Joined: Mon Aug 31, 2015 6:38 pm
languages_spoken: english, german
ODROIDs: ODROID-XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: Odroid XU3/XU4 NEXT thread

Post by Aeronaut » Tue May 02, 2017 2:57 pm

rooted wrote:Unfortunately that whine is unavoidable unless you set the lowest speed above the point the whine goes away, it's different on each fan and each person's hearing.
Exactly! But how to set this lowest speed?

User avatar
mad_ady
Posts: 8151
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 567 times
Been thanked: 403 times
Contact:

Re: Odroid XU3/XU4 NEXT thread

Post by mad_ady » Tue May 02, 2017 3:13 pm

Aeronaut wrote:
mad_ady wrote:How do you change the Fan PWM percentage for the 4.9 kernel? Meaning if I reach 60C I'd like the fan to blow with 30% RPM, If I get to 70C, blow with 60% and anything higher, blow with 100%?
I found the trip points in /sys/devices/virtual/thermal/thermal_zone0/trip_point_[0-2]_temp and I can change them. They are linked to cooling devices (cdev[0-6]), but the cooling devices don't have an obvious link to what PWM they should employ.
I can manually change the current PWM of the fan by echoing 0-255 in /sys/devices/platform/pwm-fan:/hwmon/hwmon0/pwm1.

But does anyone know where the missing link is hiding?
Any progress on that?
My custom Odroid FAN is making high noise when its at PWM 110 and now I just want to be at PWM 255 when Temp is 70°C...
Maybe somebody can write a little guide how to configure that?

Something else that makes me unsure is that on my XU4 are thermal_zone0 - 4:

Code: Select all

# cat /sys/devices/virtual/thermal/thermal_zone[0-4]/type
cpu0-thermal
cpu1-thermal
cpu2-thermal
cpu3-thermal
gpu-thermal
# cat /sys/devices/virtual/thermal/thermal_zone[0-4]/temp
71000
57000
74000
72000
65000
Are there 5 Sensors on the CPU and if so can it be that there are such high Temperatures differences?
Unfortunately I haven't found a solution either. I was under the impression (from @moon.linux) that there is some unimplemented component that provides access to the PWM. The way I "fixed" it for me was to change the trip points by 10 degrees, so the fan starts after 60C. Also, having a Noctua fan greatly reduces the problem :)

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

Re: Odroid XU3/XU4 NEXT thread

Post by rooted » Tue May 02, 2017 11:19 pm

I also know if no way and have changed trip point 1 to 68°

User avatar
Snk
Posts: 275
Joined: Sun Jul 31, 2016 6:43 am
languages_spoken: Portuguese
ODROIDs: XU4 + eMMC 32GB + UART
Has thanked: 0
Been thanked: 0
Contact:

Re: Odroid XU3/XU4 NEXT thread

Post by Snk » Wed Jun 14, 2017 11:40 am

Hello all good night
No correction for KODI yet? When executing addons the kodi closes alone
It seems to me that when playing videos 1080p 60fps the video has lag.
I can not think of anything that might be causing this, but I've been trying to investigate the cause.

Post Reply

Return to “Linux Kernel 4.14 Debugging Party”

Who is online

Users browsing this forum: No registered users and 2 guests