Odroid XU3/XU4 NEXT thread

Test and fix the Kernel 4.14 features
Post Reply
User avatar
mad_ady
Posts: 8136
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: 565 times
Been thanked: 399 times
Contact:

Re: Odroid XU3/XU4 NEXT thread

Post by mad_ady » Sat Oct 29, 2016 7:06 pm

Damn, and I had just finished compiling 4.8.4, now I have to start over...
First world problems :)

User avatar
mad_ady
Posts: 8136
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: 565 times
Been thanked: 399 times
Contact:

Re: Odroid XU3/XU4 NEXT thread

Post by mad_ady » Sun Oct 30, 2016 2:51 pm

elatllat wrote:4.8.5 merged into odroidxu4 tobetter and mihailescu2m branches.
Does it include the DCOW fix?
https://github.com/hardkernel/linux/com ... 7f6238a86a

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 » Sun Oct 30, 2016 8:30 pm

Yes; that was 4.8.3 or something.

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

Re: Odroid XU3/XU4 NEXT thread

Post by rooted » Mon Oct 31, 2016 3:32 pm

Could someone tell me why we have two RTC devices?

/dev/rtc0 is from s5m
/dev/rtc1 is from s3m

I have been trying to get wakealarm to work to no avail, if it were fully functional we could shutdown the XU4 completely and have it boot up after a specified amount of time. I can write to wakealarm and it functions while running but not after shutting the system down, not that I can see anyway.

User avatar
mad_ady
Posts: 8136
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: 565 times
Been thanked: 399 times
Contact:

Re: Odroid XU3/XU4 NEXT thread

Post by mad_ady » Mon Oct 31, 2016 5:17 pm

I've compiled and booted 4.8.5 (with HMP off) and I enabled most of the modules/features that are present in the odroid's 3.10 kernel. Notable additions are most of the USB peripherals (TV tuners, sound cards, wifi cards) and a lot of networking modules are added (LXC support, VLANs, iptables).

Here is my config for those interested: http://pastebin.com/7YnakKmP

Edit: I might have gotten a bit carried away - my /lib/modules/`uname -r` directory is almost 600MB :) - compared to 37MB in HardKernel's kernel. Must be because my modules have not been stripped:

Code: Select all

adrianp@odroid:/lib/modules> file 4.8.5-dmole-memeka-5-merged-g1decc81/kernel/drivers/media/media.ko 
4.8.5-dmole-memeka-5-merged-g1decc81/kernel/drivers/media/media.ko: ELF 32-bit LSB relocatable, ARM, EABI5 version 1 (SYSV), BuildID[sha1]=9e4b4fb8f30b720fb8197fe4c646e464e147b972, not stripped

User avatar
mad_ady
Posts: 8136
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: 565 times
Been thanked: 399 times
Contact:

Re: Odroid XU3/XU4 NEXT thread

Post by mad_ady » Mon Oct 31, 2016 10:06 pm

I started a new thread discussing specifically hardware encoding on the Odroid XU3/4 here: http://forum.odroid.com/viewtopic.php?f ... 6&p=165741

I managed to compile ffmpeg and use it and I get a framerate of 30-50fps. The problem is - the bitrate parameter is ignored so I get about 30-40Mbps.

Anyway, let's discuss ffmpeg issues on that thread instead.

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 » Tue Nov 01, 2016 2:30 am

mad_ady wrote:...600MB...Must be because my modules have not been stripped...
The official modals are also not stripped, I think there was just a lot of code added in the last 4 years.

Code: Select all

> find /lib/modules/3.10.103-124/ -type f | while read L ; do F=$(echo $L | perl -pe 's/3.10.103-124/4.8.4+/g'); if [ -f $F ] ; then A=$(echo "scale=3;$(du $L | cut -f 1)/$(du $F | cut -f 1)" | bc); echo "$A $L"; fi  done | sort -n | head
.028 /lib/modules/3.10.103-124/kernel/crypto/async_tx/async_raid6_recov.ko
.028 /lib/modules/3.10.103-124/kernel/drivers/bluetooth/hci_uart.ko
.031 /lib/modules/3.10.103-124/kernel/crypto/async_tx/async_memcpy.ko
.032 /lib/modules/3.10.103-124/kernel/fs/squashfs/squashfs.ko
.032 /lib/modules/3.10.103-124/kernel/net/bluetooth/bnep/bnep.ko
.033 /lib/modules/3.10.103-124/kernel/drivers/hid/hid-cherry.ko
.033 /lib/modules/3.10.103-124/kernel/drivers/hid/hid-monterey.ko
.036 /lib/modules/3.10.103-124/kernel/drivers/bluetooth/bcm203x.ko
.037 /lib/modules/3.10.103-124/kernel/net/packet/af_packet_diag.ko
.042 /lib/modules/3.10.103-124/kernel/drivers/net/usb/net1080.ko

> du $A $B
4	/lib/modules/3.10.103-124/kernel/crypto/async_tx/async_raid6_recov.ko
140	/lib/modules/4.8.4+/kernel/crypto/async_tx/async_raid6_recov.ko

