[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 ... 18, 19, 20 ... 29, 30, 31  Next
Author Message
stooopid
DD-WRT Novice


Joined: 22 Apr 2012
Posts: 3

PostPosted: Tue Apr 24, 2012 4:22    Post subject: Reply with quote
Thanks for this guide. I got transmission working with it.

The libc link is wrong. There is a newer version there.

It should be: http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/libc_0.9.33-106_ar71xx.ipk
Sponsor
Uktrawipf
DD-WRT Novice


Joined: 16 Feb 2012
Posts: 1

PostPosted: Mon Apr 30, 2012 13:08    Post subject: Reply with quote
stooopid wrote:

The libc link is wrong. There is a newer version there.

It should be: http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/libc_0.9.33-106_ar71xx.ipk


Does not exist Sad
*edit*
i got opkg working with (bricks many other programs):

wget http://downloads.openwrt.org/backfire/10.03/ar71xx/packages/libgcc_4.3.3+cs-42_ar71xx.ipk
wget http://downloads.openwrt.org/backfire/10.03/ar71xx/packages/libc_0.9.30.1-42_ar71xx.ipk
ipkg -d /opt/ install libgcc_4.3.3+cs-42_ar71xx.ipk
ipkg -d /opt/ install libc_0.9.30.1-42_ar71xx.ipk

*edit2*
WARNING!! you have to "opkg install libc" after that to get everything working!


Last edited by Uktrawipf on Wed Jun 06, 2012 11:11; edited 1 time in total
riahc3
DD-WRT User


Joined: 04 May 2007
Posts: 324

PostPosted: Sat May 05, 2012 14:05    Post subject: Reply with quote
Pro tip: If you use a USB flash drive, format to ext2, not ext3. Ext3s journaling system will wear and tear the drive, decreasing its life.

Last edited by riahc3 on Sat May 05, 2012 14:12; edited 1 time in total
riahc3
DD-WRT User


Joined: 04 May 2007
Posts: 324

PostPosted: Sat May 05, 2012 14:08    Post subject: Reply with quote
ext4 has a journal-less feature but I dont know if DD-WRT supports ext4.
riahc3
DD-WRT User


Joined: 04 May 2007
Posts: 324

PostPosted: Sat May 05, 2012 17:21    Post subject: Reply with quote
Needs some updating....

That OPKG package doesnt work/install correctly.
dynek
DD-WRT User


Joined: 19 Oct 2006
Posts: 131

PostPosted: Wed May 16, 2012 19:33    Post subject: Reply with quote
stooped wrote:
The libc link is wrong. There is a newer version there.

It should be: http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/libc_0.9.33-106_ar71xx.ipk

Thanks. Corrected. Versions are updated quite often.


Last edited by dynek on Sat May 19, 2012 15:48; edited 1 time in total
tilutza
DD-WRT Novice


Joined: 22 May 2011
Posts: 16

PostPosted: Sat May 19, 2012 3:37    Post subject: Reply with quote
First i want to thank you. Basically, your tutorial is good, but not complete.
right now, i am working in my spare time to a script like frater (the one that make optware script for dd-wrt), but is work in progress ....

i have an awesom wndr3700, and i am a great fan of dd-wrt, but how can i install sound drivers on atheros ?
i already done that many times for broadcom, but it seems that every blackfire release has a different kernel version than one of the dd wrt.

Does anybody do that? to work sound modules (basically OSS) on atheros device ?
I tryed to compile myself dd-wrt, but even if i am developer, i didn;t handle very well...


so, any suggestions, please let me know Smile
riahc3
DD-WRT User


Joined: 04 May 2007
Posts: 324

PostPosted: Sun Jun 03, 2012 11:43    Post subject: Reply with quote
dynek wrote:
stooped wrote:
The libc link is wrong. There is a newer version there.

It should be: http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/libc_0.9.33-106_ar71xx.ipk

Thanks. Corrected. Versions are updated quite often.


Thanks for correcting. Ill try the tutorial again.
riahc3
DD-WRT User


Joined: 04 May 2007
Posts: 324

PostPosted: Sat Jun 09, 2012 11:23    Post subject: Reply with quote
In order to restart the tutorial, I think you need to reformat the USB drive....Sucks...
riahc3
DD-WRT User


Joined: 04 May 2007
Posts: 324

PostPosted: Sat Jun 09, 2012 13:47    Post subject: Reply with quote
When putting the command

opkg list

how can I stop the entire list from showing and go page by page using enter or page down or something? There are ALOT of packages.
JLian
DD-WRT Novice


Joined: 17 Aug 2011
Posts: 1

PostPosted: Sun Jun 24, 2012 11:06    Post subject: Reply with quote
Hi there!!!
I followed what was guided on the post but when I key in "opkg update" the following message appear.

root@DD-WRT root $ opkg update
Collected errors:
* make_directory: Cannot create directory `//usr/lib/opkg': Read-only file syst em.
* make_directory: Cannot create directory `//usr/lib/opkg': Read-only file syst em.
* make_directory: Cannot create directory `//usr/lib/opkg': Read-only file syst em.
* make_directory: Cannot create directory `//usr/lib/opkg': Read-only file syst em.
* make_directory: Cannot create directory `': No such file or directory.
root@DD-WRT root $ export
export HOME='/tmp/root'
export LD_LIBRARY_PATH='/opt/lib:/opt/usr/lib:/lib:/usr/lib:/opt/usr/local/lib'
export LOGNAME='root'
export PATH='/sbin:/opt/bin:/opt/usr/bin:/opt/sbin:/opt/usr/sbin:/bin:/usr/bin:/ usr/sbin:/opt/usr/local/bin'
export PS1='\[\033[01;31m\]\u@\h \[\033[01;34m\]\W $ \[\033[00m\]'
export PWD='/tmp/root'
export SHELL='/bin/sh'
export SSH_CONNECTION='192.168.1.100 2786 192.168.1.1 22'
export SSH_TTY='/dev/pts/0'
export TERM='xterm'
export TERMINFO='/opt/usr/share/terminfo'
export USER='root'
root@DD-WRT root $ mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro,relatime)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
ramfs on /tmp type ramfs (rw,relatime)
none on /dev type tmpfs (rw,relatime,size=512k)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
devpts on /proc/bus/usb type usbfs (rw,relatime)
/dev/sda1 on /tmp/mnt/sda_part1 type ext2 (rw,relatime)
/dev/sda1 on /etc type ext2 (rw,relatime)
/dev/sda1 on /tmp/root type ext2 (rw,relatime)
/dev/sda1 on /opt type ext2 (rw,relatime)


Any suggestion?
fusiooon
DD-WRT Novice


Joined: 14 Jun 2010
Posts: 6

PostPosted: Mon Jun 25, 2012 18:01    Post subject: Reply with quote
riahc3 wrote:
When putting the command

opkg list

how can I stop the entire list from showing and go page by page using enter or page down or something? There are ALOT of packages.


Code:
opkg list | less

- Enter to go by line
- Space to go by page

_________________
WNR834B v2 | 2x WRT54GS v.4 | WNDR3700 v1
fusiooon
DD-WRT Novice


Joined: 14 Jun 2010
Posts: 6

PostPosted: Wed Jun 27, 2012 14:27    Post subject: WNDR3700 v1 using DD-WRT v24-sp2 (03/19/12) std r18777 Reply with quote
This is an excellent tutorial, thank you dynek!!

To start I have a WNDR3700 v1 running DD-WRT v24-sp2 (03/19/12) std (SVN revision 18777).

I followed the tutorial in the original post and everything seemed to be OK after section 8, run opkg update, which ran as described.

Obviously I had to change the libc package in section 5 to:

Code:
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-2_ar71xx.ipk
ipkg install libc_0.9.33.2-1_ar71xx.ipk opkg_618-2_ar71xx.ipk

as there is a new version.

A problem arose when I actually tried to install any packages. Having listed all the packages I noticed Snort. After issuing the command opkg install snort I got an error that the dependencies libc * libc * libc * libc * were missing and that installation could not be completed. This happened when trying to install any package.

I solved it by manually reinstalling libc using opkg:

Code:
cd /tmp
wget http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/libc_0.9.33.2-1_ar71xx.ipk
opkg install libc_0.9.33.2-1_ar71xx.ipk

Hope this helps.

PS: I haven't tried this but this may also work: Skip the libc install in section 5:

Code:
cd /tmp
wget http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/opkg_618-2_ar71xx.ipk
ipkg install opkg_618-2_ar71xx.ipk

and apply my fix in section 8.

_________________
WNR834B v2 | 2x WRT54GS v.4 | WNDR3700 v1
Twobit
DD-WRT Novice


Joined: 28 Jun 2012
Posts: 2

PostPosted: Fri Jun 29, 2012 1:07    Post subject: kmod-usb Reply with quote
Good Day All,

I have successfully got Opt-Ware loaded on my TP-Link WR1043ND (currently running 14896). I have also tried revision 18777 (sadly has a few issues for this router, 14896 is meant to be the best version).

I am trying to gain access to Ser2Net with a USB Serial Device (Arduino). The Opt-Ware works for everything, except I am unable to install the kmod-usb drivers....

I know this issue has been around since mid 2010, I was hoping there is a solution? I dont want to migrate to OpenWRT just for this.

Current DD-WRT: 14896
Kernel: 2.6.24.111

opkg list-installed:

busybox - 1.19.4-2
coreutils - 8.16-1
coreutils-stty - 8.16-1
kernel - 2.6.32.25-1
kmod-nls-base - 2.6.32.25-1
libc - 0.9.30.1-43.10
libftdi - 0.19-1
libgcc - 4.3.3+cs-43.10
libncurses - 5.7-5
libusb - 0.1.12-2
ser2net - 2.7-2
terminfo - 5.7-5
uclibcxx - 0.2.3-1

vi /etc/opkg.conf:

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

opkg install kmod-usb-serial-ftdi:

Installing kmod-usb-serial-ftdi (3.3.8-1) to root...
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/kmod-usb-serial-ftdi_3.3.8-1_ar71xx.ipk.
Multiple packages (kmod-nls-base and kmod-nls-base) providing same name marked HOLD or PREFER. Using latest.
Configuring kmod-nls-base.
Collected errors:
* satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-usb-serial-ftdi:
* kernel (= 3.3.8-1-6f47e234de99f74ae68d25836a4682c6) * kernel (= 3.3.8-1-6f47e234de99f74ae68d25836a4682c6) * kernel (= 3.3.8-1-6f47e234de99f74ae68d25836a4682c6) *
* opkg_install_cmd: Cannot install package kmod-usb-serial-ftdi.
* xsystem: sh: Child killed by signal 11.
* pkg_run_script: postinst script returned status -1.
* opkg_configure: kmod-nls-base.postinst returned -1.


I setup OPKG to use the 10.03 backfire:
opkg install kmod-usb-serial-ftdi
Installing kmod-usb-serial-ftdi (2.6.32.10-1) to root...
Downloading http://downloads.openwrt.org/backfire/10.03/ar71xx/packages/kmod-usb-serial-ftdi_2.6.32.10-1_ar71xx.ipk.
Not downgrading package kernel on root from 2.6.32.25-1 to 2.6.32.10-1.
Configuring kmod-nls-base.
Collected errors:
* opkg_install_cmd: Cannot install package kmod-usb-serial-ftdi.
* xsystem: sh: Child killed by signal 11.
* pkg_run_script: postinst script returned status -1.
* opkg_configure: kmod-nls-base.postinst returned -1.

Forced Downgrade:
opkg install kmod-usb-serial-ftdi --force-downgrade
Installing kmod-usb-serial-ftdi (2.6.32.10-1) to root...
Downloading http://downloads.openwrt.org/backfire/10.03/ar71xx/packages/kmod-usb-serial-ftdi_2.6.32.10-1_ar71xx.ipk.
Downgrading kernel on root from 2.6.32.25-1 to 2.6.32.10-1...
Downloading http://downloads.openwrt.org/backfire/10.03/ar71xx/packages/kernel_2.6.32.10-1_ar71xx.ipk.
Installing kmod-usb-serial (2.6.32.10-1) to root...
Downloading http://downloads.openwrt.org/backfire/10.03/ar71xx/packages/kmod-usb-serial_2.6.32.10-1_ar71xx.ipk.
Installing kmod-usb-core (2.6.32.10-1) to root...
Downloading http://downloads.openwrt.org/backfire/10.03/ar71xx/packages/kmod-usb-core_2.6.32.10-1_ar71xx.ipk.
Configuring kernel.
Configuring kmod-nls-base.
Configuring kmod-usb-core.
Configuring kmod-usb-serial.
Configuring kmod-usb-serial-ftdi.
Collected errors:
* xsystem: sh: Child killed by signal 11.
* pkg_run_script: postinst script returned status -1.
* opkg_configure: kmod-nls-base.postinst returned -1.
* xsystem: sh: Child killed by signal 11.
* pkg_run_script: postinst script returned status -1.
* opkg_configure: kmod-usb-core.postinst returned -1.
* xsystem: sh: Child killed by signal 11.
* pkg_run_script: postinst script returned status -1.
* opkg_configure: kmod-usb-serial.postinst returned -1.
* xsystem: sh: Child killed by signal 11.
* pkg_run_script: postinst script returned status -1.
* opkg_configure: kmod-usb-serial-ftdi.postinst returned -1.

It would appear my DD-WRT revision is too old for the OPKG files?

Edit: I just checked 18777, its kernel version: 3.2.12-rc1-svn18774
This still does not appear to match any OPKG options on OpenWRT...

Regards
Twobit
cocoa117
DD-WRT Novice


Joined: 01 Mar 2011
Posts: 15

PostPosted: Thu Jul 12, 2012 14:16    Post subject: Re: WNDR3700 v1 using DD-WRT v24-sp2 (03/19/12) std r18777 Reply with quote
fusiooon wrote:


A problem arose when I actually tried to install any packages. Having listed all the packages I noticed Snort. After issuing the command opkg install snort I got an error that the dependencies libc * libc * libc * libc * were missing and that installation could not be completed. This happened when trying to install any package.

I solved it by manually reinstalling libc using opkg:

Code:
cd /tmp
wget http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/libc_0.9.33.2-1_ar71xx.ipk
opkg install libc_0.9.33.2-1_ar71xx.ipk

Hope this helps.

PS: I haven't tried this but this may also work: Skip the libc install in section 5:

Code:
cd /tmp
wget http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/opkg_618-2_ar71xx.ipk
ipkg install opkg_618-2_ar71xx.ipk

and apply my fix in section 8.


Thank you, it solved my issue.

It seems you have to use opkg package manager to install it, not the ipkg, which was my mistake.
Goto page Previous  1, 2, 3 ... 18, 19, 20 ... 29, 30, 31  Next Display posts from previous:    Page 19 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