Re: Freenet on Raspberry pi

Steve Dougherty <steve-kVTqj8yhOEv2eFz/[email protected]>
Newsgroups gmane.network.freenet.support
Message-ID <[email protected]>
On 12/08/2013 02:03 AM, [email protected] wrote:
> I figured this out, in case anyone else needs a solution in the future.
> The issue was caused by the precompiled Java Service Wrapper not
> supporting the specific ARM architecture on the Pi.

Good to hear you got it working!

> Here's the steps I took that rectified the issue (and other issues along
> the way):
> 
> 1. Install Oracle's JDK instead of openjdk/jre (you'll need the jdk for
> later steps)
> 2. Install ant
> 2. Download the latest Java Service Wrapper source from
> http://sourceforge.net/projects/wrapper/files/wrapper_src/
> 3. Set your environment's $JAVA_HOME and $ANT_HOME to the locations of
> jdk and ant. If you mess those up, the wrapper compiler will tell you.
> 4. Compile the wrapper (run build32.sh)
> 5. Copy the generated wrapper executable in the bin directory to the
> wrapper dir in Freenet, replacing the current wrapper-linux-armhf-32
> exec in Freenet's bin

As you may have guessed from an ARM wrapper binary already being there,
this was supposed to work without additional effort. Do you have ideas
as to what's wrong with the ARM binary that's deployed with Freenet? How
can we fix it?

> 6. Copy the .so file from the lib dir into Freenet's lib as
> libwrapper-linux-armhf-32.so
> 7. Finally, jar up the org dir in the classes dir - jar cf wrapper.jar org.
> Copy the new wrapper.jar file into Freenet's dir.
> 
> I *think* you can skip the last step if you compile the same version of
> the wrapper as the one used in Freenet. I think currently it's 3.5.20
> while the latest wrapper is 3.5.23.
> 
> And finally, enjoy the perpetually high load on your pi while freenet is
> running :).
> I'm not sure how practical this is in the long run but it was fun trying
> to get it to work.
> 
> Quoting [email protected]:
> 
>> Hi all,
>>
>> Just wondering if anyone has ever tried running Freenet on raspberry pi.
>>
>> I have the 512 MB ram model with a 700 MHz ARM processor and trying to
>> run it, I get Segmentation fault.
>>
>> Is this simply a case of not enough resources?
>>
>> Did an strace on the execution and here's what I get (if that is of
>> any help):
>>
>> read(10, "tmem -le 1024 ] \n       then \n  "..., 8192) = 1616
>> stat64("memory.autolimit", {st_mode=S_IFREG|0644, st_size=4, ...}) = 0
>> write(1, "Starting Freenet 0.7...\n", 24) = 24
>> stat64("/media/usb/Freenet/./Freenet.pid", 0xbed07778) = -1 ENOENT (No
>> such file or directory)
>> stat64("/usr/local/sbin/nice", 0xbed07918) = -1 ENOENT (No such file
>> or directory)
>> stat64("/usr/local/bin/nice", 0xbed07918) = -1 ENOENT (No such file or
>> directory)
>> stat64("/usr/sbin/nice", 0xbed07918)    = -1 ENOENT (No such file or
>> directory)
>> stat64("/usr/bin/nice", {st_mode=S_IFREG|0755, st_size=26240, ...}) = 0
>> clone(child_stack=0,
>> flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
>> child_tidptr=0xb6fd3068) = 16725
>> wait4(-1, [{WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV}], 0, NULL) = 16725
>> --- SIGCHLD (Child exited) @ 0 (0) ---
>> sigreturn()                             = ? (mask now [QUIT])
>> write(2, "Segmentation fault\n", 19)    = 19
>> exit_group(0)                           = ?
>>
>>
>> Thanks.

_______________________________________________
Support mailing list
[email protected]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://emu.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:support-request-RdDMkVZAZeuJnvDnx1genB2eb7JE58TQ@public.gmane.org?subject=unsubscribe
signature.asc (application/pgp-signature, 836 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBAgAGBQJSrIDMAAoJECLJP19KqmFuEJ8QAIZayPr4FFUMjicQVL0gox/D
7z/4Nm7Mnft3jS1onGHhQUX6MB7TOxWDwU3yV5nz0yLJkth0HUTV5gQiF4Ecg+a4
WraRQVVeMq66jnYBgWv5ffEUbzVGxbUxIjtVjX8hVqn+6jVugnJUQyEYK+PI4XpJ
fo4h11kZy4Gn3aFTSRPVuO3QO+qt1wIlh5NB0FOEzKBONs5uVuFpPoe/juH5Gvz4
OpP+oT9i8OWYIGN2AUGREO1E04DU97oAMLAtd+zNxxcxus5m0WsWOvggkgPHf6W+
950YezotgUTQDNFrgx3bl0b78G9cAcyhnX8eHelOq9KSGVUVxbto9q3cyWaReNdo
4NvvwRllUoSol9MF8/pxNdoTWkQlFflLu7omv8QlH5ShJhXPj2qK16XiYhb8wlQH
q4AHQLV9yN+bh8KyvGb7eu7QXeQ5tUQSQtrdnjZyeFi+KpR3QEQyTVQybVX/CIKv
B03RwawzKEIdO2fqR242S65LHFD/O/oaBuP4Htl0Xp7bzY8ULRGbmQjUSkc31b5a
zFJAaGH2xVpAvbptTrOPY59md+aQeUvPvs/QzkwVuIEX/cY5XmcXdU69qV2Mp1Qo
lTPtzY3IoCGMUkdsIyWeMYEKqFoFrJ8tfiZliXLcZoc6TmjFzBz0eDM58WKChuMG
DirGzXz2sWR7fYpU1W/h
=IXOB
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.