D-Link DIR-825 Rev. B - Porting DD-WRT

Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Goto page Previous  1, 2, 3 ... 143, 144, 145 ... 147, 148, 149  Next
Author Message
andreyua
DD-WRT User


Joined: 16 Jun 2010
Posts: 64

PostPosted: Wed Jul 08, 2015 12:34    Post subject: Reply with quote
I'm need something via scripts.

I need open ssh connection and run script where must be;
- disable wan ;
- disable dhcp server;
- assign WAN Port to Switch

Another script:
- disable wan;
- disable dhcp server
- reconfigure LAN PORT (for example , port 2) - to WAN port
- enable wan on new WAN port

Please help, how do this via scripts;
How run this scripts automatically via ssh ?
or
How run this scripts automatically via web interface maybe ?

Thank you guys, please help !
Sponsor
andreyua
DD-WRT User


Joined: 16 Jun 2010
Posts: 64

PostPosted: Wed Jul 08, 2015 14:56    Post subject: Reply with quote
What equivalent shell command for "Apply settings" command ?
andreyua
DD-WRT User


Joined: 16 Jun 2010
Posts: 64

PostPosted: Thu Jul 09, 2015 10:40    Post subject: Reply with quote
How install curl to this router (flash 8Mib) without installing Optware ?
Can provide me good manual. This not works:
http://www.dd-wrt.com/wiki/index.php/JFFS
http://www.dd-wrt.com/wiki/index.php/Ipkg
andreyua
DD-WRT User


Joined: 16 Jun 2010
Posts: 64

PostPosted: Thu Jul 09, 2015 16:26    Post subject: Reply with quote
Anybody cam answer or NOT Sad
My firmware - DD-WRT v3.0-r27506 (07/09/15) std

Guys, i'm try install opkg by this instruction :
http://www.dd-wrt.com/wiki/index.php/JFFS

After that line :

cd /tmp
wget http://downloads.openwrt.org/backfire/10.03/ar71xx/packages/opkg_513-2_ar71xx.ipk

i cannot run this line :
Code:
ipkg install /tmp/opkg_513-2_ar71xx.ipk

Code:
ipkg_install_file: ERROR: File  not found

Ok, i try
Code:
ipkg -d /jffs install /tmp/opkg_513-2_ar71xx.ipk

- install succeed, but i cannot run this command :

Code:
root@DD-WRT:/tmp# /jffs/bin/opkg
-sh: /jffs/bin/opkg: not found


I'm cannot run any commands on this fuc**** router , except /bin/busybox and /bin/ipkg ... !!!

What wrong with me ...
andreyua
DD-WRT User


Joined: 16 Jun 2010
Posts: 64

PostPosted: Thu Jul 09, 2015 18:58    Post subject: Reply with quote
Why anything manuals not work absolutely:
http://www.dd-wrt.com/phpBB2/viewtopic.php?p=413577#413577

http://www.dd-wrt.com/phpBB2/viewtopic.php?t=72379&sid=0a6f7be49a3c11c19f0296ba6a3e4a7c

http://g300nh.blogspot.com/2010/06/software-installation-on-dd-wrt-part-1.html

http://www.howtogeek.com/98408/how-to-install-additional-software-on-your-router-dd-wrt/

same fucking errors:
root@DD-WRT:/tmp# /jffs/bin/opkg
-sh: opkg: not found

AGAIN AND AGAIN
PLEEASEEEEEE ANSWER ANYBODY !!!
KrypteX
DD-WRT Guru


Joined: 18 Jan 2014
Posts: 2411

PostPosted: Thu Jul 09, 2015 20:58    Post subject: Reply with quote
Maybe people get scared of your language...
_________________
THERE ARE NO STRANGERS HERE; ONLY FRIENDS YOU HAVEN'T YET MET.
________________________________________________________________________________________________________
DD-WRT CHANGELOG | DEVICES | DD-WRT BUILDS | KONG BUILDS | UNOFFICIAL BUILDS | DD-WRT in VIRTUALBOX
tatsuya46
DD-WRT Guru


Joined: 03 Jan 2010
Posts: 7568
Location: YWG, Canada

PostPosted: Thu Jul 09, 2015 21:01    Post subject: Reply with quote
this router is one of the worst of the 8mb ones for flash space..its limit is far less than even 6.5mb...
_________________
LATEST FIRMWARE(S)

BrainSlayer wrote:
we just do it since we do not like any restrictions enforced by stupid cocaine snorting managers

