Wednesday, 6 June 2012

MR3220 OpenWRT Extroot installation

The TP-Link has OpenWRT installed using either tftp or via the serial port using Kermit. Install the packages for using USB as storage on OpenWRT.

opkg update
opkg install kmod-usb-core kmod-usb-uhci kmod-usb-storage kmod-usb2 kmod-fs-ext4
reboot -f
mkdir /usb
mount /dev/sda1 /usb
mkdir /tmp/root
mount -o bind / /tmp/root
cp /tmp/root/* /usb -a
umount /tmp/root
umount /usb

Now edit the /etc/config/fstab file and add the following.
config mount
option target /usb
option device /dev/sda1
option fstype ext2
option options rw,sync
option enabled 1
option enabled_fsck 1
option is_rootfs 1


CNC 6040 Spindle Control

Note: This is only an on - off control there is no speed control due to limitations on the CNC control box , you set the speed using the pot...