[freenet-dev] Freenet on Mips
Sven-Ola Tücke
sven-ola at gmx.de
Sun Mar 9 22:02:14 UTC 2008
Hey,
now it works better. Here are some patches on top of the current google CVS to
add mips/mipsel support to some *.java and the "run.sh" script. Download URL
has changed, you'll find that stuff on
http://download.berlin.freifunk.net/sven-ola/freenet/
(Please wait an hour until all the mirrors got a sync).
Note that the binary arch-dependant files in there are for mipsel only (I have
no mips-big-endian box with enough mem to run gcc/ecj - and I haven't tried
to cross-compile yet since my toolchains are all OpenWrt ==> uclibc).
Please mind the readme*.txt. I hope the java.nio.ByteOrder dependency is OK.
Performance on the MIPSel/300Mhz/128Mb Box is a bit poor because of the gij
bytecode interpreter. Two neighs ok, the third neigh -> says "busy". While I
have some success compiling a binary freenet using gcj (from jars on i386)
compiling dies on the Box because of gcj memory consumption - which is high
especially during compiler optimization. In case you haven't tried lately,
this looks promising (gcj-4.2):
gcj -o freenet -fjni -findirect-dispatch \
--main=freenet.node.Node freenet-ext.jar freenet.jar
Next I'll try a Makefile for generating a freenet-ext.so and a freenet binary
for a native arch if nobody offers some out-of-the-box wizardry (and no - the
cacao JIT does not run well either)...
// Sven-Ola
Am Mittwoch 05 März 2008 13:09:00 schrieb Sven-Ola Tuecke:
> Works - at least that was my impression. I cannot run too long, because our
> local mesh network policy officer says: "no udp conntracks > 1000" via the
> inet gateways. My target is a local darknet on wireless anyhow.
>
> And yes: MIPS is divided in "mipsel" (le) und "mips" (be), endianess is
> switchable but normally once configured by the boot loader (uboot,
> redboot). My hacks are "mipsel" actually - which needs more tweaks (next
> week). Haven't I wrote this is experimental and half-bakened stuff?
>
> // Sven-Ola
>
> ----- Original Message -----
> From: "Matthew Toseland" <toad at amphibian.dyndns.org>
> To: "Discussion of development issues" <devl at freenetproject.org>
> Sent: Wednesday, March 05, 2008 12:46 PM
> Subject: Re: [freenet-dev] Freenet on Mips
>
>
> Does it work?
>
> _______________________________________________
> Devl mailing list
> Devl at freenetproject.org
> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
More information about the Devl
mailing list