[x86_64] Haswell i3-4150/QCA9984/QCA9882 ------> r55797 std
[QUALCOMM] DIR-862L --------------------------------> r55797 std
▲ ACTIVE / INACTIVE ▼
[QUALCOMM] WNDR4300 v1 --------------------------> r50485 std
[BROADCOM] DIR-860L A1 ----------------------------> r50485 std


Sigh.. why do i exist anyway.. | I love you Anthony.. never forget that.. my other 99% that ill never see again..

bondpard
DD-WRT Novice


Joined: 03 May 2015
Posts: 20

PostPosted: Fri Jul 10, 2015 4:35    Post subject: Reply with quote
Is it worth (or safe) to update an 825 C1 from 26653 to 27506 ?
andreyua
DD-WRT User


Joined: 16 Jun 2010
Posts: 64

PostPosted: Fri Jul 10, 2015 9:25    Post subject: Reply with quote
Please, help me
andreyua
DD-WRT User


Joined: 16 Jun 2010
Posts: 64

PostPosted: Fri Jul 10, 2015 22:51    Post subject: Reply with quote
-sh: opkg: not found

I found the reason, opk not found because:

- let's view headers of this file by
Code:
readelf -l opkg

We have:

Code:
Elf file type is EXEC (Executable file)
Entry point 0x4025d0
There are 7 program headers, starting at offset 52

Program Headers:
  Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
  PHDR           0x000034 0x00400034 0x00400034 0x000e0 0x000e0 R E 0x4
  INTERP         0x000114 0x00400114 0x00400114 0x00014 0x00014 R   0x1
      [Requesting program interpreter: /lib/ld-uClibc.so.0]
  LOAD           0x000000 0x00400000 0x00400000 0x15d50 0x15d50 R E 0x10000
  LOAD           0x016000 0x00426000 0x00426000 0x00928 0x00b18 RW  0x10000
  DYNAMIC        0x000128 0x00400128 0x00400128 0x00118 0x00118 RWE 0x4
  GNU_STACK      0x000000 0x00000000 0x00000000 0x00000 0x00000 RWE 0x4
  NULL           0x000000 0x00000000 0x00000000 0x00000 0x00000     0x4

AND the reason is - Requesting program interpreter: /lib/ld-uClibc.so.0 NOT EXIST IN /LIB/ in our router

just load opkg to hex editor (winhex as example) and changes bytes from /lib/ld-uClibc.so.0 - to /jffs/lduClibc.so.0 (as example)

/jffs/lduClibc.so.0 must be copied or create symbolic link

after this manipulation opkg will work !!!
Drek
DD-WRT User


Joined: 28 Sep 2008
Posts: 218

PostPosted: Fri Jul 10, 2015 23:03    Post subject: Reply with quote
Thanks for posting andre. Hopefully someone will find this useful.
_________________
Netgear XR500
Rogers Ignite Cable
150mbps down/15mbps up
silicon
DD-WRT Novice


Joined: 11 Jul 2015
Posts: 24

PostPosted: Sat Jul 11, 2015 21:28    Post subject: Reply with quote
What firmware revision people are using successfully to setup OpenVPN on DIR-825? I've flashed several versions and some seem to function and some don't so I'd just like to get an input on what's working well.
mrchow21
DD-WRT Novice


Joined: 03 Jul 2015
Posts: 10

PostPosted: Sun Jul 12, 2015 9:56    Post subject: Reply with quote
silicon wrote:
What firmware revision people are using successfully to setup OpenVPN on DIR-825? I've flashed several versions and some seem to function and some don't so I'd just like to get an input on what's working well.

Running OpenVPN in server mode with r27456.
silicon
DD-WRT Novice


Joined: 11 Jul 2015
Posts: 24

PostPosted: Mon Jul 13, 2015 0:13    Post subject: Reply with quote
Thank you mrchow21. I'm guessing you when you set it up you chose the most recent firmware version at the time but by any chance did you try versions 27490 or 27506?
bondpard
DD-WRT Novice


Joined: 03 May 2015
Posts: 20

PostPosted: Sun Jul 19, 2015 6:11    Post subject: Reply with quote
Wow a kernel update, i can't believe it Very Happy
Things are working much better with 825 rev C, not having any troubles with HT40/HT20, working as expected and stable; r27506
Goto page Previous  1, 2, 3 ... 143, 144, 145 ... 147, 148, 149  Next Display posts from previous:    Page 144 of 149
Post new topic   This topic is locked: you cannot edit posts or make replies.    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