Hi there. Great tutorial! Do you think Debian wheezy could be installed the same way in a RT-N16?
Thanks
Joao
pls post the output of these three commands:
Code:ls -la /mnt/sda1/debian/utils/
Code:ls -la /mnt/sda1/debian/
Code:ls -la /mnt/sda1/debian/bin/bash
Outputs are:
ASUSWRT-Merlin RT-AC68U_3.0.0.4 Fri Jan 31 05:21:52 UTC 2014
accName@RT-AC68U:/tmp/home/root# ls -la /mnt/sda1/debian/utils/
drwxrwxrwx 2 1 1 4096 Feb 23 18:16 .
drwxrwxrwx 22 accName root 4096 Feb 23 18:22 ..
-rw-rw-rw- 1 1 1 25407 Feb 23 18:16 chroot
chmod ug+x /mnt/sda1/debian/utils/chroot
Very nice, coz *ware is outdated.
But I have some newbie questions, i have never ever used chroot and other "advanced" unix tricks:
yesWhat about RAM consumption, is it shared with router?
by itself no, it'll depend on what you'll be doing with it...compiling a larger package couldDoes it need swap space on hdd?
the chroot will not eat any performance at allWhat about router performance?
see above...not dependant on the chroot/deboan package...simply on you much strain you put on the CPU by using some binaries that perform more or les hard work for you.What about extra heating when using torrents, for example?
see the tutorial...all devices are loop-mounted into the chroot environment and are availableHow networks are shared with router? Which interfaces debian apps can bind to?
There is no debian for asus...this is official debian for ARM (armel).Who build debian for asus, who will maintain it?
This is not tied to Merlin FW...it'll work with stock FW as well.How to properly update merlin firmware builds and debian base?
Do as you prefer...I am on ext4 with a USB3/SDHC-class10 card.Do I need ext4 or ext2 will do (ext2 is significantly faster on arm according to raspberry pi users)?
Yes, absolutely possible.Is it possible to intall GCC and compile directly in debian on router and not only to install ready-made apt packages (without any chaintools)?
the chroot will not see these...there is a risk that other kernels will have a different API than that of deban wheezy (in fact wheezy runs on 3.x kernel whilst ASUS is still on 2.6), butWhat happen when asus will change kernels, device drivers etc in its firmware?
Thanks Ford for answering the questions!
I didn't have much time today to look at all the questions but when I got home you already answered all of them Cheers!
Made some adjustments to the tutorial from the questions that came up.
cd /mnt/sda1
dd if=/dev/zero of=swapfile bs=1024 count=524288
mkswap swapfile
chmod 0600 swapfile
swapon swapfile
cd /jffs/scripts
vi services-start
swapon /mnt/sda1/swapfile
No worries.
Pls look at the "bug" from user TyraelAC.
Your download for chroot is the single binary..however, the executable flag will *not* be transferred that way and gets missing, hence.
I suggest, since your tut places it inside the debian-tree anyway, to incorporate it in the debian-tree download archive.
Code:cd /mnt/sda1 dd if=/dev/zero of=swapfile bs=1024 count=524288 mkswap swapfile chown root:root swapfile chmod 0600 swapfile
If you want this at every boot
Code:cd /jffs/scripts vi services-start
...on my AC68U the user root is not defined, so "chown root:root" does not work
...may I suggest to use script "post-mount" instead?
...and make it executable after with a "chmod a+x post-mount"
I can move the script in "post-mount".
Do you mean for all?
If you want to use a swapfile you can do the following.
Create a swap file of 512MB
I have just done this for "tinyproxy", which needs some patching in order to work in a multi-homed environment...worked like a charm and I've been impressed with the performance of the ASUS on this task.
This build is for mipsel devices, uninstall minidlna if you don't need it.
http://forums.smallnetbuilder.com/showthread.php?t=14573
Just quick addition.
It is better to use volume labels instead of sda1.
Coz drive can jump to sda1 sda2 sdb1 sdb2...
But it is always accessible on the same path when connected using volume label.
Use a label
use volume labels instead of sda1.
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!