Install OpenWRT WebUI on Repeater/P2V+

After uploaded the /overlay back to the phantom and have done some change on SSID and remove those TX line. I am still no able to have the system back to work.
Is it possible for anyone show me their standard env var by follow command

fw_printenv

I believe the kernel boot_cmd had also be erased.
 
This is what I see when I type your command on the Phantom (192.168.1.1):

root@Phantom:/# fw_printenv
Cannot parse config file: No such file or directory
 
Also see how to enable FPV WiFi Encryption in this thread
Also see how to enable Camera to Repeater WiFi Encryption in this thread


Here's a quick how-to I put together on installing a WebUI for managing the P2V+ and Repeater. Doing so enables you to *easily* adjust any networking/wifi aspect you desire!
Presentation: WebUI Install for DJI P2V+ and Repeater

Screencast: YouTube
[youtube]
To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.

Below is a quick text format version, but the presentation has some screenshots for PuTTy users in case the instructions aren't clear enough.

Happy to answer any question!
LK
---------------------------------------------------------------------------------------
## Disclaimer
  • The instructions provided here are provided as-is and with no warranty expressed or implied.
  • You are responsible for any issues that arise from following these instructions.
  • **** Follow at your own risk! ****


## Quick Explanation
  • The DJI Phantom 2 Vision/Vision+ and DJI FPV WiFi Repeater both operate a free and opensource WiFi ROM called ‘OpenWRT’
  • Because OpenWRT supports many different routers and platforms, and is a VERY common ROM, there are LOTs of packages available for installation.
  • The procedure outlined here will provide a means of connecting your DJI gear to the internet and download/install some of these extra packages.
  • We will be using port-forwarding to accomplish this, along with some simple modifications on the DJI gear.
  • This guide intends to be step-by-step, so even if you’re not familiar with the technology, you should be able to accomplish some quick tasks.

## Prerequisites
  • A computer with both WiFi and Wired internet capability
  • An available WIRED internet connection with an IP range NOT using 192.168.1.x
  • An SSH client (either the built in one on Linux / Mac OSX, or PuTTy on Windows)

## NOTE
  • This document uses IP 192.168.1.2 which is the IP of the DJI FPV WiFi Repeater.
  • However these instructions can be applied to the DJI Phantom 2 Vision/Vision+ as well.
  • Simply substitute 192.168.1.1 in place of references to 192.168.1.2.

