Optware (aditional installable packages for DD-WRT)

Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3, ... 16, 17, 18  Next
Author Message
Alyred
DD-WRT Novice


Joined: 19 Sep 2006
Posts: 10

PostPosted: Wed Sep 20, 2006 22:43    Post subject: Reply with quote
Hey mate, started over from a clean jffs partition and here's the result:

http://pastebin.ca/178031

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.

Let me know, thanks.

_________________
-Alyred
Sponsor
oleo
DD-WRT User


Joined: 25 Jul 2006
Posts: 120

PostPosted: Thu Sep 21, 2006 18:03    Post subject: Reply with quote
when you issue ipkg update you should see
Code:
~ # 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
Code:
wget http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages
Alyred
DD-WRT Novice


Joined: 19 Sep 2006
Posts: 10

PostPosted: Thu Sep 21, 2006 18:46    Post subject: Reply with quote
Ok, very strange.

Something must be misconfigured. I tried the ping already, and that worked.. but I tried again just to make sure and it pings away just fine.

When I run the ipkg update, or do the manual wget, all I get is a new line:

/opt # wget http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages
/opt #

Not sure where I'm going wrong here. Do I need to chmod any file? Please forgive me, I'm still relatively linux unskilled.

Teach me to fish that I might feed myself. Smile

_________________
-Alyred
Alyred
DD-WRT Novice


Joined: 19 Sep 2006
Posts: 10

PostPosted: Thu Sep 21, 2006 18:51    Post subject: Reply with quote
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
oleo
DD-WRT User


Joined: 25 Jul 2006
Posts: 120

PostPosted: Thu Sep 21, 2006 20:25    Post subject: Reply with quote
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.
zanophol
DD-WRT Novice


Joined: 19 Aug 2006
Posts: 5

PostPosted: Mon Oct 02, 2006 3:22    Post subject: optware and /opt/bin and /opt/sbin Reply with quote
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?
oleo
DD-WRT User


Joined: 25 Jul 2006
Posts: 120

PostPosted: Tue Oct 03, 2006 12:31    Post subject: Reply with quote
First thing is to instal uClibc ipk package as is requred by all other packages!
saivert
DD-WRT Novice


Joined: 10 Jun 2006
Posts: 23
Location: Norway

PostPosted: Wed Oct 04, 2006 2:27    Post subject: Reply with quote
I also got this same problem.

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
oleo
DD-WRT User


Joined: 25 Jul 2006
Posts: 120

PostPosted: Wed Oct 04, 2006 6:17    Post subject: Reply with quote
OK. I will take a look what happened. Until then you can manually download each package with commands like
Code:
 cd /tmp
wget http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/uclibc_0.9.28-1_mipsel.ipk
ipkg install uclibc_0.9.28-1_mipsel.ipk
rm uclibc_0.9.28-1_mipsel.ipk
christianha
DD-WRT Novice


Joined: 04 Oct 2006
Posts: 1

PostPosted: Wed Oct 04, 2006 15:11    Post subject: Reply with quote
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.
isaac_golding
DD-WRT Novice


Joined: 12 Jun 2006
Posts: 13

PostPosted: Wed Oct 04, 2006 17:33    Post subject: Reply with quote
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 #
Alberto
DD-WRT User


Joined: 07 Jun 2006
Posts: 198
Location: Parma - Italy

PostPosted: Wed Oct 11, 2006 12:14    Post subject: Reply with quote
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
oleo
DD-WRT User


Joined: 25 Jul 2006
Posts: 120

PostPosted: Wed Oct 11, 2006 12:21    Post subject: Reply with quote
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.
Alberto
DD-WRT User


Joined: 07 Jun 2006
Posts: 198
Location: Parma - Italy

PostPosted: Wed Oct 11, 2006 14:04    Post subject: Reply with quote
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.
vlahos
DD-WRT User


Joined: 27 Oct 2006
Posts: 118

PostPosted: Fri Oct 27, 2006 3:31    Post subject: Reply with quote
I tried all the solutions you describe...i used both repositories
http://www.wlan-sat.com/boleo/optware/dd-wrt//Packages and
http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/dd-wrt/
with no luck....
Im very suspicious to all you that report that you have the programs running

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

Downloading http://downloads.openwrt.org/whiterussian/packages/Packages ...
Connecting to downloads.openwrt.org[195.56.146.238]:80
Done.
Updated list of available packages in //opt/temp/usr/lib/ipkg/lists/whiterussian
Downloading http://downloads.openwrt.org/whiterussian/packages/non-free/Packages ...
Connecting to downloads.openwrt.org[195.56.146.238]:80
Done.
Updated list of available packages in //opt/temp/usr/lib/ipkg/lists/non-free
Downloading http://downloads.openwrt.org/backports/rc5/Packages ...
Connecting to downloads.openwrt.org[195.56.146.238]:80
Done.
Updated list of available packages in //opt/temp/usr/lib/ipkg/lists/backports
Downloading http://www.wlan-sat.com/boleo/optware/dd-wrt//Packages ...
Connecting to www.wlan-sat.com[212.18.63.81]:80
Done.
Updated list of available packages in //opt/temp/usr/lib/ipkg/lists/unslung

-----------------------------------------------------------------------------------------

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/base-files_8_mipsel.ipk ...
Connecting to downloads.openwrt.org[195.56.146.238]:80
Done.
Unpacking base-files...Done.
Configuring base-files...Done.

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/base-files_8_mipsel.ipk ...
Connecting to downloads.openwrt.org[195.56.146.238]:80
Done.
Unpacking base-files...Done.
Configuring base-files...Done.

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/base-files_8_mipsel.ipk ...
Connecting to downloads.openwrt.org[195.56.146.238]:80
Done.
Unpacking base-files...Done.
Configuring base-files...Done.

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
Goto page Previous  1, 2, 3, ... 16, 17, 18  Next Display posts from previous:    Page 2 of 18
Post new topic   This topic is locked: you cannot edit posts or make replies.    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