Nachádzate sa tu

Ubiquiti EdgeRouter - OpenWRT install via TFTP with Raspberry Pi

Download Tftpd64 installer.
Install Tftpd64.

Ubiquiti EdgeRouter X
Firmware OpenWrt Install: openwrt-18.06.4-ramips-mt7621-ubnt-erx-initramfs-kernel.bin
Firmware OpenWrt Upgrade: openwrt-18.06.4-ramips-mt7621-ubnt-erx-squashfs-sysupgrade.tar

Set DHCP IP for PC:
netsh interface ip set dns "Ethernet" dhcp
netsh interface ip set address "Ethernet" dhcp

Prepare folder EdgeRouterOpenWrt with file:
for example: openwrt-18.06.4-ramips-mt7621-ubnt-erx-initramfs-kernel.bin
and rename the file to: vme50

Set static IP for PC: (Input server IP)
Bat file: netsh interface ip set address "Ethernet" static

Run Tftpd64 as admin

TFTP Server, DHCP Server

TFTP tab
Base Directory: C:\Users\user\Desktop\EdgeRouterOpenWrt
TFTP Security: None
PXE Compatibility: checked
Binde TFTP to this address:
Allow "\" As virtual root

DHCP tab
IP pool start address:
Size of pool: 4
Lease: 90
Boot File: vme50
DHCP Options
Def. router:
DNS Servers:

OK, restart Tftpd64 as admin

Connect cable to EdgeRouter LAN1(eth0 Internet port)

Connect EdgeRouter with Raspberry Pi.
EdgeRouter GND -> Raspberry Pi pin 6 - GND
EdgeRouter Rx -> Raspberry Pi pin 8 - GPIO14 (UART Tx)
EdgeRouter Tx -> Raspberry Pi pin 10 - GPIO15 (UART Rx)

From Raspberry Pi:
cu -l /dev/ttyAMA0 -s 57600

Turn on EdgeRouter.

Choose quickly from menu:
1: System Load Linux to SDRAM via TFTP.
Input device IP ( ==:
Input server IP ( ==:
Input Linux Kernel filename (vme50) ==:

restart Tftpd64

After restart Tftpd64, Tftp Server sends the Boot File.
Close Tftpd64, EdgeRouter has OpenWRT on IP: on LAN2-5(eth1-eth4).

Remove cable from LAN1(eth0 Internet port)

Set DHCP IP for PC:
netsh interface ip set dns "Ethernet" dhcp
netsh interface ip set address "Ethernet" dhcp

Connect cable to LAN2-5
PC gets IP:
OpenWRT is on IP:
Powered by LuCI openwrt-18.06 branch (git-19.020.41695-6f6641d) / OpenWrt 18.06.2 r7676-cddd7b4c77

Flash OpenWRT to EdgeRouter.
Login to router
System->Backup / Flash Firmware
Flash new firmware image
Image: openwrt-18.06.4-ramips-mt7621-ubnt-erx-squashfs-sysupgrade.tar
Flash image.
Done when LAN2 port is off and web interface is restarted.
Change LAN IP if necessary.

Raspberry Pi serial port setup:

µCast #18: Configure the Serial Port on the Raspberry Pi

Raspberry Pi enable (serial) UART:


Connect: Rx, Tx and GND!

Raspberry Pi 3 UART Pins