SynoCommunity / spksrc

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

Please add DS119J support: armada37xx architecture #3477

Closed michass closed 5 years ago

michass commented 6 years ago

Please add DS119J support

_NAS Model: DS119J _NAS Architecture: Armada 3720 _DSM version: 6.2

WillWNL commented 6 years ago

PLease add support 4 DS119J!

Cannot add Syno.Community as Source...

Model DS119J Armada 3720 DSM 6.2.1 vers 23824

ymartin59 commented 6 years ago

This new architecture armada37xx is not supported yet.

michass commented 6 years ago

But why?

Pobierz aplikację Outlook dla systemu Androidhttps://aka.ms/ghei36


From: Yves Martin notifications@github.com Sent: Saturday, October 20, 2018 11:01:55 PM To: SynoCommunity/spksrc Cc: Michał Pawłowski; Author Subject: Re: [SynoCommunity/spksrc] Please add DS119J support (#3477)

This new architecture armada37xx is not supported yet.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/SynoCommunity/spksrc/issues/3477#issuecomment-431617756, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Apwbsx_eBY9LK3A2Z_W29HSf_7cGCJ1bks5um49DgaJpZM4XF7mA.

ymartin59 commented 6 years ago

Maybe answers there: https://github.com/SynoCommunity/spksrc/wiki/Frequently-Asked-Questions#my-architecture-is-not-listed-in-the-package-details-can-it-be-made-available

michass commented 6 years ago

But jadahl have domoticz package for this architecture

Pobierz aplikację Outlook dla systemu Androidhttps://aka.ms/ghei36


From: Yves Martin notifications@github.com Sent: Saturday, October 20, 2018 11:05:10 PM To: SynoCommunity/spksrc Cc: Michał Pawłowski; Author Subject: Re: [SynoCommunity/spksrc] Please add DS119J support (#3477)

Maybe answers there: https://github.com/SynoCommunity/spksrc/wiki/Frequently-Asked-Questions#my-architecture-is-not-listed-in-the-package-details-can-it-be-made-available

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/SynoCommunity/spksrc/issues/3477#issuecomment-431617967, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Apwbs2gpdDn3V2Hl7lIxh_fUFyGIRdvbks5um5AGgaJpZM4XF7mA.

ymartin59 commented 6 years ago

We have to wait for Synology to publish toolchain to build for armada37xx architecture - at the moment, not available: https://sourceforge.net/projects/dsgpl/files/DSM%206.2%20Tool%20Chains/

ymartin59 commented 6 years ago

I have no idea how jadahl succeeded to build for Marvel Armada 3720... May you grab information from dev team and report here?

michass commented 6 years ago

I don't know why synology has removed toolchain from sourceforge, but I did download toolchain and kernel for armada37xx last month.

Regards Jadahl

Maybe can you share? :D

WillWNL commented 6 years ago

Jadahl, could you please share?

michass commented 6 years ago

@Jumbotroll please :)

ymartin59 commented 6 years ago

@Jumbotroll I have read somewhere that chip supplier delivered a "proprietary" version of GCC to compile for armada37xx... which may be a reason why Synology is not allowed to redistribute it as other DSM toolchains.

KosakAlmighty commented 6 years ago

Is there chance it will never be released? Because I think I will return my DS119j.

szyb commented 6 years ago

Hi, I've just added support for DS119j to my search engine, so now it is available to search packages for DS119j across all servers (here is a link: https://search.synopackage.com/search/keyword/*/model/DS119j/version/6.2.1-23824/channel/beta). However only synology.nimloth.pl and synology.emby.media seems to returns valid packages for DS119j. Other servers has either noarch packages or serves packages not complied for armada37xx (such as cphub or synologyitalia). EDIT: it seems that cphub & synologyitalia provides also noarch packages, so they might work on DS119j

ymartin59 commented 6 years ago

The only relevant point I see to make progress: armada37xx owners should publish posts on Synology forum and submit support requests to Synology so that to get this architecture toolchain published like others at SourceForge location.

WillWNL commented 6 years ago

@ymartin59 made a support request.. awaiting their answer. I will post their return here. Still hoping that @Jumbotroll will help the community by sharing though..

ymartin59 commented 5 years ago

I think I discovered answer. Synology has replaced original "Tool Chain" by development "toolkit" where armada37xx is available: https://sourceforge.net/projects/dsgpl/files/toolkit/DSM6.2/ That toolkit is really large and even redistribute Oracle Java 7 and 8 (not sure it is compliant with Oracle license)

I fear it will cost lot of efforts to adapt spksrc build chain to this new "standard" from Synology

WillWNL commented 5 years ago

@ymartin59 Nice, good find!!

What is your expectation in the matter? Do you think this new "standard" of Synology will be the next standard for all new models/architectures?

And do you think the effort will be put in to the devolpment for the support for the Armada37xx line?

Tnx!

ymartin59 commented 5 years ago

"old" Synology "Tool Chains" archive is maximum 50 MiB large per architecture whereas "toolkit" consists in a base linux system (Python 2.7 and 3.4, Ruby, NodeJS, Perl, LLVM, TCL, PHP, Apache Flex, Java 6, 7 and 8 => 800 MiB) and a per architecture environment with gcc and java 7, 8 (so around 300 MiB) This a is show-stopper in our plans to build on cloud service where we cannot afford to download 1 GiB compiler for each package build.An option may be to include base and compiler in Docker image, which will become itself really large (or else we have to maintain an image per architecture)

As an immediate work-around, I am trying to re-create a "tool chain" for "armada37xx" created from "toolkit" content (only required libraries for gcc, no java) with hope it is far enough to generate our package with current spksrc build chain.

My opinion is there is no chance to get Synology to maintain "classical toolchains" archive in addition to toolkits, even if Docker/cloud based compilation argument may change their mind about it.

Another question: there is chance that rtd1296 and armada37xx compiler produces compatible binaries (depending on supplier specific optimizations in gcc "variants"). @hgy59 As our "cross-compiler and kernel expert", may you be kind to check if spksrc may provide a "aarch64" generic package for both architectures (the same way we did for x64)

CC @Safihre @m4tt075 @Diaoul

Safihre commented 5 years ago

Damn, that would suck if they stick with this "kit" thing! Working on packages was already hard enough as it is with all the different systems + permissions handeling 😢

hgy59 commented 5 years ago

@ymartin59

Another question: there is chance that rtd1296 and armada37xx compiler produces compatible binaries (depending on supplier specific optimizations in gcc "variants"). @hgy59 As our "cross-compiler and kernel expert", may you be kind to check if spksrc may provide a "aarch64" generic package for both architectures (the same way we did for x64)

It looks very good. The two toolkits provided by synology for rtd1296 (ds.rtd1296-6.2.env.txz) and armada37xx (ds.armada37xx-6.2.dev.txz) differ only in 5 header files (../usr/include/linux/netfilter...) and some of these header files differ even between rtd1296 toolchain and rtd1296 toolkit. So the rtd1296 toolchain/compiler can be used for generic aarch64 builds.

Maybe there will be compilation problems for packages depending on "netfilter", but I would encourage to try generic aarch64 packages.

I can not make any suggestion for the kernel modules, but as far as I can remember only the LIRC package depends on kernel module.

ymartin59 commented 5 years ago

@hgy59 Many thanks. I will generate some test packages that way. It would be great if ARMv7 toolchains would be closer, because list is quite long: alpine armada370 armada375 armada38x armadaxp comcerto2k monaco hi3535 ipq806x northstarplus ... and I am not comfortable to request you to review all of theses, but I would be pleased to reduce the generated packages set the same way with one or some generic/common binaries.

WillWNL commented 5 years ago

@ymartin59 @hgy59 Thanks for all the effort and help!

WillWNL commented 5 years ago

Hmm,

Wenn I try to add SB or CP I get an error that Python and Git are missing on the packageserver..

Any ideas?

ymartin59 commented 5 years ago

Python and Git SynoCommunity packages are not available for your architecture yet.

ymartin59 commented 5 years ago

As a first trial, here is "tmux" package created with rtd1296 toolchain but declared as compatible with armada37xx: tmux_aarch64-6.1_2.3-3.spk.zip May you please install it manually on your systems and check if it works

KosakAlmighty commented 5 years ago

@ymartin59 I tested the tmux package and I can confirm it works on DS119j without problem. tmux

WillWNL commented 5 years ago

@ymartin59 Tested it and it works!!

KosakAlmighty commented 5 years ago

Just out of curiosity, how long it takes till new packages are compiled?

EDIT: BTW thank you very much for your work you done here!

ymartin59 commented 5 years ago

Infinite time if you consider full package set... most of them have not been updated for DSM 6 support. So, prepare your Xmas gift list...

WillWNL commented 5 years ago

Daar Santa.

For xmas i woud like to have git, CP, transmission and SB this year. And if i forgot something to get these packages running in my Ds119j, be so kind to add as you please.

Thank you Santa 🎅🎅🎅

KosakAlmighty commented 5 years ago

Oh my bad, I thought the packages are generated automatically. I reading readme now, I will dig in on weekend and see if I can make some packages :)

Once more thanks for all your work.

On Tue, Dec 4, 2018, 07:05 BA-NL <notifications@github.com wrote:

Daar Santa.

For xmas i woud like to have git, CP, transmission and SB this year. And if i forgot something to get these packages running in my Ds119j, be so kind to add as you please.

Thank you Santa 🎅🎅🎅

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/SynoCommunity/spksrc/issues/3477#issuecomment-443982699, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ4TRKU_uRexlwni2C_Ka3Xp7CkkU97cks5u1hC2gaJpZM4XF7mA .

ymartin59 commented 5 years ago

@William0702 You should find packages in your DSM Package Center. If not, just report here.

ymartin59 commented 5 years ago

... Sorry not yet. python 2.7 is still pending...

WillWNL commented 5 years ago

@ymartin59

Happily installing the packages. Thanks for all the support!!

ymartin59 commented 5 years ago

Python should be available now - and so applications requiring python 2.17