Optware the right way on a SD Mod

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware
Author Message
DHC_DarkShadow
DD-WRT Guru


Joined: 22 Jun 2008
Posts: 2440
Location: Am now Dark_Shadow

PostPosted: Wed Nov 11, 2009 3:04    Post subject: Optware the right way on a SD Mod Reply with quote
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.

2. Partition the card - partition1 data, partition2 opt, partition3 jffs,partition4 swap reference How to - Format and Partition External Storage Device.

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.

Reference:

Optware, the right way
New ultra-fast SDHC driver/module - ported to DD-WRT
TM - SD Mod.. Another one - problem
Linksys WRT54G-TM SD/MMC mod

_________________
The New Me


Last edited by DHC_DarkShadow on Tue Dec 15, 2009 8:20; edited 14 times in total
Sponsor
phuzi0n
DD-WRT Guru


Joined: 10 Oct 2006
Posts: 10143

PostPosted: Wed Nov 11, 2009 4:09    Post subject: Re: Optware the right way on a SD Mod Reply with quote
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)
autobot
DD-WRT Guru


Joined: 07 May 2009
Posts: 1595

PostPosted: Wed Nov 11, 2009 4:21    Post subject: Reply with quote
Where were you earlier with your simple answer.....lol. Sometimes the human brain is a funny thing.
_________________
Eko Builds

BrainSlayer Builds

DD-WRT Changelog RSS Feed
DHC_DarkShadow
DD-WRT Guru


Joined: 22 Jun 2008
Posts: 2440
Location: Am now Dark_Shadow

PostPosted: Wed Nov 11, 2009 4:28    Post subject: Re: Optware the right way on a SD Mod Reply with quote
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
phuzi0n
DD-WRT Guru


Joined: 10 Oct 2006
Posts: 10143

PostPosted: Wed Nov 11, 2009 4:51    Post subject: Reply with quote
AZImmortal wrote:
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)
DHC_DarkShadow
DD-WRT Guru


Joined: 22 Jun 2008
Posts: 2440
Location: Am now Dark_Shadow

PostPosted: Thu Nov 12, 2009 0:19    Post subject: Re: Optware the right way on a SD Mod Reply with quote
phuzi0n wrote:
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


This works great, I have modified the steps in the first post. Thanks again P~

_________________
The New Me
Masterman
DD-WRT Guru


Joined: 24 Aug 2009
Posts: 2071
Location: South Florida

PostPosted: Thu Nov 12, 2009 0:37    Post subject: Reply with quote
Add to the Wiki? Good work! Cool
_________________
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
DHC_DarkShadow
DD-WRT Guru


Joined: 22 Jun 2008
Posts: 2440
Location: Am now Dark_Shadow

PostPosted: Thu Nov 12, 2009 2:12    Post subject: Reply with quote
Masterman wrote:
Add to the Wiki? Good work! Cool


Where at in the Wiki? I have search for it and do not see it.

_________________
The New Me
phuzi0n
DD-WRT Guru


Joined: 10 Oct 2006
Posts: 10143

PostPosted: Thu Nov 12, 2009 2:17    Post subject: Reply with quote
DHC_DarkShadow wrote:
Masterman wrote:
Add to the Wiki? Good work! Cool


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)
DHC_DarkShadow
DD-WRT Guru


Joined: 22 Jun 2008
Posts: 2440
Location: Am now Dark_Shadow

PostPosted: Thu Nov 12, 2009 2:23    Post subject: Reply with quote
phuzi0n wrote:
DHC_DarkShadow wrote:
Masterman wrote:
Add to the Wiki? Good work! Cool


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 Very Happy

_________________
The New Me
Masterman
DD-WRT Guru


Joined: 24 Aug 2009
Posts: 2071
Location: South Florida

PostPosted: Thu Nov 12, 2009 3:21    Post subject: Reply with quote
Will add it..simple copy paste Very Happy
_________________
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
Masterman
DD-WRT Guru


Joined: 24 Aug 2009
Posts: 2071
Location: South Florida

PostPosted: Thu Nov 12, 2009 3:55    Post subject: Reply with quote
Done. Cool Lemme know if everything is correct or needs more details.

http://www.dd-wrt.com/wiki/index.php/Optware%2C_the_Right_Way#SD.2FMMC_Method

_________________
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
Arrolus
DD-WRT User


Joined: 29 Jan 2009
Posts: 136

PostPosted: Thu Nov 12, 2009 6:14    Post subject: Reply with quote
weird....

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
DHC_DarkShadow
DD-WRT Guru


Joined: 22 Jun 2008
Posts: 2440
Location: Am now Dark_Shadow

PostPosted: Thu Nov 12, 2009 11:36    Post subject: Reply with quote
Arrolus wrote:
weird....

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.


Should be mount -o bind /mmc/jffs/opt /opt

Sorry bout that, i have made the proper corrections.

_________________
The New Me
DHC_DarkShadow
DD-WRT Guru


Joined: 22 Jun 2008
Posts: 2440
Location: Am now Dark_Shadow

PostPosted: Fri Nov 20, 2009 2:10    Post subject: Reply with quote
Masterman wrote:
Done. Cool Lemme know if everything is correct or needs more details.

http://www.dd-wrt.com/wiki/index.php/Optware%2C_the_Right_Way#SD.2FMMC_Method


Partition sizes concern me. Right now my optware is 288Megs. That's higher than the 256meg suggested size for below 40 gig.

EDIT: Scratch that, I was looking at the size on windows the actual size is 198 meg.

_________________
The New Me
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum