Linux Adding MIPS support
#1
Per request[url=https://github.com/xbmc/xbmc/pull/5570#issuecomment-60609237] https://github.com/xbmc/xbmc/pull/5570#i...t-60609237 I'm opening this thread for debugging the blocker issues.

The top of the stack trace:

Using host libthread_db library "/lib/mipsel-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/local/lib/kodi/kodi.bin'.
Program terminated with signal 4, Illegal instruction.
#0 getsgnctxno (xorbit=0x27a627c "", flag=0) at libavcodec/jpeg2000.c:148
148 hcontrib = contribtab[flag & JPEG2000_T1_SIG_E ? flag & JPEG2000_T1_SGN_E ? 1 : 2 : 0]
(gdb) bt full
#0 getsgnctxno (xorbit=0x27a627c "", flag=0) at libavcodec/jpeg2000.c:148
vcontrib = <optimized out>
hcontrib = <optimized out>
#1 ff_jpeg2000_init_tier1_luts () at libavcodec/jpeg2000.c:166
i = <optimized out>
j = <optimized out>
#2 0x00668c44 in jpeg2000_init_static_data (codec=<optimized out>) at libavcodec/jpeg2000dec.c:1697
No locals.
#3 0x00ffb274 in avcodec_register_all () at libavcodec/allcodecs.c:184
initialized = 1
#4 0x00d008b0 in CApplication::Create (this=0x282aa18) at Application.cpp:761
...

ASM
│0x668b40 <ff_jpeg2000_init_tier1_luts+512> b 0x668b4c <ff_jpeg2000_init_tier1_luts+524>
│0x668b44 <ff_jpeg2000_init_tier1_luts+516> move a3,t0
│0x668b48 <ff_jpeg2000_init_tier1_luts+520> move a3,zero
│0x668b4c <ff_jpeg2000_init_tier1_luts+524> mul t0,t1,a0
│0x668b50 <ff_jpeg2000_init_tier1_luts+528> addu t1,t0,a3
│0x668b54 <ff_jpeg2000_init_tier1_luts+532> sll t1,t1,0x2
>│0x668b58 <ff_jpeg2000_init_tier1_luts+536> lwx t1,t1(t5)
│0x668b5c <ff_jpeg2000_init_tier1_luts+540> andi a3,v0,0x8
│0x668b60 <ff_jpeg2000_init_tier1_luts+544> beqz a3,0x668b7c <ff_jpeg2000_init_tier1_luts+572>

I suspect a GCC bug here, will try with -O0 / other compiler version.
Reply
#2
Is your work in any way related to both these two other Mipsel projects?

http://forum.kodi.tv/showthread.php?tid=203129

http://forum.kodi.tv/showthread.php?tid=204063
Reply
#3
This thread was made for getting kodi to run on the imagination CI20:
http://store.imgtec.com/product/mips-creator-ci20/

+1 for support for these, also trying to get it to work here Smile
Reply
#4
MIPS Creator CI20 Development Board is now also available to anyone for $65 / £50

For more information see http://forum.kodi.tv/showthread.php?tid=210585
Reply
#5
It seems the crash I opened the thread with was due to bad compilation options used for building the automatically downloaded FFmpeg.
I was able to start the GUI by building against the ffmpeg packages shipped by Debian.
Playing video still does no work as described here:
http://balintreczey.hu/blog/xbmc-from-de...dev-board/
Reply
#6
(2015-01-06, 22:44)rbalint Wrote: It seems the crash I opened the thread with was due to bad compilation options used for building the automatically downloaded FFmpeg.

which bad options are those?
Reply
#7
FYI, Marusys have announced the availability of a XBMC port for MIPS based Vu+ boxes

http://forum.kodi.tv/showthread.php?tid=213084

Nice to see that that more projects working on MIPSel ports of XBMC/Kodi

(2015-01-06, 22:44)rbalint Wrote: It seems the crash I opened the thread with was due to bad compilation options used for building the automatically downloaded FFmpeg.
I was able to start the GUI by building against the ffmpeg packages shipped by Debian.
Playing video still does no work as described here:
http://balintreczey.hu/blog/xbmc-from-de...dev-board/
Please post that here on this forum, not a on a separate blog, or otherwise at least post to both.

You can not expect XBMC developers to go out of their way by following your blog.

Regardless your link does not work for me, or my ISP is blocking it or something.
Reply
#8
The PR for which I opened this thread has been accepted thus MIPS support is now present in master.
Reply

Logout Mark Read Team Forum Stats Members Help
Adding MIPS support0