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? :)
HI el_ninoz,
before "cd /jffs/etc" execute :
mkdir /jffs/etc
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
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
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
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
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) :)
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
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 :)
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.
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?
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...
You don't need to use the argument "-d root"
Even if I remove the -d root, I still get a host of error messages.
Thanks for the reply :-)
Just use the option:
-o /jffs
/jffs should already be the default.
How do I get ipkg to update with this error:
mkdir: cannot create directory '//usr/local/lib/': Read-only file system
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 /
How do I set it to use /jffs and can I do that?
I greatly appreciate the assistance :-)
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.
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"
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
Downloading http://downloads.openwrt.org/whiterussian/packages/Packages ...
wget: unrecognized option `--passive-ftp'
Doesn't do anything due to this....
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.
I will report the issue with the DD-WRT package for my router.
How do I go about fixing this issue?
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.
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?
Sorry to hijack this thread but I have the same problem as the original poster, but the solution (reboot twice) doesn't seem to work for me.
When I try to activate JSSF2 on my formatted 40GB ext3 hard drive, only the folders tmp and lost+found are created. I then push again the Reboot router button on the Administration page in the latest Kong mod of DD-WRT, nothing changes, so I can't do cd /jffs/etc
The output is:
-sh: cd: can't cd to /jffs/etc
I have tried all kinds of things: Apply settings before rebooting, with another USB stick, cold boot, etc.
The settings in Services->USB are as described in http://tips.desipro.de/2010/04/25/dd-wrt-optware-packages/
Any help would be greatly appreciated,
Robin
I had the same problem....
Reading this thread I got the idea that I can fix this ...I have the shell script version ... copied it to /jffs
Than just looking into the fricken script made the following changes
IPKG_DIR_PREFIX=/jffs/local/lib/ipkg
# IPKG_DIR_PREFIX=/usr/local/lib/ipkg
and delete the --passive-ftp after wget here so it looks like this
http://* | ftp://*)
if ! wget $proxyoption $proxyuser $proxypassword -P $IPKG_TMP $src; then
echo "ipkg_download: ERROR: Failed to retrieve $src, returning $err"
return 1
fi
Then make sure $IPKG_OFFLINE_ROOT is empty ...
The drawback is that you need to run /jffs/ipkg ... but at least it works.
remember to make it executable !!!
Hope this helps someone I wasted quite some hours on this...
Do not understand why my dd-wrt image has this wrong (I am using:
http://www.dd-wrt.com/routerdb/de/download/D-Link/DIR-825/B1/dir825-firm...
Thanks for your reply, I'm looking forward to trying this Saturday, I'll let you know if this worked for me too.
I got the custom dd-wrt package for my Netgear WNDR3700 "DD-WRT v24-sp2 (03/17/11) std (SVN revision 16454)"
I'm stuck at a similar place -- step 1 was:
ipkg gave me a "cannot create directory" error due to RO file system:
Exporting - IPKG_OFFLINE_ROOT=/jffs - helped but then I run into a syntax error on wget. (see below and my issue/question at the end)
root@gw:/opt# export IPKG_OFFLINE_ROOT=/jffs
root@gw:/opt# ipkg update
Downloading http://downloads.openwrt.org/whiterussian/packages/Packages ...
wget: unrecognized option `--passive-ftp'
BusyBox v1.13.4 (2011-03-17 14:04:05 CET) multi-call binary
Usage: wget [-csq] [-O file] [-Y on/off] [-P DIR] [-U agent] url
Retrieve files via HTTP or FTP
Options: (snip.....)
ipkg_download: ERROR: Failed to retrieve http://downloads.openwrt.org/whiterussian/packages/Packages, returning
ipkg_update: Error downloading http://downloads.openwrt.org/whiterussian/packages/Packages to /jffs//usr/local/lib/ipkg/lists/whiterussian
(repeats for another repository)
So... I need a "working ipkg" which I'll look for since the above link is failing.
As mentioned earlier in this post - I had to copy /bin/ipkg to a folder in /jffs (I used /jffs/bin, then edit it and remove the passive option, and change the root location)
then I had to create a whole raft of subfolders under the /jff/tmp structure manually.. not sure why.. but I had to create and mark them all writable so that /jffs/bin/ipkg would run and download the updates.
Now it's complaining that "sort" is missing, and I can't install it because it's a pre-req for the ipkg script to run.
why was I doing this again? Oh yes. I need a print driver.
Joel