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?
The same link as pointed above. I've simply refreshed archive
Its still not giving me an ip address unless i manually issue the commands you told me to do originally.
i manually issued the commands to get back into LUCI and now its not letting me change the password.
In serial console run command firstboot and after reboot show output of command
cat /etc/config/network
root@OpenWrt:/# cat /etc/config/network
cat: can't open '/etc/config/network': No such file or directory
Pls show output of command:
dmesg
root@OpenWrt:/# dmesg
[ 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] On node 0 totalpages: 16384
[ 0.000000] free_area_init_node: node 0, pgdat 8047fa90, node_mem_map 81000040
[ 0.000000] Normal zone: 128 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 16384 pages, LIFO batch:3
[ 0.000000] random: get_random_bytes called from 0x80483740 with crng_init=0
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 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=000462c0
[ 0.000000] Readback ErrCtl register=000462c0
[ 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.084574] 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.384610] PCI host bridge /pcie@10140000 ranges:
[ 0.389198] MEM 0x0000000020000000..0x000000002fffffff
[ 0.394214] IO 0x0000000010160000..0x000000001016ffff
[ 0.416256] mt7621_gpio 10000600.gpio: registering 32 gpios
[ 0.421907] mt7621_gpio 10000600.gpio: registering 32 gpios
[ 0.427432] mt7621_gpio 10000600.gpio: registering 32 gpios
[ 0.433813] PCI host bridge to bus 0000:00
[ 0.437724] pci_bus 0000:00: root bus resource [mem 0x20000000-0x2fffffff]
[ 0.444407] pci_bus 0000:00: root bus resource [io 0xffffffff]
[ 0.450067] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 0.456637] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.464308] pci 0000:00:00.0: [14c3:0801] type 01 class 0x060400
[ 0.464352] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[ 0.464368] pci 0000:00:00.0: reg 0x14: [mem 0x20200000-0x2020ffff]
[ 0.464449] pci 0000:00:00.0: supports D1
[ 0.464460] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[ 0.464916] pci 0000:01:00.0: [14c3:7662] type 00 class 0x028000
[ 0.464984] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[ 0.465043] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[ 0.465157] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[ 0.465399] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[ 0.465418] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 01
[ 0.465465] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[ 0.471855] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[ 0.478526] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
[ 0.485097] pci 0000:00:00.0: BAR 9: assigned [mem 0x20100000-0x201fffff pref]
[ 0.492047] pci 0000:00:00.0: BAR 1: assigned [mem 0x20200000-0x2020ffff]
[ 0.498627] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff 64bit]
[ 0.505671] pci 0000:01:00.0: BAR 6: assigned [mem 0x20100000-0x2010ffff pref]
[ 0.512647] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 0.517417] pci 0000:00:00.0: bridge window [mem 0x20000000-0x200fffff]
[ 0.523988] pci 0000:00:00.0: bridge window [mem 0x20100000-0x201fffff pref]
[ 0.535903] clocksource: Switched to clocksource MIPS
[ 0.541907] NET: Registered protocol family 2
[ 0.547135] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.553828] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.560017] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.566271] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.571871] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.578221] NET: Registered protocol family 1
[ 0.582448] PCI: CLS 0 bytes, default 32
[ 0.585772] Crashlog allocated RAM at address 0x3f00000
[ 0.592487] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.604650] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.610282] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.630266] io scheduler noop registered
[ 0.633998] io scheduler deadline registered (default)
[ 0.639941] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 0.648881] console [ttyS0] disabled
[ 0.652320] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
[ 0.661100] console [ttyS0] enabled
[ 0.668104] bootconsole [early0] disabled
[ 0.677664] spi-mt7621 10000b00.spi: sys_freq: 193333333
[ 0.690255] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[ 0.695432] 5 fixed-partitions partitions found on MTD device spi0.0
[ 0.701940] Creating 5 MTD partitions on "spi0.0":
[ 0.706827] 0x000000000000-0x000000030000 : "u-boot"
[ 0.712792] 0x000000030000-0x000000040000 : "u-boot-env"
[ 0.719136] 0x000000040000-0x000000050000 : "factory"
[ 0.725111] 0x000000050000-0x000000ff0000 : "firmware"
[ 0.734046] 2 uimage-fw partitions found on MTD device firmware
[ 0.740124] Creating 2 MTD partitions on "firmware":
[ 0.745173] 0x000000000000-0x00000017e6cf : "kernel"
[ 0.751133] 0x00000017e6cf-0x000000fa0000 : "rootfs"
[ 0.757044] mtd: device 5 (rootfs) set to be root filesystem
[ 0.764266] 1 squashfs-split partitions found on MTD device rootfs
[ 0.770620] 0x0000003e0000-0x000000fa0000 : "rootfs_data"
[ 0.777064] 0x000000ff0000-0x000001000000 : "cbtinfo"
[ 0.783753] libphy: Fixed MDIO Bus: probed
[ 0.799382] rt3050-esw 10110000.esw: link changed 0x00
[ 0.806298] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[ 0.816568] NET: Registered protocol family 10
[ 0.825261] Segment Routing with IPv6
[ 0.829180] NET: Registered protocol family 17
[ 0.833748] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 0.846922] 8021q: 802.1Q VLAN Support v1.8
[ 0.858273] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[ 0.872038] Freeing unused kernel memory: 1204K
[ 0.876667] This architecture does not have kernel memory protection.
[ 1.564390] init: Console is alive
[ 1.568183] init: - watchdog -
[ 2.299165] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 2.315958] random: fast init done
[ 2.434953] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 2.452855] init: - preinit -
[ 3.539751] rt3050-esw 10110000.esw: link changed 0x00
[ 3.719643] random: procd: uninitialized urandom read (4 bytes read)
[ 6.980376] jffs2: notice: (378) jffs2_build_xattr_subsystem: complete building xattr subsystem, 5 of xdatum (0 unchecked, 5 orphan) and 17 of xref (2 dead, 15 orphan) found.
[ 6.997840] mount_root: overlay filesystem has not been fully initialized yet
[ 7.005710] mount_root: switching to jffs2 overlay
[ 7.035819] overlayfs: upper fs does not support tmpfile.
[ 7.045101] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 7.178005] procd: - early -
[ 7.181052] procd: - watchdog -
[ 7.633837] rt3050-esw 10110000.esw: link changed 0x01
[ 7.848913] procd: - watchdog -
[ 7.852454] procd: - ubus -
[ 8.005550] random: ubusd: uninitialized urandom read (4 bytes read)
[ 8.101696] random: ubusd: uninitialized urandom read (4 bytes read)
[ 8.108787] random: ubusd: uninitialized urandom read (4 bytes read)
[ 8.116390] procd: - init -
[ 9.215684] kmodloader: loading kernel modules from /etc/modules.d/*
[ 9.422184] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 9.444942] Loading modules backported from Linux version v4.19.98-0-gd183c8e2647a
[ 9.452700] Backport generated by backports.git v4.19.98-1-0-g8204eb99
[ 9.478488] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 9.504289] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[ 9.629737] xt_time: kernel timezone is -0000
[ 9.834928] mt76_wmac 10300000.wmac: ASIC revision: 76280001
[ 9.939048] urngd: v1.0.2 started.
[ 10.141370] random: crng init done
[ 10.144829] random: 6 urandom warning(s) missed due to ratelimiting
[ 10.878206] mt76_wmac 10300000.wmac: Firmware Version: 20151201
[ 10.884227] mt76_wmac 10300000.wmac: Build Time: 20151201183641
[ 10.905962] mt76_wmac 10300000.wmac: firmware init done
[ 11.076968] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 11.187852] mt76x2e 0000:01:00.0: card - bus=0x1, slot = 0x0 irq=4
[ 11.194323] mt76x2e 0000:01:00.0: ASIC revision: 76120044
[ 12.262392] mt76x2e 0000:01:00.0: ROM patch build: 20141115060606a
[ 12.278169] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
[ 12.283746] mt76x2e 0000:01:00.0: Build: 1
[ 12.287976] mt76x2e 0000:01:00.0: Build Time: 201507311614____
[ 12.315918] mt76x2e 0000:01:00.0: Firmware running!
[ 12.324076] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[ 12.348815] PPP generic driver version 2.4.2
[ 12.360954] NET: Registered protocol family 24
[ 12.374508] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 32.216914] br-lan: port 1(eth0.1) entered blocking state
[ 32.222406] br-lan: port 1(eth0.1) entered disabled state
[ 32.228480] device eth0.1 entered promiscuous mode
[ 32.233350] device eth0 entered promiscuous mode
[ 32.290063] br-lan: port 1(eth0.1) entered blocking state
[ 32.295556] br-lan: port 1(eth0.1) entered forwarding state
[ 32.301519] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[ 33.242765] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
i rebooted it and now the first command worked.
root@OpenWrt:/# cat /etc/config/network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fdde:f35b:bca3::/48'
config interface 'lan'
option type 'bridge'
option ifname 'eth0.1'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'
config device 'lan_eth0_1_dev'
option name 'eth0.1'
option macaddr '30:23:03:fe:cb:75'
config interface 'wan'
option ifname 'eth0.2'
option proto 'dhcp'
config device 'wan_eth0_2_dev'
option name 'eth0.2'
option macaddr '30:23:03:fe:cb:76'
config interface 'wan6'
option ifname 'eth0.2'
option proto 'dhcpv6'
Something wrong. No switch config in network configuration. It's possibly bug in 19.07.2 release. I'll rebuild release 19.07.1 in couple of minutes for test. Ok?
sounds good to me! i'll be waiting to test it.
Version 19.07.1 here
After upgrade in serial console run firstboot command and show /etc/config/network again.
did that and this is what it says but it assigns an IP address now.
root@OpenWrt:/# show /etc/config/network
/bin/ash: show: not found
Command looks like:
cat /etc/config/network
root@OpenWrt:/# cat /etc/config/network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fd0b:e6e8:7ca8::/48'
config interface 'lan'
option type 'bridge'
option ifname 'eth0.1'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'
config device 'lan_eth0_1_dev'
option name 'eth0.1'
option macaddr '30:23:03:fe:cb:75'
config interface 'wan'
option ifname 'eth0.2'
option proto 'dhcp'
config device 'wan_eth0_2_dev'
option name 'eth0.2'
option macaddr '30:23:03:fe:cb:76'
config interface 'wan6'
option ifname 'eth0.2'
option proto 'dhcpv6'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '0 1 2 3 6t'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '4 6t'