Joined: 22 Jun 2008 Posts: 2440 Location: Am now Dark_Shadow
Posted: Wed Nov 11, 2009 3:04 Post subject: Optware the right way on a SD Mod
First off credit goes to frater for the optware script and the driver script credit goes to aszu and the startup script for the driver goes to phuzi0n. A big thx to the dev's. A big thx to eko for working hard to get the new integrated driver working properly. My hats off to you guys.
UPADTE
Eko svn13309 - Has new sd driver in it.
== After and including build 13309 ==
1. Make sure you have 13309 or higher on your router. Start with a fresh system 30/30/30 reset.
3. Boot router.
3A. Enable SD support. The firmware will automount the first partition to /mmc.
3B. Enable jffs.
3C. Setup your internet connection.
3D. Save the following script to Startup in Administration->Commands.
Code:
mount /dev/mmc/disc0/part2 /opt
mount /dev/mmc/disc0/part3 /jffs
4. Log into the router via Putty (SSH) and run fraters script below. This will take a while. It will tell you when it's finished.
Code:
wget -O /tmp/prep_optware http://wd.mirmana.com/prep_optware
sh /tmp/prep_optware
5. When the script is done, it will tell you so and advise a reboot. (it is wise to wait ~1-2 mins after completion before rebooting)
6. Reboot
== Before build 13309 ==
An update on my situation. The SD cards speeds were too slow, overwhelming the router. I have steps for anyone using SD. It uses the new driver for the install. I have tested this 4 times on 2 different sd cards.
Installation:
1. Start fresh system 30/30/30. Clean formatted sd card ext2 or ext3, with /jffs directory then create /opt inside of jffs ex. /jffs/opt. For some reason the later builds have a problem with formatting a card on setup, it screws the partition making the card invisible to the router.
2. Boot router, enable and setup GPIO's in the GUI for the SD Mod, because in the later builds auto GPIO is broke. Also setup your internet connection. Enable jffs.
3. Copy the SDHC driver from here to the root directory of the mmc card via WinSCP then save this script to startup in administration. This startup script will run the new SDHC driver all the time. It is only necessary until the release of a build with it all ready ported.
Code:
cp /mmc/sdhc-gpio2.o /tmp
umount /mmc
rmmod mmc
insmod /tmp/sdhc-gpio2.o
mount /dev/mmc/part1 /mmc/
mount --bind /mmc/jffs /jffs
mount -o bind /mmc/jffs/opt /opt
4. Log into the router via putty (SSH) and run fraters script. This will take a while. I will tell you when it's finished.
Code:
wget -O /tmp/prep_optware http://wd.mirmana.com/prep_optware
sh /tmp/prep_optware
5. Reboot
Notes:
To update, just rerun fraters script it will update anything that needs to be updated.
Posted: Wed Nov 11, 2009 4:09 Post subject: Re: Optware the right way on a SD Mod
DHC_DarkShadow wrote:
Note: the new driver will only be used during installation. It will not survive the reboot. I haven't figured out how to run a script to keep it running.
You can save it to the mmc, copy it to /tmp at startup, and then rmmod/insmod to switch mmc drivers.
#copy the fast driver to mmc for storage
cp /tmp/sdhc-gpio2.o /mmc
#startup script
cp /mmc/sdhc-gpio2.o /tmp
umount /mmc
rmmod mmc
insmod /tmp/sdhc-gpio2.o
mount /dev/mmc/part1 /mmc/
mount -o /mmc/opt /opt
If there's a problem with the startup script's timing then try this form instead.
#all one line
`sleep 60; cp /mmc/sdhc-gpio2.o /tmp; umount /mmc; rmmod mmc; insmod /tmp/sdhc-gpio2.o; mount /dev/mmc/part1 /mmc/; mount -o /mmc/opt /opt` & _________________ Read the forum announcements thoroughly! Be cautious if you're inexperienced.
Available for paid consulting. (Don't PM about complicated setups otherwise)
Looking for bricks and spare routers to expand my collection. (not interested in G spec models)
Joined: 22 Jun 2008 Posts: 2440 Location: Am now Dark_Shadow
Posted: Wed Nov 11, 2009 4:28 Post subject: Re: Optware the right way on a SD Mod
phuzi0n wrote:
DHC_DarkShadow wrote:
Note: the new driver will only be used during installation. It will not survive the reboot. I haven't figured out how to run a script to keep it running.
You can save it to the mmc, copy it to /tmp at startup, and then rmmod/insmod to switch mmc drivers.
#copy the fast driver to mmc for storage
cp /tmp/sdhc-gpio2.o /mmc
#startup script
cp /mmc/sdhc-gpio2.o /tmp
umount /mmc
rmmod mmc
insmod /tmp/sdhc-gpio2.o
mount /dev/mmc/part1 /mmc/
mount -o /mmc/opt /opt
If there's a problem with the startup script's timing then try this form instead.
#all one line
`sleep 60; cp /mmc/sdhc-gpio2.o /tmp; umount /mmc; rmmod mmc; insmod /tmp/sdhc-gpio2.o; mount /dev/mmc/part1 /mmc/; mount -o /mmc/opt /opt` &
Thanks P~, I will give this a shot tomorrow and see what happens. _________________ The New Me
Assuming the fast driver is in /jffs/, then how would the startup script be changed? I think I know, but I'd rather not mess anything up if I'm wrong. Thanks.
umount /mmc
rmmod mmc
insmod /jffs/sdhc-gpio2.o
mount /dev/mmc/part1 /mmc/
mount -o /mmc/opt /opt _________________ Read the forum announcements thoroughly! Be cautious if you're inexperienced.
Available for paid consulting. (Don't PM about complicated setups otherwise)
Looking for bricks and spare routers to expand my collection. (not interested in G spec models)
Joined: 24 Aug 2009 Posts: 2070 Location: South Florida
Posted: Thu Nov 12, 2009 0:37 Post subject:
Add to the Wiki? Good work! _________________ Optware, the Right Way
Asus RT-AC68U
Asus RT-N66U
Asus RT-N10
Asus RT-N12
Asus RT-N16 x5
Asus WL520gU
Engenious ECB350
Linksys WRT600Nv1.1
Linksys WRT610Nv1
Linksys E2000
Netgear WNDR3300
SonicWall NSA220W
SonicWall TZ215W
SonicWall TZ205W
SonicWall TZ105W
Where at in the Wiki? I have search for it and do not see it.
It was posed as a question. The wiki history shows nothing. I don't think there's much point to adding it to the wiki when the driver will be in the next build whenever it's compiled. _________________ Read the forum announcements thoroughly! Be cautious if you're inexperienced.
Available for paid consulting. (Don't PM about complicated setups otherwise)
Looking for bricks and spare routers to expand my collection. (not interested in G spec models)
Joined: 22 Jun 2008 Posts: 2440 Location: Am now Dark_Shadow
Posted: Thu Nov 12, 2009 2:23 Post subject:
phuzi0n wrote:
DHC_DarkShadow wrote:
Masterman wrote:
Add to the Wiki? Good work!
Where at in the Wiki? I have search for it and do not see it.
It was posed as a question. The wiki history shows nothing. I don't think there's much point to adding it to the wiki when the driver will be in the next build whenever it's compiled.
Ah yea I see the question mark now. I think your right about adding it. It's only a matter of time till a build will be out with it.
@ Masterman if you wish to add it to your wiki page about fraters optware go right ahead. I'm just happy it works _________________ The New Me
Joined: 24 Aug 2009 Posts: 2070 Location: South Florida
Posted: Thu Nov 12, 2009 3:21 Post subject:
Will add it..simple copy paste _________________ Optware, the Right Way
Asus RT-AC68U
Asus RT-N66U
Asus RT-N10
Asus RT-N12
Asus RT-N16 x5
Asus WL520gU
Engenious ECB350
Linksys WRT600Nv1.1
Linksys WRT610Nv1
Linksys E2000
Netgear WNDR3300
SonicWall NSA220W
SonicWall TZ215W
SonicWall TZ205W
SonicWall TZ105W
I have an /mmc/jffs/opt directory, but it won't seem to mount to /opt. when i run the "mount -o /mmc/jffs/opt /opt" command, nothing happens. _________________ Case: Antec Twelve Hundred ATX
CPU: Intel 2 Quad Q6600
Motherboard: ASUS P5k Deluxe
GPU: Gefore 9800 GTX
PSU: Corsair 750W
RAM: 4gb Corsair Dominator
HD: 500gb Seagate Barracuda