Adding a new device, need help for network definition (Kimax U-35WF, ramips based NAS)

Hello.
I'm trying to assemble my firmware for the device Kimax U-35WF. I assembled this file of differences:

diff --git a/diffconfig b/diffconfig
new file mode 100644
index 0000000..eb11ea1
--- /dev/null
+++ b/diffconfig
@@ -0,0 +1,44 @@
+CONFIG_TARGET_ramips=y
+CONFIG_TARGET_ramips_mt7620=y
+CONFIG_TARGET_ramips_mt7620_DEVICE_u35wf=y
+CONFIG_ALL_NONSHARED=y
+CONFIG_DEVEL=y
+CONFIG_CCACHE=y
+CONFIG_IB=y
+CONFIG_IMAGEOPT=y
+# CONFIG_KERNEL_KALLSYMS is not set
+CONFIG_PACKAGE_libiwinfo-lua=y
+CONFIG_PACKAGE_liblua=y
+CONFIG_PACKAGE_libubus-lua=y
+CONFIG_PACKAGE_libuci-lua=y
+CONFIG_PACKAGE_lua=y
+CONFIG_PACKAGE_luci=y
+CONFIG_PACKAGE_luci-app-firewall=y
+CONFIG_PACKAGE_luci-base=y
+CONFIG_PACKAGE_luci-lib-ip=y
+CONFIG_PACKAGE_luci-lib-jsonc=y
+CONFIG_PACKAGE_luci-lib-nixio=y
+CONFIG_PACKAGE_luci-mod-admin-full=y
+CONFIG_PACKAGE_luci-proto-ipv6=y
+CONFIG_PACKAGE_luci-proto-ppp=y
+CONFIG_PACKAGE_luci-theme-bootstrap=y
+CONFIG_PACKAGE_rpcd=y
+CONFIG_PACKAGE_uhttpd=y
+CONFIG_PACKAGE_uhttpd-mod-ubus=y
+# CONFIG_PER_FEED_REPO_ADD_COMMENTED is not set
+CONFIG_SDK=y
+CONFIG_VERSIONOPT=y
+CONFIG_VERSION_BUG_URL=""
+CONFIG_VERSION_CODE=""
+CONFIG_VERSION_CODE_FILENAMES=y
+CONFIG_VERSION_DIST="LEDE"
+CONFIG_VERSION_FILENAMES=y
+CONFIG_VERSION_HWREV=""
+CONFIG_VERSION_MANUFACTURER=""
+CONFIG_VERSION_MANUFACTURER_URL=""
+CONFIG_VERSION_NICK=""
+CONFIG_VERSION_NUMBER=""
+CONFIG_VERSION_PRODUCT=""
+CONFIG_VERSION_REPO="http://downloads.lede-project.org/releases/17.01.2"
+CONFIG_VERSION_SUPPORT_URL=""
+# CONFIG_IB_STANDALONE is not set 
diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds
index 4e6eeb2..f4dc0f3 100755
--- a/target/linux/ramips/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/base-files/etc/board.d/01_leds
@@ -312,6 +312,10 @@ tiny-ac)
 	set_wifi_led "$board:orange:wifi"
 	set_usb_led "$board:green:usb"
 	;;
+u35wf)
+	set_wifi_led "$board:blue:wifi"
+	ucidef_set_led_netdev "lan" "LAN" "$board:green:ethernet" "eth0.1" "tx rx"
+	;;
 vocore)
 	ucidef_set_led_netdev "eth" "ETH" "$board:orange:eth" "eth0"
 	set_wifi_led "$board:green:status"
diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network
index 36cdc10..c694b34 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -165,6 +165,7 @@ ramips_setup_interfaces()
 	nw718|\
 	psr-680w|\
 	sl-r7205|\
+    u35wf|\
 	ur-336un|\
 	w502u|\
 	wr6202)
@@ -295,6 +296,7 @@ ramips_setup_macs()
 
 	case $board in
 	a5-v11|\
+    u35wf|\
 	ht-tm02)
 		lan_mac=$(cat /sys/class/net/eth0/address)
 		;;
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh
index 4ed18d7..3934811 100644
--- a/target/linux/ramips/base-files/etc/diag.sh
+++ b/target/linux/ramips/base-files/etc/diag.sh
@@ -150,6 +150,7 @@ get_status_led() {
 	linkits7688d)
 		[ "$1" = "upgrade" ] && status_led="mediatek:orange:wifi"
 		;;
+    u35wf|\
 	m2m)
 		status_led="$board:blue:wifi"
 		;;
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
index e642d56..a212f1c 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -472,6 +472,9 @@ ramips_board_detect() {
 	*"UR-336UN")
 		name="ur-336un"
 		;;
