SynoCommunity / spksrc

Cross compilation framework to create native packages for the Synology's NAS
https://synocommunity.com
Other
3.02k stars 1.23k forks source link

Add support for rtd1296 #2886

Closed bidorffOL closed 6 years ago

bidorffOL commented 7 years ago

Because of the new rtd1296 architecture supported by the 418J, I cannot add the SynoCommunity repository to my NAS. From what I have read in the FAQ, one of the prerequisite for such support is the availability of the toolchain for this architecture (which has been added yesterday by Synology here).

Is there any hope to see this new architecture supported in a near future ?

davebooi commented 7 years ago

I second this and posted a 30 bucks bounty on bountysource

Diaoul commented 7 years ago

Off topic: This is really annoying that Bountysource doesn't update the issue... It suddenly stopped working, I'll get in touch with them.

ymartin59 commented 7 years ago

Adding toolchain in spksrc is a five minute task and it should be enough for anyone to build its own packages... but job to get any DSM 6.1 package available through Package Center is still long: https://github.com/SynoCommunity/spksrc/wiki/Frequently-Asked-Questions#which-dsm-versions-do-you-support

bidorffOL commented 7 years ago

I actually tried to do it myself on my own fork and I managed to get NZBGet and GIT to build and run, still no luck on Python, but I'm not sure if the toolchain is responsible for the broken build.

I'll try to provide a Pull Request for my changes (I will need to filter those for the toolchains and those for the packages I updated and / or modified).

albino71 commented 7 years ago

@bidorffOL Got me a DS418J..great device, but the nzbget package is not working and cannot be installed...

Any chance you could slip me your installable package?

bidorffOL commented 7 years ago

@albino71 You can try this version (tell me if it works, I'm not sure that this is the file I actually used).

albino71 commented 7 years ago

@bidorffOL Thanks! Too bad it says 'Invalid fileformat' (Don't know if I translated it correct, but it is an invalid file...)

bidorffOL commented 7 years ago

That's what I was afraid of...

I'll try to reinstall my development environment this weekend and provide you with a proper build, otherwise you may try yourself to setup your own environment using my own fork and the dsm6 branch (this should work).

albino71 commented 7 years ago

@bidorffOL No problem... Maybe I will give it a try...

Thanks for your time and effort anyway!

bidorffOL commented 7 years ago

I updated the file on my repository with a fresh build, can you try again ?

albino71 commented 7 years ago

@bidorffOL Thanks mate, will give it a go and let you know...

I tried to setup a dev VM, but didn't get that up and running yet...

edit: It's installing :)

edit 2: Yesss, working like a charm! Thanks a lot!

Keeviiin commented 6 years ago

Hello, I got my new DS418 yesterday and as you know, it uses the rtd1296-Architecture as well. I am totally new to the compiling-stuff an I have no spksrc running. I dont have enough knowledge to get a spksrc running so could you please help an provide me one package for rtd1296: ffmpeg

Thanks a lot in advance :)

ymartin59 commented 6 years ago

I tried to compile current ffmpeg version to apollolake toolchain but there is ARMv8 / AARCH64 specific issue with assembly compilation... libx264 assembly source code is specific to Apple compiler for iOS/macOS, a pity team ignores GNU linaro. So ffmpeg will not be there soon.

fbernardo commented 6 years ago

@ymartin59 Could you also give python a try? I’ve been trying to compile it but always hit a problem related with cffi. But I might be doing something wrong since I got the same error when compiling for x64.

Keeviiin commented 6 years ago

Sorry that I might ask obvious stuff: So you say that it is not just a single compiling task to get a working ffmpeg package? It is such a lot of work that is not sure if it even works in half a year or so..?

Did you try to compile it for rtd1296?

Thank you very much.

ymartin59 commented 6 years ago

Yes compiling with rtd1296 toolchain does not work at the moment. Either assembly code has to be ported to linary to get hardware optimization, either I have to fix linking troubles (with patches) that appeared with that new toolchain... I will probably try this second option first but it is a pity x264 hardware acceleration is lacking on ARM whereas assembly code is already available (but not for gcc compiler)

Keeviiin commented 6 years ago

That is very sad to hear, so I will have to keep on waiting :) Thank you very much for your efforts!

WodKa78 commented 6 years ago

Also successfully installed nzbget thanks to bidorffol but some other packages i also would love to install and run (Sonarr and Radarr) but they are not available for the ds418j. Is it possible somebody makes them available or is this not possible due the hardware limitations?

banshee1971 commented 6 years ago

Im waiting too! But Meanwhile, im running Sonar and Sabnzb on a dedicated PC until new package out!

WodKa78 commented 6 years ago

I tried to compile them myself, using bidorffol fork and dsm6 branch but constantly ending with errors. guess this is due to my enviorment since none of the packages i tried to compile were succesfully created. I will have to study some more i guess....

WodKa78 commented 6 years ago

some working packages i posted here https://github.com/SynoCommunity/spksrc/issues/2971

ymartin59 commented 6 years ago

As owner of DSM rtd1296 architecture, may you please download and test this "beta" ffmpeg built: http://dl.free.fr/oIHqgBdrA If possible, please run from command line ffmpeg -i on various media files. Warning: do not expect Video Station to use it, as recent version is stuck to Synology embedded version. Please report success or any failure with command output

ymartin59 commented 6 years ago

Architecture is now supported. Package updates are coming

piejanssens commented 6 years ago

@ymartin59 Any particular reason nzbget is not in the repo for rtd1296 and neither in your test package list found here? https://github.com/SynoCommunity/spksrc/issues/3138

WodKa78 commented 6 years ago

I also noticed its not visible in the package center anymore, no idea why but you can download it here and install manually . Update from within Nzbget.

edit; see more packages not showing up like Deluge for example.

ymartin59 commented 6 years ago

Hello. Package Center probably has trouble with cache - known issue at Synology. Try to force "refresh" and see if packages appear. Avoid to comment on close issues... I have far enough to only follow opened ones.