Try my mod without recompiling. It has this option (missing in stock Tomato):I was trying to flash stock tomato (not your mod), and had bricked the router.
CONFIG_MTD_CFI_B1=y
and it's enough. No need for "CONFIG_MTD_CFI_I2=y".
Try my mod without recompiling. It has this option (missing in stock Tomato):I was trying to flash stock tomato (not your mod), and had bricked the router.
Try my mod without recompiling. It has this option (missing in stock Tomato):
CONFIG_MTD_CFI_B1=y
and it's enough. No need for "CONFIG_MTD_CFI_I2=y".
Hi!
I've just flashed my Asus 520GU the new firmware (Extended version) and it's not able to start. The first LED (power) is off, the 2nd (Air) and the 3rd (WAN) is on, and the WAN LED keeps blinking (as usual). I can't access the router. I tried to unplug it and plug it back, but it didn't help. I tried to use Asus Firmware restoration utility with FW 8742 Ext, but the result is the same. Finally I restored FW 8740 Ext, and now it's working. Anybody else had problem with the latest firmware and Asus 520GU?
After your drive auto-mounts, run "mount" command without parameters. You'll see all options used to mount the drive. Just use the same options when mounting it manually.Another question, how should I mount the usb device correctly if I want to do that manually?
#1: This is standard Linux behavior. You undoubtly have a file open on the partition. One common occurance is to execute a program that's on a partition. As long as that program is active, the partition is busy and can't be unmounted. What I do in this case is copy the program to /tmp and execute it from there.
Try using "lsof" to see what files are open. You can get this by installing the ipkg "lsof".
--- Makefile 2010-01-07 16:40:08.000000000 -0600
+++ Makefile-patched 2010-01-08 20:47:09.000000000 -0600
@@ -384,6 +384,45 @@ s:
@$(MAKE) setprofile N=$(TPROFILE) B=S DESC="" USB=""
@$(MAKE) all
+## Make the "No USB + VPN" build
+v:
+ @cp router/config_base router/config_$@
+ @cp router/busybox/config_base router/busybox/config_$@
+ @cp $(LINUXDIR)/config_base $(LINUXDIR)/config_$@
+
+ @sed -i "/TCONFIG_LZO/d" router/config_$@
+ @sed -i "/TCONFIG_OPENVPN/d" router/config_$@
+ @echo "TCONFIG_LZO=y" >>router/config_$@
+ @echo "TCONFIG_OPENVPN=y" >>router/config_$@
+ @sed -i "/TCONFIG_SAMBASRV/d" router/config_$@
+ @echo "# TCONFIG_SAMBASRV is not set" >>router/config_$@
+ @sed -i "/TCONFIG_FTP/d" router/config_$@
+ @echo "# TCONFIG_FTP is not set" >>router/config_$@
+ @sed -i "/TCONFIG_USB/d" router/config_$@
+ @echo "# TCONFIG_USB is not set" >>router/config_$@
+
+ $(call KernelConfigMips, $(LINUXDIR)/config_$@)
+ $(call BusyboxExtraOptions, router/busybox/config_$@)
+ $(call BusyboxKernelConfig, router/busybox/config_$@)
+
+ @sed -i "/CONFIG_FEATURE_MOUNT_LOOP/d" router/busybox/config_$@
+ @echo "# CONFIG_FEATURE_MOUNT_LOOP is not set" >>router/busybox/config_$@
+ @sed -i "/CONFIG_FEATURE_DEVFS/d" router/busybox/config_$@
+ @echo "# CONFIG_FEATURE_DEVFS is not set" >>router/busybox/config_$@
+ @sed -i "/CONFIG_FEATURE_MOUNT_LABEL/d" router/busybox/config_$@
+ @echo "# CONFIG_FEATURE_MOUNT_LABEL is not set" >>router/busybox/config_$@
+ @sed -i "/CONFIG_FEATURE_MOUNT_FSTAB/d" router/busybox/config_$@
+ @echo "# CONFIG_FEATURE_MOUNT_FSTAB is not set" >>router/busybox/config_$@
+ @sed -i "/CONFIG_VOLUMEID/d" router/busybox/config_$@
+ @echo "# CONFIG_VOLUMEID is not set" >>router/busybox/config_$@
+ @sed -i "/CONFIG_BLKID/d" router/busybox/config_$@
+ @echo "# CONFIG_BLKID is not set" >>router/busybox/config_$@
+ @sed -i "/CONFIG_SWAPONOFF/d" router/busybox/config_$@
+ @echo "# CONFIG_SWAPONOFF is not set" >>router/busybox/config_$@
+
+ @$(MAKE) setprofile N=$(TPROFILE) B=V DESC="VPN" USB=""
+ @$(MAKE) all
+
## Make Asus RT-N16 (mips32r2 CPU) build
n16:
@$(MAKE) m MIPS32=r2
@@ -448,7 +487,10 @@ help:
@echo "b B build (standard minus SSH)"
@echo "c C build (standard minus cifs)"
@echo "d D build (standard minus Samba server)"
+ @echo "e E build (standard plus extra utilities with VPN)"
@echo "m M build (standard plus extra utilities)"
+ @echo "s S build (no usb)"
+ @echo "v V build (no usb with VPN)"
@echo "..etc.. other build configs"
@echo "clean -C router clean"
@echo "cleanimage rm -rf image"
After your drive auto-mounts, run "mount" command without parameters. You'll see all options used to mount the drive. Just use the same options when mounting it manually.
BTW, may I ask why do you need to mount the drive manually? Of course, there could be many reasons - just wanted to make sure you're aware of fstab option...
As for the umount, "-l" parameter is not used when you click "Unmount" in the GUI, it's only used when you restart/shutdown the router.
babydragon: Just create your own fstab with the appropriate line for the partition you want to mount. Tomato always calls "mount -a" before it tries it's own automount. If it's mounted from fstab, Tomato won't mount it again.
Just create your /etc/fstab and then do "nvram setfile2nvram /etc/fstab" and "nvram commit". Any files saved with setfile2nvram will be restored when the router boots up.
This is what I do for setting up my fstab for my swapfile. You can create any personalized directories for your mountpoints by putting mkdir commands in your init script.
Or.......you can take advantage of the new feature where all "*.autorun" commands/scripts in the root directory of a partition will be executed when the partition is automounted. You could put your tailored "mount -o bind " command in an autorun script. FWIW, this is what I do to get my "/mnt/ext_160/opt" directory to be mounted as "/opt". My external 160GB USB harddrive has one swap partition and one ext3 partition, and "opt" is a directory in the ext3 partition.
I *really* need to make a document explaining all this stuff.
If you get "device busy" on umount, then there IS something open on the partition. Either a file is open, or a command window has cd'ed to a directory on that partition. The reason why the webgui unmount seems to work is that it does "-l" (under certain conditions) if the umount fails.
Yes, you need to make sure your scripts are made executable (chmod +x <script_name>), have "#!/bin/sh" as the first line, and DO NOT HAVE DOS caret returns between lines (so do not edit scripts with Windows notepad).Update: I tried the "*.autorun" trick but it seems that it doesn't run automatically when it's auto-mounted. ... Is there any other thing I should pay attention to when applying this?
Yes, you need to make sure your scripts are made executable (chmod +x <script_name>), have "#!/bin/sh" as the first line, and DO NOT HAVE DOS caret returns between lines (so do not edit scripts with Windows notepad).
With these conditions met all these scripts worked for me.
There's an issue with the current implementation though - you can't make a script file executable on FAT filesystem, so these ".autorun" scripts won't work on FAT-formatted drives. I'll probably change it for the next build...
We use essential cookies to make this site work, and optional cookies to enhance your experience.