+    *"U35WF")
+	    name="u35wf"
+    	;;
 	*"V11ST-FE")
 		name="v11st-fe"
 		;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index 7f5b1dd..bf3beae 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -133,6 +133,7 @@ platform_check_image() {
 	timecloud|\
 	tiny-ac|\
 	ur-326n4g|\
+    u35wf|\
 	ur-336un|\
 	v22rw-2x2|\
 	vocore|\
diff --git a/target/linux/ramips/dts/U35WF.dts b/target/linux/ramips/dts/U35WF.dts
new file mode 100644
index 0000000..d759fa1
--- /dev/null
+++ b/target/linux/ramips/dts/U35WF.dts
@@ -0,0 +1,111 @@
+/dts-v1/;
+
+#include "mt7620n.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
+/ {
+	compatible = "u35wf", "ralink,mt7620n-soc";
+	model = "Kimax U-35WF (16Mb)";
+
+        gpio-leds {
+        compatible = "gpio-leds";
+
+		wifi {
+			label = "u35wf:blue:wifi";
+			gpios = <&gpio3 0 1>;
+		};
+
+		ethernet {
+			label = "u35wf:green:ethernet";
+			gpios = <&gpio2 4 1>;
+		};
+	};
+
+	gpio-keys-polled {
+		compatible = "gpio-keys-polled";
+		#address-cells = <1>;
+		#size-cells = <0>;
+		poll-interval = <20>;
+
+		reset {
+			label = "reset";
+			gpios = <&gpio2 3 1>;
+			linux,code = <KEY_RESTART>;
+		};
+	};
+};
+
+&gpio0 {
+	status = "okay";
+};
+
+&gpio2 {
+	status = "okay";
+};
+
+&gpio3 {
+	status = "okay";
+};
+
+&spi0 {
+	status = "okay";
+
+	m25p80@0 {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		compatible = "jedec,spi-nor";
+		reg = <0>;
+		spi-max-frequency = <10000000>;
+
+		partition@0 {
+			label = "u-boot";
+			reg = <0x0 0x30000>;
+			read-only;
+		};
+
+		partition@30000 {
+			label = "u-boot-env";
+			reg = <0x30000 0x10000>;
+			read-only;
+		};
+
+		factory: partition@40000 {
+			label = "factory";
+			reg = <0x40000 0x10000>;
+			read-only;
+		};
+
+		partition@50000 {
+			label = "firmware";
+            reg = <0x50000 0xfb0000>;
+		};
+	};
+};
+
+&ehci {
+	status = "okay";
+};
+
+&ohci {
+	status = "okay";
+};
+
+&ethernet {
+	mtd-mac-address = <&factory 0x4>;
+	mediatek,portmap = "wllll";
+};
+
+&wmac {
+	ralink,mtd-eeprom = <&factory 0>;
+};
+
+&pinctrl {
+	state_default: pinctrl0 {
+		default {
+		    ralink,group = "ephy", "wled", "pa", "i2c", "wdt", "uartf";
+		    ralink,function = "gpio";
+		};
+	};
+};
diff --git a/target/linux/ramips/image/mt7620.mk b/target/linux/ramips/image/mt7620.mk
index e27c405..f586f32 100644
--- a/target/linux/ramips/image/mt7620.mk
+++ b/target/linux/ramips/image/mt7620.mk
@@ -485,3 +485,20 @@ define Device/d240
   DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76 kmod-sdhci-mt7620
 endef
 TARGET_DEVICES += d240
+
+define Device/u35wf
+  DTS := U35WF
+  IMAGE_SIZE := $(ralink_default_fw_size_16M)
+  IMAGES += factory.bin
+  SUPPORTED_DEVICES += u35wf
+  IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE)
+  DEVICE_TITLE := Kimax U35WF (16Mb)
+  DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ohci uboot-envtools \
+  			kmod-usb-ledtrig-usbport kmod-ata-core kmod-scsi-core kmod-usb-storage  \
+  			kmod-usb-storage-extras swap-utils mount-utils kmod-nls-utf8  \
+  			kmod-nls-base kmod-fs-ext4 kmod-fs-exfat kmod-fs-msdos  \
+  			kmod-fs-ntfs kmod-fs-vfat ntfs-3g e2fsprogs  \
+  			block-mount blkid ntfsprogs_ntfs-3g 
+  DEFAULT_PACKAGES += $(DEVICE_PACKAGES)
+endef
+TARGET_DEVICES += u35wf

I used various descriptions of the network interface, in particular:
ucidef_set_interface_lan "eth0.2"
or
ucidef_add_switch "switch0" \
		"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "6@eth0"
or
ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
or
ucidef_add_switch "switch0" \
			"4:lan" "6t@eth0"

The firmware is compiled without errors, but after downloading to the device access to it is neither by telnet nor by ssh.
For download I use breed instead of uboot.
Tell me what I'm doing wrong?

this is my log on device com port

Trying to boot firmware from 0x00050000 in flash bank 0 ...
Reading data into memory ...
U-Boot firmware image header detected.
    Image Name:   MIPS LEDE Linux-4.4.71
    Data Size:    1261414 Bytes
    Load Address: 80000000
    Entry Point:  80000000
