1. Compile the latest trunk with
block-mount
kmod-fs-ext4
kmod-usb-ohci
kmod-usb-storage
To find where these are in the menuconfig type / and you can searchfor them.
2. Upgrade the system: sysupgrade -v/path/to/file/openwrt.router-sysupgrade.bin
3. Run block info and find out what /dev/sdx is your usb
Then run:
mkfs.ext4 /dev/sda1 (you will need to install e2fsprogs forthis)
mount /dev/sda1 /mnt
mkdir /tmp/cproot
mount --bind / /tmp/cproot
tar -C /tmp/cproot -cvf - . | tar -C /mnt -xvf -
sync ; umount /mnt
umount /tmp/cproot
4. After this run:
block detect > /etc/config/fstab
nano /etc/config/fstab (install nano if you dont have it or use vi/etc/config/fstab)
and modify the target line and option enabled line so that it lookslike this:
config 'global'
option anon_swap '0'
option anon_mount '0'
option auto_swap '1'
option auto_mount '1'
option delay_root '0'
option check_fs '0'
config 'mount'
option target '/'
option uuid '7d3abfaf-493a-46bb-9730-1d793ecb9783'
option enabled '1'
config 'swap'
option uuid '76d36596-5710-4b77-a3a7-02a66d469750'
option enabled '1'
5. Reboot
6. Here's proof that it works
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E DO M
-----------------------------------------------------
-----------------------------------------------------
* 1/2 ozGalliano Pour all ingredients into
* 4 oz coldCoffee an irish coffee mug filled
* 1 1/2 oz DarkRum with crushed ice. Stir.
* 2 tsp. Creme de Cacao
-----------------------------------------------------
root@OpenWrt:/# df -h
Filesystem Size Used Available Use% Mounted on
rootfs 7.1G 144.3M 6.6G 2% /
/dev/root 4.8M 4.8M 0 100% /rom
tmpfs 30.2M 88.0K 30.1M 0% /tmp
/dev/sda1