hi all.There go lava lr25g001 (very similar to the netgear r6150) , I was able to almost completely ported to lede him except one-the ar8327 switch refuses to work.Below I attach the dts and bootlog
dts
/dts-v1/;
#include "mt7620a.dtsi"
#include <dt-bindings/input/input.h>
/ {
compatible = "lava_lr-25g001", "ralink,mt7620a-soc";
model = "LAVA LR-25G001";
memory@0 {
device_type = "memory";
reg = <0x0 0x4000000>;
};
chosen {
bootargs = "console=ttyS0,115200 ";
};
gpio-leds {
compatible = "gpio-leds";
status {
label = "lava:status";
gpios = <&gpio0 14 1>;
};
wifi2g {
label = "lava:wifi2g";
gpios = <&gpio0 11 1>;
};
wifi5g {
label = "lava:wifi5g";
gpios = <&gpio0 13 1>;
};
};
gpio_export {
compatible = "gpio-export";
#size-cells = <0>;
usbpower {
gpio-export,name = "usbpower";
gpio-export,output = <1>;
gpios = <&gpio0 12 1>;
};
};
};
&spi0 {
status = "okay";
mx25l12805d@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor";
reg = <0 0>;
spi-max-frequency = <10000000>;
m25p,chunked-io = <32>;
partition@0 {
label = "uboot ";
reg = <0x0 0x50000>;
read-only;
};
firmware: partition@50000 {
label = "firmware";
reg = <0x50000 0xeb0000>;
};
UI: partition@f10010 {
label = "UI";
reg = <0xf00010 0xefff0>;
read-only;
};
config: partition@ff0000 {
label = "config";
reg = <0xff0000 0x10000>;
};
};
};
&gpio1 {
status = "okay";
};
&gpio2 {
status = "okay";
};
&gpio3 {
status = "okay";
};
&pcie {
status = "okay";
};
&pinctrl {
state_default: pinctrl0 {
gpio {
ralink,group = "uartf", "wled", "nd_sd";
ralink,function = "gpio";
};
pa {
ralink,group = "pa";
ralink,function = "pa";
};
};
};
ðernet {
status = "okay";
mtd-mac-address = <&config 0xe07e>;
pinctrl-names = "default";
pinctrl-0 = < &rgmii2_pins &mdio_pins>;
mediatek,portmap = "wllll";
port@4 {
status = "okay";
phy-handle = <&phy4>;
phy-mode = "rgmii";
};
mdio-bus {
status = "okay";
phy4: ethernet-phy@4 {
reg = <4>;
phy-mode = "rgmii";
qca,ar8327-initvals = <
0x04 0x07600000 /* PORT0 PAD MODE CTRL */
0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
0x10 0x40000000 /* Power-on Strapping: 176-pin interface configuration */
0x50 0xc437c437 /* LED Control Register 0 */
0x54 0xc337c337 /* LED Control Register 1 */
0x58 0x00000000 /* LED Control Register 2 */
0x5c 0x03ffff00 /* LED Control Register 3 */
0x7c 0x0000007e /* PORT0_STATUS */
0x94 0x0000007e /* PORT6 STATUS */
>;
};
};
};
&gsw {
mediatek,port4 = "gmac";
};
&wmac {
ralink,mtd-eeprom = <&config 0xe290 200>;
};
&ehci {
status = "okay";
};
&ohci {
status = "okay";
};[/details]
[details=bootlog][ 0.000000] Linux version 4.4.74 (leks@kamensktel.ru) (gcc version 5.4.0 (LEDE GCC 5.4.0 r4496-24043a0) ) #0 Thu Jun 29 08:37:36 2017
[ 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 MT7620A ver:2 eco:6
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019650 (MIPS 24KEc)
[ 0.000000] MIPS: machine is LAVA LR-25G001
[ 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,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=000546e0
[ 0.000000] Readback ErrCtl register=000546e0
[ 0.000000] Memory: 60168K/65536K available (3314K kernel code, 161K rwdata, 828K rodata, 168K init, 223K bss, 5368K 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.007568] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[ 0.070074] pid_max: default: 32768 minimum: 301
[ 0.074695] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.081069] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.094776] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.104325] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.110377] pinctrl core: initialized pinctrl subsystem
[ 0.116138] NET: Registered protocol family 16
[ 0.385334] PCI host bridge /pcie@10140000 ranges:
[ 0.389937] MEM 0x0000000020000000..0x000000002fffffff
[ 0.394991] IO 0x0000000010160000..0x000000001016ffff
[ 0.413981] rt2880_gpio 10000600.gpio: registering 24 gpios
[ 0.419360] rt2880_gpio 10000600.gpio: registering 24 irq handlers
[ 0.425718] rt2880_gpio 10000638.gpio: registering 16 gpios
[ 0.431084] rt2880_gpio 10000638.gpio: registering 16 irq handlers
[ 0.437366] rt2880_gpio 10000660.gpio: registering 32 gpios
[ 0.442729] rt2880_gpio 10000660.gpio: registering 32 irq handlers
[ 0.449023] rt2880_gpio 10000688.gpio: registering 1 gpios
[ 0.454305] rt2880_gpio 10000688.gpio: registering 1 irq handlers
[ 0.461478] usbcore: registered new interface driver usbfs
[ 0.466834] usbcore: registered new interface driver hub
[ 0.472063] usbcore: registered new device driver usb
[ 0.477028] FPGA manager framework
[ 0.480535] PCI host bridge to bus 0000:00
[ 0.484498] pci_bus 0000:00: root bus resource [mem 0x20000000-0x2fffffff]
[ 0.491124] pci_bus 0000:00: root bus resource [io 0xffffffff]
[ 0.496881] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 0.503466] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.521487] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[ 0.527851] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[ 0.534631] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x201fffff]
[ 0.541206] pci 0000:00:00.0: BAR 1: assigned [mem 0x20200000-0x2020ffff]
[ 0.547821] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff]
[ 0.554398] pci 0000:01:00.1: BAR 0: assigned [mem 0x20100000-0x201fffff]
[ 0.560998] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 0.565805] pci 0000:00:00.0: bridge window [mem 0x20000000-0x201fffff]
[ 0.572424] pci 0000:00:00.0: card - bus=0x0, slot = 0x0 irq=0
[ 0.578097] pci 0000:01:00.0: card - bus=0x1, slot = 0x0 irq=4
[ 0.583776] pci 0000:01:00.1: card - bus=0x1, slot = 0x0 irq=4
[ 0.630770] DMA-API: preallocated 65536 debug entries
[ 0.635626] DMA-API: debugging enabled by kernel config
[ 0.640719] clocksource: Switched to clocksource systick
[ 0.647498] NET: Registered protocol family 2
[ 0.652596] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.659323] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.665542] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.671762] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.677390] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.683767] NET: Registered protocol family 1
[ 0.691836] rt-timer 10000100.timer: maximum frequency is 1220Hz
[ 0.698927] Crashlog allocated RAM at address 0x3f00000
[ 0.719745] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.725424] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_NONE) (c) 2001-2006 Red Hat, Inc.
[ 0.742679] io scheduler noop registered (default)
[ 0.747279] io scheduler deadline registered
[ 0.751520] io scheduler cfq registered
[ 0.755515] ralink-usb-phy usbphy: invalid resource
[ 0.760956] gpio-export gpio_export: 1 gpio(s) exported
[ 0.767252] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.775083] console [ttyS0] disabled
[ 0.778524] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a Palmchip BK-3103
[ 0.788200] console [ttyS0] enabled
[ 0.788200] console [ttyS0] enabled
[ 0.795228] bootconsole [early0] disabled
[ 0.795228] bootconsole [early0] disabled
[ 0.811984] null: module loaded
[ 0.818476] spi spi0.0: force spi mode3
[ 0.823169] m25p80 spi0.0: using chunked io (size=32)
[ 0.828330] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[ 0.833558] 4 ofpart partitions found on MTD device spi0.0
[ 0.840920] Creating 4 MTD partitions on "spi0.0":
[ 0.845824] 0x000000000000-0x000000050000 : "uboot "
[ 0.852738] 0x000000050000-0x000000f00000 : "firmware"
[ 0.948395] 2 uimage-fw partitions found on MTD device firmware
[ 0.954485] 0x000000050000-0x0000001b0738 : "kernel"
[ 0.961222] 0x0000001b0738-0x000000f00000 : "rootfs"
[ 0.968078] mtd: device 4 (rootfs) set to be root filesystem
[ 0.974070] 1 squashfs-split partitions found on MTD device rootfs
[ 0.980386] 0x000000510000-0x000000f00000 : "rootfs_data"
[ 0.987797] 0x000000f00010-0x000000ff0000 : "UI"
[ 0.994388] 0x000000ff0000-0x000001000000 : "config"
[ 1.004755] libphy: mdio: probed
[ 1.010772] switch0: Atheros AR8337 rev. 2 switch registered on mdio-bus
[ 1.017762] mtk_soc_eth 10100000.ethernet: connected port 4 to PHY at mdio-bus:04 [uid=004dd036, driver=Atheros AR8216/AR8236/AR8316]
[ 1.030107] mtk_soc_eth 10100000.ethernet: loaded mt7620 driver
[ 1.036979] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[ 1.046311] rt2880_wdt 10000120.watchdog: Initialized
[ 1.053453] NET: Registered protocol family 10
[ 1.062301] NET: Registered protocol family 17
[ 1.066933] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[ 1.079877] 8021q: 802.1Q VLAN Support v1.8
[ 1.102255] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[ 1.110374] Freeing unused kernel memory: 168K (80436000 - 80460000)
[ 3.757074] init: Console is alive
[ 3.760897] init: - watchdog -
[ 6.250541] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 6.331457] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 6.339889] ehci-platform: EHCI generic platform driver
[ 6.355715] phy phy-usbphy.0: remote usb device wakeup disabled
[ 6.361773] phy phy-usbphy.0: UTMI 16bit 30MHz
[ 6.366338] ehci-platform 101c0000.ehci: EHCI Host Controller
[ 6.372253] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[ 6.380451] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[ 6.391713] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[ 6.398367] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 6.405334] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 6.412732] usb usb1: Product: EHCI Host Controller
[ 6.417712] usb usb1: Manufacturer: Linux 4.4.74 ehci_hcd
[ 6.423237] usb usb1: SerialNumber: 101c0000.ehci
[ 6.429282] hub 1-0:1.0: USB hub found
[ 6.433466] hub 1-0:1.0: 1 port detected
[ 6.440676] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 6.448427] ohci-platform: OHCI generic platform driver
[ 6.454219] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
[ 6.461178] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
[ 6.469407] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
[ 6.499008] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[ 6.505985] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 6.513356] usb usb2: Product: Generic Platform OHCI controller
[ 6.519411] usb usb2: Manufacturer: Linux 4.4.74 ohci_hcd
[ 6.524936] usb usb2: SerialNumber: 101c1000.ohci
[ 6.530964] hub 2-0:1.0: USB hub found
[ 6.535161] hub 2-0:1.0: 1 port detected
[ 6.547758] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 6.559345] init: - preinit -
[ 7.911503] 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
[ 8.483921] mtk_soc_eth 10100000.ethernet eth0: port 4 link up (1000Mbps/Full duplex)
[ 9.139278] jffs2: notice: (410) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 9.158095] mount_root: switching to jffs2 overlay
[ 9.187696] urandom-seed: Seeding with /etc/urandom.seed
[ 9.320338] procd: - early -
[ 9.323397] procd: - watchdog -
[ 9.772315] procd: - watchdog -
[ 9.775809] procd: - ubus -
[ 9.869963] mtk_soc_eth 10100000.ethernet eth0: port 4 link down
[ 9.878055] random: ubusd: uninitialized urandom read (4 bytes read, 19 bits of entropy available)
[ 9.887798] random: ubusd: uninitialized urandom read (4 bytes read, 19 bits of entropy available)
[ 9.897080] random: ubusd: uninitialized urandom read (4 bytes read, 19 bits of entropy available)
[ 9.906549] random: ubusd: uninitialized urandom read (4 bytes read, 19 bits of entropy available)
[ 9.915798] random: ubusd: uninitialized urandom read (4 bytes read, 19 bits of entropy available)
[ 9.928057] random: ubusd: uninitialized urandom read (4 bytes read, 19 bits of entropy available)
[ 9.937504] random: ubusd: uninitialized urandom read (4 bytes read, 19 bits of entropy available)
[ 9.947159] procd: - init -
Please press Enter to activate this console.
[ 10.393653] kmodloader: loading kernel modules from /etc/modules.d/*
[ 10.472969] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 10.489337] Loading modules backported from Linux version wt-2017-01-31-0-ge882dff19e7f
[ 10.497584] Backport generated by backports.git backports-20160324-13-g24da7d3c
[ 11.421071]
[ 11.421071]
[ 11.421071] === pAd = c0601000, size = 1748424 ===
[ 11.421071]
[ 11.430928] <-- RTMPAllocTxRxRingMemory, Status=0
[ 11.436966] <-- RTMPAllocAdapterBlock, Status=0
[ 11.441620] device_id =0x7650
[ 11.445056] ==>MT76x0_WLAN_ChipOnOff(): OnOff:1, pAd->WlanFunCtrl:0x0, Reg-WlanFunCtrl=0xff000002
[ 11.454157] MACVersion = 0x76502000
[ 11.473142] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 11.497210] nf_conntrack version 0.5.0 (942 buckets, 3768 max)
[ 11.603407] xt_time: kernel timezone is -0000
[ 11.618721] PPP generic driver version 2.4.2
[ 11.626054] NET: Registered protocol family 24
[ 11.648411] rt2800_wmac 10180000.wmac: loaded eeprom from mtd device "config"
[ 11.655776] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 6352, rev 0500 detected
[ 11.663705] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 7620 detected
[ 11.783987] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 12.673021] random: jshn: uninitialized urandom read (4 bytes read, 23 bits of entropy available)
[ 12.779233] random: ubusd: uninitialized urandom read (4 bytes read, 23 bits of entropy available)
[ 12.788776] random: ubus: uninitialized urandom read (4 bytes read, 23 bits of entropy available)
[ 20.757775] 8021q: adding VLAN 0 to HW filter on device eth0
[ 20.786360] device eth0.1 entered promiscuous mode
[ 20.791353] device eth0 entered promiscuous mode
[ 20.802608] br-lan: port 1(eth0.1) entered forwarding state
[ 20.808343] br-lan: port 1(eth0.1) entered forwarding state
[ 20.831841] mtk_soc_eth 10100000.ethernet eth0: port 4 link up (1000Mbps/Full duplex)
[ 22.801287] br-lan: port 1(eth0.1) entered forwarding state
[ 41.915340] random: nonblocking pool is initialized