OptwareNG on Belkin N300

· by Raghu Rajagopalan · Read in about 1 min · (176 words) ·

Optware or Entware

I don’t know. Entware isn’t an option since there are no official mipsel arch packages. I came across unofficial package repo on linksysinfo forums - but it didn’t seem to be a good idea to depend on those. OptwareNG commit history is somewhat active - so that’s good.

OptwareNG

Preparation

  1. Partitioned USB pen drive

    1. optware - 768Mb

    2. swap - linux swap - 195Mb

  2. Enable usb support and automount

    1. add to Administration → Scripts → init echo "LABEL=optware /opt ext2 defaults 1 1" >> /etc/fstab

  3. DNS resolution did not work out of the box (since I have this configured with WAN disabled.)

    1. run echo "nameserver 192.168.1.1" >> /etc/resolv.dnsmasq

    2. add the above to Administration → Scripts → init

  4. Run script from optware github readme for mipsel -

    • wget -O - http://ipkg.nslu2-linux.org/optware-ng/bootstrap/buildroot-mipsel-ng-bootstrap.sh | sh

Tuning

Swap

  1. USB → run after mounting → swapon /dev/sda2

Services

  1. add this to /opt/etc/init.d

  2. chmod +x /opt/etc/init.d/rc.unslung

  3. Add this to USB → run after mounting → /opt/etc/init.d/rc.unslung after the line activating swap