Support for Linksys E2500 V4

This is a bad flash because erase.flash is not supported on your u-boot, so the flash was not erased. I think the command would be erase 0xbc050000 0x410000 instead. That would erase enough space for the firmware (length 0x400101) starting at bc050000.

Same end result.

[03050D09][03050D0A][87870000][31315252][00313153]
DU Setting Cal Done


U-Boot 1.1.3 (Jun 26 2019 - 16:03:40)

CBT: 0.1.1
Board: Ralink APSoC DRAM:  64 MB
relocate_code Pointer at: 83fb0000
flash manufacture id: c2, device id 20 18
find flash: MX25L12805D
============================================
Ralink UBoot Version: 5.0.0.0
--------------------------------------------
ASIC 7628_MP (Port5<->None)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Jun 26 2019  Time:16:03:40
============================================
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768

 ##### The CPU freq = 580 MHZ ####
 estimate memory size =64 Mbytes
RESET MT7628 PHY!!!!!!
 mdio.w addr[0x00000007]  value[0x00077070]

 mdio.w addr[0x0000000D]  value[0x0000001F]

 mdio.w addr[0x0000000E]  value[0x00000024]

 mdio.w addr[0x0000000D]  value[0x0000401F]

 mdio.w addr[0x0000000E]  value[0x00000000]

This verison of Uboot support Httpd Server 0.9

Please choose the operation:
   1: Load system code to SDRAM via TFTP.
   2: Load system code then write to Flash via TFTP.
   3: Boot system code via Flash (default).
   4: Entr boot command line interface.
   7: Load Boot Loader code then write to Flash via Serial.
   9: Load Boot Loader code then write to Flash via TFTP.
default: 3

You choosed 4
                                                                                                                                                           0


4: System Enter Boot Command Line Interface.

U-Boot 1.1.3 (Jun 26 2019 - 16:03:40)
MT7628 # tftpboot bc050000 test.bin

 NetTxPacket = 0x83FE39C0

 KSEG1ADDR(NetTxPacket) = 0xA3FE39C0

 NetLoop,call eth_halt !

 NetLoop,call eth_init !
Trying Eth0 (10/100-M)

 Waitting for RX_DMA_BUSY status Start... done


 ETH_STATE_ACTIVE!!
TFTP from server 10.10.10.3; our IP address is 10.10.10.123
Filename 'test.bin'.

 TIMEOUT_COUNT=10,Load address: 0xbc050000
Loading: checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
Got ARP REPLY, set server/gtwy eth addr (38:60:77:b8:17:36)
Got it
#################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ##############Got ARP REQUEST, return our IP
###################################################
         #################################################################
         #################################################################
         #################################################################
         ########################################
done
Bytes transferred = 4194561 (400101 hex)
LoadAddr=bc050000 NetBootFileXferSize= 00400101
MT7628 # erase.linux bf050000 410000
Usage:
erase   - erase SPI FLASH memory

MT7628 # cp.linux bc050000

 Copy linux image[4194561 byte] to SPI Flash[0x00050000]....
................................................................
MT7628 # reset

[03050D09][03050D0A][87870000][31315252][00313153]
DU Setting Cal Done


U-Boot 1.1.3 (Jun 26 2019 - 16:03:40)

CBT: 0.1.1
Board: Ralink APSoC DRAM:  64 MB
relocate_code Pointer at: 83fb0000
******************************
Software System Reset Occurred
******************************
flash manufacture id: c2, device id 20 18
find flash: MX25L12805D
============================================
Ralink UBoot Version: 5.0.0.0
--------------------------------------------
ASIC 7628_MP (Port5<->None)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Jun 26 2019  Time:16:03:40
============================================
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768

 ##### The CPU freq = 580 MHZ ####
 estimate memory size =64 Mbytes
RESET MT7628 PHY!!!!!!
 mdio.w addr[0x00000007]  value[0x00077070]

 mdio.w addr[0x0000000D]  value[0x0000001F]

 mdio.w addr[0x0000000E]  value[0x00000024]

 mdio.w addr[0x0000000D]  value[0x0000401F]

 mdio.w addr[0x0000000E]  value[0x00000000]

This verison of Uboot support Httpd Server 0.9

