[Arch] Kodi won't start

Moderators: mdrjr, odroid

[Arch] Kodi won't start

Unread postby Hansg91 » Fri Jul 17, 2015 3:43 am

Hey,

I'm trying to get Kodi to run on my Odroid U3 on Arch. I installed the kodi from the community repository but it does not start. When I start it, it crashes with the following crashlog:

Code: Select all
############## Kodi CRASH LOG ###############

################ SYSTEM INFO ################
 Date: Thu Jul 16 18:34:03 UTC 2015
 Kodi Options:
 Arch: armv7l
 Kernel: Linux 3.8.13.29-2-ARCH #3 SMP PREEMPT Mon Jan 12 19:50:39 MST 2015
 Release: Arch Linux ARM
############## END SYSTEM INFO ##############

############### STACK TRACE #################
=====>  Core file: /home/hgaiser/core (2015-07-16 18:34:04.340463822 +0000)
        =========================================
[New LWP 349]
[New LWP 357]
[New LWP 356]
[New LWP 359]
[New LWP 358]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `/usr/lib/kodi/kodi.bin'.
Program terminated with signal SIGABRT, Aborted.
#0  0xb59586a0 in raise () from /usr/lib/libc.so.6

Thread 5 (Thread 0xb33ff2b0 (LWP 358)):
#0  0xb59f2a44 in poll () from /usr/lib/libc.so.6
Backtrace stopped: Cannot access memory at address 0x4

Thread 4 (Thread 0xb29ff2b0 (LWP 359)):
#0  0xb59f8738 in mmap () from /usr/lib/libc.so.6
#1  0xb598a640 in __GI__IO_file_doallocate () from /usr/lib/libc.so.6
#2  0xb59986b8 in __GI__IO_doallocbuf () from /usr/lib/libc.so.6
#3  0xb59969c8 in __GI__IO_file_xsgetn () from /usr/lib/libc.so.6
#4  0xb598b754 in fread () from /usr/lib/libc.so.6
#5  0xb5f8a858 in ?? () from /usr/lib/libudev.so.1
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 3 (Thread 0xafed62b0 (LWP 356)):
#0  0xb6aab3fc in pthread_cond_timedwait@@GLIBC_2.4 () from /usr/lib/libpthread.so.0
#1  0xafed6770 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 2 (Thread 0xb3d4e2b0 (LWP 357)):
#0  0xb6aab040 in pthread_cond_wait@@GLIBC_2.4 () from /usr/lib/libpthread.so.0
#1  0xb61ca3c4 in pa_threaded_mainloop_wait () from /usr/lib/libpulse.so.0
#2  0x005cbb90 in CAESinkPULSE::AddPackets(unsigned char**, unsigned int, unsigned int) ()
#3  0x005ae314 in ActiveAE::CActiveAESink::OutputSamples(ActiveAE::CSampleBuffer*) ()
#4  0x005b00e8 in ActiveAE::CActiveAESink::StateMachine(int, Actor::Protocol*, Actor::Message*) ()
#5  0x005b09e4 in ActiveAE::CActiveAESink::Process() ()
#6  0x01686074 in CThread::Action() ()
#7  0x01686340 in CThread::staticThread(void*) ()
#8  0xb6aa4e0c in start_thread () from /usr/lib/libpthread.so.0
#9  0xb59fbd60 in ?? () from /usr/lib/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 1 (Thread 0xb3ed9000 (LWP 349)):
#0  0xb59586a0 in raise () from /usr/lib/libc.so.6
#1  0xb5959a38 in abort () from /usr/lib/libc.so.6
#2  0xb5b0b704 in __gnu_cxx::__verbose_terminate_handler () at /build/gcc/src/gcc-5-20150623/libstdc++-v3/libsupc++/vterminate.cc:95
#3  0xb5b09508 in __cxxabiv1::__terminate (handler=<optimized out>) at /build/gcc/src/gcc-5-20150623/libstdc++-v3/libsupc++/eh_terminate.cc:47
#4  0xb5b0957c in std::terminate () at /build/gcc/src/gcc-5-20150623/libstdc++-v3/libsupc++/eh_terminate.cc:57
#5  0xb5b098ac in __cxxabiv1::__cxa_throw (obj=obj@entry=0x2319ef8, tinfo=0xb5bd5d00 <typeinfo for std::logic_error>, dest=0xb5b1e6d8 <std::logic_error::~logic_error()>) at /build/gcc/src/gcc-5-20150623/libstdc++-v3/libsupc++/eh_throw.cc:87
#6  0xb5b31778 in std::__throw_logic_error (__s=<optimized out>) at /build/gcc/src/gcc-5-20150623/libstdc++-v3/src/c++11/functexcept.cc:74
#7  0xb5b4ed00 in std::string::_S_construct<char const*> (__beg=<optimized out>, __end=<optimized out>, __a=...) at /build/gcc/src/gcc-build/armv7l-unknown-linux-gnueabihf/libstdc++-v3/include/bits/basic_string.tcc:577
#8  0xb5b4f188 in _S_construct_aux<char const*> (__a=..., __end=<optimized out>, __beg=0x0) at /build/gcc/src/gcc-build/armv7l-unknown-linux-gnueabihf/libstdc++-v3/include/bits/basic_string.h:4139
#9  _S_construct<char const*> (__a=..., __end=<optimized out>, __beg=0x0) at /build/gcc/src/gcc-build/armv7l-unknown-linux-gnueabihf/libstdc++-v3/include/bits/basic_string.h:4160
#10 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string (this=0xbe8b75f0, __s=0x0, __a=...) at /build/gcc/src/gcc-build/armv7l-unknown-linux-gnueabihf/libstdc++-v3/include/bits/basic_string.tcc:659
#11 0x00a92888 in CWinSystemX11GLES::CreateNewWindow(CStdStr<char> const&, bool, RESOLUTION_INFO&, bool (*)(XBMC_Event&)) ()
#12 0x008b4c94 in CApplication::InitWindow() ()
#13 0x008b7f0c in CApplication::CreateGUI() ()
#14 0x00971224 in XBMC_Run ()
#15 0x002eb36c in main ()
############# END STACK TRACE ###############

################# LOG FILE ##################

18:34:02 T:3018616832  NOTICE: special://profile/ is mapped to: special://masterprofile/
18:34:02 T:3018616832  NOTICE: -----------------------------------------------------------------------
18:34:02 T:3018616832  NOTICE: Starting Kodi (14.2 Git:Unknown). Platform: Linux ARM 32-bit
18:34:02 T:3018616832  NOTICE: Using Release Kodi x32 build
18:34:02 T:3018616832  NOTICE: Kodi compiled May 31 2015 by GCC 4.9.2 for Linux ARM 32-bit version 4.0.0 (262144)
18:34:02 T:3018616832  NOTICE: Running on Arch Linux ARM rolling, kernel: Linux ARM 32-bit version 3.8.13.29-2-ARCH
18:34:02 T:3018616832  NOTICE: FFmpeg statically linked, version: 2.4.6-xbmc-2.4.6-Helix
18:34:02 T:3018616832  NOTICE: Host CPU: ARMv7 Processor rev 0 (v7l), 4 cores available
18:34:02 T:3018616832  NOTICE: ARM Features: Neon enabled
18:34:02 T:3018616832  NOTICE: special://xbmc/ is mapped to: /usr/share/kodi
18:34:02 T:3018616832  NOTICE: special://xbmcbin/ is mapped to: /usr/lib/kodi
18:34:02 T:3018616832  NOTICE: special://masterprofile/ is mapped to: /home/hgaiser/.kodi/userdata
18:34:02 T:3018616832  NOTICE: special://home/ is mapped to: /home/hgaiser/.kodi
18:34:02 T:3018616832  NOTICE: special://temp/ is mapped to: /home/hgaiser/.kodi/temp
18:34:02 T:3018616832  NOTICE: The executable running is: /usr/lib/kodi/kodi.bin
18:34:02 T:3018616832  NOTICE: Local hostname: alarm
18:34:02 T:3018616832  NOTICE: Log File is located: /home/hgaiser/.kodi/temp/kodi.log
18:34:02 T:3018616832  NOTICE: -----------------------------------------------------------------------
18:34:03 T:3018616832   ERROR: DBus: Error org.freedesktop.DBus.Error.ServiceUnknown - The name org.freedesktop.UPower was not provided by any .service files
18:34:03 T:3018616832  NOTICE: load settings...
18:34:03 T:3018616832  NOTICE: Found 1 Lists of Devices
18:34:03 T:3018616832  NOTICE: Enumerated PULSE devices:
18:34:03 T:3018616832  NOTICE:     Device 1
18:34:03 T:3018616832  NOTICE:         m_deviceName      : Default
18:34:03 T:3018616832  NOTICE:         m_displayName     : Default
18:34:03 T:3018616832  NOTICE:         m_displayNameExtra: Default Output Device (PULSEAUDIO)
18:34:03 T:3018616832  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
18:34:03 T:3018616832  NOTICE:         m_channels        : FL,FR
18:34:03 T:3018616832  NOTICE:         m_sampleRates     : 5512,8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000,384000
18:34:03 T:3018616832  NOTICE:         m_dataFormats     : AE_FMT_U8,AE_FMT_S16NE,AE_FMT_S24NE3,AE_FMT_S24NE4,AE_FMT_S32NE,AE_FMT_FLOAT
18:34:03 T:3018616832  NOTICE:     Device 2
18:34:03 T:3018616832  NOTICE:         m_deviceName      : alsa_output.platform-hkdk-snd-max98090.analog-stereo
18:34:03 T:3018616832  NOTICE:         m_displayName     : Built-in Audio Analog Stereo
18:34:03 T:3018616832  NOTICE:         m_displayNameExtra: Speakers (PULSEAUDIO)
18:34:03 T:3018616832  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
18:34:03 T:3018616832  NOTICE:         m_channels        : FL,FR
18:34:03 T:3018616832  NOTICE:         m_sampleRates     : 5512,8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000,384000
18:34:03 T:3018616832  NOTICE:         m_dataFormats     : AE_FMT_U8,AE_FMT_S16NE,AE_FMT_S24NE3,AE_FMT_S24NE4,AE_FMT_S32NE,AE_FMT_FLOAT
18:34:03 T:3018616832  NOTICE: No settings file to load (special://xbmc/system/advancedsettings.xml)
18:34:03 T:3018616832  NOTICE: No settings file to load (special://masterprofile/advancedsettings.xml)
18:34:03 T:3018616832  NOTICE: Default DVD Player: dvdplayer
18:34:03 T:3018616832  NOTICE: Default Video Player: dvdplayer
18:34:03 T:3018616832  NOTICE: Default Audio Player: paplayer
18:34:03 T:3018616832  NOTICE: Disabled debug logging due to GUI setting. Level 0.
18:34:03 T:3018616832  NOTICE: Log level changed to "LOG_LEVEL_NORMAL"
18:34:03 T:3018616832  NOTICE: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.
18:34:03 T:3018616832  NOTICE: Loaded playercorefactory configuration
18:34:03 T:3018616832  NOTICE: Loading player core factory settings from special://masterprofile/playercorefactory.xml.
18:34:03 T:3018616832  NOTICE: special://masterprofile/playercorefactory.xml does not exist. Skipping.
18:34:03 T:2951496368  NOTICE: Thread ActiveAE start, auto delete: false
18:34:03 T:3016999600  NOTICE: Thread AESink start, auto delete: false
18:34:03 T:3016999600  NOTICE: PulseAudio: Opened device Default in pcm mode with Buffersize 150 ms
18:34:03 T:3018616832  NOTICE: Running database version Addons16
18:34:03 T:3018616832  NOTICE: ADDONS: Using repository repository.xbmc.org
18:34:03 T:3018616832   ERROR: Unable to load libcec.so.2, reason: libcec.so.2: cannot open shared object file: No such file or directory
18:34:03 T:3018616832   ERROR: Initialise - failed to initialise bus cec
18:34:03 T:2996826800  NOTICE: Thread PeripBusUSBUdev start, auto delete: false
18:34:03 T:3018616832  NOTICE: Checking resolution 16
18:34:03 T:3018616832   ERROR: failed to initialize egl display


############### END LOG FILE ################

############ END Kodi CRASH LOG #############


I thought it would probably be using the mesa libgl libraries, I tried replacing them with the libraries found here: http://builder.mdrjr.net/tools/u3/4412_r5p0_x11.tar.xz but that didn't change anything. I noticed there is an kodi-c1 for the odroid c1, is there a kodi for u3 as well?

ps. I am running LXDE in lightdm.

EDIT: It seems to work when I don't have odroid-libgl installed, but then it is using mesa and therefore no hardware acceleration? If I install odroid-libgl it crashes on start.
Hansg91
 
Posts: 71
Joined: Tue Oct 22, 2013 9:25 pm
languages_spoken: english
ODROIDs: ODROID U2
ODROID U3
ODROID C1

Re: [Arch] Kodi won't start

Unread postby meveric » Sun Jul 19, 2015 3:00 am

18:34:03 T:3018616832 ERROR: Unable to load libcec.so.2, reason: libcec.so.2: cannot open shared object file: No such file or directory

This says it's missing the libcec drivers which are required for that version of XBMC/Kodi.
You should download the libcec drivers from the same location: http://builder.mdrjr.net/tools/u3/
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
User avatar
meveric
 
Posts: 9167
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

Re: [Arch] Kodi won't start

Unread postby Hansg91 » Mon Jul 20, 2015 3:59 am

meveric wrote:
18:34:03 T:3018616832 ERROR: Unable to load libcec.so.2, reason: libcec.so.2: cannot open shared object file: No such file or directory

This says it's missing the libcec drivers which are required for that version of XBMC/Kodi.
You should download the libcec drivers from the same location: http://builder.mdrjr.net/tools/u3/


Hey meveric, thanks for your response. Perhaps that was also an issue, but I just fixed it by adding my user to the video group. That is probably needed to use the GPU?
Hansg91
 
Posts: 71
Joined: Tue Oct 22, 2013 9:25 pm
languages_spoken: english
ODROIDs: ODROID U2
ODROID U3
ODROID C1

Re: [Arch] Kodi won't start

Unread postby meveric » Mon Jul 20, 2015 5:23 am

depends on how the /dev/mali device is set up.. means who has access to it.. the user under which XBMC/Kodi runs needs access to that.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
User avatar
meveric
 
Posts: 9167
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

Re: [Arch] Kodi won't start

Unread postby gripped » Mon Jul 20, 2015 12:03 pm

If you can get the 'community' one (I guess you mean from the Arch Arm repo) to start at all it won't have hw video decoding.

Have a look at
viewtopic.php?f=79&t=6518&p=95603#p95603
And search for more posts by the author. He made a xbmc arch pkg for the U3. And a full image.
I know you want kodi but working xbmc is better than not working kodi

You need a version of the xbmc/kodi code with oversuns(member here) mfc code for hw video decoding.
Maybe someone else has made Arch Kodi packages for the U3 ? I'm really not sure.

https://github.com/Owersun/xbmc/tree/Helix
is where you can see the Kodi code I mentioned.

I build a version od Kodi for the XU3
The PKGBUILD and other files are here
https://github.com/gripped/odroid-xu3-p ... r/kodi-xu3

With a small amount of work this could be altered to build for the U3. (but it does need altering)

I don't know your capabilities but if you wanted to try and build it yourself I could give you some pointers.

If you want a prebuilt package you may have to accept Xbmc for now.

And you need to make sure you have working mali gpu drivers.
gripped
 
Posts: 691
Joined: Tue May 21, 2013 11:34 pm
languages_spoken: english
ODROIDs: U2 XU U3 XU3

Re: [Arch] Kodi won't start

Unread postby Hansg91 » Tue Jul 21, 2015 1:35 am

meveric wrote:depends on how the /dev/mali device is set up.. means who has access to it.. the user under which XBMC/Kodi runs needs access to that.


Yes exactly, /dev/mali is owned by root:video and I hadn't added my user to video. I didn't realize this was necessary and forgot about it as well, but it makes sense. I figured it out when I was testing some stuff and ran startx as root instead of as my user and it was working then. I added myself to the video group and it is working fine now.

gripped wrote:If you can get the 'community' one (I guess you mean from the Arch Arm repo) to start at all it won't have hw video decoding.

Have a look at
viewtopic.php?f=79&t=6518&p=95603#p95603
And search for more posts by the author. He made a xbmc arch pkg for the U3. And a full image.
I know you want kodi but working xbmc is better than not working kodi

You need a version of the xbmc/kodi code with oversuns(member here) mfc code for hw video decoding.
Maybe someone else has made Arch Kodi packages for the U3 ? I'm really not sure.

https://github.com/Owersun/xbmc/tree/Helix
is where you can see the Kodi code I mentioned.

I build a version od Kodi for the XU3
The PKGBUILD and other files are here
https://github.com/gripped/odroid-xu3-p ... r/kodi-xu3

With a small amount of work this could be altered to build for the U3. (but it does need altering)

I don't know your capabilities but if you wanted to try and build it yourself I could give you some pointers.

If you want a prebuilt package you may have to accept Xbmc for now.

And you need to make sure you have working mali gpu drivers.


I did indeed have the community (Arch Arm repo) version of kodi, but I was also experimenting with kodi-git and compiled that on my U3. After disabling VAAPI and VDPAU it compiled and I am running it at the moment. It seems to be using HW decoding as far as I can tell, everything I have tried so far is at least running smoothly (including a 2.2gb 1080p file of the avengers). Looking at the CPU usage now, the main thread is using about 40% according to htop (this is playing a lesser quality video file, which happens to be playing right now). In kodi it says dc:ff-h264, should it say mfc there?

EDIT: Ah yes, it should say mfc.264, I'll get to compiling that fork (I have been noticing that it will get quite hot after a while ;) ), thank you for the responses.

EDIT 2:

Hey gripped,

I am attempting to do what you recommended. I got everything to compile, but I am stuck at the moment. I just get a segmentation fault (/usr/bin/kodi: line 163: 26579 Segmentation fault) when I try to run it. The full crash log:

http://pastebin.com/Phs5rma2

The changes I made to get it working for my U3 are here:

https://github.com/hgaiser/odroid-xu3-p ... eef8ac8306

I'm not certain about all the changes I made (for example the --cpu=cortex-a9), so I am unsure if the problem is originating here or elsewhere. I also had to disable TexturePacker because it does not seem to exist for Arm? I tried to install it but it only seemed to be a 64 bit precompiled binary. Also I had to symlink libEGL.so and libGLESv2.so to /usr/lib as it didn't seem to be able to find those.

And lastly I grabbed the latest version (at the time) of the repository from Owersun, I will try the version you use in your PKGBUILD now to see if it works. In the meantime, do you have any suggestions as to what I did wrong, or what I can test?

EDIT 3:

Okay your exact setup does seem to work for me, it compiles and starts, but it cannot open the MFC decoder, I am getting the following message:

Code: Select all
ERROR: CDVDVideoCodecMFC::Open - No Exynos MFC Decoder/Converter found


I found the following thread where something similar seems to be happening:

viewtopic.php?f=12&t=6388

From my dmesg:

Code: Select all
$ dmesg | grep mfc
[41492.876291] s5p_mfc_alloc_and_load_firmware:44: Firmware is not present in the /lib/firmware directory nor compiled in kernel
[41631.668124] s5p-mfc s5p-mfc: start latency exceeded, new value 750 ns
[41631.668924] s5p-mfc s5p-mfc: state restore latency exceeded, new value 2792 ns
[41691.756478] s5p_mfc_alloc_and_load_firmware:44: Firmware is not present in the /lib/firmware directory nor compiled in kernel
[41691.756497] s5p-mfc s5p-mfc: stop latency exceeded, new value 1250 ns
[41691.756765] pd-mfc: Power-off latency exceeded, new value 254708 ns


So it appears the MFC firmware is not loaded

Also for completion:

Code: Select all
ls -lah /sys/class/video4linux/video8/*
-rw-r--r-- 1 root root 4.0K Jul 22 11:26 /sys/class/video4linux/video8/debug
-r--r--r-- 1 root root 4.0K Jul 22 11:26 /sys/class/video4linux/video8/dev
lrwxrwxrwx 1 root root    0 Jul 22 11:26 /sys/class/video4linux/video8/device -> ../../../s5p-mfc
-r--r--r-- 1 root root 4.0K Jul 21 23:49 /sys/class/video4linux/video8/index
-r--r--r-- 1 root root 4.0K Jul 22 11:16 /sys/class/video4linux/video8/name
lrwxrwxrwx 1 root root    0 Jan  2  2000 /sys/class/video4linux/video8/subsystem -> ../../../../../class/video4linux
-rw-r--r-- 1 root root 4.0K Jan  2  2000 /sys/class/video4linux/video8/uevent


Code: Select all
ll /lib/firmware/s5p*
-rw-r--r-- 1 root root 352652 Jun  7 12:16 /lib/firmware/s5p-mfc.fw
-rw-r--r-- 1 root root 306312 Jun  7 12:16 /lib/firmware/s5p-mfc-v6.fw
-rw-r--r-- 1 root root 343756 Jun  7 12:16 /lib/firmware/s5p-mfc-v6-v2.fw
-rw-r--r-- 1 root root 382724 Jun  7 12:16 /lib/firmware/s5p-mfc-v7.fw
-rw-r--r-- 1 root root 360576 Jun  7 12:16 /lib/firmware/s5p-mfc-v8.fw


Code: Select all
uname -a
Linux Odroid 3.8.13.29-2-ARCH #3 SMP PREEMPT Mon Jan 12 19:50:39 MST 2015 armv7l GNU/Linux


I did the following to make it load:

Code: Select all
sudo mkdir /lib/firmware/s5p-mfc/
cd /lib/firmware/s5p-mfc/
sudo ln -s ../s5p-mfc.fw ./


It seems to work now! Hurray!
Hansg91
 
Posts: 71
Joined: Tue Oct 22, 2013 9:25 pm
languages_spoken: english
ODROIDs: ODROID U2
ODROID U3
ODROID C1

Re: [Arch] Kodi won't start

Unread postby gripped » Wed Jul 22, 2015 7:12 pm

00:30:44 T:3018347072 ERROR: CWinSystemX11::XErrorHandler: BadAtom (invalid Atom parameter), type:0, serial:72, error_code:5, request_code:18 minor_code:0
00:30:44 T:3018347072 ERROR: No suitable egl configs found
00:30:44 T:3018347072 ERROR: Failed to determine egl config for visual info


That is the relevant part of the kodi log I think.

The fact you had to symlink libEGL.so and libGLESv2.so makes me suspicious that mali is not set up correctly. How have you installed the driver ?

Does es2gears_x11 run correctly ?
Post the output of es2_info.
(Both in the mesa-demos package)

If they do work the first thing I would try is commenting or removing the mali.patch. The second part of that patch (a/xbmc/windowing/X11/WinSystemX11.cpp) fixes a eglconfig problem that was introduced with mali r5p1 on my XU3.

The march.patch stops a lot of warnings from gcc when compiling kodi's internal ffmpeg.

Have you edited /etc/makepkg.conf ?
Here you can set custom CFLAGS and CXXFLAGS . The default is suboptimal for the u3.
CFLAGS="-mcpu=cortex-a9 -mfpu=neon-fp16 -mfloat-abi=hard -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
CXXFLAGS="-mcpu=cortex-a9 -mfpu=neon-fp16 -mfloat-abi=hard -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
I would also add -ffast-math to those lines but be aware that it's the first one to remove if you encounter problems.
(From the horses mouth so to speak https://community.arm.com/groups/tools/ ... mand-lines)

I noticed that you had put make -j8 in your PKGBUILD. This you can also set in makepkg.conf .

Also I'd advise to install ccache and enable it in makepkg.conf. If compiling a package multiple times it will save you a lot of time.

I will take a further look myself at building kodi on the U3
Last edited by gripped on Wed Jul 22, 2015 7:30 pm, edited 1 time in total.
gripped
 
Posts: 691
Joined: Tue May 21, 2013 11:34 pm
languages_spoken: english
ODROIDs: U2 XU U3 XU3

Re: [Arch] Kodi won't start

Unread postby gripped » Wed Jul 22, 2015 7:17 pm

OK you made another edit while I was posting my reply.

You are missing the firmware as you suspect. One of those files needs copying or symlinking to another name. I'll be back soon ;)

Edit:
You beat me to it or I missed the bottom of your post. Glad you got it working. :D


Edit2:

When you say "your exact setup" what did you do ? If you have followed the instructions on github you probably have an older kernel (and other packages) than before ?
gripped
 
Posts: 691
Joined: Tue May 21, 2013 11:34 pm
languages_spoken: english
ODROIDs: U2 XU U3 XU3

Re: [Arch] Kodi won't start

Unread postby Hansg91 » Thu Jul 23, 2015 12:51 am

gripped wrote:OK you made another edit while I was posting my reply.

You are missing the firmware as you suspect. One of those files needs copying or symlinking to another name. I'll be back soon ;)

Edit:
You beat me to it or I missed the bottom of your post. Glad you got it working. :D


Edit2:

When you say "your exact setup" what did you do ? If you have followed the instructions on github you probably have an older kernel (and other packages) than before ?


Hey, yeah simlinking the firmware file as mentioned got it to load on boot. Weird that it is looking in the wrong place, what would be the correct fix for this?

Yes sorry, that was a bit vague. I meant with minimal changes to your PKGBUILD file. I reverted some changes I did earlier:

https://github.com/hgaiser/odroid-xu3-p ... 8e82f8bb94

By the way I had an 'issue' which I noticed earlier when I had lubuntu, whenever I try to 'seek backward' in a video (pressing the left button which will make it move 30s backward) then the video will hang for a while, while still hearing sound. After a while (15s approximately), the video continues again. I didn't have this with ffmpeg, but I do have this now with MFC again, any thoughts?
Hansg91
 
Posts: 71
Joined: Tue Oct 22, 2013 9:25 pm
languages_spoken: english
ODROIDs: ODROID U2
ODROID U3
ODROID C1

Re: [Arch] Kodi won't start

Unread postby gripped » Thu Jul 23, 2015 5:17 am

Hansg91 wrote:
By the way I had an 'issue' which I noticed earlier when I had lubuntu, whenever I try to 'seek backward' in a video (pressing the left button which will make it move 30s backward) then the video will hang for a while, while still hearing sound. After a while (15s approximately), the video continues again. I didn't have this with ffmpeg, but I do have this now with MFC again, any thoughts?


Seeking is very hit and miss. Especially backwards.

Maybe try linking the some of the other s5p-mfc firmwares.
Mine is showing as v8 in dmesg.
gripped
 
Posts: 691
Joined: Tue May 21, 2013 11:34 pm
languages_spoken: english
ODROIDs: U2 XU U3 XU3

Re: [Arch] Kodi won't start

Unread postby Hansg91 » Thu Jul 23, 2015 3:30 pm

gripped wrote:
Hansg91 wrote:
By the way I had an 'issue' which I noticed earlier when I had lubuntu, whenever I try to 'seek backward' in a video (pressing the left button which will make it move 30s backward) then the video will hang for a while, while still hearing sound. After a while (15s approximately), the video continues again. I didn't have this with ffmpeg, but I do have this now with MFC again, any thoughts?


Seeking is very hit and miss. Especially backwards.

Maybe try linking the some of the other s5p-mfc firmwares.
Mine is showing as v8 in dmesg.


I see, thanks, I will try that. Its weird because I thought I remember this was working fine on android, for which I assume the same decoder is used.

Also I have to install r4p0 Mali driver right? My kernel isn't compatible with r5p0? What would the effect be if I had r5p0?
Hansg91
 
Posts: 71
Joined: Tue Oct 22, 2013 9:25 pm
languages_spoken: english
ODROIDs: ODROID U2
ODROID U3
ODROID C1

Re: [Arch] Kodi won't start

Unread postby gripped » Thu Jul 23, 2015 4:37 pm

Hansg91 wrote:I see, thanks, I will try that. Its weird because I thought I remember this was working fine on android, for which I assume the same decoder is used.

The hardware is the same but the software is not. The SOC is made to be used in android phones. Linux support is an afterthought if we are lucky.
Also I have to install r4p0 Mali driver right? My kernel isn't compatible with r5p0? What would the effect be if I had r5p0?


From your first post it appears you already have http://builder.mdrjr.net/tools/u3/4412_r5p0_x11.tar.xz which is r5p0.
To be honest I'm out of the loop with the U2/U3. My U2 is a headless mail server and my U3 has been unused for a while.

If you have mali working you don't NEED to do do anything but if you wanted to you could create a PKGBUILD and package of 4412_r5p0_x11.tar.xz , or whatever is the current version, so that pacman knows about these files.
gripped
 
Posts: 691
Joined: Tue May 21, 2013 11:34 pm
languages_spoken: english
ODROIDs: U2 XU U3 XU3

Re: [Arch] Kodi won't start

Unread postby Hansg91 » Thu Jul 23, 2015 11:34 pm

gripped wrote:
Hansg91 wrote:I see, thanks, I will try that. Its weird because I thought I remember this was working fine on android, for which I assume the same decoder is used.

The hardware is the same but the software is not. The SOC is made to be used in android phones. Linux support is an afterthought if we are lucky.
Also I have to install r4p0 Mali driver right? My kernel isn't compatible with r5p0? What would the effect be if I had r5p0?


From your first post it appears you already have http://builder.mdrjr.net/tools/u3/4412_r5p0_x11.tar.xz which is r5p0.
To be honest I'm out of the loop with the U2/U3. My U2 is a headless mail server and my U3 has been unused for a while.

If you have mali working you don't NEED to do do anything but if you wanted to you could create a PKGBUILD and package of 4412_r5p0_x11.tar.xz , or whatever is the current version, so that pacman knows about these files.


I see, well thanks for your help, I greatly appreciate it. I did indeed mention in my first post that I tried r5p0, but if I remember correctly I am using r4p0 now and it was crashing with r5p0 or it was saying something about invalid version found, I cannot exactly remember. Perhaps I will look into it sometime.
Hansg91
 
Posts: 71
Joined: Tue Oct 22, 2013 9:25 pm
languages_spoken: english
ODROIDs: ODROID U2
ODROID U3
ODROID C1


Return to Other OS

Who is online

Users browsing this forum: No registered users and 3 guests