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

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Atheros WiSOC based Hardware
Goto page Previous  1, 2, 3, ... 27, 28, 29  Next
Author Message
buddee
DD-WRT Guru


Joined: 06 Feb 2010
Posts: 7385
Location: Little Rock

PostPosted: Sun Jan 30, 2011 8:29    Post subject: Reply with quote
Erm, yea stick with the guide, it works simply.

opkg will run but the whole way that script is laid out is made to where it is required to have /jffs

so yes, in this, my bad Embarassed

_________________
Wireless N Config | Linking Routers | DD-WRT Wiki | DD-WRT Builds | Peacock - Broadcom FAQ

Having problems with port forwarding? Check out Port Forward Troubleshooting for more info.
Sponsor
dynek
DD-WRT User


Joined: 19 Oct 2006
Posts: 131

PostPosted: Sun Jan 30, 2011 10:41    Post subject: Reply with quote
buddee wrote:
So don't let the title post fool any of you other Atheros based users. Wink

I changed the title of the thread Smile
As long as the device is using an Atheros (MIPS big-endian) cpu it should be OK.

Jenot wrote:
opkg desn't run when /jffs isn't mounted rw.

I'm not sure to understand what you mean.
Why would you need /jffs ?
We are using /etc/opkg.conf (which actually is /opt/etc/opkg.conf) to specify root, ram and lists_dir destinations:
Quote:
dest root /opt
dest ram /tmp
lists_dir ext /tmp/var/opkg-lists
Jenot
DD-WRT Novice


Joined: 29 Jan 2011
Posts: 6

PostPosted: Sun Jan 30, 2011 11:00    Post subject: Reply with quote
Strange. After restart when i simply invoked "opkg list", i got error messages about readonly /jffs. Now, when i unmounted /jffs, everything is OK. Shocked
dynek
DD-WRT User


Joined: 19 Oct 2006
Posts: 131

PostPosted: Sun Jan 30, 2011 16:37    Post subject: Reply with quote
Weird I agree.

Just to know. Did you disable JFFS2 as asked in step 2 ?
Jenot
DD-WRT Novice


Joined: 29 Jan 2011
Posts: 6

PostPosted: Sun Jan 30, 2011 16:40    Post subject: Reply with quote
Yes. Jffs disabled. No problems now, even after restart. Murphy's laws Wink
buddee
DD-WRT Guru


Joined: 06 Feb 2010
Posts: 7385
Location: Little Rock

PostPosted: Sun Jan 30, 2011 17:44    Post subject: Reply with quote
Erm yea, kinda figured you wouldnt need /jffs

:P

_________________
Wireless N Config | Linking Routers | DD-WRT Wiki | DD-WRT Builds | Peacock - Broadcom FAQ

Having problems with port forwarding? Check out Port Forward Troubleshooting for more info.
dorogoy
DD-WRT Novice


Joined: 31 Jan 2011
Posts: 2

PostPosted: Mon Jan 31, 2011 18:43    Post subject: Reply with quote
Diehardshorty wrote:
Im getting some errors at ipkg install
Code:
root@DD-WRT:/tmp# ipkg update
mkdir: cannot create directory '//usr/local/lib/': Read-only file system



For me it is even worst. This same error happens just using ipkg to install opkg, and of course nothing is installed:
Code:
root@DD-WRT:/tmp# ipkg install opkg_576-1_ar71xx.ipk
/bin/ipkg: line 1184: sort: not found
mkdir: cannot create directory '///usr/local/lib/': Read-only file system


I would appreciate any help Sad
dynek
DD-WRT User


Joined: 19 Oct 2006
Posts: 131

PostPosted: Mon Jan 31, 2011 19:48    Post subject: Reply with quote
Using ipkg will give you an error message.

Now I don't see why it's not installing opkg.

Can you run "mount" and output the result here please ?
dorogoy
DD-WRT Novice


Joined: 31 Jan 2011
Posts: 2

PostPosted: Tue Feb 01, 2011 0:55    Post subject: Reply with quote
It is ok now. I started everything again from the first step and I had the same error than Diehardshorty, but opkg was installed successfully.

Code:
root@DD-WRT:/tmp# ipkg install opkg_576-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
Unpacking opkg...Done.
Configuring opkg...Done.


Thanks.
dynek
DD-WRT User


Joined: 19 Oct 2006
Posts: 131

PostPosted: Thu Feb 03, 2011 12:16    Post subject: Reply with quote
dynek wrote:
I am also preparing binaries for iStat server: http://bjango.com/apps/istat/

It's a small victory! I got it working. I just have to debug two functions which are making the daemon freeze.
dynek
DD-WRT User


Joined: 19 Oct 2006
Posts: 131

PostPosted: Fri Feb 04, 2011 17:03    Post subject: Reply with quote
I increased the sleep timeout to 5 seconds instead of 2 in the startup script because sometimes it doesn't run.
who5252
DD-WRT Novice


Joined: 04 Feb 2011
Posts: 1

PostPosted: Fri Feb 04, 2011 23:23    Post subject: I'm a newb Reply with quote
I will admit I am a newb and probably doing something wrong. All seems well until I get to step 8 and see the following:


root@DD-WRT:~# cat > /mnt/root/.profile << EOF
> export LD_LIBRARY_PATH='/opt/lib:/opt/usr/lib:/lib:/usr/lib:/opt/usr/local/lib'
> 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 TERMINFO='/opt/usr/share/terminfo'
> EOF
-sh: can't create /mnt/root/.profile: nonexistent directory


Any thoughts? Thanks in advance.
Jenot
DD-WRT Novice


Joined: 29 Jan 2011
Posts: 6

PostPosted: Sat Feb 05, 2011 7:05    Post subject: Reply with quote
Probably You didn't create /mnt/root directory.
dynek
DD-WRT User


Joined: 19 Oct 2006
Posts: 131

PostPosted: Sat Feb 05, 2011 8:24    Post subject: Re: I'm a newb Reply with quote
who5252 wrote:
-sh: can't create /mnt/root/.profile: nonexistent directory


This directory should be created in step four
Quote:
cd /mnt
mkdir etc opt root
squint
DD-WRT Novice


Joined: 04 Feb 2011
Posts: 8

PostPosted: Sat Feb 05, 2011 14:56    Post subject: Reply with quote
Hello, thanks much for this post. I tried using it but even after a couple of reboots I get an error msg:

root@DD-WRT root $ opkg update
opkg: can't resolve symbol 'glob64' in lib 'opkg'.

I'm bad with coding and don't really know what most of the code means. Should I just go through the steps again and hope for a better end?

Thanks!
Goto page Previous  1, 2, 3, ... 27, 28, 29  Next Display posts from previous:    Page 2 of 29
Post new topic   Reply to topic    DD-WRT Forum 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