> file $A $B
/lib/modules/3.10.103-124/kernel/crypto/async_tx/async_raid6_recov.ko: ELF 32-bit LSB relocatable, ARM, EABI5 version 1 (SYSV), BuildID[sha1]=eabc8067ffb23aa51a48f765b05086967d9523d4, not stripped
/lib/modules/4.8.4+/kernel/crypto/async_tx/async_raid6_recov.ko:       ELF 32-bit LSB relocatable, ARM, EABI5 version 1 (SYSV), BuildID[sha1]=21508457af973632500fda609020082a7e8372a4, not stripped

> git diff --stat odroidxu3-3.10.y odroidxu4-tobetter-4.8 -- /opt/linux/crypto/async_tx/async_raid6_recov.c
 crypto/async_tx/async_raid6_recov.c | 61 +++++++++++++++++++++++++++++++++++++++++++------------------
 1 file changed, 43 insertions(+), 18 deletions(-)

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 » Tue Nov 01, 2016 5:00 pm

4.8.6 merged into odroidxu4 tobetter and mihailescu2m branches.
Last edited by elatllat on Wed Nov 16, 2016 1:39 am, edited 1 time in total.

User avatar
mad_ady
Posts: 8136
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: 565 times
Been thanked: 399 times
Contact:

Re: Odroid XU3/XU4 NEXT thread

Post by mad_ady » Tue Nov 01, 2016 9:12 pm

@elatilat: I tried (twice) 4.8.6 as a fresh pull but it fails with this:

Code: Select all

  CC [M]  drivers/usb/serial/xsens_mt.o
  LD [M]  drivers/usb/serial/usbserial.o
  LD      drivers/usb/built-in.o
  LD      drivers/built-in.o
  LINK    vmlinux
./.config: line 31: $'\r': command not found
Makefile:949: recipe for target 'vmlinux' failed
make: *** [vmlinux] Error 127

Any ideas why?

Edit: I found out why - I copied my config from pastebin and it was in CRLF format. The standard config is in LF format. I will recompile now again

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

Re: Odroid XU3/XU4 NEXT thread

Post by rooted » Tue Nov 01, 2016 9:14 pm

What is the compression method used on zImage in the config?

User avatar
mad_ady
Posts: 8136
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: 565 times
Been thanked: 399 times
Contact:

Re: Odroid XU3/XU4 NEXT thread

Post by mad_ady » Tue Nov 01, 2016 9:20 pm

GZIP:

Code: Select all

CONFIG_HAVE_KERNEL_GZIP=y
CONFIG_HAVE_KERNEL_LZMA=y
CONFIG_HAVE_KERNEL_XZ=y
CONFIG_HAVE_KERNEL_LZO=y
CONFIG_HAVE_KERNEL_LZ4=y
CONFIG_KERNEL_GZIP=y
But I'm recompiling now with the .config in LF format. I think this was causing the issue.

User avatar
mad_ady
Posts: 8136
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: 565 times
Been thanked: 399 times
Contact:

Re: Odroid XU3/XU4 NEXT thread

Post by mad_ady » Tue Nov 01, 2016 10:04 pm

elatllat wrote:
mad_ady wrote:...600MB...Must be because my modules have not been stripped...
The official modals are also not stripped, I think there was just a lot of code added in the last 4 years.

Code: Select all

> find /lib/modules/3.10.103-124/ -type f | while read L ; do F=$(echo $L | perl -pe 's/3.10.103-124/4.8.4+/g'); if [ -f $F ] ; then A=$(echo "scale=3;$(du $L | cut -f 1)/$(du $F | cut -f 1)" | bc); echo "$A $L"; fi  done | sort -n | head
.028 /lib/modules/3.10.103-124/kernel/crypto/async_tx/async_raid6_recov.ko
.028 /lib/modules/3.10.103-124/kernel/drivers/bluetooth/hci_uart.ko
.031 /lib/modules/3.10.103-124/kernel/crypto/async_tx/async_memcpy.ko
.032 /lib/modules/3.10.103-124/kernel/fs/squashfs/squashfs.ko
.032 /lib/modules/3.10.103-124/kernel/net/bluetooth/bnep/bnep.ko
.033 /lib/modules/3.10.103-124/kernel/drivers/hid/hid-cherry.ko
.033 /lib/modules/3.10.103-124/kernel/drivers/hid/hid-monterey.ko
.036 /lib/modules/3.10.103-124/kernel/drivers/bluetooth/bcm203x.ko
.037 /lib/modules/3.10.103-124/kernel/net/packet/af_packet_diag.ko
.042 /lib/modules/3.10.103-124/kernel/drivers/net/usb/net1080.ko

> du $A $B
4	/lib/modules/3.10.103-124/kernel/crypto/async_tx/async_raid6_recov.ko
140	/lib/modules/4.8.4+/kernel/crypto/async_tx/async_raid6_recov.ko