## Preparation
  1. Power on your:
    • Repeater
    • DJI Controller
    • Phantom 2 Vision/Vision+
  2. Connect to your Repeater's WiFi with your computer
  3. AFTER you're connected via WiFi to the repeater, Plug in your Wired Internet Connection
  4. Verify Internet Access (Go to your LEAST favorite web-site - i.e. One that won't be cached by your browser)
  5. Verify Repeater Access (Go to http://192.168.1.2, you should get a 404 or similar page)

## Installing Web GUI on your Repeater and/or Phantom Vision/Vision+
  1. Linux/Mac OSX: In a terminal window, issue: ssh [email protected]
    Windows: Launch PuTTy, in the 'Host Name' field, enter: [email protected]
    Password: 19881209
  2. Issue the following commands in the remote SSH session:
    • For the repeater (IP 192.168.1.2)
      Code:
      /etc/init.d/lighttpd stop
      /etc/init.d/lighttpd disable
    • For the Phantom (IP 192.168.1.1)
      Code:
      /etc/init.d/uhttpd stop
    • For both:
      Code:
      echo 127.0.0.1 downloads.openwrt.org openwrt.org >> /etc/hosts
    • Establish the remote port forward:
      • On Linux/Mac OSX:
        Code:
        exit
        sudo ssh -g -R 80:downloads.openwrt.org:80 [email protected]
        Password: 19881209
        NOTE: In this step, using 'sudo' is required in order to forward a port < 1024 (privileged ports). On Mac, this is configured automatically, and you'll simply enter your Mac password when prompted. On Ubuntu and Ubuntu based distro's, the same applies. On other linux distros, you may need to become root via other means, or you may need to configure sudo. Doing this is beyond the scope of this guide, but Google for 'sudoers' and you'll be well on your way.
      • On Windows via PuTTy:
        • Right click the title bar of the PuTTy Window
        • Click 'Change Settings'
        • Click the + beside 'SSH' under 'Connection' (to expand the SSH section)
        • Click 'Tunnels'
        • Select 'Remote' in the lower right section of the Dialog
        • For 'Source port', enter '80'
        • For 'Destination', enter 'downloads.openwrt.org:80'
        • Click 'Add'
        • Click 'Apply'
    • In the remote SSH session, now issue:
      Code:
      opkg update
      opkg remove firewall3
      opkg install luci
      /etc/init.d/uhttpd enable
      ( An updated firewall package is installed with the WebUI which will conflict and fail if the old one is not removed first! )
    • Remove the remote port forward:
      Code:
      exit
    • Linux/Mac OSX: In a terminal window, issue: ssh [email protected]
      Windows: Launch PuTTy, in the 'Host Name' field, enter: [email protected]
      Password: 19881209
    • In the remote SSH session, issue:
      Code:
      /etc/init.d/uhttpd start
      exit
    • In your browser, go to: http://192.168.1.2
      • You should see the LuCI Web Interface after a short pause.
      • Username: root
      • Password: 19881209
      • Some have reported that the redirect to the LuCI WebUI never occurs. If after a few seconds you don't see a login page, use this URL instead: http://192.168.1.1/cgi-bin/luci
can you change the settings so that it will except a gopro 4
 
hey guys, i am trying to replicate the guide listed above, but i think i missed something...
i was able to ssh both to RE and P2+ .2 and .1 but i am getting this:

root@Phantom:~# echo 127.0.0.1 downloads.openwrt.org openwrt.org >> /etc/hosts

root@Phantom:~# exit

Connection to 192.168.1.2 closed.

SHOMCI-MBP:~ soma$ sudo ssh -g -R 80:downloads.openwrt.org:80 [email protected]


WARNING: Improper use of the sudo command could lead to data loss

or the deletion of important system files. Please double-check your

typing when using sudo. Type "man sudo" for more information.


To proceed, enter your password, or type Ctrl-C to abort.


Password: 19881209

Sorry, try again.

Any thoughts?
thanks!
 
sudo ssh -g -R 80:downloads.openwrt.org:80 [email protected]


WARNING: Improper use of the sudo command could lead to data loss

or the deletion of important system files. Please double-check your

typing when using sudo. Type "man sudo" for more information.


thanks!

ok i was dumb... "in Mac, this is configured automatically, and you'll simply enter your Mac password when prompted. " this solved quickly :)
however opkg update fails.. :(
 
ok i was dumb... "in Mac, this is configured automatically, and you'll simply enter your Mac password when prompted. " this solved quickly :)
however opkg update fails.. :(


aaand finally..

so my /etc/opkg.conf file contained wrong link.
used vi to edit file (vi /etc/opkg.conf)

this link was the proper the time when i wrote this comment:
Index of /barrier_breaker/14.07-rc3/ar71xx/generic/packages/

if you get error, you must have made the same mistake as I did, placed the link in the top of the file: more info: Cannot install DNScrypt => SOLVED (Page 1) — General Discussion — OpenWrt

vi usage: HowTo: Save File in Vi / Vim Text Editor

cheers
 
Hello

I did change the opkg.conf as shomci described and i could finally download luci.
Installation etc. everything ok. But when I enable an start uhttpd nothing happens. netstat -pln shows, that port 80 is not working (so no luci in browser...).

Someone allready had that problem?
At the beginning these two commands had no effect:
/etc/init.d/lighttpd stop
/etc/init.d/lighttpd disable

there wasn't ever an 80 port on my board.


File missing? :
root@Phantom:~# /usr/lib/opkg/info# ls uhttp*
-ash: /usr/lib/opkg/info#: not found
root@Phantom:~# root@OpenWrt:/usr/lib/opkg/info#
-ash: root@OpenWrt:/usr/lib/opkg/info#: not found

I have installed uhttpd-mod-tls and uhttpd still not working....


Putty export:
root@Phantom:~# /etc/init.d/uhttpd start
root@Phantom:~# netstat -pln
netstat: showing only processes with your user ID
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:3011 0.0.0.0:* LISTEN 993/ser2net
tcp 0 0 0.0.0.0:5001 0.0.0.0:* LISTEN 993/ser2net
tcp 0 0 0.0.0.0:2002 0.0.0.0:* LISTEN 993/ser2net
tcp 0 0 0.0.0.0:2003 0.0.0.0:* LISTEN 993/ser2net
tcp 0 0 0.0.0.0:2004 0.0.0.0:* LISTEN 993/ser2net
tcp 0 0 0.0.0.0:2005 0.0.0.0:* LISTEN 993/ser2net
tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN 958/dnsmasq
tcp 0 0 0.0.0.0:2006 0.0.0.0:* LISTEN 993/ser2net
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 900/dropbear
tcp 0 0 0.0.0.0:2007 0.0.0.0:* LISTEN 993/ser2net
tcp 0 0 0.0.0.0:3001 0.0.0.0:* LISTEN 993/ser2net
tcp 0 0 0.0.0.0:3003 0.0.0.0:* LISTEN 993/ser2net
tcp 0 0 0.0.0.0:3004 0.0.0.0:* LISTEN 993/ser2net
tcp 0 0 0.0.0.0:3005 0.0.0.0:* LISTEN 993/ser2net
tcp 0 0 0.0.0.0:3006 0.0.0.0:* LISTEN 993/ser2net
tcp 0 0 0.0.0.0:3007 0.0.0.0:* LISTEN 993/ser2net
netstat: /proc/net/tcp6: No such file or directory
udp 0 0 0.0.0.0:53 0.0.0.0:* 958/dnsmasq
udp 0 0 0.0.0.0:67 0.0.0.0:* 958/dnsmasq
netstat: /proc/net/udp6: No such file or directory
netstat: /proc/net/raw6: No such file or directory
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node PID/Program name Path
unix 2 [ ACC ] STREAM LISTENING 684 582/ubusd /var/run/ubus.sock
root@Phantom:~#


Thank you in advance


With my best regards


Angryhellfire
 
Hi, I'm from Brazil and my English is not good! I executed the procedures in putty, but I did not succeed in downloading the packages, because I was giving error because of the link of the OpenWRT site that changed! I tried in many ways, but I did not succeed. and finally the range extender (re700) battery discharged .. and the unit turned off! I left loading !! then I turned it on again and when I ran the "putty" I inserted the IP: 192.168.1.2, but it no longer appears the login, only the green dash flashes in the "putty" box and a "PuTTY fatal error Network Error: Connection refused "and the range extender does not blink anymore! I already tried to reset it but it does not respond anymore the reset does not flash the green light. it goes straight on! I do not know what to do anymore Can someone help me?
 

Attachments

  • 20190721_215829-1.jpg
    20190721_215829-1.jpg
    1 MB · Views: 234
  • 20190721_215914-1.jpg
    20190721_215914-1.jpg
    324.6 KB · Views: 238
  • 15637573892041924014185.jpg
    15637573892041924014185.jpg
    1.4 MB · Views: 240
Last edited:

Members online

No members online now.

Forum statistics

Threads
143,066
Messages
1,467,359
Members
104,936
Latest member
hirehackers