Optware MMC Install - WRT54G-TM - DD-WRT v24-sp2 (07/21/09)

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page 1, 2, 3  Next
Author Message
Sandhawk
DD-WRT Novice


Joined: 27 Jul 2009
Posts: 16

PostPosted: Mon Jul 27, 2009 3:17    Post subject: Optware MMC Install - WRT54G-TM - DD-WRT v24-sp2 (07/21/09) Reply with quote
Man I feel retarded for not figuring this out, but it looks like I need some help

First off, I'm running build 12533 (mega) on a WRT54G-TM with 2gb SD mod. The sdcard mounts fine to /mmc and I'm able to create /mmc/opt and mount -o bind /opt

I've tried both manually installing optware, and using the install script located on the wiki
http://www.dd-wrt.com/wiki/index.php/Optware

It seems that no matter what I try, when trying "ipkg update" it simply does nothing

and when trying to ipkg install / ipkg-opt install, it tells me to run ipkg update.



Capture.PNG
 Description:
 Filesize:  1.64 KB
 Viewed:  15572 Time(s)

Capture.PNG


Sponsor
DHC_DarkShadow
DD-WRT Guru


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

PostPosted: Mon Jul 27, 2009 4:02    Post subject: Reply with quote
I am sorry I cannot do anything for your answer. I am in the same boat as you. I hope you don't mind if I tag along on this one.

Have you tried

wget http://www.wlan-sat.com/boleo/optware/optware-install-ddwrt.sh -O - | tr -d '\r' > /opt/tmp/optware-install.sh

_________________
The New Me
Sandhawk
DD-WRT Novice


Joined: 27 Jul 2009
Posts: 16

PostPosted: Mon Jul 27, 2009 4:06    Post subject: Reply with quote
DHC_DarkShadow wrote:
I am sorry I cannot do anything for your answer. I am in the same boat as you. I hope you don't mind if I tag along on this one.

Have you tried

wget http://www.wlan-sat.com/boleo/optware/optware-install-ddwrt.sh -O - | tr -d '\r' > /opt/tmp/optware-install.sh


I used;

wget http://www.3iii.dk/linux/optware/optware-install-ddwrt.sh -O - | tr -d '\r' > /tmp/optware-install.sh

which I believe is the same script, I also tried replacing all of the /jffs/ references to /mmc/ with no luck
DHC_DarkShadow
DD-WRT Guru


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

PostPosted: Mon Jul 27, 2009 4:13    Post subject: Reply with quote
Once you bind /mmc/opt to /opt you should only have to use /opt, right? Cause the bind command tells the kernal the path so it knows were to go when just /opt is mentioned. Hell, I could be way off base. I am a linux n00b. Laughing
_________________
The New Me
Sandhawk
DD-WRT Novice


Joined: 27 Jul 2009
Posts: 16

PostPosted: Mon Jul 27, 2009 4:21    Post subject: Reply with quote
DHC_DarkShadow wrote:
Once you bind /mmc/opt to /opt you should only have to use /opt, right? Cause the bind command tells the kernal the path so it knows were to go when just /opt is mentioned. Hell, I could be way off base. I am a linux n00b. Laughing


Yep binding /mmc/opt to /opt would last until reboot I believe, I added it to my startup script so I wouldnt have to type it all the time
DHC_DarkShadow
DD-WRT Guru


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

PostPosted: Mon Jul 27, 2009 4:24    Post subject: Reply with quote
In mount -o bind /jffs/opt /opt What is the -o for?


I got it to work but with the -o in there it doesn't recognized opt on the mmc.

_________________
The New Me
Sandhawk
DD-WRT Novice


Joined: 27 Jul 2009
Posts: 16

PostPosted: Mon Jul 27, 2009 4:30    Post subject: Reply with quote
DHC_DarkShadow wrote:
In mount -o bind /jffs/opt /opt What is the -o for?


I got it to work but with the -o in there it doesn't recognized opt on the mmc.


I could be wrong, but I think the -o bind is because you're mounting it in two places. At /jffs/opt and at /opt

Is your opt folder on jffs? I have mine located on /mmc which seems to be the root of my problem
DHC_DarkShadow
DD-WRT Guru


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