> file $A $B
/lib/modules/3.10.103-124/kernel/crypto/async_tx/async_raid6_recov.ko: ELF 32-bit LSB relocatable, ARM, EABI5 version 1 (SYSV), BuildID[sha1]=eabc8067ffb23aa51a48f765b05086967d9523d4, not stripped
/lib/modules/4.8.4+/kernel/crypto/async_tx/async_raid6_recov.ko:       ELF 32-bit LSB relocatable, ARM, EABI5 version 1 (SYSV), BuildID[sha1]=21508457af973632500fda609020082a7e8372a4, not stripped

> git diff --stat odroidxu3-3.10.y odroidxu4-tobetter-4.8 -- /opt/linux/crypto/async_tx/async_raid6_recov.c
 crypto/async_tx/async_raid6_recov.c | 61 +++++++++++++++++++++++++++++++++++++++++++------------------
 1 file changed, 43 insertions(+), 18 deletions(-)
It seems there are several levels of stripping. I ran make modules_install like this sudo make INSTALL_MOD_STRIP=1 modules_install and now my resulting modules (the same as before) take up only 48MB and they still look like they were unstripped:

Code: Select all

adrianp@odroid:/boot> du -sh /lib/modules/4.8.5-dmole-memeka-5-merged-g1decc81/586M    /lib/modules/4.8.5-dmole-memeka-5-merged-g1decc81/
adrianp@odroid:/boot> du -sh /lib/modules/4.8.6-dmole-memeka-5-merged-g84b59b5/48M     /lib/modules/4.8.6-dmole-memeka-5-merged-g84b59b5/
adrianp@odroid:/boot> file /lib/modules/4.8.6-dmole-memeka-5-merged-g84b59b5/kernel/crypto/async_tx/async_raid6_recov.ko 
/lib/modules/4.8.6-dmole-memeka-5-merged-g84b59b5/kernel/crypto/async_tx/async_raid6_recov.ko: ELF 32-bit LSB relocatable, ARM, EABI5 version 1 (SYSV), BuildID[sha1]=f3e99dfe4834151a5af6f01a98f2e5ee918f44e6, not stripped
A nice save of space (and probably memory/load time).

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 » Tue Nov 01, 2016 10:17 pm

should make a bug report on the file tool ...
Last edited by elatllat on Tue Nov 01, 2016 10:39 pm, edited 1 time in total.

moon.linux
Posts: 1186
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english
ODROIDs: U3, XU3. XU4, C1+...
Has thanked: 0
Been thanked: 13 times
Contact:

Re: Odroid XU3/XU4 NEXT thread

Post by moon.linux » Tue Nov 01, 2016 10:29 pm

rooted wrote:Could someone tell me why we have two RTC devices?

/dev/rtc0 is from s5m
/dev/rtc1 is from s3m

I have been trying to get wakealarm to work to no avail, if it were fully functional we could shutdown the XU4 completely and have it boot up after a specified amount of time. I can write to wakealarm and it functions while running but not after shutting the system down, not that I can see anyway.
Their are two RTC module feature on the board. One is the RTC is related to onboard rtc module and other is the s2mps11_pmic clk.
If you are looking for suspend resume feature to work on this board. This feature is broken at this moment.

User avatar
mad_ady
Posts: 8136
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: 565 times
Been thanked: 399 times
Contact:

Re: Odroid XU3/XU4 NEXT thread

Post by mad_ady » Tue Nov 01, 2016 10:38 pm

elatllat wrote:should make a bug report on the file tool ...
No, I think the file tool is ok. It's the kernel modules which have different level of symbols. If you strip them all out then some modules won't load: http://unix.stackexchange.com/questions ... el-modules

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 » Tue Nov 01, 2016 10:42 pm

That's no excuse;
IMO the file tool should know the line between "stripped" and "broken" and ignore the symbols that break if removed.
Otherwise there is just no point in having that extra bit of information.

Anyway it's probably reasonable to just unset CONFIG_DEBUG_INFO by default.

User avatar
mad_ady
Posts: 8136
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: 565 times
Been thanked: 399 times
Contact:

Re: Odroid XU3/XU4 NEXT thread

Post by mad_ady » Tue Nov 01, 2016 10:51 pm

That might be unrealistic to ask of the file tool. After all the kernel makefile/logic should know what symbols are needed for each module and keep them. The bottom line is that modules stripped of debug symbols still have some symbols needed for them to work, so they appear non-stripped.
https://www.mjmwired.net/kernel/Documen ... ld.txt#144

moon.linux
Posts: 1186
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english
ODROIDs: U3, XU3. XU4, C1+...
Has thanked: 0
Been thanked: 13 times
Contact:

Re: Odroid XU3/XU4 NEXT thread

Post by moon.linux » Wed Nov 02, 2016 12:23 am

@elatllat

Code: Select all

Anyway it's probably reasonable to just unset CONFIG_DEBUG_INFO by default.
When we got some kernel crash we need the debug symbols to trace down the module or cause of the crash.

