Firmware version: RouterTech_3.7.1B_1350A_20120130_2.97 20120130232217
Router : Telkom duo plus 300WR
I was just curious how you'd go about this ?
I created a minix and it's being mounted on startup ( the whole /nvram thing in the docs [thanks chief] ) . I can write files to the directory and they are indeed persistent. So i thought that maybe i could install extra applications to this space.
This problem in particular is when using iptables -m string , i get an error which states that 'string' could not be found. I thought I could fix this by updating iptables but forgot that it was installed to a read only filesystem. Just tinkering with the commands ( haven't really used linux much ) I tried to use ftp to get apt-get on the router and use that to install iptables to the minix partition although I tried that and it didn't work ( maybe because I literally only copied apt-get to /nvram ).
I'm going to try to write my only application , ftp it onto the router and run it to see if it works - I believe it will . However , I'm still very confused as how to update or install applications to the router .
Installing extra applications
-
- Novice
- Posts: 15
- Joined: Sat Mar 21, 2015 9:34 am
Re: Installing extra applications
You haven't started with a good example, first start with a simple shell script, then a "hello world" type app to prove you have a cross-compiler working setup.
Changes to userspace iptables need an corresponding kernel netfilter modules, basically only possible with firmware recompilation.
Changes to userspace iptables need an corresponding kernel netfilter modules, basically only possible with firmware recompilation.
- thechief
- RouterTech Team
- Posts: 12067
- Joined: Wed Feb 01, 2006 10:22 pm
- Location: England, the Centre of Africa
- Contact:
Re: Installing extra applications
Where did you get this "apt-get" binary from?RagingGrim wrote:I tried to use ftp to get apt-get on the router and use that to install iptables to the minix partition although I tried that and it didn't work ( maybe because I literally only copied apt-get to /nvram ).
And how do you propose to compile this application?RagingGrim wrote:I'm going to try to write my only application , ftp it onto the router and run it to see if it works - I believe it will . However , I'm still very confused as how to update or install applications to the router .
I think you might be missing something fundamental - you cannot just copy any old linux application to the router. You will need a cross-compiler toolchain that will build apps for the mipsel (AR7) platform. Then you will find that hardly any app that you so cross-compile would fit in the minix partition that you have created. As mstombs said, you are realistically only looking to store shell scripts on the minix partition.
The Chief: Be sure to read the Firmware FAQ and do a Forum Search before posting!
No support via PM. Ask all questions on the open forum.
No support via PM. Ask all questions on the open forum.
-
- Novice
- Posts: 15
- Joined: Sat Mar 21, 2015 9:34 am
Re: Installing extra applications
I was missing something fundamental
This was a nice revision of how programs are compiled XD
Thanks for all the help , I should be fine from here ^^
This was a nice revision of how programs are compiled XD
Thanks for all the help , I should be fine from here ^^
- thechief
- RouterTech Team
- Posts: 12067
- Joined: Wed Feb 01, 2006 10:22 pm
- Location: England, the Centre of Africa
- Contact:
Re: Installing extra applications
Actually, you can compile small programs, if you code carefully. See this;
viewtopic.php?f=3&t=5683
and this;
viewtopic.php?f=3&t=5419
and this;
viewtopic.php?f=28&t=1602
viewtopic.php?f=3&t=5683
and this;
viewtopic.php?f=3&t=5419
and this;
viewtopic.php?f=28&t=1602
The Chief: Be sure to read the Firmware FAQ and do a Forum Search before posting!
No support via PM. Ask all questions on the open forum.
No support via PM. Ask all questions on the open forum.