[Howto] Install Optware on Atheros units (such as WNDR3700)

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Goto page Previous  1, 2, 3 ... 24, 25, 26 ... 29, 30, 31  Next
Author Message
heyadrian
DD-WRT Novice


Joined: 15 Mar 2013
Posts: 16

PostPosted: Tue Oct 22, 2013 14:36    Post subject: Re: Fix libc dependency issues Reply with quote
I know this is dragging something up from the but I've had this issue since upgrading to A_A 12.09 (DD-WRT v24-sp2 (03/25/13), had to put the keyboard down, walk outside silently and have a cigarette to get over the stupidity of it :-/ In this case I can only show my Atheros based unit as I;'m not at the office but...


Luckily I managed to fix it without any messing about with /etc configs etc.... Here's some of my terminal OP (the first few bits was a bit of diag/messing about, the last bit did the trick in a shot):

Code:

Connecting to downloads.openwrt.org (78.24.191.177:80)
libc_0.9.33.2-1_ar71 100% ø***********************************************************************************************************************************************************************************************************ø   219k  0:00:00 ETA
root@DD-WRT root $ ipkg upgrade libc_0.9.33.2-1_ar71xx.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'
Package libc_0.9.33.2-1_ar71xx.ipk does not appear to be installed


Code:

root@DD-WRT root $ ipkg install libc_0.9.33.2-1_ar71xx.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
root@DD-WRT root $ ipkg update


The next made a mess of my libs directory! So I factory flashed 30/30/30 and started from scratch:

Code:

