Ok, its been a while since working on this topic. I did play with debian on the Dockstar for a few weeks but in the end the convenience of OpenWRT won me over. It has just enough and is easy enough to add new packages to.
A lot of improvements have happened to OpenWRT in the past 7 months. Two major ones are a much simplified Boot from USB (aka bootext) and the upgrade of FreeSwitch to 1.0.7.
This post details the steps I took to get to a working test system. I am building more modules et. than I will install but on a 4 core I7 laptop running Virtual Box it is not overly tedious. And you won’t need to go back and redo builds later My laptop has Windows 7 Pro with Virtual Box running debian for the builds. Once installed I never do updates to debian, otherwise you just spend your time doing daily updates instead of using FreeSwitch!
- svn –r 26950 of trunk
- (other steps from Mazilo)
- make menuconfig and enable
- Dockstar and uboot, and set static IP address etc
- php5 with all modules, ensure that you also enable Filter
- FreeSwitch and the modules you think you need
- build the system
- Install tftpd32 or tftpd64 from http://tftpd32.jounin.net on your PC. This enables easy loading of misc files to/from your Dockstar as tftp is built-in. Point its default directory to the same place as in the next item. (wput doesn’t seem to work and scp is, well it is scp)
- Create a directory somewhere on your network that is accessible via Ftp. Call it dockstar. In there I keep a directory structure for each revision that I play with. E.g. 26950, 26950/packages, etc. This is where you will point ‘opkg’ to get your built OpenWRT files from.
- Create a root filesystem on the USB storage device of choice (preferably a SSD)
mkdir -p /tmp/cproot mount --bind / /tmp/cproot tar -C /tmp/cproot -cvf - . | tar -C /mnt/sda1 -xf - umount /tmp/cproot
10. enable automount of /dev/sda1 in /etc/config/fstab, then do '/etc/init.d/fstab enable
11. passwd to set a root password. This allows you to ssh into your device using e.g.
PuTTY and you no longer need to rely on the serial cable
12. reboot: you are now running most data from your usb drive. Any packages or config
done is on that USB device!