Here's the recipe for the (failed) Open WRT project. Here for posterity. ===== start ===== (turn wifi off, set ip address to 192.168.1.2) telnet to 192.168.1.1 uci set network.lan.ipaddr=192.168.128.1 uci commit reboot (swap ip address to 192.168.128.2, enable proxy on 8888) telnet to 192.168.128.1 echo 'option http_proxy http://192.168.128.2:8888/' >> /etc/opkg.conf opkg update opkg install kmod-usb-storage block-mount usb-modeswitch-data kmod-scsi-generic kmod-fs-ext4 edit /etc/config/fstab (file contents) config global automount option from_fstab 1 option anon_mount 1 config global autoswap option from_fstab 1 option anon_swap 0 config swap option device /dev/sda1 option enabled 0
config mount option target /mnt/sda2 option device /dev/sda2 option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
config mount option target /mnt/sda3 option device /dev/sda3 option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
(end file contents) df -h Filesystem Size Used Available Use% Mounted on . . . /dev/mtdblock3 1.4M 796.0K 612.0K 57% /overlay overlayfs:/overlay 1.4M 796.0K 612.0K 57% / reboot. (check that all is okay i.e. /mnt/sda2 /mnt/sda3 exists, then copy /overlay) add to the sda2 config mount section of /etc/config/fstab option is_rootfs 1 change in the config swap section option enabled 0 to option enabled 1 tar -C /overlay -cvf - . | tar -C /mnt/sda2 -xf - reboot (hopefully this will have got swap on the usb stick, and /overlay working) opkg update opkg install luci /etc/init.d/uhttpd enable /etc/init.d/uhttpd start (configuration now managed by luci…) (but first we need to load the ether-cdc things) (reboot … woot lucy is running1) opkg update opkg install kmod-usb-net-cdc-ether reboot opkg update opkg install udev usbutils kmod-usb-net-rndis /// /// missing: rndis_wlan,rndis_host,cdc_ether,cdc_ncm ===== end ===== |
Projects > Portable Hotspot >