openwrtv3/target/linux
John Crispin 4e31b2e869 ramips: add support for Ubiquiti EdgeRouter X (UBNT-ERX)
This router is based on MT7621 SoC, no wifi, no usb, nand.

Works:
* Boots.
* Ethernet.
* Switch.
* Button (reset).
* Flashing OpenWrt from stock firmware.
* Upgrading OpenWrt.

Doesn't work:
* No GPIO leds. All leds are controlled by switch,
  but stock firmware was able to control them.
* SoC has crypto engine but no open driver.
* SoC has nat acceleration, but no open driver.
* This router has 2MB spi flash soldered in but MT
  nand/spi drivers do not support pin sharing,
  so it is not accessable and disabled. Stock
  firmware could read it and it was empty.
* PoE out.

Router has serial pins populated. If looking at the top
of the router, then counting from Eth sockets pins go as:
'GND, RX, TX, GND'. 3.3v, 57600.

U-boot bootloader supports tftpboot, controlled from serial.
This router has two kernel partitions: 'live' and 'backup'.
They are swapped during flashing (on both stock and OpenWrt).
Active partition is controlled by a flag in a factory partition.
U-boot has custom command to switch active kernel partition.
Kernel partitions are 'bare flash' 3MB. Stock bootloader has
no UBI support. Stock rootfs is UBIFS.

Flashing procedure.
Stock firmware uses custom kernel patch to mount squashfs
from a file that is located on UBIFS volume. This makes wiping
out this volume from within stock firmware difficult.
Instead this patch builds image that is flashable by stock firmware
and contains initrams image (with minimal set of packages
to fit into kernel partition). Once this is flashed one can reboot
into initramfs OpenWrt and use sysupgrade to flash OpenWrt including
rootfs into nand.
Note: factory image is only built if initramfs image is enabled.

Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>

SVN-Revision: 47881
2015-12-12 07:38:06 +00:00
..
adm5120 adm5120: disable the openwrt commandline hack 2015-08-30 12:17:54 +00:00
adm8668 build: Prevent more gzip timestamps 2015-07-14 09:57:45 +00:00
ar7 all: drop old uci-defaults.sh 2015-12-11 15:26:06 +00:00
ar71xx ar71xx: add support for Cisco's MR18 2015-12-12 06:42:29 +00:00
arc770 all: drop old uci-defaults.sh 2015-12-11 15:26:06 +00:00
arm64 kernel: update 4.1 to 4.1.10 2015-10-04 11:34:39 +00:00
at91 all: drop old uci-defaults.sh 2015-12-11 15:26:06 +00:00
ath25 all: drop old uci-defaults.sh 2015-12-11 15:26:06 +00:00
au1000 image: fix jffs2(_nand) image generation 2015-08-05 13:55:52 +00:00
bcm53xx all: drop old uci-defaults.sh 2015-12-11 15:26:06 +00:00
brcm47xx all: drop old uci-defaults.sh 2015-12-11 15:26:06 +00:00
brcm63xx all: drop old uci-defaults.sh 2015-12-11 15:26:06 +00:00
brcm2708 all: drop old uci-defaults.sh 2015-12-11 15:26:06 +00:00
cns3xxx kernel: update kernel 3.18 to version 3.18.23 2015-11-01 13:45:57 +00:00
gemini kernel: refresh patches for 4.1 2015-07-22 12:51:11 +00:00
generic ralink: bump to the target to v4.3 2015-12-10 19:06:32 +00:00
imx6 all: drop old uci-defaults.sh 2015-12-11 15:26:06 +00:00
ipq806x all: drop old uci-defaults.sh 2015-12-11 15:26:06 +00:00
ixp4xx kernel: update kernel 4.1 to version 4.1.11 2015-10-25 17:32:01 +00:00
kirkwood all: drop old uci-defaults.sh 2015-12-11 15:26:06 +00:00
lantiq all: drop old uci-defaults.sh 2015-12-11 15:26:06 +00:00
malta all: drop old uci-defaults.sh 2015-12-11 15:26:06 +00:00
mcs814x all: drop old uci-defaults.sh 2015-12-11 15:26:06 +00:00
mediatek kernel: update 4.1 to 4.1.13 2015-12-02 21:52:41 +00:00
mpc85xx all: drop old uci-defaults.sh 2015-12-11 15:26:06 +00:00
mvebu all: drop old uci-defaults.sh 2015-12-11 15:26:06 +00:00
mxs all: drop old uci-defaults.sh 2015-12-11 15:26:06 +00:00
netlogic all: drop old uci-defaults.sh 2015-12-11 15:26:06 +00:00
octeon all: drop old uci-defaults.sh 2015-12-11 15:26:06 +00:00
omap omap/Beagleboard: remove FEATURES override 2015-11-02 10:17:09 +00:00
omap24xx omap24xx: Append dtb to the zImage 2015-10-09 07:46:12 +00:00
orion all: drop old uci-defaults.sh 2015-12-11 15:26:06 +00:00
oxnas all: drop old uci-defaults.sh 2015-12-11 15:26:06 +00:00
ppc40x ppc40x: upgrade to 3.18 2015-04-12 20:48:13 +00:00
ppc44x image: fix jffs2(_nand) image generation 2015-08-05 13:55:52 +00:00
pxa kernel: disable ARCH_NEEDS_CPU_IDLE_COUPLED 2015-03-06 07:56:34 +00:00
ramips ramips: add support for Ubiquiti EdgeRouter X (UBNT-ERX) 2015-12-12 07:38:06 +00:00
rb532 rb532: prepare switch to 4.1 2015-10-26 09:00:35 +00:00
realview all: drop old uci-defaults.sh 2015-12-11 15:26:06 +00:00
sunxi all: drop old uci-defaults.sh 2015-12-11 15:26:06 +00:00
uml uml: backport another upstream patch to fix compile errors 2015-09-28 12:22:35 +00:00
x86 x86: add generic profiles to x86_64, kvm_guest and xen_domu 2015-11-08 20:39:24 +00:00
xburst kernel: update kernel 3.18 to version 3.18.23 2015-11-01 13:45:57 +00:00
Makefile