Please choose the operation:
   1: Load system code to SDRAM via TFTP.
   2: Load system code then write to Flash via TFTP.
   3: Boot system code via Flash (default).
   4: Entr boot command line interface.
   7: Load Boot Loader code then write to Flash via Serial.
   9: Load Boot Loader code then write to Flash via TFTP.
default: 3                                                                                                                                                 0

3: System Boot system code via Flash.
ethernet init

## Booting image at bc050000 ...
Bad Header Checksum!

 NetTxPacket = 0x83FE39C0

 KSEG1ADDR(NetTxPacket) = 0xA3FE39C0
Trying Eth0 (10/100-M)

 Waitting for RX_DMA_BUSY status Start... done


 ETH_STATE_ACTIVE!!
ethaddr 0:0:aa:bb:cc:dd
gatewayip 0
SubnetMask 0
starting httpd server at 192.168.1.1
http start

Abort
   Image Name:   LI@Q
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    205454 Bytes = 200.6 kB
   Load Address: 80000000
   Entry Point:  80000000
   Verifying Checksum ... Bad Data CRC: ntohl(hdr->ih_dcrc)!

 NetTxPacket = 0x83FF5FC0

 Packet Buffer is empty !


I've forgot to say that you must rename test firmware file into test.bin before manupulations.
If your uboot do not support erase.linux command you can try

spi erase 50000 410000

or as mk24 say:

erase bc050000 410000

If command cp.linux isn't supported than try

cp.b 82000000 bc050000

all of the commands are start to confuse me. can we get a list of commands that i need to run? so far the router is brick. More so than anything the addresses between both people helping are confusing me. this is what my notepad currently looks like. Also the spi erase command appears to have worked.

which out of these is wrong and which out of these is right?

bc050000



tftpboot bc050000 test.bin
erase.linux
cp.linux bf050000
reset





tftpboot 82000000 test.bin
erase.linux
cp.linux 82000000
reset


cp 82000000
cp.82000000


erase.linux bf050000 410000
cp.linux bf050000 410000
erase.linux 410000

I got it to do something! these are the commands i sent to it.

tftpboot 82000000 test.bin
spi erase 50000 410000
cp.linux 82000000
reset

Step by step

  1. Hit "4" to enter uboot comand line.
  2. Load test firmware file test.bin with command:
    tftpboot 82000000 test.bin
  3. Erase part of flash which contain firmware:
    spi erase 50000 410000
    or (if not supported)
    erase bc050000 410000
    (flash is mapped at bc000000 in memory)
  4. Copy firmware from memoty at 82000000 to flash 50000
    cp.linuix 82000000
    or (if unsupported)
    cp.b 82000000 bc050000
  5. Reset device with
    reset

Good news! We're in!
This is the current output and where im at over serial connection.

This verison of Uboot support Httpd Server 0.9

Please choose the operation:
   1: Load system code to SDRAM via TFTP.
   2: Load system code then write to Flash via TFTP.
   3: Boot system code via Flash (default).
   4: Entr boot command line interface.
   7: Load Boot Loader code then write to Flash via Serial.
   9: Load Boot Loader code then write to Flash via TFTP.
default: 3                                                                                                                                                 0

3: System Boot system code via Flash.
ethernet init

## Booting image at bc050000 ...
   Image Name:   MIPS OpenWrt Linux-4.14.171
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1566351 Bytes =  1.5 MB
   Load Address: 80000000
   Entry Point:  80000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 64

Starting kernel ...