We should keep minimal debug flags enable to gather relevant information. No need to strip the modules we dont get much advantage.
At the most we can do is we compile only relevant modules which are used by this development board this reduces the build time required.

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 » Wed Nov 02, 2016 1:42 am

mad_ady wrote:That might be unrealistic to ask of the file tool...
Like I said if it's unrealistic for the file to to know if a file is stripped than it should not attempt a guess as to whether it's stripped.
moon.linux wrote:...When we got some kernel crash we need the debug symbols to trace down the module or cause of the crash...
Yes, if and when I experience a crash I'll recompile with debug, and reproduce to find out what's what.
moon.linux wrote:...compile only relevant modules which are used by this development board...
Yes, if we all merge to tobetter odroidxu4_defconfig or mihailescu2m odroidxu4_defconfig it will be more likely we can easily reproduce issues and help.

User avatar
mad_ady
Posts: 8136
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: 565 times
Been thanked: 399 times
Contact:

Re: Odroid XU3/XU4 NEXT thread

Post by mad_ady » Fri Nov 04, 2016 6:30 pm

@elatllat: I'd like to ask for your help to reproduce/investigate an issue with hardware encoding. I'm now running your kernel 4.8.6 memeka's branch and when encoding video with either gstreamer or ffmpeg I get black output as a result (when setting bitrate). Steps to reproduce are here: http://forum.odroid.com/viewtopic.php?f ... 41#p165741

I managed to get output with a previous kernel of yours (I think it was 4.8.5) with ffmpeg (with a very high bitrate though). Since both ffmpeg and gstreamer produce black output it seems the problem is related and could have a common cause (like the kernel).

Can you (or anyone else) try to reproduce my findings?

Also, I'm a git noob - how do I clone the previous version (4.8.5)? I tried with

Code: Select all

$ git clone --depth 1 -b odroidxu4-mihailescu2m-4.8 https://github.com/Dmole/linux.git
$ cd linux
$ git reset -- hard 3cf02960bc4def449050e7a65802611f550e20fb
But it still looks like 4.8.6...

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 » Fri Nov 04, 2016 9:58 pm

You can't use "--depth 1" to view history, so omit that.

Get rid of the space before hard so "-- hard" becomes "--hard" and also do a "make clean", and use "git status" and "git status --ignored" to know what state git is in. (.config is not tracked so be sure to "make odroidxu4_defconfig")

There is a tool call git bisect you might find useful.

odroidxu4-mihailescu2m-4.8
4.8.6 94035c86a47f1840fd8e663eed3d1dbbc1d532f1
4.8.5 1decc81c96fdd9ae2792c3234d51f489168b485d
4.8.4 8dcb61bf569299d2ab463641f3fdf49c029c7644
4.8.3 48b2e012a169aab39e0a6b0b1921d8eb0ea6e852
Last edited by elatllat on Fri Nov 04, 2016 10:52 pm, edited 1 time in total.

User avatar
mad_ady
Posts: 8136
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: 565 times
Been thanked: 399 times
Contact:

Re: Odroid XU3/XU4 NEXT thread

Post by mad_ady » Fri Nov 04, 2016 10:51 pm

Thanks for the tips. I'll try it. I figured why git reset didn't work in my case (apart from the extra space). I was using a branch with a depth of 1, so no git history... D'oh...

moon.linux
Posts: 1186
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english
ODROIDs: U3, XU3. XU4, C1+...
Has thanked: 0
Been thanked: 13 times
Contact:

Re: Odroid XU3/XU4 NEXT thread

Post by moon.linux » Sun Nov 06, 2016 2:33 pm

I would like you to integrate the usb patch and see if you have some improvement in USB 3.0 feature functionality.
Attachments
usbdebug.tar
usb gpio internal feature.
(20 KiB) Downloaded 70 times

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 » Sun Nov 06, 2016 3:44 pm

moon.linux wrote:I would like you to integrate the usb patch and see if you have some improvement in USB 3.0 feature functionality.
Sure the current way is a functional hack but there is no USB OTG on the XU4 so it's hard to properly test that patch.

moon.linux
Posts: 1186
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english
ODROIDs: U3, XU3. XU4, C1+...
Has thanked: 0
Been thanked: 13 times
Contact:

Re: Odroid XU3/XU4 NEXT thread

Post by moon.linux » Sun Nov 06, 2016 6:58 pm

It know @krzysztof (samsung) send some similar patch for OTG. But this patch is useful for USB cable state information to the USB driver internally.
Their is some uncertainty on the vbus feature for Odroid XU4 for USB 3.0 from the schematics.

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

Re: Odroid XU3/XU4 NEXT thread

Post by mattrix » Tue Nov 08, 2016 2:13 pm

You guys might want to enable seccomp in the def_config?
Using ARCH LINUX you get all sorts of errors without this as I just found out (networking errors / login errors)

User avatar
mad_ady
Posts: 8136
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: 565 times
Been thanked: 399 times
Contact:

Re: Odroid XU3/XU4 NEXT thread

Post by mad_ady » Tue Nov 08, 2016 11:16 pm

