Still the same issue. When I try an ipkg update, I get the following:
/opt/etc # ipkg update
/opt/etc # ipkg list
ERROR: File not found: ///usr/lib/ipkg/lists/unslung
You probably want to run `ipkg update'
/opt/etc #
Any guidance? I haven't done any major changes to the firmware on the router, so it is pretty much stock.
~ # ipkg update
Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages ...
Connecting to ipkg.nslu2-linux.org[212.18.63.81]:80
Packages 100% |*************************************************************| 136 KB 00:00:00 ETA
Done.
Updated list of available packages in //jffs/usr/lib/ipkg/lists/unslung
This means that there should be file /jffs/usr/lib/ipkg/lists/unslung and that wget is not downloading anything because of missconfiguration of default gateway or missing DNS in /etc/resolv.conf
Firtst try to
Code:
ping ipkg.nslu2-linux.org
If that worked then try to download file manually with
Hmm, ok, I didn't have /jffs/opt mounted to /opt when I ran the manual command, apparently. I re-mounted it and was able to run the manual command, and after that, I ran the ipkg update just fine.
Might throw that manual wget command into the wiki too... I'm still not sure what the error was yesterday when I tried to do the ipkg update and /opt WAS mounted properly...
Well, anyway.. thanks.. I'll play around with the new stuff... _________________ -Alyred
wiki should be ammended with info how to create script in /jffs/etc/config to mount /opt at boot time and some other things, like how to use Optware ipkg, how to install ext3 utils and so.
Posted: Mon Oct 02, 2006 3:22 Post subject: optware and /opt/bin and /opt/sbin
I have successfully "rolled my own" firmware using v23 SP2 final, and I configured the native ipkg to use only the optware source. I can install anything I want, since /opt is actually a usb key. However, nothing in /opt is able to be found when executing from the command line. I have tried adding /opt/bin and /opt/sbin to the path. I have tried symlinking everything in /opt/bin and /opt/sbin to /jffs/bin and /jffs/sbin. Nothing seems to work.
If I try to execute something while cd'ed into either /opt/bin or /opt/sbin, I get:
/opt/bin # ./smbpasswd
-sh: ./smbpasswd: not found
Have I missed something? Obviously, yes, but can anyone help me with exactly what?
Running "ipkg update" doesn't work. It does not print anything to screen, just quits immedialtely. Maybe something in v23 SP2 has changed so that the ipkg update command stops working.
So until this is fixed, there is no way to use the optware packages. SORRY! _________________ I own a Linksys WRT54G v3.1 and I am using DD-WRT
I've got the same errors. My knowledge about linux isn't realy good but maybe the problem is, that ipkg tries to download the list to the root directory. That would be / which isn't writeable (you can only write into the jffs directory).
I did the following with the result that I was able to download packages.
1: enable and clear jffs with the GUI
2: reboot
3: Follow this http://www.dd-wrt.com/wiki/index.php/Optware example with one exception. Change the content of the second line of ipkg.conf to "dest root /jffs"
4: continue with the example and it should work
But I have got an other question. Where can I store a script and start it when the router boots.
I've been following the thread for some time now and I've followed all of the directions to include changing line 2 of the ipkg.conf file to go to /jffs and I've gotten all the way to this point now. And the errors are obvious. :-(
/jffs # ipkg install uclibc
Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/uclibc_0.9.28-1_mipsel.ipk ...
Connecting to ipkg.nslu2-linux.org[140.211.166.82]:80
uclibc_0.9.28-1_mips 100% |***********************************************************************************************************| 588 KB 00:00:00 ETA
Done.
Unpacking uclibc...Done.
Configuring uclibc...Updating /opt/etc/ld-opt.so.cache
/opt/sbin/ldconfig: can't link /opt/lib/libdl.so.0 to libdl-0.9.28.so: Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libnsl.so.0 to libnsl-0.9.28.so: Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libcrypt.so.0 to libcrypt-0.9.28.so: Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libm.so.0 to libm-0.9.28.so: Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libresolv.so.0 to libresolv-0.9.28.so: Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/librt.so.0 to librt-0.9.28.so: Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libintl.so.0 to libintl-0.9.28.so: Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/ld-uClibc.so.0 to ld-uClibc-0.9.28.so: Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libutil.so.0 to libutil-0.9.28.so: Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libc.so.0 to libuClibc-0.9.28.so: Operation not permitted
/opt/sbin/ldconfig: can't link /opt/lib/libpthread.so.0 to libpthread-0.9.28.so: Operation not permitted
/opt/sbin/ldconfig: skipping /opt/usr/lib: No such file or directory
Done.
/jffs #
Joined: 07 Jun 2006 Posts: 198 Location: Parma - Italy
Posted: Wed Oct 11, 2006 12:14 Post subject:
I have been able to make this work.
I am using a wrt54gl with SP2 standard and an SD card.
enable jffs (even if later you'll use mmc)
mkdir /mmc/opt
mount -o bind /mmc/opt /opt
mkdir /opt/etc
create /opt/etc/ipkg.conf as told in wiki but the second line should be
dest /opt/tmp-ipkg
(this is because the root directory is not writable. We make ipkg download packages somewhere else and then copy them to the right place)
export as in wiki
mkdir /opt/tmp-ipkg
mkdir /opt/tmp-ipkg/tmp
mkdir /opt/tmp-ipkg/tmp/ipkg
Now check if you can ping the repository
ipkg update
ipkg install uclibc
At this point you will get an error because ldconfig is not where it should be.
cp -r /opt/tmp-ipkg/opt/* /opt
ipkg install uclibc (now it should work)
Let's try a package
ipkg install bitchx
cp -r /opt/tmp-ipkg/opt/* /opt (it takes some time, SD is slow)
/opt/usr/bin/BitchX
And it should start.
So, I see two problems with the wiki description:
1) ipkg does not work with root == /
2) we need a writable tmp/ipkg directory
Maybe, the problem is with where are you standing when you issue ipkg update | install.
Because wget must download file to temporary directory and this directory must be writable. So if you issue this command in /tmp directory it should suffice for small packages. But For large packages temporary directory must be large enough to hold the whole package.
Joined: 07 Jun 2006 Posts: 198 Location: Parma - Italy
Posted: Wed Oct 11, 2006 14:04 Post subject:
oleo wrote:
Maybe, the problem is with where are you standing when you issue ipkg update | install.
Because wget must download file to temporary directory and this directory must be writable. So if you issue this command in /tmp directory it should suffice for small packages. But For large packages temporary directory must be large enough to hold the whole package.
when I cd to /tmp, or /opt and issue ipkg update it exit immediately and nothing happens.
More interesting is ipkg install which shows an error saying it can't open /usr/lib/ipkg/lists
and /usr/lib/ipkg/status.
I guess ipkg should store this files in /opt or /jffs.
Here is the proof that it doesnt work...there is a problem with some link probably
its not something with my setup because most things install ok
The result is that the binaries report "not found" and don't run
(im using the absolute paths)
Im using WRT54GL v1.1 DD-WRT 23 SP2 and
/opt is mounted on a linux ext2 samba share
i use ipkg -d /opt/temp and i have made in opt
/temp
/temp/tmp
/temp/tmp/ipkg
here is the uclibc installation output...the mising library cannot be installed manually
because it complains about base-files not been installed (but they are just before it)
Downloading http://downloads.openwrt.org/whiterussian/packages/libgcc_3.4.4-8_mipsel.ipk ...
Connecting to downloads.openwrt.org[195.56.146.238]:80
Done.
ipkg_install_file: ERROR: libgcc depends on the following uninstalled programs:
base-files
ipkg_install_file: You may want to use `ipkg install' to install these.
ipkg_get_install: ERROR: Failed to install /opt/temp/tmp/ipkg/libgcc_3.4.4-8_mipsel.ipk
ipkg_get_install: I'll leave it there for you to try a manual installation
Downloading http://downloads.openwrt.org/whiterussian/packages/libgcc_3.4.4-8_mipsel.ipk ...
Connecting to downloads.openwrt.org[195.56.146.238]:80
Done.
ipkg_install_file: ERROR: libgcc depends on the following uninstalled programs:
base-files
ipkg_install_file: You may want to use `ipkg install' to install these.
ipkg_get_install: ERROR: Failed to install /opt/temp/tmp/ipkg/libgcc_3.4.4-8_mipsel.ipk
ipkg_get_install: I'll leave it there for you to try a manual installation
Downloading http://downloads.openwrt.org/whiterussian/packages/libgcc_3.4.4-8_mipsel.ipk ...
Connecting to downloads.openwrt.org[195.56.146.238]:80
Done.
ipkg_install_file: ERROR: libgcc depends on the following uninstalled programs:
base-files
ipkg_install_file: You may want to use `ipkg install' to install these.
ipkg_get_install: ERROR: Failed to install /opt/temp/tmp/ipkg/libgcc_3.4.4-8_mipsel.ipk
ipkg_get_install: I'll leave it there for you to try a manual installation