Sorry for my bad English, my russian discussion is here
Hardware mod.
1. You must use 5V 2A power adapter for router.
2. On board : NF1 – data+ & data-, resistors 20 – 50 Ohm.
3. F1 – resistor 0,2-0,5 Ohm (you can use 0 Ohm), BF12 – resistor 0 Ohm.C9 (C130) - SMD 0,1mF or any other 0,1mF between +VCC USB and GND.
4. R56, R3 – 0 Ohm.
5. USB connector (J3):
*GND
*data+
*data-
*+5V
1. Unpack micro-plus-ssh with FirmwareModKit
2. Go to /rootfs/usr/sbin and remove 2 files: dropbearmulti и pppd.
3. Copy into /rootfs/lib/modules/<kernel>/ drivers: usbcore.o, usb-ohci.o, scsi_mod.o, usb-storage.o, sd_mod.o,ext2.o. (from unpacked nokaid, mega).
4. Go to rootfs/sbin
5. Move file init into rootfs/usr/sbin
6. Create new file rootfs/sbin/init:
Code:
#!/bin/sh
if [ $1 == "noinitrd" ] ; then
insmod /lib/modules/`uname -r`/usbcore.o
insmod /lib/modules/`uname -r`/usb-ohci.o
insmod /lib/modules/`uname -r`/scsi_mod.o
insmod /lib/modules/`uname -r`/usb-storage.o
insmod /lib/modules/`uname -r`/sd_mod.o
insmod /lib/modules/`uname -r`/ext2.o
sleep 8s
mount -t proc none /proc
mount -t ext2 -o noatime,nodiratime /dev/scsi/host0/bus0/target0/lun0/part1 /mnt
if [ -x /mnt/sbin/init ] ; then
mount -o move /proc /mnt/proc && \
pivot_root /mnt /mnt/mnt && {
mount -o move /mnt/dev /dev
mount -o move /mnt/tmp /tmp
mount -o move /mnt/jffs /jffs
exec /sbin/init $*
}
else
exec /usr/sbin/init $*
fi
else
exec /usr/sbin/init $*
fi
Make this file executable.
7. Build firmware image and put it into router.
8. Create ext2 linux partition on usb flash drive (partition must be first in partition table, and size >= 15Mb)
9. Unpack MEGA firmware and put contents of rootfs to partition on usb flash drive. Change all files owner to 'root'.
Now, you can boot router from usb flash drive avtomaticaly if usb flash drive with ext2 partition is plugged.
I have not undersood one point.
As far as I can see in the pictures, You used only one condenser (0,1uF). But in your message, You mention about two condenser.
C9 (C130) means that condenser must be placed on C9 OR C130 OR any other place between +VCC and GND. _________________ DD-WRT v24 sp2 MEGA on ASUS wl-520gc [with USB]
Posted: Fri Jan 09, 2009 19:27 Post subject: Thank You!
lightix - I just wanted to thank you for that write-up.
I just flashed my ASUS WL-520gU and it's running mega now! I've been trying to figure out how to get OpenVPN, JFFS, USB and SNMP all working together on the WL-520gU and haven't been able to... until now!
Thanks so much for the contribution. It really is appreciated.
You cannot load the mega version directly on the WL-520GU (the router has only 4 MB flash). The mega version must be loaded in the USB stick (uncompress it with the Firmware Modification Kit and copy the root filesystem - the contents of "rootfs" folder - in the USB stick).