Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • wolfman4.0wolfman4.0
    Participant
      Post 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

      berryberry
      Participant
        Post count: 3

        Great Idea!
        The raspberry is the best platform for HS.
        Now we need to find people who know about so.

        PatPat
        Participant
          Post count: 1

          How far did you come with porting to Rpi ?

          wolfman4.0wolfman4.0
          Participant
            Post count: 16

            I 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 file

            what 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_main

            PaulPaul
            Participant
              Post count: 52

              hi 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 nice

              Putting 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 :)