OUR NETWORK:TiVo Community TechLore Explore3DTV DVRplayground Dijit Community See all... About UsAdvertiseContact Us

 
Learn about scoring Forum's Raw Score: 1178020.0
September 3, 2010 12:05 PM

Categories: Setup / Configuration

Rating (0 votes)
  • 1
  • 2
  • 3
  • 4
  • 5
Rate This!

Member Avatar

el_ninoz

Member
Joined: 09/03/2010

Hi.
I`m trying to install som Optware packages on my "DD-WRT v24-sp2 (08/10/10) stdkong"-flash. I`m very new at this, but i think I`ve done everything right so far. Done the 30-30-30 reset, done "Netgear WNR3500L Firmware: Special File for initial flashing", and finally the flashed the DD-WRT v24-sp2 (08/10/10) stdkong.

I have followed this guide, but now I`m stuck att this problem:

root@DD-WRT:/etc# root@DD-WRT:~# cd /jffs/etc/
-sh: root@DD-WRT:~#: not found
root@DD-WRT:/etc# -sh: cd: can't cd to /jffs/etc/
> root@DD-WRT:~# cd /jffs
> root@DD-WRT:/jffs# cd /etc/
> root@DD-WRT:/etc# wget http://www.desipro.de/pkg.conf />> Connecting to www.desipro.de (82.165.77.220:80)
> root@DD-WRT:/etc# export IPKG_CONF_DIR=/jffs/etc/
> root@DD-WRT:/etc# ipkg update
> /bin/ipkg: line 1166: can't open /jffs/etc//ipkg.conf: no such file
-sh: -sh:: not found

Can someone try to tell me what the problem is? :)

 

September 3, 2010 1:53 PM

HI el_ninoz,

before "cd /jffs/etc" execute :

mkdir /jffs/etc

September 3, 2010 2:00 PM

Hi, tnx for the advice. But now it seems like another problem has showed up:

root@DD-WRT:/jffs/etc# ipkg update
Downloading http://www.desipro.de/packages/Packages ...
Connecting to www.desipro.de (82.165.77.220:80)
ipkg_download: ERROR: Failed to retrieve http://www.desipro.de/packages/Packages returning
ipkg_update: Error downloading http://www.desipro.de/packages/Packages to /jffs/usr/lib/ipkg/lists/desipro

September 3, 2010 2:09 PM

Okay, I assume you missed one step in the guide, did you really reboot the rooter 2 times after you setup JFFS2?

The first boot after enabling JFFS2 is to setup the jffs file structure, the second boot will then create the appropriate dirs like /jffs/usr/lib/ipkg

September 3, 2010 2:47 PM

I`ve started once again, and this time I rebooted to times, and waited several minutes (aprox. 5 minutes) each time, like the guide says.
now I dont have the problem with the directories, but I`m still stuck at ipkg update:

root@DD-WRT:~# cd /jffs/etc
root@DD-WRT:/jffs/etc# wget http://www.desipro.de/ipkg.conf />Connecting to www.desipro.de (82.165.77.220:80)
root@DD-WRT:/jffs/etc# export IPKG_CONF_DIR=/jffs/etc/
root@DD-WRT:/jffs/etc# ipkg update
Downloading
http://www.desipro.de/packages/Packages ...
Connecting to www.desipro.de (82.165.77.220:80)
ipkg_download: ERROR: Failed to retrieve http://www.desipro.de/packages/Packages returning
ipkg_update: Error downloading http://www.desipro.de/packages/Packages to /jffs/usr/lib/ipkg/lists/desipro

September 3, 2010 6:07 PM

Strange error, it says it cannot retrieve the file, can you show me the output of:

ls -la /jffs/usr/lib/ipkg/lists/

and output of:

mount

does it work if you download the file to the temp dir:

cd /tmp
wget http://www.desipro.de/packages/Packages

now there should be a file called Packages in /tmp

September 4, 2010 2:51 AM

Hi.

Here is the outpoot of ls -la /jffs/usr/lib/ipkg/lists:

root@DD-WRT:/jffs/etc# ls -la /jffs/usr/lib/ipkg/lists/
drwxr-xr-x    2 root     root         4096 Sep  3 21:36 .
drwxr-xr-x    3 root     root         4096 Sep  3 21:36 ..

root@DD-WRT:/jffs/etc# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw)
devpts on /proc/bus/usb type usbfs (rw)
/dev/mtdblock/4 on /jffs type jffs2 (rw)
/dev/discs/disc0/part5 on /jffs type ext3 (rw,data=ordered)

When I did the same thing with the tmp folder, I got the same problem. (Asuming that I did it right) :)

September 5, 2010 1:55 AM

If download to tmp does not work you have a network problem. First thing to try would be lowering the MTU value:

Setup->Basic Setup->Optional Settings

Instead of default 1492 set it to 1412

September 5, 2010 5:13 AM

I think I misunderstood you on a earlier post, instead of wget http://www.desipro.de/packages/Packages I took wget http://www.desipro.de/ipkg.conf to the /tmp folder. And that was the reason I didnt see the Packages in the /tmp folder.

So I did everything once again, and then I could see Packages in the /tmp folder. So I can download it :)

But what do I next? :)

Thanks for all the help so far, I`m very new at this, so I`m very grateful for the help :)

September 6, 2010 4:49 AM

If downloading to tmp works, then you can just move the file to the dest dir by hand:

mv /tmp/Packages /jffs/usr/lib/ipkg/lists/desipro

After that you can try installing packages.

September 18, 2010 2:35 AM

I am having problems with ipkg on my wndr3700 working. 