PostPosted: Mon Jul 27, 2009 4:31    Post subject: Reply with quote
got it, you have to be in the /opt directory before you execute sh /tmp/optware-install.sh
_________________
The New Me
DHC_DarkShadow
DD-WRT Guru


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

PostPosted: Mon Jul 27, 2009 4:45    Post subject: Reply with quote
I am also getting the feeling that after you mount jffs everything else should be mounted in it. I got...


/mmc/jffs
/mmc/opt
/mmc/ipkg

And I think it should be...

/mmc/jffs
/mmc/jffs/opt

It creates the ipkg directory itself.

So ..

mount --bind /mmc/jffs /jffs
mount -o bind /mmc/opt /opt
mount --bind /mmc/ipkg /ipkg

or

mount --bind /mmc/jffs /jffs
mount --bind /mmc/jffs/opt /opt

_________________
The New Me
DHC_DarkShadow
DD-WRT Guru


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

PostPosted: Mon Jul 27, 2009 5:20    Post subject: Reply with quote
Should jffs be mounted twice?


Picture1.jpg
 Description:
df
 Filesize:  23 KB
 Viewed:  15528 Time(s)

Picture1.jpg



_________________
The New Me
Sandhawk
DD-WRT Novice


Joined: 27 Jul 2009
Posts: 16

PostPosted: Mon Jul 27, 2009 5:36    Post subject: Reply with quote
Well I finally got mine working, Ill try to explain what I did.

First off I started with a freshly formatted ext3 partition /dev/mmc/disc0/part1

I enabled MMC support and JFFS2 support in the web gui...restarted the router

Then

mkdir /mmc/jffs
mount --bind /mmc/jffs /jffs
nvram set sys_enable_jffs2=1
mkdir /jffs/tmp
mkdir /jffs/tmp/ipkg
mkdir /jffs/opt
mount -o bind /jffs/opt /opt

wget http://www.3iii.dk/linux/optware/optware-install-ddwrt.sh -O - | tr -d '\r' > /tmp/optware-install.sh

sh /tmp/optware-install.sh

ipkg update
/opt/bin/ipkg-opt update
/opt/bin/ipkg-opt install busybox

(Setup 64mb swap partition)
/opt/bin/busybox swapon /dev/mmc/disc0/part2

And I also added this to my startup.script
mount --bind /mmc/jffs /jffs
mount -o bind /jffs/opt /opt
/opt/bin/busybox swapon /dev/mmc/disc0/part2


Hope this helps!
Sandhawk
DD-WRT Novice


Joined: 27 Jul 2009
Posts: 16

PostPosted: Mon Jul 27, 2009 5:38    Post subject: Reply with quote
DHC_DarkShadow wrote:
Should jffs be mounted twice?


Yes, the first mount dev/mtdblock/4 is your routers flash memory, the second mount is the symlink to your /mmc/
Sandhawk
DD-WRT Novice


Joined: 27 Jul 2009
Posts: 16

PostPosted: Mon Jul 27, 2009 5:52    Post subject: Reply with quote
I added this to my shutdown.script

/opt/bin/busybox swapoff /dev/mmc/disc0/part2
umount /mmc/jffs /jffs
umount /jffs/opt /opt

If anyone has a better way of doing this, feel free to correct me
DHC_DarkShadow
DD-WRT Guru


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

PostPosted: Mon Jul 27, 2009 5:59    Post subject: Reply with quote
whats the purpose of the shutdown script? Why would you want to unmount those?
_________________
The New Me
Sandhawk
DD-WRT Novice


Joined: 27 Jul 2009
Posts: 16

PostPosted: Mon Jul 27, 2009 6:01    Post subject: Reply with quote
DHC_DarkShadow wrote:
whats the purpose of the shutdown script? Why would you want to unmount those?


I noticed that when I rebooted the router without unmounting those directories my busybox utilities were corrupt. I'm not sure the cause yet but I haven't had the same problem since unmounting before rebooting.
Goto page 1, 2, 3  Next Display posts from previous:    Page 1 of 3
Post new topic   Reply to topic    DD-WRT 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