On 12/08/2013 02:03 AM, u...@clovermail.net 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 u...@clovermail.net:
> 
>> 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.


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Support mailing list
Support@freenetproject.org
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://emu.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:support-requ...@freenetproject.org?subject=unsubscribe

Reply via email to