help with optware on sd card- no unmount?

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


Joined: 10 Feb 2007
Posts: 10

PostPosted: Sat Feb 24, 2007 22:40    Post subject: help with optware on sd card- no unmount? Reply with quote
Hi,

Am trying to install optware with a 256MB sd mod that seems to be working fine. I get a weird error when running the script per the wiki page (pasted below). I'm on v23sp2

I've noticed some weirdness with mount- is unmount not available in sp2? I did the following to set things up before trying the commands below:

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

Tried to unmount /jffs first, but the unmount command doesn't seem to be there.

Totally stumped at this point as to why I get the IO error.

Thanks


/ # wget http://pastebin.ca/raw/328107 -O - | tr -d '\r' > /tmp/optware-install.sh
/ # sh /tmp/optware-install.sh
Checking system config ...
Using 68.231.120.1 as default gateway.
Using the following nameserver(s):
nameserver 192.168.1.1
Installing package uclibc-opt_0.9.28-12_mipsel.ipk ...
Connecting to ipkg.nslu2-linux.org[140.211.166.82]:80
uclibc-opt_0.9.28-12 100% |****************************************************************| 832 KB 00:00:00 ETA
Updating /opt/etc/ld.so.cache
/tmp/postinst: /tmp/postinst: 6: /opt/sbin/ldconfig: Input/output error
Installing package ipkg-opt_0.99.163-9_mipsel.ipk ...
Connecting to ipkg.nslu2-linux.org[140.211.166.82]:80
ipkg-opt_0.99.163-9_ 100% |****************************************************************| 75896 --:--:-- ETA
/tmp/optware-install.sh: /tmp/optware-install.sh: 90: /opt/sbin/ldconfig: Input/output error
/tmp/optware-install.sh: /tmp/optware-install.sh: 91: /opt/bin/ipkg: Input/output error
/tmp/optware-install.sh: /tmp/optware-install.sh: 92: /opt/bin/ipkg: Input/output error
/tmp/optware-install.sh: /tmp/optware-install.sh: 93: /opt/bin/ipkg: Input/output error
Sponsor
trey504
DD-WRT User


Joined: 02 Oct 2006
Posts: 220

PostPosted: Sun Feb 25, 2007 2:07    Post subject: Reply with quote
umount /jffs -- thats the unmount

Follow the wiki its idiot proof http://www.dd-wrt.com/wiki/index.php/Optware
Umm dont worry about jffs its not even needed
just change these two commands
mkdir /mmc/opt - i think you forgot this command
mount -o bind /mmc/opt /opt
crashtkd
DD-WRT Novice


Joined: 10 Feb 2007
Posts: 10

PostPosted: Sun Feb 25, 2007 15:26    Post subject: Reply with quote
That's the weird thing- I get "not found" error when I try to unmount- it's like the command isn't even there.

I've also treid turning off jffs and rebooting, but it still shows up- as does my opt mount (I did create it properly).

Resets/reboots don't seem to help. Seems odd to me.
trey504
DD-WRT User


Joined: 02 Oct 2006
Posts: 220

PostPosted: Sun Feb 25, 2007 18:06    Post subject: Reply with quote
those directories will always be there they will just not be linked to anything

make sure your mmc works use wget and grab a file and see if it writes

umount /jffs - it works for me on SP3 might want to upgrade
crashtkd
DD-WRT Novice


Joined: 10 Feb 2007
Posts: 10

PostPosted: Mon Feb 26, 2007 19:13    Post subject: Reply with quote
Okay- something else must be going on. I've flashed multiple versions and I never seem to have the unmount command.

My MMC is definitely writable- the optware script installs a bunch of files before failing. I'm following the exact wiki directions and it still crashes.

I'll try and reset everything a few more times. Just seems an odd error.
trey504
DD-WRT User


Joined: 02 Oct 2006
Posts: 220

PostPosted: Mon Feb 26, 2007 20:24    Post subject: Reply with quote
mount /opt so in links to /mmc/opt then run the following

cd /mmc/opt
mkdir test
ls -al - make sure the dir is there
cd /opt
ls -al - make sure your link works then run the script
wget http://pastebin.ca/raw/328107 -O - | tr -d '\r' > /opt/optware-install.sh
./opt/optware-install.sh

tell me what you get
crashtkd
DD-WRT Novice


Joined: 10 Feb 2007
Posts: 10

PostPosted: Tue Feb 27, 2007 3:09    Post subject: Reply with quote
Thanks for working with me on this-

First I wiped everything in /opt, reset to factory defaults, then held the reset button down for 30 seconds to clear the NVRAM.

Followed your instructions (had to set permissions on on the .sh), and still get the same output:

/ # ./opt/optware-install.sh
Checking system config ...
Using 68.231.120.1 as default gateway.
Using the following nameserver(s):
nameserver 192.168.1.1
Installing package uclibc-opt_0.9.28-12_mipsel.ipk ...
Connecting to ipkg.nslu2-linux.org[140.211.166.82]:80
uclibc-opt_0.9.28-12 100% |****************************************************************| 832 KB 00:00:00 ETA
Updating /opt/etc/ld.so.cache
/tmp/postinst: /tmp/postinst: 6: /opt/sbin/ldconfig: Input/output error
Installing package ipkg-opt_0.99.163-9_mipsel.ipk ...
Connecting to ipkg.nslu2-linux.org[140.211.166.82]:80
ipkg-opt_0.99.163-9_ 100% |****************************************************************| 75896 --:--:-- ETA
./opt/optware-install.sh: ./opt/optware-install.sh: 90: /opt/sbin/ldconfig: Input/output error
./opt/optware-install.sh: ./opt/optware-install.sh: 91: /opt/bin/ipkg: Input/output error
./opt/optware-install.sh: ./opt/optware-install.sh: 92: /opt/bin/ipkg: Input/output error
./opt/optware-install.sh: ./opt/optware-install.sh: 93: /opt/bin/ipkg: Input/output error

Any ideas?

Thanks...
crashtkd
DD-WRT Novice


Joined: 10 Feb 2007
Posts: 10

PostPosted: Tue Feb 27, 2007 3:12    Post subject: Reply with quote
Also- any chance this could be a problem with the SD card? It's a Panasonic 256 MB.
crashtkd
DD-WRT Novice


Joined: 10 Feb 2007
Posts: 10

PostPosted: Tue Feb 27, 2007 3:41    Post subject: Reply with quote
another thing- I wonder if maybe I'm running out of space in /tmp- looking at the script is uses that for some storage. Gotta go to bed, but will also try to clear some more space in there tomorrow.
Display posts from previous:    Page 1 of 1
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