elatllat wrote:You can't use "--depth 1" to view history, so omit that.

Get rid of the space before hard so "-- hard" becomes "--hard" and also do a "make clean", and use "git status" and "git status --ignored" to know what state git is in. (.config is not tracked so be sure to "make odroidxu4_defconfig")

There is a tool call git bisect you might find useful.

odroidxu4-mihailescu2m-4.8
4.8.6 94035c86a47f1840fd8e663eed3d1dbbc1d532f1
4.8.5 1decc81c96fdd9ae2792c3234d51f489168b485d
4.8.4 8dcb61bf569299d2ab463641f3fdf49c029c7644
4.8.3 48b2e012a169aab39e0a6b0b1921d8eb0ea6e852
I traced the problem to my work PC. Transcoding was working all along but I wasn't able to play video. So your patches are ok, sorry for the confusion...

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 » Tue Nov 08, 2016 11:55 pm

mad_ady wrote:...iptables...
mattrix wrote:...seccomp...
added to odroidxu4_defconfig

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

Re: Odroid XU3/XU4 NEXT thread

Post by mattrix » Wed Nov 09, 2016 6:29 am

@elatllat

I'm using your tobetter branch on Arch Linux and it's running very nicely!

Does anyone know much about UAS?
My two seagate drives show up as
Port 1: Dev 5, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
[ 13.716498] sd 1:0:0:0: [sdb] 732566645 4096-byte logical blocks: (3.00 TB/2.73 TiB)
[ 13.752835] sd 1:0:0:0: [sdb] Write Protect is off
[ 13.756323] sd 1:0:0:0: [sdb] Mode Sense: 4f 00 00 00
[ 13.757028] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 13.792365] sdb: sdb1
[ 13.798421] sd 1:0:0:0: [sdb] Attached SCSI disk
[ 14.715380] .ready
[ 14.717145] sd 0:0:0:0: [sda] 976754645 4096-byte logical blocks: (4.00 TB/3.64 TiB)
[ 14.733703] sd 0:0:0:0: [sda] Write Protect is off
[ 14.737312] sd 0:0:0:0: [sda] Mode Sense: 4f 00 00 00
[ 14.738409] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 14.776467] sda: sda1
[ 14.786921] sd 0:0:0:0: [sda] Attached SCSI disk
lsmod does show the uas
Module Size Used by
uas 11910 0
usb_storage 40873 4 uas
Hmm, does that mean usb_storage is using the UAS module so it is actually in use?

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 » Wed Nov 09, 2016 9:46 am

===== WAYLAND UPDATE =====

ARM released Mali r12p0 wayland drivers. There is a new nice extension, but the nested compositor issue is still there. So nothing new.
Waiting now for next release and hope the nested compositor bug is fixed.

daviessm
Posts: 112
Joined: Thu Jul 25, 2013 2:14 am
languages_spoken: English, German
ODROIDs: X2, XU4
Location: Belfast, UK
Has thanked: 0
Been thanked: 0
Contact:

Re: Odroid XU3/XU4 NEXT thread

Post by daviessm » Thu Nov 10, 2016 6:22 pm

mattrix wrote:@elatllat

I'm using your tobetter branch on Arch Linux and it's running very nicely!

Does anyone know much about UAS?
My two seagate drives show up as
Port 1: Dev 5, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
[...]
Hmm, does that mean usb_storage is using the UAS module so it is actually in use?
I noticed this too. I'm pretty sure that on 4.6 the driver showed up as "uas" and the disk access feels slower on 4.8.

ximae
Posts: 118
Joined: Sat Jan 10, 2015 3:16 am
languages_spoken: english, spanish
ODROIDs: c1 and c2
Location: spain
Has thanked: 0
Been thanked: 0
Contact:

Re: Odroid XU3/XU4 NEXT thread

Post by ximae » Fri Nov 11, 2016 3:07 am

memeka wrote:===== WAYLAND UPDATE =====

ARM released Mali r12p0 wayland drivers. There is a new nice extension, but the nested compositor issue is still there. So nothing new.
Waiting now for next release and hope the nested compositor bug is fixed.
shame, hope it gets fixed soon and you get it working asap.

btw i have a question about this, once it is working i get what the benefits on the general desktop use will be but will video playback on gpu accelerated window/environment also be gpu accelerated or will it still have to go through vpu acceleration for there to be any real improvement?

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 » Fri Nov 11, 2016 3:23 am

4.8.7 merged into odroidxu4 tobetter and mihailescu2m branches.

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 » Fri Nov 11, 2016 5:36 am

ximae wrote:
memeka wrote:===== WAYLAND UPDATE =====

ARM released Mali r12p0 wayland drivers. There is a new nice extension, but the nested compositor issue is still there. So nothing new.
Waiting now for next release and hope the nested compositor bug is fixed.
shame, hope it gets fixed soon and you get it working asap.