[    0.000000] Linux version 4.14.171 (builder@buildhost) (gcc version 7.5.0 (OpenWrt GCC 7.5.0 r10947-65030d81f3)) #0 Thu Feb 27 21:05:12 2020
[    0.000000] Board has DDR2
[    0.000000] Analog PMU set to hw control
[    0.000000] Digital PMU set to hw control
[    0.000000] SoC Type: MediaTek MT7628AN ver:1 eco:2
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019655 (MIPS 24KEc)
[    0.000000] MIPS: machine is Linksys E2500 v4
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] random: get_random_bytes called from 0x80483740 with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Writing ErrCtl register=00047ec0
[    0.000000] Readback ErrCtl register=00047ec0
[    0.000000] Memory: 58820K/65536K available (3922K kernel code, 186K rwdata, 504K rodata, 1204K init, 208K bss, 6716K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 256
[    0.000000] intc: using register map from devicetree
[    0.000000] CPU Clock: 580MHz
[    0.000000] timer_probe: no matching timers found
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[    0.000009] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[    0.007546] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.073524] pid_max: default: 32768 minimum: 301
[    0.078211] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.084573] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.097175] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.106672] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.112614] pinctrl core: initialized pinctrl subsystem
[    0.120241] NET: Registered protocol family 16
[    0.229263] mt7620-pci 10140000.pcie: Port 0 N_FTS = 1b105000
[    0.384610] PCI host bridge /pcie@10140000 ranges:
[    0.389198]  MEM 0x0000000020000000..0x000000002fffffff
[    0.394214]   IO 0x0000000010160000..0x000000001016ffff
[    0.416254] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.421905] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.427430] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.433811] PCI host bridge to bus 0000:00
[    0.437723] pci_bus 0000:00: root bus resource [mem 0x20000000-0x2fffffff]
[    0.444405] pci_bus 0000:00: root bus resource [io  0xffffffff]
[    0.450065] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.456635] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.464744] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.473231] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    0.479566] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    0.486343] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
[    0.492845] pci 0000:00:00.0: BAR 9: assigned [mem 0x20100000-0x201fffff pref]
[    0.499836] pci 0000:00:00.0: BAR 1: assigned [mem 0x20200000-0x2020ffff]
[    0.506376] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff 64bit]
[    0.513461] pci 0000:01:00.0: BAR 6: assigned [mem 0x20100000-0x2010ffff pref]
[    0.520395] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.525205] pci 0000:00:00.0:   bridge window [mem 0x20000000-0x200fffff]
[    0.531736] pci 0000:00:00.0:   bridge window [mem 0x20100000-0x201fffff pref]
[    0.543611] clocksource: Switched to clocksource MIPS
[    0.549686] NET: Registered protocol family 2
[    0.554880] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.561572] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.567762] TCP: Hash tables configured (established 1024 bind 1024)
[    0.574016] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.579616] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.585965] NET: Registered protocol family 1
[    0.593518] Crashlog allocated RAM at address 0x3f00000
[    0.600233] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.612395] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.618027] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.638015] io scheduler noop registered
[    0.641747] io scheduler deadline registered (default)
[    0.647689] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.656629] console [ttyS0] disabled
[    0.660069] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
[    0.668848] console [ttyS0] enabled
[    0.668848] console [ttyS0] enabled
[    0.675854] bootconsole [early0] disabled
[    0.675854] bootconsole [early0] disabled
[    0.685411] spi-mt7621 10000b00.spi: sys_freq: 193333333
[    0.698005] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[    0.703182] 5 fixed-partitions partitions found on MTD device spi0.0
[    0.709690] Creating 5 MTD partitions on "spi0.0":
[    0.714577] 0x000000000000-0x000000030000 : "u-boot"
[    0.720541] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.726886] 0x000000040000-0x000000050000 : "factory"
[    0.732861] 0x000000050000-0x000000ff0000 : "firmware"
[    0.741795] 2 uimage-fw partitions found on MTD device firmware
[    0.747873] Creating 2 MTD partitions on "firmware":
[    0.752921] 0x000000000000-0x00000017e6cf : "kernel"
[    0.758883] 0x00000017e6cf-0x000000fa0000 : "rootfs"
[    0.764794] mtd: device 5 (rootfs) set to be root filesystem
[    0.772016] 1 squashfs-split partitions found on MTD device rootfs
[    0.778370] 0x0000003e0000-0x000000fa0000 : "rootfs_data"
[    0.784815] 0x000000ff0000-0x000001000000 : "cbtinfo"
[    0.791503] libphy: Fixed MDIO Bus: probed
[    0.807215] rt3050-esw 10110000.esw: link changed 0x00
[    0.814124] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[    0.824388] NET: Registered protocol family 10
[    0.833082] Segment Routing with IPv6
[    0.837001] NET: Registered protocol family 17
[    0.841570] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    0.854744] 8021q: 802.1Q VLAN Support v1.8
[    0.866082] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    0.879835] Freeing unused kernel memory: 1204K
[    0.884464] This architecture does not have kernel memory protection.
[    1.572332] init: Console is alive
[    1.576125] init: - watchdog -
[    2.306671] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    2.313646] random: fast init done
[    2.442736] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    2.460640] init: - preinit -
[    3.547069] rt3050-esw 10110000.esw: link changed 0x00
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    3.727363] random: procd: uninitialized urandom read (4 bytes read)
[    6.954617] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[    6.988619] urandom-seed: Seed file not found (/etc/urandom.seed)
[    7.120791] procd: - early -
[    7.124684] procd: - watchdog -
[    7.641379] rt3050-esw 10110000.esw: link changed 0x01
[    7.791415] procd: - watchdog -
[    7.795021] procd: - ubus -
[    7.948950] random: ubusd: uninitialized urandom read (4 bytes read)
[    8.045130] random: ubusd: uninitialized urandom read (4 bytes read)
[    8.052142] random: ubusd: uninitialized urandom read (4 bytes read)
[    8.059704] procd: - init -
Please press Enter to activate this console.
[    9.147956] kmodloader: loading kernel modules from /etc/modules.d/*
[    9.349922] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    9.376954] Loading modules backported from Linux version v4.19.98-0-gd183c8e2647a
[    9.384710] Backport generated by backports.git v4.19.98-1-0-g8204eb99
[    9.416218] ip_tables: (C) 2000-2006 Netfilter Core Team
[    9.440842] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[    9.561577] xt_time: kernel timezone is -0000
[    9.766876] mt76_wmac 10300000.wmac: ASIC revision: 76280001
[    9.872601] urngd: v1.0.2 started.
[   10.077393] random: crng init done
[   10.080851] random: 6 urandom warning(s) missed due to ratelimiting
[   10.805895] mt76_wmac 10300000.wmac: Firmware Version: 20151201
[   10.811918] mt76_wmac 10300000.wmac: Build Time: 20151201183641
[   10.853626] mt76_wmac 10300000.wmac: firmware init done
[   11.137917] mt76x2e 0000:01:00.0: card - bus=0x1, slot = 0x0 irq=4
[   11.144489] mt76x2e 0000:01:00.0: ASIC revision: 76120044
[   12.192561] mt76x2e 0000:01:00.0: ROM patch build: 20141115060606a
[   12.208370] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
[   12.214026] mt76x2e 0000:01:00.0: Build: 1
[   12.218183] mt76x2e 0000:01:00.0: Build Time: 201507311614____
[   12.243624] mt76x2e 0000:01:00.0: Firmware running!
[   12.276526] PPP generic driver version 2.4.2
[   12.288698] NET: Registered protocol family 24
[   12.302265] kmodloader: done loading kernel modules from /etc/modules.d/*
[   40.461338] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   40.483759] jffs2_build_filesystem(): unlocking the mtd device...
[   40.483774] done.
[   40.491994] jffs2_build_filesystem(): erasing all blocks after the end marker...
[   41.420566] br-lan: port 1(eth0.1) entered blocking state
[   41.433925] br-lan: port 1(eth0.1) entered disabled state
[   41.439757] device eth0.1 entered promiscuous mode
[   41.444672] device eth0 entered promiscuous mode
[   41.510257] br-lan: port 1(eth0.1) entered blocking state
[   41.515816] br-lan: port 1(eth0.1) entered forwarding state
[   41.521711] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   42.500715] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   89.051651] done.
[   89.053693] jffs2: notice: (1205) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   89.266584] overlayfs: upper fs does not support tmpfile.



BusyBox v1.30.1 () built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 19.07.2, r10947-65030d81f3
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:/#

so i guess the next step is to get the WAN port online so i can start getting packages and install LUCI right?

I've install luci into firmware.
Next step is check/find all buttons and leds. I've configure reset button with most popular value but only you can test it. SHot hit of reset must reboot router.

well as of right now its not assigning an IP address to the PC so no access to LUCI. not sure if there is a way to test LED's over the command line.

This is where i currently am with it booting.


[03050D09][03050D0A][87870000][31315252][00313153]
DU Setting Cal Done


U-Boot 1.1.3 (Jun 26 2019 - 16:03:40)

CBT: 0.1.1
Board: Ralink APSoC DRAM:  64 MB
relocate_code Pointer at: 83fb0000
flash manufacture id: c2, device id 20 18
find flash: MX25L12805D
============================================
Ralink UBoot Version: 5.0.0.0
--------------------------------------------
ASIC 7628_MP (Port5<->None)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Jun 26 2019  Time:16:03:40
============================================
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768

 ##### The CPU freq = 580 MHZ ####
 estimate memory size =64 Mbytes
RESET MT7628 PHY!!!!!!
 mdio.w addr[0x00000007]  value[0x00077070]

 mdio.w addr[0x0000000D]  value[0x0000001F]

 mdio.w addr[0x0000000E]  value[0x00000024]

 mdio.w addr[0x0000000D]  value[0x0000401F]

 mdio.w addr[0x0000000E]  value[0x00000000]

This verison of Uboot support Httpd Server 0.9

Please choose the operation:
   1: Load system code to SDRAM via TFTP.
   2: Load system code then write to Flash via TFTP.
   3: Boot system code via Flash (default).
   4: Entr boot command line interface.
   7: Load Boot Loader code then write to Flash via Serial.
   9: Load Boot Loader code then write to Flash via TFTP.
default: 3                                                                   0

3: System Boot system code via Flash.
ethernet init

## Booting image at bc050000 ...
   Image Name:   MIPS OpenWrt Linux-4.14.171
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1566351 Bytes =  1.5 MB
   Load Address: 80000000
   Entry Point:  80000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 64

Starting kernel ...

[    0.000000] Linux version 4.14.171 (builder@buildhost) (gcc version 7.5.0 (OpenWrt GCC 7.5.0 r10947-65030d81f3)) #0 Thu Feb 27 21:05:12 2020
[    0.000000] Board has DDR2
[    0.000000] Analog PMU set to hw control
[    0.000000] Digital PMU set to hw control
[    0.000000] SoC Type: MediaTek MT7628AN ver:1 eco:2
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019655 (MIPS 24KEc)
[    0.000000] MIPS: machine is Linksys E2500 v4
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] random: get_random_bytes called from 0x80483740 with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Writing ErrCtl register=00047acb
[    0.000000] Readback ErrCtl register=00047acb
[    0.000000] Memory: 58820K/65536K available (3922K kernel code, 186K rwdata, 504K rodata, 1204K init, 208K bss, 6716K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 256
[    0.000000] intc: using register map from devicetree
[    0.000000] CPU Clock: 580MHz
[    0.000000] timer_probe: no matching timers found
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[    0.000009] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[    0.007546] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.073524] pid_max: default: 32768 minimum: 301
[    0.078211] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.084573] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.097175] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.106671] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.112614] pinctrl core: initialized pinctrl subsystem
[    0.120241] NET: Registered protocol family 16
[    0.229263] mt7620-pci 10140000.pcie: Port 0 N_FTS = 1b105000
[    0.384609] PCI host bridge /pcie@10140000 ranges:
[    0.389197]  MEM 0x0000000020000000..0x000000002fffffff
[    0.394214]   IO 0x0000000010160000..0x000000001016ffff
[    0.416255] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.421906] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.427431] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.433812] PCI host bridge to bus 0000:00
[    0.437723] pci_bus 0000:00: root bus resource [mem 0x20000000-0x2fffffff]
[    0.444406] pci_bus 0000:00: root bus resource [io  0xffffffff]
[    0.450066] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.456636] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.464744] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.473230] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    0.479565] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    0.486342] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
[    0.492844] pci 0000:00:00.0: BAR 9: assigned [mem 0x20100000-0x201fffff pref]
[    0.499835] pci 0000:00:00.0: BAR 1: assigned [mem 0x20200000-0x2020ffff]
[    0.506375] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff 64bit]
[    0.513460] pci 0000:01:00.0: BAR 6: assigned [mem 0x20100000-0x2010ffff pref]
[    0.520395] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.525205] pci 0000:00:00.0:   bridge window [mem 0x20000000-0x200fffff]
[    0.531735] pci 0000:00:00.0:   bridge window [mem 0x20100000-0x201fffff pref]
[    0.543611] clocksource: Switched to clocksource MIPS
[    0.549685] NET: Registered protocol family 2
[    0.554880] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.561572] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.567762] TCP: Hash tables configured (established 1024 bind 1024)
[    0.574016] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.579616] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.585965] NET: Registered protocol family 1
[    0.593518] Crashlog allocated RAM at address 0x3f00000
[    0.600233] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.612395] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.618027] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.638013] io scheduler noop registered
[    0.641745] io scheduler deadline registered (default)
[    0.647687] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.656627] console [ttyS0] disabled
[    0.660068] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
[    0.668846] console [ttyS0] enabled
[    0.668846] console [ttyS0] enabled
[    0.675852] bootconsole [early0] disabled
[    0.675852] bootconsole [early0] disabled
[    0.685410] spi-mt7621 10000b00.spi: sys_freq: 193333333
[    0.698002] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[    0.703178] 5 fixed-partitions partitions found on MTD device spi0.0
[    0.709686] Creating 5 MTD partitions on "spi0.0":
[    0.714574] 0x000000000000-0x000000030000 : "u-boot"
[    0.720538] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.726883] 0x000000040000-0x000000050000 : "factory"
[    0.732858] 0x000000050000-0x000000ff0000 : "firmware"
[    0.741792] 2 uimage-fw partitions found on MTD device firmware
[    0.747870] Creating 2 MTD partitions on "firmware":
[    0.752918] 0x000000000000-0x00000017e6cf : "kernel"
[    0.758880] 0x00000017e6cf-0x000000fa0000 : "rootfs"
[    0.764790] mtd: device 5 (rootfs) set to be root filesystem
[    0.772013] 1 squashfs-split partitions found on MTD device rootfs
[    0.778367] 0x0000003e0000-0x000000fa0000 : "rootfs_data"
[    0.784811] 0x000000ff0000-0x000001000000 : "cbtinfo"
[    0.791499] libphy: Fixed MDIO Bus: probed
[    0.807216] rt3050-esw 10110000.esw: link changed 0x00
[    0.814124] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[    0.824388] NET: Registered protocol family 10
[    0.833083] Segment Routing with IPv6
[    0.837002] NET: Registered protocol family 17
[    0.841571] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    0.854745] 8021q: 802.1Q VLAN Support v1.8
[    0.866091] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    0.879848] Freeing unused kernel memory: 1204K
[    0.884477] This architecture does not have kernel memory protection.
[    1.572334] init: Console is alive
[    1.576126] init: - watchdog -
[    2.306587] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    2.313523] random: fast init done
[    2.442648] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    2.460552] init: - preinit -
[    3.547332] rt3050-esw 10110000.esw: link changed 0x00
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    3.727368] random: procd: uninitialized urandom read (4 bytes read)
[    6.982725] jffs2: notice: (378) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (0 unchecked, 1 orphan) and 1 of xref (1 dead, 0 orphan) found.
[    6.999837] mount_root: switching to jffs2 overlay
[    7.030075] overlayfs: upper fs does not support tmpfile.
[    7.041050] urandom-seed: Seeding with /etc/urandom.seed
[    7.181626] procd: - early -
[    7.185534] procd: - watchdog -
[    7.641891] rt3050-esw 10110000.esw: link changed 0x01
[    7.854285] procd: - watchdog -
[    7.857833] procd: - ubus -
[    8.011205] random: ubusd: uninitialized urandom read (4 bytes read)
[    8.107835] random: ubusd: uninitialized urandom read (4 bytes read)
[    8.114889] random: ubusd: uninitialized urandom read (4 bytes read)
[    8.122373] procd: - init -
Please press Enter to activate this console.
[    9.229643] kmodloader: loading kernel modules from /etc/modules.d/*
[    9.429936] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    9.452693] Loading modules backported from Linux version v4.19.98-0-gd183c8e2647a
[    9.460448] Backport generated by backports.git v4.19.98-1-0-g8204eb99
[    9.496223] ip_tables: (C) 2000-2006 Netfilter Core Team
[    9.519448] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[    9.640211] xt_time: kernel timezone is -0000
[    9.846874] mt76_wmac 10300000.wmac: ASIC revision: 76280001
[    9.941095] urngd: v1.0.2 started.
[   10.140043] random: crng init done
[   10.143501] random: 6 urandom warning(s) missed due to ratelimiting
[   10.885913] mt76_wmac 10300000.wmac: Firmware Version: 20151201
[   10.891935] mt76_wmac 10300000.wmac: Build Time: 20151201183641
[   10.933628] mt76_wmac 10300000.wmac: firmware init done
[   11.215490] mt76x2e 0000:01:00.0: card - bus=0x1, slot = 0x0 irq=4
[   11.221973] mt76x2e 0000:01:00.0: ASIC revision: 76120044
[   12.162233] mt76x2e 0000:01:00.0: ROM patch build: 20141115060606a
[   12.174403] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
[   12.179979] mt76x2e 0000:01:00.0: Build: 1
[   12.184189] mt76x2e 0000:01:00.0: Build Time: 201507311614____
[   12.203627] mt76x2e 0000:01:00.0: Firmware running!
[   12.236560] PPP generic driver version 2.4.2
[   12.248792] NET: Registered protocol family 24
[   12.262407] kmodloader: done loading kernel modules from /etc/modules.d/*
[   23.854662] br-lan: port 1(eth0.1) entered blocking state
[   23.860153] br-lan: port 1(eth0.1) entered disabled state
[   23.866232] device eth0.1 entered promiscuous mode
[   23.871102] device eth0 entered promiscuous mode
[   23.933766] br-lan: port 1(eth0.1) entered blocking state
[   23.939260] br-lan: port 1(eth0.1) entered forwarding state
[   23.945197] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   24.869488] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready

Pls show output of commands:
ifconfig -a
swconfig dev switch0 show

ifconfig -a

BusyBox v1.30.1 () built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 19.07.2, r10947-65030d81f3
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:/# ifconfig -a
br-lan    Link encap:Ethernet  HWaddr 30:23:03:FE:CB:75
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::3223:3ff:fefe:cb75/64 Scope:Link
          inet6 addr: fdf6:d368:15ac::1/60 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:1784 (1.7 KiB)

eth0      Link encap:Ethernet  HWaddr 30:23:03:FE:CB:75
          inet6 addr: fe80::3223:3ff:fefe:cb75/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:222 errors:0 dropped:0 overruns:0 frame:0
          TX packets:65 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:30810 (30.0 KiB)  TX bytes:14109 (13.7 KiB)
          Interrupt:5

eth0.1    Link encap:Ethernet  HWaddr 30:23:03:FE:CB:75
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:1784 (1.7 KiB)

eth0.2    Link encap:Ethernet  HWaddr 30:23:03:FE:CB:76
          inet6 addr: fe80::3223:3ff:fefe:cb76/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:39 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:9736 (9.5 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:88 errors:0 dropped:0 overruns:0 frame:0
          TX packets:88 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:5984 (5.8 KiB)  TX bytes:5984 (5.8 KiB)

wlan0     Link encap:Ethernet  HWaddr 00:11:22:00:00:30
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan1     Link encap:Ethernet  HWaddr 00:00:00:00:00:10
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

swconfig dev switch0 show

root@OpenWrt:/# swconfig dev switch0 show
Global attributes:
        enable_vlan: 0
        alternate_vlan_disable: 0
        bc_storm_protect: 0
        led_frequency: 0
Port 0:
        disable: 0
        doubletag: 1
        untag: 1
        led: 5
        lan: 1
        recv_bad: 0
        recv_good: 286
        tr_bad: 0
        tr_good: 79
        pvid: 0
        link: port:0 link:up speed:100baseT full-duplex
Port 1:
        disable: 0
        doubletag: 1
        untag: 1
        led: 5
        lan: 1
        recv_bad: 0
        recv_good: 0
        tr_bad: 0
        tr_good: 0
        pvid: 0
        link: port:1 link:down
Port 2:
        disable: 0
        doubletag: 1
        untag: 1
        led: 5
        lan: 1
        recv_bad: 0
        recv_good: 0
        tr_bad: 0
        tr_good: 0
        pvid: 0
        link: port:2 link:down
Port 3:
        disable: 0
        doubletag: 1
        untag: 1
        led: 5
        lan: 1
        recv_bad: 0
        recv_good: 0
        tr_bad: 0
        tr_good: 0
        pvid: 0
        link: port:3 link:down
Port 4:
        disable: 0
        doubletag: 1
        untag: 1
        led: 5
        lan: 1
        recv_bad: 0
        recv_good: 0
        tr_bad: 0
        tr_good: 0
        pvid: 0
        link: port:4 link:down
Port 5:
        disable: 1
        doubletag: 1
        untag: 1
        led: ???
        lan: 1
        recv_bad: 0
        recv_good: 0
        tr_bad: 0
        tr_good: 0
        pvid: 0
        link: port:5 link:down
Port 6:
        disable: 0
        doubletag: 1
        untag: 1
        led: ???
        lan: ???
        recv_bad: ???
        recv_good: ???
        tr_bad: ???
        tr_good: ???
        pvid: 0
        link: port:6 link:up speed:1000baseT full-duplex
VLAN 0:
        ports: 0 1 2 3 4 5 6

Wrong config of internal switch. Run next commands:

swconfig dev switch0 set reset 1
swconfig dev switch0 set enable_vlan 1
swconfig dev switch0 vlan 1 set ports '0 1 2 3 6t'
swconfig dev switch0 vlan 2 set ports '4 6t'
swconfig dev switch0 set apply 1

And show again
swconfig dev switch0 show

Heres the results

root@OpenWrt:/# swconfig dev switch0 set reset 1
[   30.323372] rt3050-esw 10110000.esw: link changed 0x00
root@OpenWrt:/# [   34.496582] rt3050-esw 10110000.esw: link changed 0x01
swconfig dev switch0 set enable_vlan 1
root@OpenWrt:/# swconfig dev switch0 set enable_vlan 1
root@OpenWrt:/# swconfig dev switch0 vlan 1 set ports '0 1 2 3 6t'
root@OpenWrt:/# swconfig dev switch0 vlan 2 set ports '4 6t'
root@OpenWrt:/# swconfig dev switch0 set apply 1
root@OpenWrt:/# swconfig dev switch0 show
Global attributes:
        enable_vlan: 1
        alternate_vlan_disable: 0
        bc_storm_protect: 0
        led_frequency: 0
Port 0:
        disable: 0
        doubletag: 0
        untag: 1
        led: 5
        lan: 1
        recv_bad: 0
        recv_good: 329
        tr_bad: 0
        tr_good: 53
        pvid: 1
        link: port:0 link:up speed:100baseT full-duplex
Port 1:
        disable: 0
        doubletag: 0
        untag: 1
        led: 5
        lan: 1
        recv_bad: 0
        recv_good: 0
        tr_bad: 0
        tr_good: 0
        pvid: 1
        link: port:1 link:down
Port 2:
        disable: 0
        doubletag: 0
        untag: 1
        led: 5
        lan: 1
        recv_bad: 0
        recv_good: 0
        tr_bad: 0
        tr_good: 0
        pvid: 1
        link: port:2 link:down
Port 3:
        disable: 0
        doubletag: 0
        untag: 1
        led: 5
        lan: 1
        recv_bad: 0
        recv_good: 0
        tr_bad: 0
        tr_good: 0
        pvid: 1
        link: port:3 link:down
Port 4:
        disable: 0
        doubletag: 0
        untag: 1
        led: 5
        lan: 1
        recv_bad: 0
        recv_good: 0
        tr_bad: 0
        tr_good: 0
        pvid: 2
        link: port:4 link:down
Port 5:
        disable: 1
        doubletag: 0
        untag: 0
        led: ???
        lan: 1
        recv_bad: 0
        recv_good: 0
        tr_bad: 0
        tr_good: 0
        pvid: 0
        link: port:5 link:down
Port 6:
        disable: 0
        doubletag: 0
        untag: 0
        led: ???
        lan: ???
        recv_bad: ???
        recv_good: ???
        tr_bad: ???
        tr_good: ???
        pvid: 0
        link: port:6 link:up speed:1000baseT full-duplex
VLAN 1:
        ports: 0 1 2 3 6t
VLAN 2:
        ports: 4 6t

Ok. It must work now before reboot. Check pls.

after refreshing the network card it gets IP address and i can log into LUCI. whats next?

You can find switch menu in LUCI and configure switch constantly:
enable, add vlan 1 and vlan 2 as in command line, port 6 - CPU port must be in both vlan and is marked as tagged.
Or I can rebuild firmware with correct switch config.

it would be simpler for you to rebuild firmware with the correct changes. also none of the LED's are configured in LUCI but they appear to be working right.

Ok. I've refrashed archvie. You can upgrade firmware in LUCI. After that run command

firstboot

to reconfigure switch again.

do you have a link to the firmware?