root@DD-WRT root $ ipkg install --force libc_0.9.33.2-1_ar71xx.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
/bin/ipkg: line 1184: can't open /jffs//usr/local/lib/ipkg/status: no such file
/bin/ipkg: line 1184: can't create /jffs//usr/local/lib/ipkg/status: nonexistent directory
/bin/ipkg: line 1184: can't create /jffs//usr/local/lib/ipkg/status: nonexistent directory
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'
ipkg_get_install: ERROR: Cannot find package --force in //usr/local/lib/ipkg/lists
ipkg_get_install:        Check the spelling and maybe run `ipkg update'.
/bin/ipkg: line 1184: can't open /jffs//usr/local/lib/ipkg/status: no such file
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


First thing I usually do is install nano or vim, in this case it was a libc check as vi is already included:

Code:

root@DD-WRT root $ opkg install nano
Installing nano (2.2.6-1) to root...
Downloading http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages/nano_2.2.6-1_ar71xx.ipk.
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for nano:
 *      libc *  libc *  libc *
 * opkg_install_cmd: Cannot install package nano.


...sat and thought about what that * is....

Decided to take a pot-shot to see if it made a difference:

Code:

root@DD-WRT root $ opkg install libc*
Installing libc (0.9.33.2-1) to root...
Configuring libc.


It worked :-/

Next, to test it's installed in the correct lib directors:

Code:

root@DD-WRT root $ opkg install nano
Installing nano (2.2.6-1) to root...
Downloading http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages/nano_2.2.6-1_ar71xx.ipk.
Installing libncurses (5.7-5) to root...
Downloading http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages/libncurses_5.7-5_ar71xx.ipk.
Installing terminfo (5.7-5) to root...
Downloading http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages/terminfo_5.7-5_ar71xx.ipk.
Configuring terminfo.
Configuring libncurses.
Configuring nano.
root@DD-WRT root $


So I guess if in double use the
Quote:
opkg install libc*
rather than anything else Very Happy

Hope this helps in some way..

I'll grab a R/O svn of opk A_A and see what's up with that...

Cheers for now

A


IsabellaNET wrote:
credd144 wrote:
I was getting something like this when I tried to install anything with a libc dependency.:
Code:
root@DD-WRT / $ opkg install busybox
Installing busybox (1.19.4-5) to root...
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/busybox_1.19.4-5_ar71xx.ipk.
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for busybox:
 *    libc *
 * opkg_install_cmd: Cannot install package busybox.

This happened also when trying to install miniDLNA.


The fix (SSL'd into the DD-WRT router):
Code:
root@DD-WRT / $ cd /tmp
root@DD-WRT / $ wget http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/libc_0.9.33.2-1_ar71xx.ipk
root@DD-WRT / $ opkg install libc_0.9.33.2-1_ar71xx.ipk


Following this libc and related were updated and my opkg installs began to work.

Note I was not able to install the new libc package using ipkg. I had to download the file to the router and install using opkg.

It's possible that the name will change for the package will be updated so you can browse http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/ to get the updated URL to wget.

I don't think it matters, but this is on a WZR-HP-G300NH2 running DD-WRT v24-sp2 (07/20/12) std (SVN revision 19519).

I did a lot of head scratching to get this far, so I hope it helps someone else.


Thanks. That fixed it for me.
Sponsor
ian5142
DD-WRT Guru


Joined: 23 Oct 2013
Posts: 2318
Location: Canada

PostPosted: Wed Oct 23, 2013 23:06    Post subject: Can not install Optware on TP-Link 1043nd v1.11 Reply with quote
I have followed every guide that I could find and can not install optware at all. Every time I get to the section that states: opkg update. I get 'opkg not found'. I am running the latest firmware (r22118). Any help would be appreciated.
bex_HB
DD-WRT Novice


Joined: 22 May 2008
Posts: 11

PostPosted: Wed Oct 30, 2013 21:33    Post subject: Reply with quote
burno wrote:
flippant wrote:
I have a WDR4900 that is not ar71xx (like the WNDR3700), but rather uses FreeScale MPC8343 as reported by DD-WRT. It's listed as being of the mpcC85xx variety on the OpenWRT website, which strikes me as a potential pitfall.

What are my options as far as getting Optware installed?

I went to the OpenWRT trunk and found:

http://downloads.openwrt.org/snapshots/trunk/mpc85xx/packages/opkg_618-3_mpc85xx.ipk & http://downloads.openwrt.org/snapshots/trunk/mpc85xx/packages/libc_0.9.33.2-1_mpc85xx.ipk

—that I would've thought should work for my setup. But I keep getting the same error:

Quote:
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


I don't know what to do.

"ipkg update" doesn't return anything. No error messages at all.


Hy !

I (hardly) manage to install opkg on my TL-WDR4900 with the Freescale CPU ... here are the steps I followed :


1 - Connect thought GUI,
activate Core USB support and select "Automatic Drive Mount"
reboot your router.
After the reboot go to the same menu and scroll "Disk Mount Point" to "/mnt"
reboot your router
After the reboot go to the same menu, you should see your disk "Disk Info"

to verify , connect thougt SSH and type "mount" you should have something like that :

/dev/sda1 on /tmp/mnt/sda_part1 type ext2 (rw,relatime,errors=continue,user_xattr)


2 - Create opkg directories and mount it

Thought SSH execute :

Code:

cd /mnt/sda_part1
mkdir -p etc opt/lib root
touch optware.enable
chmod -R 755 .
cp -a /etc/* /mnt/sda_part1/etc/
mount -o bind /mnt/sda_part1/etc /etc
mount -o bind /mnt/sda_part1/opt /opt
mount -o bind /mnt/sda_part1/root /tmp/root


3 - Connect thought SSH an Wget the first two packages

you probably have to adjust the version of the package, check directly in the repo : http://downloads.openwrt.org/snapshots/trunk/mpc85xx/packages/

Code:
cd /tmp/mnt/sda_part1/
wget http://downloads.openwrt.org/snapshots/trunk/mpc85xx/packages/opkg_618-3_mpc85xx.ipk
wget http://downloads.openwrt.org/snapshots/trunk/mpc85xx/packages/libc_0.9.33.2-1_mpc85xx.ipk


4 - Edit your config files

edit /etc/ipkg.conf and adjust these values

Code:

dest root /opt
dest ram /opt/tmp


create a file /etc/opkg.conf

Code:

src/gz snapshots http://downloads.openwrt.org/snapshots/trunk/mpc85xx/packages
dest root /opt
dest ram /opt/tmp
lists_dir ext /opt/tmp/var/opkg-lists


4 - Extract your firsts two packages

Code:
cd /tmp/mnt/sda_part1/
ipkg install opkg_618-3_mpc85xx.ipk
ipkg install libc_0.9.33.2-1_mpc85xx.ipk


You don't care about errors, you juste wan't file to be extracted :
Unpacking opkg...Done.
Configuring opkg...Done.


Your problem was probably a wrong path in your /etc/ipkg.conf, it must be /opt !

This is the last time your use IPKG, the package manager we need is OPKG

5 - Export your path variable and update opkg

still throught SSH execute :

Code:
export LD_LIBRARY_PATH='/opt/lib:/opt/usr/lib:/lib:/usr/lib'


then

Code:
opkg update


Now OPKG is working ... Wink

6 - Look at the first page of this post , and do points 6 to 8


well, thank you!

the installation howto on the first page does not work any longer, your one works, at least for my 4900 Smile
leyton01
DD-WRT Novice


Joined: 10 Nov 2013
Posts: 8

PostPosted: Sun Nov 10, 2013 15:19    Post subject: Reply with quote
I am running:
Firmware: DD-WRT v24-sp2 (07/24/13) std

There is no option to Set Disk Mount Point to /mnt
only:
Mount this Partition to /jffs [ ] UUID
Mount this Partition to /opt [ ] UUID

I have set the UUID of my USB drive to the /opt
and it gives me this:
--- /dev/sda1
Block device, size 7.455 GiB (8004288512 bytes)
Ext2 file system
Volume name "USB1"
UUID E928E37D-BE83-89A5-3C65-0EDC86F83CD3 (NCS)
Volume size 7.455 GiB (8004288512 bytes, 7816688 blocks of 1 KiB)
/dev/sda1 mounted to /opt

I ran through all the steps but when I reboot the directories that I have created no longer exist. I suspect this is falling down because of the first step.
How do I adjust this walkthrough for these options?
sheriffy
DD-WRT Novice


Joined: 06 Nov 2013
Posts: 8

PostPosted: Sun Nov 10, 2013 17:55    Post subject: Reply with quote
leyton01 wrote:
I am running:
Firmware: DD-WRT v24-sp2 (07/24/13) std

I ran through all the steps but when I reboot the directories that I have created no longer exist. I suspect this is falling down because of the first step.
How do I adjust this walkthrough for these options?


I ran into the same problem, it seemed to me that although the webinterface says the disk is mounted it in reality is not, the installation steps run without errors. I had to put a "insmod ext2" in the startup before installation to keep the data after reboot.
Only fat usb got mounted without issues, but optware will not work form fat. (ext3 and ext4 also did not mount.)
leyton01
DD-WRT Novice


Joined: 10 Nov 2013
Posts: 8

PostPosted: Sun Nov 10, 2013 21:13    Post subject: Reply with quote
sheriffy wrote:

I ran into the same problem, it seemed to me that although the webinterface says the disk is mounted it in reality is not, the installation steps run without errors. I had to put a "insmod ext2" in the startup before installation to keep the data after reboot.
Only fat usb got mounted without issues, but optware will not work form fat. (ext3 and ext4 also did not mount.)


You will have to bear with me as I am both a dd-wrt and *nix noob.

Where exactly did you have to put this command and did it solve your problem in the end?
sheriffy
DD-WRT Novice


Joined: 06 Nov 2013
Posts: 8

PostPosted: Mon Nov 11, 2013 11:23    Post subject: Reply with quote
Well i am not very skilled with linux too but i loaded the module at the commandline (insmod ext2) before i put the usb stick in and did the whole procedure.

Then at step 6:
6. Set the startup script to make the changes take effect each time upon reboot

I edited the script and added the the (insmod ext2) command right below #!/bin/sh
leyton01
DD-WRT Novice


Joined: 10 Nov 2013
Posts: 8

PostPosted: Mon Nov 11, 2013 12:15    Post subject: Reply with quote
not sure if that is my problem - after running the command I get:


root@xxxxxxxx:~# insmod ext2
insmod: cannot insert '/lib/modules/3.5.7.16/kernel/fs/ext2/ext2.ko': File exists

looks like it might be installed by default on my WNDR3800.

Thanks for the suggestion - still looking for an answer Sad
leyton01
DD-WRT Novice


Joined: 10 Nov 2013
Posts: 8

PostPosted: Mon Nov 11, 2013 14:04    Post subject: Reply with quote
ok sorted:

I left the /opt UDID blank in the WebGUI.

before installing I ran:
mount -noatime /dev/sda1 /mnt

Last steps I added to following to the startup script:

CURRENT_MOUNT=$(df -h | grep sda | awk '{print $6}')
umount $CURRENT_MOUNT
mount -noatime /dev/sda1 /mnt

at the start

No sure what all that means but it seemed to work - now opkg update works!
ChaiNick
DD-WRT Novice


Joined: 10 Feb 2013
Posts: 4

PostPosted: Tue Nov 12, 2013 15:41    Post subject: Reply with quote
Hello after i install opkg install mc
and i want run it: mc
i can see in console



+----------- Warning ------------+
| |
| Unable to load 'default' skin. |
| Default skin has been loaded |
| |
+--------------------------------+


MC start BUT : Only Black & White color.
When i quit MC i can see in console:



sfs_init(): Warning: file /etc/mc/sfs.ini not found
Warning: cannot open /usr/lib/mc/extfs.d directory


any idea how to fix this problem and have nice color MC ?
ifrit05
DD-WRT Novice


Joined: 17 Nov 2013
Posts: 1

PostPosted: Sun Nov 17, 2013 22:35    Post subject: Reply with quote
I tried to set up optware but after rebooting my flash drive (/dev/sda1, ext2) becomes empty.

I tried passing "insmod ext2" before doing anything but that didn't work.

Any tips?
dabyd64
DD-WRT User


Joined: 27 Sep 2011
Posts: 112

PostPosted: Wed Nov 27, 2013 1:04    Post subject: Reply with quote
cliggity wrote:
Ok, so I have the WR1043ND running 22118, and I need help from the real pros here.

I have tried this tutorial and a few others that I have found online and they all end the same. I get everything installed and "working" but the opkg update command fails.

I suspect that opkg cannot connect to the internet (pinging google fails) because in my network setup, my router receives internet from LAN port, not WAN port.

What do I need to change to allow opkg internet access?

Try this:
Go to setup/basic setup
In Network setup, Router IP, set your main router's ip as the gateway
aineo
DD-WRT Novice


Joined: 28 Nov 2013
Posts: 3

PostPosted: Thu Nov 28, 2013 15:36    Post subject: unknown sub-command Reply with quote
I have struggled with this all morning long, which is probably because of my lack of knowledge, but I seem to be at roadblock I cannot get through.

I have just done these steps:

cd /tmp
wget http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/libc_0.9.33.2-1_ar71xx.ipk
wget http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/opkg_618-3_ar71xx.ipk
ipkg libc_0.9.33.2-1_ar71xx.ipk opkg_618-3_ar71xx.ipk

The bolded "3" above was changed to a 6 per the directory.

When I run the last command, I get the following error:

ERROR: unknown sub-command 'libc_0.9.33.2-1_ar71xx.ipk'

Any suggestions?
pandemonium420
DD-WRT User


Joined: 21 Nov 2013
Posts: 65
Location: Cathedral City, CA, USA

PostPosted: Fri Nov 29, 2013 9:41    Post subject: Re: unknown sub-command Reply with quote
aineo wrote:
I have struggled with this all morning long, which is probably because of my lack of knowledge, but I seem to be at roadblock I cannot get through.

I have just done these steps:

cd /tmp
wget http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/libc_0.9.33.2-1_ar71xx.ipk
wget http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/opkg_618-3_ar71xx.ipk
ipkg libc_0.9.33.2-1_ar71xx.ipk opkg_618-3_ar71xx.ipk

The bolded "3" above was changed to a 6 per the directory.

When I run the last command, I get the following error:

ERROR: unknown sub-command 'libc_0.9.33.2-1_ar71xx.ipk'

Any suggestions?


add install after ipkg

ipkg install libc_0.9.33.2-1_ar71xx.ipk opkg_618-6_ar71xx.ipk

Now I also ran into an error that might have been my fault as I seemed to have to follow the instructions from page one and page 24/25, but I had to rename the file names because an error was saying something about invalid characters (the _ characters), but I don't know why.
aineo
DD-WRT Novice


Joined: 28 Nov 2013
Posts: 3

PostPosted: Fri Nov 29, 2013 10:47    Post subject: Reply with quote
Thanks you, pandemonium420!

Quote:
add install after ipkg
Goto page Previous  1, 2, 3 ... 24, 25, 26 ... 29, 30, 31  Next Display posts from previous:    Page 25 of 31
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC 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 cannot attach files in this forum
You cannot download files in this forum