btw i have a question about this, once it is working i get what the benefits on the general desktop use will be but will video playback on gpu accelerated window/environment also be gpu accelerated or will it still have to go through vpu acceleration for there to be any real improvement?
Currently, the desktop general environment is GPU accelerated, except for the special case of the browser, where the tabs are not, because of the driver bug.
Next, the video playback is VPU accelerated in applications such as kodi, ffmpeg (still has some small issues), gstreamer and gstreamer players (like gnome-video aka totem).
Also, videos in the browser are already VPU accelerated, IF the browser is webkit (like gnome-web aka epiphany). This is because webkit uses gstreamer to decode videos. However, because the page itself is not GPU accelerated, videos are too slow, and you need to play them at low resolution. With the driver bug fixed, and webkit working GPU-accelerated, we will have a browser with both GPU and VPU acceleration.

EDIT: of course, this is in theory, since nobody tried this before :)

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

Re: Odroid XU3/XU4 NEXT thread

Post by rooted » Fri Nov 11, 2016 5:42 pm

I just noticed that sound is working on mainline, it wasn't previously was it?

lactio
Posts: 5
Joined: Sun Jul 17, 2016 3:46 pm
languages_spoken: english
ODROIDs: odroid xu4
Has thanked: 0
Been thanked: 0
Contact:

Re: Odroid XU3/XU4 NEXT thread

Post by lactio » Sun Nov 13, 2016 4:50 pm

My USB 3 port in odroid xu4 can't work. When I plug in an USB 3 device, it can't be recognize and show some message at the first plug in like this:
[ 36.745861] usb 1-1: reset high-speed USB device number 2 using xhci-hcd
[ 36.887353] usb 1-1: device firmware changed
[ 36.890212] usb 1-1: USB disconnect, device number 2
[ 37.156839] usb 1-1: new high-speed USB device number 3 using xhci-hcd
[ 37.305968] usb 1-1: New USB device found, idVendor=05e3, idProduct=0610
[ 37.311224] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 37.318371] usb 1-1: Product: USB2.0 Hub
[ 37.322259] usb 1-1: Manufacturer: GenesysLogic
[ 37.354504] hub 1-1:1.0: USB hub found
[ 37.357172] hub 1-1:1.0: 2 ports detected
Or:
[ 42.422394] usb 1-1: reset high-speed USB device number 2 using xhci-hcd
If I have plugged in the device and reboot, it works after I finished reboot.
USB 2 devices work normally.
Kernel mihailescu2m 4.8.7 on Dmole's repo.
Kernel config: https://clbin.com/6XFEs
dmesg: http://pastebin.ubuntu.com/23469661/
Last edited by lactio on Sun Nov 13, 2016 4:59 pm, edited 1 time in total.

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

Re: Odroid XU3/XU4 NEXT thread

Post by rooted » Sun Nov 13, 2016 4:57 pm

lactio wrote:My USB 3 port can't work. When I plug in an USB 3 device, it can't be recognize and show some message at the first plug in like this:
[ 36.745861] usb 1-1: reset high-speed USB device number 2 using xhci-hcd
[ 36.887353] usb 1-1: device firmware changed
[ 36.890212] usb 1-1: USB disconnect, device number 2
[ 37.156839] usb 1-1: new high-speed USB device number 3 using xhci-hcd
[ 37.305968] usb 1-1: New USB device found, idVendor=05e3, idProduct=0610
[ 37.311224] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 37.318371] usb 1-1: Product: USB2.0 Hub
[ 37.322259] usb 1-1: Manufacturer: GenesysLogic
[ 37.354504] hub 1-1:1.0: USB hub found
[ 37.357172] hub 1-1:1.0: 2 ports detected
Or:
[ 42.422394] usb 1-1: reset high-speed USB device number 2 using xhci-hcd
If I have plugged in the device and reboot, it works after I finished reboot.
USB 2 devices work normally.
Kernel mihailescu2m 4.8.7 on Dmole's repo.
dmesg: http://pastebin.ubuntu.com/23469661/
It's a known issue that's actively being worked on by moon.linux and Samsung.

lactio
Posts: 5
Joined: Sun Jul 17, 2016 3:46 pm
languages_spoken: english
ODROIDs: odroid xu4
Has thanked: 0
Been thanked: 0
Contact:

Re: Odroid XU3/XU4 NEXT thread

Post by lactio » Sun Nov 13, 2016 5:06 pm

rooted wrote:
lactio wrote:My USB 3 port can't work. When I plug in an USB 3 device, it can't be recognize and show some message at the first plug in like this:
[ 36.745861] usb 1-1: reset high-speed USB device number 2 using xhci-hcd
[ 36.887353] usb 1-1: device firmware changed
[ 36.890212] usb 1-1: USB disconnect, device number 2
[ 37.156839] usb 1-1: new high-speed USB device number 3 using xhci-hcd
[ 37.305968] usb 1-1: New USB device found, idVendor=05e3, idProduct=0610
[ 37.311224] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 37.318371] usb 1-1: Product: USB2.0 Hub
[ 37.322259] usb 1-1: Manufacturer: GenesysLogic
[ 37.354504] hub 1-1:1.0: USB hub found
[ 37.357172] hub 1-1:1.0: 2 ports detected
Or:
[ 42.422394] usb 1-1: reset high-speed USB device number 2 using xhci-hcd
If I have plugged in the device and reboot, it works after I finished reboot.
USB 2 devices work normally.
Kernel mihailescu2m 4.8.7 on Dmole's repo.
dmesg: http://pastebin.ubuntu.com/23469661/
It's a known issue that's actively being worked on by moon.linux and Samsung.
OK, thanks. I found that post.

