Posted: Sun Oct 23, 2016 11:14 Post subject: Tor Package for Linksys E4200
Hi all,
I am having a Linksys E4200 with kongmod release 06/07/14 (SVN: 22000:23903M) and am searching for a working optware repository / package which I could use to install Tor.
Unfortunately not. Apart from that the build is very good. No bugs so far and it runs for months without having the need to reboot, therefore I am reluctant to throw out the whole software just because of this.
Posted: Sat Oct 12, 2019 17:43 Post subject: Re: Tor Package for Linksys E4200
After a while I had the time to re-look at this issue and now it worked out, but just with tor version 0.2.8.17. All others up to the latest either do not cross-build or do not run. It looks like the code for MIPS32 processors is not well tested in those packages.
Here is how it worked for me which I hope will help someone who tries to compile something for the E4200.
Assumption is that you have an USB drive connected to the router which has a jffs partition and ideally also a swap partition as the RAM is short on that device.
a) rename original linker executable:
mv /usr/bin/ld /usr/bin/ld-2
b) copy the toolchain files to /usr/bin
cp -r /home/myuserid/toolchain-mipsel_3.3.6_BRCM24 /usr/bin/
c) Use the Ubuntu update-alternatives to switch the symlinks to gcc and ld:
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/ld ld /usr/bin/ld-2
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/toolchain-mipsel_3.3.6_BRCM24/bin/mipsel-linux-uclibc-gcc 40 --slave /usr/bin/ld ld /usr/bin/toolchain-mipsel_3.3.6_BRCM24/bin/mipsel-linux-uclibc-ld
sudo update-alternatives --config gcc
d) use the include directory (header files) of the toolchain
mv /usr/include /usr/include-5
ln -s /usr/bin/toolchain-mipsel_3.3.6_BRCM24/include /usr/include
d) In order to switch back to standard gcc/ld:
Remove the toolchain folder and run:
sudo update-alternatives --config gcc
use original include files
unlink /usr/include
ln -s /usr/include-5 /usr/include
Joined: 08 May 2018 Posts: 14125 Location: Texas, USA
Posted: Tue Oct 15, 2019 12:13 Post subject:
"An" equals about 5 these days. Currently, only one is being used to test DD-WRT public beta releases, one is being used for stock firmware development, and another is for FT development/testing. The other two are flashed with the last public beta of FT, and are spares. I personally have never had an issue with FT out of the box except a misconfiguration-induced problem. That's about where I'll stop my commentary because I've probably said too much already.