Uncompressing data (LZMA) ... done.
Flushing cache ... done.

Starting kernel at 0x80000000...

[    0.000000] Linux version 4.4.71 (filin@rsb-VirtualBox) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3435-65eec8bd5f) ) #0 Thu Jun 8 21:02:37 2017
[    0.000000] Board has DDR1
[    0.000000] Analog PMU set to hw control
[    0.000000] Digital PMU set to hw control
[    0.000000] SoC Type: MediaTek MT7620N ver:2 eco:6
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019650 (MIPS 24KEc)
[    0.000000] MIPS: machine is Kimax U-35WF (16Mb)
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    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] 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] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,57600 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=0006c6db
[    0.000000] Readback ErrCtl register=0006c6db
[    0.000000] Memory: 60780K/65536K available (2900K kernel code, 140K rwdata, 696K rodata, 160K init, 203K bss, 4756K 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] CPU Clock: 580MHz
[    0.000000] clocksource: systick: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 583261500 ns
[    0.000000] systick: enable autosleep mode
[    0.000000] systick: running - mult: 214748, shift: 32
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[    0.000011] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[    0.015445] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.080604] pid_max: default: 32768 minimum: 301
[    0.089916] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.102941] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.122134] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.141624] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.153874] pinctrl core: initialized pinctrl subsystem
[    0.164839] NET: Registered protocol family 16
[    0.191543] rt2880_gpio 10000600.gpio: registering 24 gpios
[    0.202560] rt2880_gpio 10000600.gpio: registering 24 irq handlers
[    0.214972] rt2880_gpio 10000660.gpio: registering 32 gpios
[    0.225948] rt2880_gpio 10000660.gpio: registering 32 irq handlers
[    0.238385] rt2880_gpio 10000688.gpio: registering 1 gpios
[    0.249191] rt2880_gpio 10000688.gpio: registering 1 irq handlers
[    0.262857] clocksource: Switched to clocksource systick
[    0.274754] NET: Registered protocol family 2
[    0.284203] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.297972] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.310568] TCP: Hash tables configured (established 1024 bind 1024)
[    0.323289] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.334820] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.347524] NET: Registered protocol family 1
[    0.360004] rt-timer 10000100.timer: maximum frequency is 1220Hz
[    0.372923] Crashlog allocated RAM at address 0x3f00000
[    0.398172] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.409688] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.431838] io scheduler noop registered
[    0.439548] io scheduler deadline registered (default)
[    0.449947] ralink-usb-phy usbphy: invalid resource
[    0.460180] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.473877] console [ttyS0] disabled
[    0.480867] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a Palmchip BK-3103
[    0.500632] console [ttyS0] enabled
[    0.500632] console [ttyS0] enabled
[    0.514421] bootconsole [early0] disabled
[    0.514421] bootconsole [early0] disabled
[    0.535002] spi spi0.0: force spi mode3
[    0.543206] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[    0.553333] 4 ofpart partitions found on MTD device spi0.0
[    0.564267] Creating 4 MTD partitions on "spi0.0":
[    0.573824] 0x000000000000-0x000000030000 : "u-boot"
[    0.585431] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.597849] 0x000000040000-0x000000050000 : "factory"
[    0.609733] 0x000000050000-0x000001000000 : "firmware"
[    0.705082] 2 uimage-fw partitions found on MTD device firmware
[    0.716914] 0x000000050000-0x000000183fa6 : "kernel"
[    0.728386] 0x000000183fa6-0x000001000000 : "rootfs"
[    0.740104] mtd: device 5 (rootfs) set to be root filesystem
[    0.751586] 1 squashfs-split partitions found on MTD device rootfs
[    0.763921] 0x000000550000-0x000001000000 : "rootfs_data"
[    0.779666] mtk_soc_eth 10100000.ethernet: loaded mt7620 driver
[    0.792324] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[    0.809371] rt2880_wdt 10000120.watchdog: Initialized
[    0.820998] NET: Registered protocol family 10
[    0.834281] NET: Registered protocol family 17
[    0.843290] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    0.868456] 8021q: 802.1Q VLAN Support v1.8
[    0.890975] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    0.905952] Freeing unused kernel memory: 160K (803a8000 - 803d0000)
[    3.001634] init: Console is alive
[    3.008742] init: - watchdog -
[    6.184608] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    6.296063] usbcore: registered new interface driver usbfs
[    6.307159] usbcore: registered new interface driver hub
[    6.317859] usbcore: registered new device driver usb
[    6.334157] exFAT: Version 1.2.9
[    6.380985] SCSI subsystem initialized
[    6.395141] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.409866] ehci-platform: EHCI generic platform driver
[    6.430648] phy phy-usbphy.0: remote usb device wakeup disabled
[    6.442457] phy phy-usbphy.0: UTMI 16bit 30MHz
[    6.451347] ehci-platform 101c0000.ehci: EHCI Host Controller
[    6.462835] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[    6.478734] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[    6.495305] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[    6.508884] hub 1-0:1.0: USB hub found
[    6.516791] hub 1-0:1.0: 1 port detected
[    6.527935] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    6.541836] ohci-platform: OHCI generic platform driver
[    6.552567] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
[    6.566165] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
[    6.582052] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
[    6.616841] hub 2-0:1.0: USB hub found
[    6.624758] hub 2-0:1.0: 1 port detected
[    6.639555] usbcore: registered new interface driver usb-storage
[    6.652585] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    6.671047] init: - preinit -
[    6.846934] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    7.148337] random: procd: uninitialized urandom read (4 bytes read, 12 bits of entropy available)
[    7.166794] hub 1-1:1.0: USB hub found
[    7.185622] hub 1-1:1.0: 4 ports detected
[    7.785943] 8021q: adding VLAN 0 to HW filter on device eth0
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
[    7.886555] usb 1-1.1: new high-speed USB device number 3 using ehci-platform
[    7.938515] usb-storage 1-1.1:1.0: USB Mass Storage device detected
[    7.951921] scsi host0: usb-storage 1-1.1:1.0
[    8.303096] scsi 0:0:0:0: Direct-Access     Generic  External         0205 PQ: 0 ANSI: 6
[    8.322166] sd 0:0:0:0: [sda] 976773167 512-byte logical blocks: (500 GB/466 GiB)
[    8.337752] sd 0:0:0:0: [sda] Write Protect is off
[    8.347839] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, supports DPO and FUA
[    8.405440]  sda: sda1 < sda5 sda6 sda7 sda8 > sda2
[    8.420074] sd 0:0:0:0: [sda] Attached SCSI disk
[    9.195601] mount_root: loading kmods from internal overlay
[    9.227929] kmodloader: loading kernel modules from //etc/modules-boot.d/*
[    9.243356] kmodloader: done loading kernel modules from //etc/modules-boot.d/*
[   12.797557] jffs2: notice: (379) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   12.829144] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[   12.851546] block: extroot: not configured
[   13.073004] jffs2: notice: (376) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   15.866311] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[   15.885770] block: extroot: not configured
[   15.895256] mount_root: switching to jffs2 overlay
[   15.912128] urandom-seed: Seeding with /etc/urandom.seed
[   16.025128] procd: - early -
[   16.031647] procd: - watchdog -
[   16.419816] random: nonblocking pool is initialized
[   16.550477] procd: - ubus -
[   16.790453] procd: - init -
Please press Enter to activate this console.
[   17.211124] kmodloader: loading kernel modules from /etc/modules.d/*
[   17.243618] ntfs: driver 2.1.32 [Flags: R/O MODULE].
[   17.273519] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   17.297756] Loading modules backported from Linux version wt-2017-01-31-0-ge882dff19e7f
[   17.313791] Backport generated by backports.git backports-20160324-13-g24da7d3c
[   17.421579] fuse init (API version 7.23)
[   17.452111] ip_tables: (C) 2000-2006 Netfilter Core Team
[   17.473409] nf_conntrack version 0.5.0 (952 buckets, 3808 max)
[   17.521686] usbcore: registered new interface driver ums-alauda
[   17.536862] usbcore: registered new interface driver ums-cypress
[   17.551925] usbcore: registered new interface driver ums-datafab
[   17.566816] usbcore: registered new interface driver ums-freecom
[   17.581759] usbcore: registered new interface driver ums-isd200
[   17.596602] usbcore: registered new interface driver ums-jumpshot
[   17.612056] usbcore: registered new interface driver ums-karma
[   17.627399] usbcore: registered new interface driver ums-sddr09
[   17.642629] usbcore: registered new interface driver ums-sddr55
[   17.658119] usbcore: registered new interface driver ums-usbat
[   17.691446] xt_time: kernel timezone is -0000
[   17.713597] PPP generic driver version 2.4.2
[   17.727111] NET: Registered protocol family 24
[   17.761630] rt2800_wmac 10180000.wmac: loaded eeprom from mtd device "factory"
[   17.776104] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 6352, rev 0500 detected
[   17.791566] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 7620 detected
[   17.819108] kmodloader: done loading kernel modules from /etc/modules.d/*
[   25.032093] 8021q: adding VLAN 0 to HW filter on device eth0

Please, explain better what are you trying to do, where and how... you are trying to compile your own image with some patches done to code to b/ and you post the diff ?
you had successfully created the image and then flashed and later post the dmesg of boot process ?
Have you tried failsafe mode, or activate console? (it says press [f] during boot, or [enter] later) there you have a usb HD with 500gb, have you tried to remove it ? why you are using breed instead of uboot?

So far I can tell there is no error messages... did you experience additional problem ? have you tried all the lan ports?, did you receive DHCP lease ? if you receive a lease then there is a problem with dropbear, have you tried luci? or force enabling wifi and try to connect using wifi ?

I cloned the git image of lede 17.01.2, did an update and install feed. Then manually edited the files that I have specified in the diff. Further on the menuconfig I chose luci. Sent to the assembly. It was collected without errors. Uploaded to my device. This is NAS with 1 Lan port and Wifi. I receive the specified result of the firmware through the com port. The network interface at the address 192.168.1.1 is unavailable both through the browser, and through telnet, scp, ssh. DHCP did not work too. Comment! If I use a previously assembled firmware on the basis of openwrt 15.05 (not my work) and say keep the settings, then everything works on my firmware too. Why do not the network settings on the default be loaded in the assembly? I thought that the network settings are automatically generated by default and do not need to be manually written as a file along the path build-dir\files\etc\config\network.

Sorry for my English. I am Russian
also i did not undestend, why i say in dts file

  •   partition@50000 {
    
  •   	label = "firmware";
    
  •        reg = <0x50000 0xfb0000>; 
    

but in log i see
[ 0.609817] 0x000000050000-0x000001000000 : "firmware" ?
when i try to make image in last trunk version, i see in log this
[ 0.609817] 0x000000050000-0x00000fb0000 : "firmware" ?

i use breed loader instead of uboot because downloading the firmware through the browser is easier and more convenient than via ftp

Not a ramips specialist, so these are just rather generic comments.

That sounds right.
Hexadecimal addition:0x0050000 + 0x0fb0000 = 0x1000000
So, the firmware starts at 0x50000 and after 0xfb0000 bytes ends at 0x1000000

Based on your serial console log, your firmware seems to load ok, and that is a good starting point. I guess that you just have the network hardware topology somehow wrong, but otherwise you might be ok.

The defaults are generated according to your specs. Sounds like the old 15.05 has the correct definitions so that the generated /etc/config/network is right, but so far your own network definitions have been wrong (for the switch and/or network interfaces). The network definitions have evolved somewhat since 15.05, so you may need to modify the def in target/linux/ramips/base-files/etc/board.d/02_network

You could try seeing the generated /etc/config/network via the serial console and compare that to the working one (from 15.05).

1 Like

If DHCP does not work you may have your tipical eth0 eth1 from parent (base) device interchanged and you are getting wan interface on your phisical LAN port... try with wifi, try to get photos of your hardware too, with photos we will be able to see some other aspects of the hardware.

For firmware update I usually upload builded images using ncftpput on a debian box to some external ftp, and later I use wget and sysupgrade on LEDE to upgrade it. Probably breed doesn't have to do to your problem.

Edit: in https://wikidevi.com/wiki/MediaTek_MT7620
As far I can tell it says that MT 7620 has an integrated switch of 6 ports...
probably your lan port is on some of the 6 ports...
then I saw on your first post:

I used various descriptions of the network interface, in particular:
ucidef_set_interface_lan "eth0.2"
or
ucidef_add_switch "switch0" \
		"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "6@eth0"
or
ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
or
ucidef_add_switch "switch0" \
			"4:lan" "6t@eth0"

please try to access console, and get back to us if you can, you could do a dmesg again, ifconfig, swconfig list

I guess the same! probably it is just that.

hnyman, yes, my own network definitions have been wrong (for the switch and/or network interfaces).
I try use this definitions:
ucidef_set_interface_lan "eth0.2"
or this
ucidef_add_switch "switch0"
"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "6@eth0"
or this
ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
or is this what I saw in 15.05 config
ucidef_add_switch "switch0"
"4:lan" "6t@eth0"
but my Lan was not available.

please try to access console, and get back to us if you can, you could do a dmesg again, ifconfig, swconfig list

doing that we will able to see your detected switch and there is a command to see if there is some port with uplink detected and identify it properly.

Sample:

# See options
root@OpenWRT:~# swconfig
swconfig list
swconfig dev <dev> [port <port>|vlan <vlan>] (help|set <key> <value>|get <key>|load <config>|show)

# List switches found
root@OpenWRT:~# swconfig list
Found: switch0 - eth0

# Query switch status
root@OpenWRT:~# swconfig dev eth0 show
Global attributes:
  enable_vlan: 1
Port 0:
  pvid: 1
  link: port:0 link:up speed:1000baseT full-duplex txflow rxflow # <--- port 0 usually CPU (this connection could be gigabit even in 100mbit router)
Port 1:
  pvid: 1
  link: port:1 link:down
Port 2:
  pvid: 1
  link: port:2 link:down
Port 3:
  pvid: 1
  link: port:3 link:down
Port 4:
  pvid: 1
  link: port:4 link:up speed:100baseT full-duplex auto # <--- indicates that a cable is connected to this port
VLAN 1:
  vid: 1
  ports: 0 1 2 3 4

this is device
https://blueendless.en.alibaba.com/product/60515340333-221171713/KIMAX_BS_U35WF_NAS_LAN_hdd_enclosure_3_5_ethernet_usb3_0_SATA_wifi_hdd_enclosure.html
braian78b, what device photos do you need?

Just wondering about the board, to see if it is similar to other, but no.
Any news on the console access ?

root@(none):/# swconfig list
Found: switch0 - mt7620
root@(none):/# swconfig dev mt7620 show
Global attributes:
        enable_vlan: 0
        mib: Switch MIB counters
PPE_AC_BCNT0: 0
PPE_AC_PCNT0: 0
PPE_AC_BCNT63: 0
PPE_AC_PCNT63: 0
PPE_MTR_CNT0: 0
PPE_MTR_CNT63: 0
GDM1_TX_GBCNT: 0
GDM1_TX_GPCNT: 0
GDM1_TX_SKIPCNT: 0
GDM1_TX_COLCNT: 0
GDM1_RX_GBCNT1: 0
GDM1_RX_GPCNT1: 0
GDM1_RX_OERCNT: 0
GDM1_RX_FERCNT: 0
GDM1_RX_SERCNT: 0
GDM1_RX_LERCNT: 0
GDM1_RX_CERCNT: 0
GDM1_RX_FCCNT: 0
GDM2_TX_GBCNT: 0
GDM2_TX_GPCNT: 0
GDM2_TX_SKIPCNT: 0
GDM2_TX_COLCNT: 0
GDM2_RX_GBCNT: 0
GDM2_RX_GPCNT: 0
GDM2_RX_OERCNT: 0
GDM2_RX_FERCNT: 0
GDM2_RX_SERCNT: 0
GDM2_RX_LERCNT: 3
GDM2_RX_CERCNT: 0
GDM2_RX_FCCNT: 0

Port 0:
        mib: Port 0 MIB counters
TxGPC      : 0
TxBOC      : 0
TxGOC      : 0
TxEPC      : 0
RxGPC      : 0
RxBOC      : 0
RxGOC      : 0
RxEPC1     : 0
RxEPC2     : 0

        pvid: 2
        link: port:0 link:down
Port 1:
        mib: Port 1 MIB counters
TxGPC      : 0
TxBOC      : 0
TxGOC      : 0
TxEPC      : 0
RxGPC      : 0
RxBOC      : 0
RxGOC      : 0
RxEPC1     : 0
RxEPC2     : 0

        pvid: 1
        link: port:1 link:down
Port 2:
        mib: Port 2 MIB counters
TxGPC      : 0
TxBOC      : 0
TxGOC      : 0
TxEPC      : 0
RxGPC      : 0
RxBOC      : 0
RxGOC      : 0
RxEPC1     : 0
RxEPC2     : 0

        pvid: 1
        link: port:2 link:down
Port 3:
        mib: Port 3 MIB counters
TxGPC      : 0
TxBOC      : 0
TxGOC      : 0
TxEPC      : 0
RxGPC      : 0
RxBOC      : 0
RxGOC      : 0
RxEPC1     : 0
RxEPC2     : 0

        pvid: 1
        link: port:3 link:down
Port 4:
        mib: Port 4 MIB counters
TxGPC      : 28
TxBOC      : 0
TxGOC      : 4861
TxEPC      : 0
RxGPC      : 962
RxBOC      : 0
RxGOC      : 86584
RxEPC1     : 0
RxEPC2     : 0

        pvid: 1
        link: port:4 link:up speed:100baseT full-duplex
Port 5:
        mib: Port 5 MIB counters
TxGPC      : 0
TxBOC      : 0
TxGOC      : 0
TxEPC      : 0
RxGPC      : 0
RxBOC      : 0
RxGOC      : 0
RxEPC1     : 0
RxEPC2     : 0

        pvid: 1
        link: port:5 link:down
Port 6:
        mib: Port 6 MIB counters
TxGPC      : 962
TxBOC      : 0
TxGOC      : 86928
TxEPC      : 0
RxGPC      : 28
RxBOC      : 0
RxGOC      : 4861
RxEPC1     : 0
RxEPC2     : 0

        pvid: 1
        link: port:6 link:up speed:1000baseT full-duplex
Port 7:
        mib: Port 7 MIB counters
TxGPC      : 0
TxBOC      : 0
TxGOC      : 0
TxEPC      : 0
RxGPC      : 0
RxBOC      : 0
RxGOC      : 0
RxEPC1     : 0
RxEPC2     : 0

        pvid: 0
        link: port:7 link:down
VLAN 1:
        vid: 1
        ports: 1 2 3 4 5 6t
VLAN 2:
        vid: 2
        ports: 0 6t
root@(none):/#

my current 02_network:

ucidef_add_switch "switch0" \
			"1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "6@eth0"
		;;
and console ifconfig
root@LEDE:/# ifconfig
br-lan    Link encap:Ethernet  HWaddr 20:0A:8E:E3:4A:AC
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fd31:eab0:be94::1/60 Scope:Global
          inet6 addr: fe80::220a:8eff:fee3:4aac/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:98 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:12649 (12.3 KiB)

eth0      Link encap:Ethernet  HWaddr 20:0A:8E:E3:4A:AC
          inet6 addr: fe80::220a:8eff:fee3:4aac/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2549 errors:0 dropped:0 overruns:0 frame:0
          TX packets:957 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:293822 (286.9 KiB)  TX bytes:295447 (288.5 KiB)
          Interrupt:5

eth0.1    Link encap:Ethernet  HWaddr 20:0A:8E:E3:4A:AC
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:98 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:12649 (12.3 KiB)

eth0.2    Link encap:Ethernet  HWaddr 20:0A:8E:E3:4A:AD
          inet6 addr: fe80::220a:8eff:fee3:4aad/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:823 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:274009 (267.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:1884 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1884 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:122460 (119.5 KiB)  TX bytes:122460 (119.5 KiB)

Hello. There may be problems in this file:

   root@LEDE:/# cat /rom/lib/preinit/07_set_preinit_iface_ramips
    #!/bin/sh
    #
    # Copyright (C) 2013 OpenWrt.org
    #

    . /lib/ramips.sh

    ramips_set_preinit_iface() {
            RT3X5X=`cat /proc/cpuinfo | egrep "(RT3.5|RT5350|MT7628|MT7688|MT7620)"`

            if [ -n "${RT3X5X}" ]; then
                    # The ethernet switch driver enables VLAN by default, but
                    # failsafe uses eth0, making the device unreachable:
                    # https://dev.openwrt.org/ticket/18768
                    ralink_switchdev=rt305x
                    case "${RT3X5X}" in
                    *MT7620*)
                            ralink_switchdev=mt7620
                            ;;
                    esac
                    swconfig dev $ralink_switchdev set reset 1
                    swconfig dev $ralink_switchdev set enable_vlan 0
                    swconfig dev $ralink_switchdev set apply 1
            fi

            ifname=eth0
    }

You were able to identify it removing the cable to see which one turns into link down state?
may be 4 is the physical one and 6 is CPU, or viceversa.
you should remove unused ports from lan 1, 2, 3 (the others with link down to avoid conflicts)
and as far I can see you have 6 as eth0, but eth0.1 and eth0.2...

# 6t is the tagged one, seems to be the CPU
# Since 4 is the only with link:up

# you currently seems to have (first vlan0 is for lan, second vlan1 is for wan on switch port0):
network.@switch_vlan[0].ports='1 2 3 4 5 6t'
network.@switch_vlan[1].ports='0 6t'
network.lan.ifname='eth0.1'

# check it first with (post here outputs)
uci show network.@switch_vlan[0].ports
uci show network.@switch_vlan[1].ports
uci show network.lan.ifname

# you could remove unused ports with:
uci set network.@switch_vlan[0].ports='4 6t'
uci del network.@switch_vlan[1]
# you may need this?
uci set network.lan.ifname='eth0.1'


# you will probably want to remove 'wan6', 'wan' too
uci del network.wan.ifname
uci del network.wan6
uci del network.wan

# commit changes and reboot network
uci commit network
/etc/init.d/network restart

Try it and let me know.

braian87b
yes, lan 4 is the physical one and 6 is CPU!
Do I need to edit any config files in addition, or just git clone and apply a diff file? Then make menuconfig.

root@LEDE:/# uci show network.lan.ifname
network.lan.ifname='eth0.1'
root@LEDE:/# uci show network.@switch_vlan[0].ports
uci: Entry not found
root@LEDE:/# uci show network.@switch_vlan[1].ports
uci: Entry not found
root@LEDE:/# uci show network.@switch_vlan[0].ports
uci: Entry not found
root@LEDE:/#
root@LEDE:/# uci show network.@switch_vlan[1].ports
uci: Entry not found
root@LEDE:/# uci set network.@switch_vlan[0].ports='4 6t'
uci: Invalid argument
root@LEDE:/# uci del network.@switch_vlan[1]
uci: Entry not found
root@LEDE:/# uci set network.lan.ifname='eth0.1'
root@LEDE:/# uci del network.wan.ifname
root@LEDE:/# uci del network.wan6
root@LEDE:/# uci del network.wan
root@LEDE:/# uci commit network

and now

    root@LEDE:/# /etc/init.d/network restart
    'radio0' is disabled
    [  516.185941] br-lan: port 1(eth0.1) entered disabled state
    [  516.210586] device eth0.1 left promiscuous mode
    [  516.219830] br-lan: port 1(eth0.1) entered disabled state
    [  516.240491] IPv6: ADDRCONF(NETDEV_UP): eth0.1: link is not ready
    [  516.453265] device eth0 left promiscuous mode
    root@LEDE:/# [  519.050512] 8021q: adding VLAN 0 to HW filter on device eth0
    [  519.078345] device eth0.1 entered promiscuous mode
    [  519.088112] device eth0 entered promiscuous mode
    [  519.140353] br-lan: port 1(eth0.1) entered forwarding state
    [  519.151556] br-lan: port 1(eth0.1) entered forwarding state
    [  521.016344] br-lan: port 1(eth0.1) entered forwarding state
    root@LEDE:/# swconfig dev mt7620 show
    Global attributes:
            enable_vlan: 0
            mib: Switch MIB counters
    PPE_AC_BCNT0: 0
    PPE_AC_PCNT0: 0
    PPE_AC_BCNT63: 0
    PPE_AC_PCNT63: 0
    PPE_MTR_CNT0: 0
    PPE_MTR_CNT63: 0
    GDM1_TX_GBCNT: 0
    GDM1_TX_GPCNT: 0
    GDM1_TX_SKIPCNT: 0
    GDM1_TX_COLCNT: 0
    GDM1_RX_GBCNT1: 0
    GDM1_RX_GPCNT1: 0
    GDM1_RX_OERCNT: 0
    GDM1_RX_FERCNT: 0
    GDM1_RX_SERCNT: 0
    GDM1_RX_LERCNT: 0
    GDM1_RX_CERCNT: 0
    GDM1_RX_FCCNT: 0
    GDM2_TX_GBCNT: 0
    GDM2_TX_GPCNT: 0
    GDM2_TX_SKIPCNT: 0
    GDM2_TX_COLCNT: 0
    GDM2_RX_GBCNT: 0
    GDM2_RX_GPCNT: 0
    GDM2_RX_OERCNT: 0
    GDM2_RX_FERCNT: 0
    GDM2_RX_SERCNT: 0
    GDM2_RX_LERCNT: 3
    GDM2_RX_CERCNT: 0
    GDM2_RX_FCCNT: 0

    Port 0:
            mib: Port 0 MIB counters
    TxGPC      : 0
    TxBOC      : 0
    TxGOC      : 0
    TxEPC      : 0
    RxGPC      : 0
    RxBOC      : 0
    RxGOC      : 0
    RxEPC1     : 0
    RxEPC2     : 0

            pvid: 2
            link: port:0 link:down
    Port 1:
            mib: Port 1 MIB counters
    TxGPC      : 0
    TxBOC      : 0
    TxGOC      : 0
    TxEPC      : 0
    RxGPC      : 0
    RxBOC      : 0
    RxGOC      : 0
    RxEPC1     : 0
    RxEPC2     : 0

            pvid: 1
            link: port:1 link:down
    Port 2:
            mib: Port 2 MIB counters
    TxGPC      : 0
    TxBOC      : 0
    TxGOC      : 0
    TxEPC      : 0
    RxGPC      : 0
    RxBOC      : 0
    RxGOC      : 0
    RxEPC1     : 0
    RxEPC2     : 0

            pvid: 1
            link: port:2 link:down
    Port 3:
            mib: Port 3 MIB counters
    TxGPC      : 0
    TxBOC      : 0
    TxGOC      : 0
    TxEPC      : 0
    RxGPC      : 0
    RxBOC      : 0
    RxGOC      : 0
    RxEPC1     : 0
    RxEPC2     : 0

            pvid: 1
            link: port:3 link:down
    Port 4:
            mib: Port 4 MIB counters
    TxGPC      : 614
    TxBOC      : 0
    TxGOC      : 178782
    TxEPC      : 0
    RxGPC      : 2431
    RxBOC      : 0
    RxGOC      : 245506
    RxEPC1     : 0
    RxEPC2     : 0

            pvid: 1
            link: port:4 link:up speed:100baseT full-duplex
    Port 5:
            mib: Port 5 MIB counters
    TxGPC      : 0
    TxBOC      : 0
    TxGOC      : 0
    TxEPC      : 0
    RxGPC      : 0
    RxBOC      : 0
    RxGOC      : 0
    RxEPC1     : 0
    RxEPC2     : 0

            pvid: 1
            link: port:5 link:down
    Port 6:
            mib: Port 6 MIB counters
    TxGPC      : 2431
    TxBOC      : 0
    TxGOC      : 245902
    TxEPC      : 0
    RxGPC      : 614
    RxBOC      : 0
    RxGOC      : 178782
    RxEPC1     : 0
    RxEPC2     : 0

            pvid: 1
            link: port:6 link:up speed:1000baseT full-duplex
    Port 7:
            mib: Port 7 MIB counters
    TxGPC      : 0
    TxBOC      : 0
    TxGOC      : 0
    TxEPC      : 0
    RxGPC      : 0
    RxBOC      : 0
    RxGOC      : 0
    RxEPC1     : 0
    RxEPC2     : 0

            pvid: 0
            link: port:7 link:down
    VLAN 1:
            vid: 1
            ports: 1 2 3 4 5 6t
    VLAN 2:
            vid: 2
            ports: 0 6t
    root@LEDE:/#

What is wrong with the configuration of the switch? I thought that it should become the default, as well as the default vlan.
Maybe we should go to trunk, but a couple of weeks ago I started with him and I had the same thing with the network.