daviessm
Posts: 112
Joined: Thu Jul 25, 2013 2:14 am
languages_spoken: English, German
ODROIDs: X2, XU4
Location: Belfast, UK
Has thanked: 0
Been thanked: 0
Contact:

Re: Odroid XU3/XU4 NEXT thread

Post by daviessm » Mon Nov 14, 2016 6:16 pm

mattrix wrote:@elatllat

I'm using your tobetter branch on Arch Linux and it's running very nicely!

Does anyone know much about UAS?
My two seagate drives show up as
Port 1: Dev 5, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
[ 13.716498] sd 1:0:0:0: [sdb] 732566645 4096-byte logical blocks: (3.00 TB/2.73 TiB)
[ 13.752835] sd 1:0:0:0: [sdb] Write Protect is off
[ 13.756323] sd 1:0:0:0: [sdb] Mode Sense: 4f 00 00 00
[ 13.757028] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 13.792365] sdb: sdb1
[ 13.798421] sd 1:0:0:0: [sdb] Attached SCSI disk
[ 14.715380] .ready
[ 14.717145] sd 0:0:0:0: [sda] 976754645 4096-byte logical blocks: (4.00 TB/3.64 TiB)
[ 14.733703] sd 0:0:0:0: [sda] Write Protect is off
[ 14.737312] sd 0:0:0:0: [sda] Mode Sense: 4f 00 00 00
[ 14.738409] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 14.776467] sda: sda1
[ 14.786921] sd 0:0:0:0: [sda] Attached SCSI disk
lsmod does show the uas
Module Size Used by
uas 11910 0
usb_storage 40873 4 uas
Hmm, does that mean usb_storage is using the UAS module so it is actually in use?
Do you also see this?

Code: Select all

[    5.896741] usb 4-1.1.2: USB controller xhci-hcd.2.auto does not support streams, which are required by the UAS driver.
[    5.906243] usb 4-1.1.2: Please try an other USB controller if you wish to use UAS.
I vaguely remember some USB tweak had to be made before UAS was enabled...

fnoop
Posts: 68
Joined: Thu Apr 28, 2016 6:04 am
languages_spoken: english
ODROIDs: XU4, oCam
Has thanked: 0
Been thanked: 0
Contact:

Re: Odroid XU3/XU4 NEXT thread

Post by fnoop » Mon Nov 14, 2016 6:47 pm

rooted wrote:
lactio wrote:My USB 3 port can't work. When I plug in an USB 3 device, it can't be recognize and show some message at the first plug in like this:
[ 36.745861] usb 1-1: reset high-speed USB device number 2 using xhci-hcd
[ 36.887353] usb 1-1: device firmware changed
[ 36.890212] usb 1-1: USB disconnect, device number 2
[ 37.156839] usb 1-1: new high-speed USB device number 3 using xhci-hcd
[ 37.305968] usb 1-1: New USB device found, idVendor=05e3, idProduct=0610
[ 37.311224] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 37.318371] usb 1-1: Product: USB2.0 Hub
[ 37.322259] usb 1-1: Manufacturer: GenesysLogic
[ 37.354504] hub 1-1:1.0: USB hub found
[ 37.357172] hub 1-1:1.0: 2 ports detected
Or:
[ 42.422394] usb 1-1: reset high-speed USB device number 2 using xhci-hcd
If I have plugged in the device and reboot, it works after I finished reboot.
USB 2 devices work normally.
Kernel mihailescu2m 4.8.7 on Dmole's repo.
dmesg: http://pastebin.ubuntu.com/23469661/
It's a known issue that's actively being worked on by moon.linux and Samsung.
Confirmed oCam doesn't work using 4.8.7-dmole-memeka-5-merged-g204f4c3-dirty with similar symptoms to above. Hope it gets fixed soon, not much use without usb!

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 » Wed Nov 16, 2016 12:58 am

4.8.8 merged into odroidxu4 tobetter and mihailescu2m branches.

lactio
Posts: 5
Joined: Sun Jul 17, 2016 3:46 pm
languages_spoken: english
ODROIDs: odroid xu4
Has thanked: 0
Been thanked: 0
Contact:

Re: Odroid XU3/XU4 NEXT thread

Post by lactio » Fri Nov 18, 2016 12:46 am

