-
AuthorPosts
-
wolfman4.0Participant2014-09-24 at 13:42Post count: 16
Homeserver on Raspberry Pi – no, that can never ever work due to incompatible CPUs.
– REALLY ? –
Well, theoretically it is possible.
Homeserver binaries run on Intel CPUs (and so even on some atom based NAS devices).
Raspberry Pi (and most low power NAS devices) are based on ARM CPUs which are not binary compatible. Therefore it is not possible. Right? Well – no, it is – at least in theory.During porting HS_MAIN to my Asustore NAS (atom CPU) watching error messages i found out, that HS_MAIN is written in python (python 2.6 to be exact). Python is an interpreter language, but with extentions it is possible to compile those python files. That’s what happend with hs_main. After a quick search in the net i found disassembler for compiled python files. If they don’t want other people to do this they can use code-obfuscation to make it difficult or near impossible to maintain or maniupulate their sourcecode. (like removing copy protections) But even obfuscated code can be recompiled to a different platform like ARM CPUs.
So there is a good chance that it is possible.
It only takes some people with developing background and linux knowledge who have time for that.
so long….
wolfman
berryParticipant2014-09-30 at 21:39Post count: 3Great Idea!
The raspberry is the best platform for HS.
Now we need to find people who know about so.PatParticipant2015-01-11 at 14:14Post count: 1How far did you come with porting to Rpi ?
wolfman4.0Participant2015-01-19 at 15:37Post count: 16I know that it is a compiled python 2.6 code.
The directory containing the .pyc files has been packed into one single binary.
The magic number (where the single .pyc files have to be split) is 0x00731c00 (found 900 times).TODO:
split the hs_trans and hs_main binary into 900 .pyc files (medium difficult)
decompile each .pyc file into .py file (easy)
(optional) remove copy protection (search for ifconfig or serial and comment that line in .py file)
copy files onto raspberry
test it
(optional) compile each .py file to .pyc
(optional) pack the whole directory into one hs_main filewhat is missing: my spare-time ;-)
the most difficult job was to find the magic number, which is necessary to find the points on which to split the hs_mainPaulParticipant2015-04-28 at 22:32Post count: 52hi wolfman,
have you done some work on it? it sounds very interessting.
playing a lot with the raspberrys and replacing the dell optiplex would be nicePutting the Rpi into this (http://www.rasppishop.de/gehaeuse/3118/hutschienen-gehaeuse-fuer-rabperry-pi-model-b?c=78) with HomeServer on it would be really cool :)
porting HS4 to Raspberry Piwolfman4.02014-09-24T13:42:52+02:00
Viewing 9 posts - 1 through 9 (of 9 total)