-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mips port #5570
Mips port #5570
Conversation
Updated for Helix by Balint Reczey
@@ -0,0 +1,115 @@ | |||
/* | |||
* Copyright (C) 2005-2011 Team XBMC |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
looks ok to me build system wise. No idea about the atomics. |
Was that at least once run tested? 2014-10-27 11:44 GMT+01:00 Wolfgang Schupp notifications@github.com:
Fingerprint: 4606 DA19 EC2E 9A0B 0157 C81B DA07 CF63 1A99 5A9B |
@fritsch see PR description ;) |
Screen photo with Gotham: |
Oki - this patch is for Gotham, which won't receive a 13.3 release - therefore getting it working in master (while fixing upstream ffmpeg issues) would be the prefered way. Could I see the crashlog? Is it our internal ffmpeg only? Is that reported ffmpeg upstream? |
personally i have no objection in including this into master if it doesn't affect any other platforms/build systems and gives others a way to start working on it. Crashes/improvements can be done as successive PRs @topfs2 ? |
We should never ever merge untested code. I'd rather remove some other dead code than integrate something not tested. |
That code is tested on Gotham (as I have read inthe PR). But including it 2014-10-27 16:10 GMT+01:00 Rainer Hochecker notifications@github.com:
Fingerprint: 4606 DA19 EC2E 9A0B 0157 C81B DA07 CF63 1A99 5A9B |
ok, for further discussion please open a forum thread. provide some logs using master branch and likely other can help out. |
I have opened a thread here: |
I managed to run patched Kodi 14.0 using --with-ffmpeg=shared configure option with the ffmpeg packages here: |
I was little bit late with own pr #5759 :-) But it works fine. While this PR is not merged please include next fix: Kodi builds libXBMC_addon-mips.so but during loading binary addons expects libXBMC_addon-mipsel-linux.so. And as result Kodi cant load any binary addon. So that names should be synced. Fix is below.
|
Maybe I can help, my build works with internal ffmpeg. |
@AndriyP Thanks, I have added your patch to the PR. Do I understand correctly that this PR works for you? In that case @MartijnKaijser could it please be merged? |
To be precisely, I am working with build that doesnt have asm mips atomic operations that you added in this PR. All rest changes are same, I didnt tried to pick up atomic operations because it works without as well. Will integrate them when this PR will be merged. Regarding FFMPEG for our platform I had to disable some specific MIPS optimization. Here additional ffmpeg configure options added for internal build:
Maybe it make sense to disable them by default. It can be enabled for specific platform with that CPU features on demand. |
@AndriyP Most probably those flags made the trick. They are used during the ffmpeg package build as well: https://buildd.debian.org/status/fetch.php?pkg=ffmpeg&arch=mipsel&ver=7%3A2.5.3-1&stamp=1421595399 |
*/ | ||
|
||
#ifndef __ATOMIC_MIPS_H_ | ||
#define __ATOMIC_MIPS_H_ |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Have same opinion. So maybe it make sense to change this in this PR? |
@AndriyP No, I mean we should not add "--disable-mips32r2" etc. , just use the defaults like now. |
please add the needed flags to https://github.com/xbmc/xbmc/blob/master/tools/depends/target/ffmpeg/Makefile |
@rbalint I thought that mipsr2 and dsp support is platform specific. And "default" is minimum optimisation to cover more platforms. |
Kodi starts and plays video using SW rendering with the patches in the PR: |
@MartijnKaijser @fritsch @wsnipex @FernetMenta Is there anything missing I should do in this PR? |
its fine from my side. jenkins build this please |
I am fine with it, thanks |
@MartijnKaijser sorry fixed the date now |
jenkins build this please |
You still have the old header in it. The address mentioned there is wrong. Fix it and squash into the correct commit |
Most taken from the Linux kernel. Updated for Helix by Balint Reczey
@MartijnKaijser done. |
thx |
jenkins build this please |
Hi, just a comment: using buildroot with a Sourcery CodeBench toolchain (mips-2014.11-22-mips-linux-gnu-i686-pc-linux-gnu.tar.bz2), current Kodi git master, your patch and a tweaked Kodi buildroot package (to enable mips support) I could compile a mips binary. Due to lack of mips hardware I could not do a run-time test though. Kodi Configuration:Kodi Version: 15.0-ALPHA1 $ file output/target/usr/lib/kodi/kodi.bin |
The attached patches makes XBMC build on mipsel (tested on CI20) and the GUI also runs with the patches back-ported to Gotham.
Currently master can't be started on MIPS due to a crash in the internal FFmpeg copy.