rooted wrote:I just noticed that sound is working on mainline, it wasn't previously was it?
XU3's audio should work. I found an XU3 audio DTSi in kernel tree, but XU4 doesn't. Even I included that audio DTSi into XU4's device tree manually. Maybe some memory address are incorrect.
However, XU4 is so similar to XU3 that they share same device tree in verdor kernel. So I still can't understand why XU3's audio device tree source can't use in XU4.

LiquidAcid
Posts: 1093
Joined: Fri Oct 11, 2013 11:07 pm
languages_spoken: english
ODROIDs: X2
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Odroid XU3/XU4 NEXT thread

Post by LiquidAcid » Fri Nov 18, 2016 9:19 am

lactio wrote:However, XU4 is so similar to XU3 that they share same device tree in verdor kernel. So I still can't understand why XU3's audio device tree source can't use in XU4.
You say it yourself. The device is similar, but obviously not the same. In particular see upstream commit 8cec734904f55d5551ac97fa9910752ef521a673.

MastaG
Posts: 323
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 » Mon Nov 21, 2016 10:13 pm

rooted wrote:
lactio wrote:My USB 3 port can't work. When I plug in an USB 3 device, it can't be recognize and show some message at the first plug in like this:
[ 36.745861] usb 1-1: reset high-speed USB device number 2 using xhci-hcd
[ 36.887353] usb 1-1: device firmware changed
[ 36.890212] usb 1-1: USB disconnect, device number 2
[ 37.156839] usb 1-1: new high-speed USB device number 3 using xhci-hcd
[ 37.305968] usb 1-1: New USB device found, idVendor=05e3, idProduct=0610
[ 37.311224] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 37.318371] usb 1-1: Product: USB2.0 Hub
[ 37.322259] usb 1-1: Manufacturer: GenesysLogic
[ 37.354504] hub 1-1:1.0: USB hub found
[ 37.357172] hub 1-1:1.0: 2 ports detected
Or:
[ 42.422394] usb 1-1: reset high-speed USB device number 2 using xhci-hcd
If I have plugged in the device and reboot, it works after I finished reboot.
USB 2 devices work normally.
Kernel mihailescu2m 4.8.7 on Dmole's repo.
dmesg: http://pastebin.ubuntu.com/23469661/
It's a known issue that's actively being worked on by moon.linux and Samsung.
Yeah this issue is a bit annoying here as well, since I'm using the USB 3.0 gigabit adapter.
Any updates on this one?

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 » Mon Nov 21, 2016 11:15 pm

4.8.10 merged into odroidxu4 tobetter and mihailescu2m branches.

MastaG
Posts: 323
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 » Mon Nov 21, 2016 11:37 pm

memeka wrote:===== WAYLAND UPDATE =====

ARM released Mali r12p0 wayland drivers. There is a new nice extension, but the nested compositor issue is still there. So nothing new.
Waiting now for next release and hope the nested compositor bug is fixed.
Hi memeka,

You're reffering to these drivers http://malideveloper.arm.com/resources/ ... e-drivers/ right?
Do these new userspace drivers also require the kernel drivers to be updated with these? http://malideveloper.arm.com/resources/ ... l-drivers/
Or can I just replace the binaries after building your tree?

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 » Tue Nov 22, 2016 4:39 am

MastaG wrote: Hi memeka,

You're reffering to these drivers http://malideveloper.arm.com/resources/ ... e-drivers/ right?
Do these new userspace drivers also require the kernel drivers to be updated with these? http://malideveloper.arm.com/resources/ ... l-drivers/
Or can I just replace the binaries after building your tree?
yes, those drivers.
my tree uses r13p0 kernel drivers.
malideveloper published up to r12p0 binary, so you don't need to update anything, just replace binaries. weston should work out of the box.

MastaG
Posts: 323
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 » Tue Nov 22, 2016 4:58 am

Thank you for memeka for your conitnues time and dedication into this project :)
It's been a while since I've played with it, just recently got myself a XU4.
My Fedora images back in XU days using libhybris was a long time ago.

My plan is to use your kernel, mfc accelerated ffmpeg and the r12p0 drivers within Recalbox.
It uses the buildroot package system so it shouldn't be hard to integrate.

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 » Tue Nov 22, 2016 11:51 am

MastaG wrote:Thank you for memeka for your conitnues time and dedication into this project :)
It's been a while since I've played with it, just recently got myself a XU4.
My Fedora images back in XU days using libhybris was a long time ago.

My plan is to use your kernel, mfc accelerated ffmpeg and the r12p0 drivers within Recalbox.
It uses the buildroot package system so it shouldn't be hard to integrate.
ffmpeg mfc is currently still in development, decoder is not working out-of-the-box.
also, HK released a r14 binary driver. I want to release soon a 4.9 kernel with r14 kernel drivers. HK also plans to support 4.9 kernel, so that's good news.

MastaG
Posts: 323
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 » Tue Nov 22, 2016 5:14 pm

That's great news.
I like how HK is supporting the XU3/4 for such a long period.
Looking forward to 4.9.

Post Reply

Return to “Linux Kernel 4.14 Debugging Party”

Who is online

Users browsing this forum: No registered users and 1 guest