I try to do ipkg update and I get this: 

root@Kuhn:/jffs# ipkg update
mkdir: cannot create directory '//usr/local/lib/': Read-only file system

any clue how I can get it to use /opt or /jffs instead?

September 18, 2010 2:41 AM

root@Kuhn:/jffs# ipkg -d root -force-depends install aiccu_20070115-4_atheros.ipk
ERROR: File not found: //usr/local/lib/ipkg/lists/whiterussian
You probably want to run `ipkg update'
ERROR: File not found: //usr/local/lib/ipkg/lists/non-free
You probably want to run `ipkg update'
ERROR: File not found: //usr/local/lib/ipkg/lists/backports
You probably want to run `ipkg update'
/bin/ipkg: line 1184: sort: not found
Unpacking aiccu...Done.
Configuring aiccu...Done.

I am trying to install aiccu and get it working...

September 19, 2010 4:40 PM

You don't need to use the argument "-d root"

September 19, 2010 4:43 PM

Even if I remove the -d root, I still get a host of error messages.

Thanks for the reply :-)

September 19, 2010 4:59 PM

Just use the option:

-o /jffs

/jffs should already be the default.

September 19, 2010 5:34 PM

How do I get ipkg to update with this error:

mkdir: cannot create directory '//usr/local/lib/': Read-only file system

September 19, 2010 5:48 PM

Note the double slash in this path, it seems like somehow IPKG_OFFLINE_ROOT is overwritten, because that's the way the path is created:

IPKG_OFFLINE_ROOT=/jffs
IPKG_DIR_PREFIX=usr/lib/ipkg
IPKG_LISTS_DIR=$IPKG_OFFLINE_ROOT/$IPKG_DIR_PREFIX/lists

Therefore your IPKG_OFFLINE_ROOT must be set to only / this could be the case if you use some customized ipkg.conf with the option:

offline_root /

September 19, 2010 6:11 PM updated: September 19, 2010 6:11 PM

How do I set it to use /jffs and can I do that?

I greatly appreciate the assistance :-)

September 20, 2010 1:57 AM

What the out put of:

echo $IPKG_CONF_DIR

and

cat

/etc/ipkg.conf

and

fgrep IPKG_OFFLINE_ROOT /bin/ipkg

Normally you should not need to set any directory, there must be some problem with your ipkg.conf or with your ipkg installation.

September 20, 2010 7:37 AM

root@Kuhn:~# echo $IPKG_CONF_DIR

That one is empty


root@Kuhn:~# cat /etc/ipkg.conf
src whiterussian http://downloads.openwrt.org/whiterussian/packages
src non-free http://downloads.openwrt.org/whiterussian/packages/non-free
src backports http://downloads.openwrt.org/backports/rc5
dest root /jffs
dest smbfs /tmp/smbshare
dest ram /tmp

and


root@Kuhn:~# fgrep IPKG_OFFLINE_ROOT /bin/ipkg
s/^/`echo $IPKG_OFFLINE_ROOT | ipkg_protect_slashes`/
if [ -z "$IPKG_OFFLINE_ROOT" ]; then
IPKG_OFFLINE_ROOT="`ipkg_option offline_root`"
# Export IPKG_OFFLINE_ROOT for use by update-alternatives
export IPKG_OFFLINE_ROOT
if [ -d "$IPKG_OFFLINE_ROOT$DEST_NAME" ]; then
IPKG_ROOT="$IPKG_OFFLINE_ROOT$DEST_NAME";
IPKG_LISTS_DIR=$IPKG_OFFLINE_ROOT/$IPKG_DIR_PREFIX/lists
IPKG_PENDING_DIR=$IPKG_OFFLINE_ROOT/$IPKG_DIR_PREFIX/pending
if [ -n "$IPKG_OFFLINE_ROOT" ]; then
local sed_safe_offline_root="`echo ${IPKG_OFFLINE_ROOT} | ipkg_protect_slashes`"
[ -n "$IPKG_OFFLINE_ROOT" ] && return 0
IPKG_OFFLINE_ROOT="$2"

September 20, 2010 7:58 AM

What FW are you using, that ipkg differs from the one that is shipped with dd-wrt?

Try the following:

export IPKG_OFFLINE_ROOT=/jffs

after that run:

ipkg update

September 20, 2010 10:05 AM updated: September 20, 2010 10:06 AM

Downloading http://downloads.openwrt.org/whiterussian/packages/Packages ...
wget: unrecognized option `--passive-ftp'

Doesn't do anything due to this....

September 20, 2010 3:13 PM

This is another problem that comes from an ipkg that does not work together with the tools that are included in this particular firmware.

DD-WRTs ipkg does not use the option --passive-ftp. You should either report this problem to the creator of your special firmware or use some known to work firmware.

September 20, 2010 3:16 PM

I will report the issue with the DD-WRT package for my router.

How do I go about fixing this issue?

September 20, 2010 4:25 PM

You need to use a working ipkg for example:

http://svn.dd-wrt.com:8000/dd-wrt/browser/opt/bin

copy it to your usb drive and then call it:

/jffs/ipkg update

etc.

September 20, 2010 9:27 PM

awesome thanks!

So every ipkg command I want to execute I will have to use the /jffs/ipkg and what I want to do, correct?

Discussion:    Add a Comment | Back to Top | Comments 1-25 of 30 | Latest Comment | 1 2 Next »

Add Your Reply

(will not be displayed)

Email me when comments are added to this thread

 
 

Please log in or register to participate in this community!

Log In

Remember

Not a member? Sign up!

Did you forget your password?

You can also log in using OpenID.

close this window
close this window