I have the same problem.
Hello,
I just bought a WNR3500L and put dd-wrt on it. I would now like to install programs such as screen and nano. jffs is enabled and I am able to update ipkg package list. However, everytime I try to install a program it fails.
root@DD-WRT:~# ipkg install screen
Downloading http://downloads.openwrt.org/whiterussian/packages/libncurses_5.2-7_mipsel.ipk ...
Connecting to downloads.openwrt.org (78.24.191.177:80)
Done.
Unpacking libncurses...Done.
Configuring libncurses...Done.
Downloading http://downloads.openwrt.org/whiterussian/packages/screen_4.0.2-1_mipsel.ipk ...
Connecting to downloads.openwrt.org (78.24.191.177:80)
Done.
ipkg_install_file: ERROR: screen depends on the following uninstalled programs:
libncurses
ipkg_install_file: You may want to use `ipkg install' to install these.
ipkg_get_install: ERROR: Failed to install /jffs/tmp/ipkg/screen_4.0.2-1_mipsel.ipk
ipkg_get_install: I'll leave it there for you to try a manual installation
No package is left at "/jffs/tmp/ipkg/". I have tried manuallly downloading with wget and installing it with the same result.
Is this a general problem with dd-wrt on WNR3500L, or am I doing something wrong
Any help will be appreciated, thank you in advance :)
Which version of dd-wrt are you running? Is here enough free space?
I initially flashed my WNR3500L with dd-wrt.v24-13575_NEWD-2_K2.6_mini-WNR3500L.chk and later upgraded.
I have set up optware as described here:
http://www.dd-wrt.com/wiki/index.php/Optware%2C_the_Right_Way
and external storage as described here:
http://www.dd-wrt.com/wiki/index.php/How_to_-_Format_and_Partition_External_S...
Installing screen as a test gave no errors.
I made it long
as I lacked the time to make it short...
Well, spoke too soon it seems. I recieved the same error later on. However, if you setup dd-wrt to use optware as described here and use ipkg-opt rather than ipkg things should work.
Regards.
I made it long
as I lacked the time to make it short...
Hi All,
1. How have you enabled jff?
A. through webinterface?
B. only with the following commands?
# nvram set sys_enable_jffs2=1
# nvram commit
2. Have you created the following dirs?
/jffs/tmp
/jffs/tmp/ipkg
If not do it:
# mkdir /jffs/tmp
# mkdir /jffs/tmp/ipkg
3. Use ipkg with the following parameters:
# ipkg -d root -force-depends install
You can use optware (ipkg-opt) and openwrt (ipkg) packages at the same time. optware is much more up-to-date.
Still have a Problem?
Collect the infos:
# mount
# uname -a
# lsmod
# nvram show | grep jffs
Insert to http://pastebin.ca/ and link here into your next Post.
Hello,
I have the same problems ...
Collected information:
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/disc on /jffs type msdos (rw,fmask=0022,dmask=0022,codepage=cp437)
uname -a
Linux r01mat001 2.6.24.111 #69 Wed Nov 25 16:07:36 CET 2009 mips unknown
lsmod
Module Size Used by
jffs2 86016 1
msdos 8192 1
vfat 12288 0
fat 45056 2 msdos,vfat
nls_cp437 8192 1
nls_base 8192 3 vfat,fat,nls_cp437
ext3 106496 0
jbd 57344 1 ext3
ext2 40960 0
mbcache 8192 1 ext3
usb_storage 32768 1
sd_mod 20480 1
scsi_wait_scan 416 0
scsi_mod 73728 3 usb_storage,sd_mod,scsi_wait_scan
ehci_hcd 32768 0
ohci_hcd 16384 0
usbcore 106496 4 usb_storage,ehci_hcd,ohci_hcd
nvram show | grep jffs
size: usb_mntpoint=jffs
jffs_mounted=1
enable_jffs2=1
sys_enable_jffs2=1
clean_jffs2=0
26057 bytes (6711 left)
sys_clean_jffs2=0
dhcpd_usejffs=0
Matt,
You have mounted on the webinterface under "Administation -> Management" the jffs to /jffs and your USB stick (on the webinterface under "Services -> USB") to /jffs as well:
/dev/mtdblock/4 on /jffs type jffs2 (rw)
/dev/discs/disc0/disc on /jffs type msdos (rw,fmask=0022,dmask=0022,codepage=cp437)
This is one of the root cause of your issue :-)
Action Plan:
1. Disable the jffs on the webinterface.
2. restart the router.
3. Issue only this:
# nvram set sys_enable_jffs2=1
# nvram commit
(The jffs setup on the webinterface is not clever enough. It will not ask if you want to use usb stick, it mounts /jffs locally, even if you have USB mounted to /jffs)
4. Make the required dirs for ipkg
# mkdir /jffs/tmp
# mkdir /jffs/tmp/ipkg
5. Test
# ipkg update
# ipkg -d root -force-depends install APP-NAME-HERE
If everything works, than install what you need.
At this point have I stopped, because the apps I installed require more memory as I have and the SWAP is not supported on ddwrt...
Hello Akos_beginner
I have tried to do some of the things you suggested. First, jffs was enabled only through web interface, but after your post I enabled it with the commands
# nvram set sys_enable_jffs2=1
# nvram commit
It still didn't work, then I disabled jffs in the web interface like you told Matt.
I am not sure wether or not the applications get installed now. When I try to run the programs that I install I get this message:
root@DD-WRT:~# nano
Error opening terminal: xterm.
root@DD-WRT:~# screen
/var/run/utmp: No such file or directory
Cannot find termcap entry for 'xterm'.
ipkg still give a warning that libncurses is not installed even though it should be.
Here is the information you asked for:
http://pastebin.ca/1755214
root@DD-WRT:~# 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)
root@DD-WRT:~# uname -a
Linux DD-WRT 2.6.24.111 #141 Mon Dec 7 17:18:19 CET 2009 mips unknown
root@DD-WRT:~# lsmod
Module Size Used by
jffs2 86016 1
usblp 12288 0
msdos 8192 0
vfat 12288 0
fat 45056 2 msdos,vfat
nls_cp437 8192 0
nls_base 8192 3 vfat,fat,nls_cp437
ext3 106496 0
jbd 57344 1 ext3
ext2 40960 0
mbcache 8192 1 ext3
usb_storage 32768 0
sd_mod 20480 0
scsi_wait_scan 416 0
scsi_mod 73728 3 usb_storage,sd_mod,scsi_wait_scan
ehci_hcd 32768 0
ohci_hcd 16384 0
usbcore 106496 5 usblp,usb_storage,ehci_hcd,ohci_hcd
bcm57xx 114688 0
root@DD-WRT:~# nvram show|grep jffs
jffs_mounted=1
enable_jffs2=0
sys_enable_jffs2=1
clean_jffs2=0
size: 32753 bytes (15 left)
sys_clean_jffs2=0
dhcpd_usejffs=0
Thank you for your help.
Hi TPedersen,
The jffs seems to be ok on your router (If you want the jffs mounted to flash, then you can use web interface. You only need to setup jffs through CLI with the commands I issued if you want to use it on USB.)
At this point you have problems with your apps and not with the jffs.
For nano I suggest this one:
http://www.nslu2-linux.org/wiki/Optware/Nano?from=Unslung.Nano
For the others as well you need to check the apps page and not the ddwrt pages/forums.
Some links where you can find infos for the applications:
http://openwrt.org/OpenWrtPackages
http://www.nslu2-linux.org/wiki/Unslung/Packages
Hope that helps
Hi Akos_beginner,
many thanks - I folowed your instructions and it´s working now.
Best wishes
Matt

RSS

