Lede on Netgear R6220


#1

I got a Netgear R6220 and followed the steps from "Installing LEDE on a Netgear R6220":

mtd_write write lede-ramips-mt7621-r6220-squashfs-rootfs.bin Rootfs
mtd_write write lede-ramips-mt7621-r6220-squashfs-kernel.bin Kernel
reboot

(using the files from the snapshot on apr. 1st)

Both complete successfully but after the reboot the device appears to got into a boot loop (I get an IP for a second before it reboots). Unbricking worked but a second try gave me the same result.

Any idea what I'm doing wrong?

(R6220 is here but the forum does not allow to link to it: lede-project.org/toh/hwdata/netgear/netgear_r6220)


#2

OK, using the snapshot from today did give me a working Lede installation.


#3

Hi im experiencing issues with LEDE on my R6220. Can i see your bootlog (dmesg). Hows your wifi performance?


#4

@realopty

If it helps:

[    0.000000] Linux version 4.4.59 (buildbot@builds) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3855-597c9f0) ) #0 SMP Sun Apr 2 10:48:00 2017
[    0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[    0.000000] MIPS: machine is Netgear R6220
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] On node 0 totalpages: 32768
[    0.000000] free_area_init_node: node 0, pgdat 804890e0, node_mem_map 81000000
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    0.000000] VPE topology {2} total 2
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.000000] PERCPU: Embedded 10 pages/cpu @8110c000 s8400 r8192 d24368 u40960
[    0.000000] pcpu-alloc: s8400 r8192 d24368 u40960 alloc=10*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=00043a70
[    0.000000] Readback ErrCtl register=00043a70
[    0.000000] Memory: 124520K/131072K available (3713K kernel code, 203K rwdata, 856K rodata, 208K init, 256K bss, 6552K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS:256
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[    0.000000] sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 21474836475000000ns
[    0.010000] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.070000] pid_max: default: 32768 minimum: 301
[    0.070000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.080000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.090000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.090000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.090000] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.180000] Synchronize counters for CPU 1: done.
[    0.190000] Brought up 2 CPUs
[    0.190000] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.200000] futex hash table entries: 512 (order: 2, 16384 bytes)
[    0.210000] pinctrl core: initialized pinctrl subsystem
[    0.220000] NET: Registered protocol family 16
[    0.230000] FPU Affinity set after 8840 emulations
[    0.260000] pull PCIe RST: RALINK_RSTCTRL = 0
[    0.560000] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.570000] ***** Xtal 40MHz *****
[    0.570000] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.580000] Port 0 N_FTS = 1b102800
[    0.580000] Port 1 N_FTS = 1b102800
[    0.590000] Port 2 N_FTS = 1b102800
[    1.740000] PCIE1 no card, disable it(RST&CLK)
[    1.750000]  -> 12007f2
[    1.750000] PCIE0 enabled
[    1.760000] PCIE2 enabled
[    1.760000] PCI host bridge /pcie@1e140000 ranges:
[    1.770000]  MEM 0x0000000060000000..0x000000006fffffff
[    1.780000]   IO 0x000000001e160000..0x000000001e16ffff
[    1.790000] PCI coherence region base: 0x60000000, mask/settings: 0xf0000002
[    1.830000] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    1.840000] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    1.850000] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    1.860000] PCI host bridge to bus 0000:00
[    1.870000] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    1.880000] pci_bus 0000:00: root bus resource [io  0xffffffff]
[    1.890000] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    1.910000] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    1.920000] pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
[    1.920000] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    1.920000] pci 0000:00:00.0: reg 0x14: [mem 0x00000000-0x0000ffff]
[    1.920000] pci 0000:00:00.0: supports D1
[    1.920000] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    1.920000] pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400
[    1.920000] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    1.920000] pci 0000:00:01.0: reg 0x14: [mem 0x00000000-0x0000ffff]
[    1.920000] pci 0000:00:01.0: supports D1
[    1.920000] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[    1.920000] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.940000] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.960000] pci 0000:01:00.0: [14c3:7662] type 00 class 0x028000
[    1.960000] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[    1.960000] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    1.960000] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    1.960000] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    1.960000] pci 0000:02:00.0: [14c3:7603] type 00 class 0x028000
[    1.960000] pci 0000:02:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[    1.960000] pci 0000:02:00.0: PME# supported from D0 D3hot D3cold
[    1.960000] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    1.960000] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 02
[    1.960000] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    1.970000] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    1.980000] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[    2.000000] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.010000] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    2.020000] pci 0000:00:00.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref]
[    2.040000] pci 0000:00:01.0: BAR 8: assigned [mem 0x60200000-0x602fffff]
[    2.050000] pci 0000:00:00.0: BAR 1: assigned [mem 0x60300000-0x6030ffff]
[    2.070000] pci 0000:00:01.0: BAR 1: assigned [mem 0x60310000-0x6031ffff]
[    2.080000] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
[    2.090000] pci 0000:01:00.0: BAR 6: assigned [mem 0x60100000-0x6010ffff pref]
[    2.110000] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.120000] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.130000] pci 0000:00:00.0:   bridge window [mem 0x60100000-0x601fffff pref]
[    2.150000] pci 0000:02:00.0: BAR 0: assigned [mem 0x60200000-0x602fffff]
[    2.160000] pci 0000:00:01.0: PCI bridge to [bus 02]
[    2.170000] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff]
[    2.180000] BAR0 at slot 0 = 0
[    2.190000] bus=0x0, slot = 0x0
[    2.190000] BAR0 at slot 1 = 0
[    2.200000] bus=0x0, slot = 0x1
[    2.210000] bus=0x1, slot = 0x0, irq=0xff
[    2.210000] bus=0x2, slot = 0x1, irq=0xff
[    2.220000] clocksource: Switched to clocksource GIC
[    2.230000] NET: Registered protocol family 2
[    2.240000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    2.250000] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    2.260000] TCP: Hash tables configured (established 1024 bind 1024)
[    2.270000] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    2.290000] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    2.300000] NET: Registered protocol family 1
[    2.310000] PCI: CLS 80 bytes, default 32
[    2.310000] Crashlog allocated RAM at address 0x3f00000
[    2.330000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.340000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    2.360000] io scheduler noop registered
[    2.370000] io scheduler deadline registered (default)
[    2.380000] gpio-export gpio_export: 1 gpio(s) exported
[    2.390000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    2.410000] console [ttyS0] disabled
[    2.410000] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 33, base_baud = 3125000) is a 16550A
[    2.430000] console [ttyS0] enabled
[    2.450000] bootconsole [early0] disabled
[    2.460000] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
[    2.480000] Allocate 16 byte aligned buffer: 80514270
[    2.490000] Enable NFI Clock
[    2.490000] # MTK NAND # : Use HW ECC
[    2.500000] Device not found, ID: c2f1
[    2.510000] Not Support this Device! 
[    2.520000] chip_mode=00000001
[    2.520000] Support this Device in MTK table! c2f1 
[    2.530000] nand: device found, Manufacturer ID: 0xc2, Chip ID: 0xf1
[    2.540000] nand: Macronix NAND 128MiB 3,3V 8-bit
[    2.550000] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    2.570000] [NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
[    2.580000] Scanning device for bad blocks
[    2.600000] Bad eraseblock 56 at 0x000000700000
[    2.840000] 6 ofpart partitions found on MTD device MT7621-NAND
[    2.850000] Creating 6 MTD partitions on "MT7621-NAND":
[    2.860000] 0x000000000000-0x000000100000 : "u-boot"
[    2.870000] 0x000000100000-0x000000200000 : "SC PID"
[    2.880000] 0x000000200000-0x000000600000 : "kernel"
[    2.900000] 0x000000600000-0x000002200000 : "ubi"
[    2.910000] 0x000002e00000-0x000002f00000 : "factory"
[    2.920000] 0x000004200000-0x000007e00000 : "reserved"
[    2.930000] [mtk_nand] probe successfully!
[    2.940000] Signature matched and data read!
[    2.950000] load_fact_bbt success 1023
[    2.950000] netif_napi_add() called with weight 128 on device eth%d
[    2.980000] mtk_soc_eth 1e100000.ethernet: generated random MAC address ea:09:2f:35:4e:eb
[    3.000000] libphy: mdio: probed
[    4.400000] mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
[    4.410000] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 10
[    4.430000] mt7621_wdt 1e000100.wdt: Initialized
[    4.440000] NET: Registered protocol family 10
[    4.450000] NET: Registered protocol family 17
[    4.460000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    4.490000] 8021q: 802.1Q VLAN Support v1.8
[    4.500000] UBI: auto-attach mtd3
[    4.500000] ubi0: attaching mtd3
[    4.620000] mtk_soc_eth 1e100000.ethernet eth0: port 4 link up
[    4.780000] ubi0: scanning is finished
[    4.800000] ubi0: attached mtd3 (name "ubi", size 28 MiB)
[    4.810000] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    4.830000] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    4.840000] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    4.850000] ubi0: good PEBs: 223, bad PEBs: 1, corrupted PEBs: 0
[    4.870000] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[    4.880000] ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 785228654
[    4.900000] ubi0: available PEBs: 0, total reserved PEBs: 223, PEBs reserved for bad PEB handling: 19
[    4.920000] ubi0: background thread "ubi_bgt0d" started, PID 321
[    4.930000] block ubiblock0_0: created from ubi0:0(rootfs)
[    4.940000] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[    4.950000] hctosys: unable to open rtc device (rtc0)
[    4.970000] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    4.990000] Freeing unused kernel memory: 208K (804ac000 - 804e0000)
[    5.630000] init: Console is alive
[    5.640000] init: - watchdog -
[    6.240000] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    6.310000] usbcore: registered new interface driver usbfs
[    6.320000] usbcore: registered new interface driver hub
[    6.330000] usbcore: registered new device driver usb
[    6.350000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.360000] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
[    6.370000] ehci-platform: EHCI generic platform driver
[    6.380000] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    6.400000] init: - preinit -
[    6.790000] random: procd: uninitialized urandom read (4 bytes read, 9 bits of entropy available)
[    8.990000] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 393
[    9.070000] UBIFS (ubi0:1): recovery needed
[    9.270000] UBIFS (ubi0:1): recovery completed
[    9.280000] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[    9.290000] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    9.310000] UBIFS (ubi0:1): FS size: 21966848 bytes (20 MiB, 173 LEBs), journal size 1142784 bytes (1 MiB, 9 LEBs)
[    9.330000] UBIFS (ubi0:1): reserved for root: 1037548 bytes (1013 KiB)
[    9.350000] UBIFS (ubi0:1): media format: w4/r0 (latest is w4/r0), UUID 4D121A04-A9B0-4409-9E18-FDA49E2B1EBD, small LPT model
[    9.380000] mount_root: switching to ubifs overlay
[    9.410000] urandom-seed: Seeding with /etc/urandom.seed
[    9.460000] procd: - early -
[    9.470000] procd: - watchdog -
[   10.130000] procd: - ubus -
[   10.240000] random: ubusd: uninitialized urandom read (4 bytes read, 19 bits of entropy available)
[   10.320000] random: ubusd: uninitialized urandom read (4 bytes read, 20 bits of entropy available)
[   10.340000] random: ubusd: uninitialized urandom read (4 bytes read, 20 bits of entropy available)
[   10.350000] random: ubusd: uninitialized urandom read (4 bytes read, 20 bits of entropy available)
[   10.370000] random: ubusd: uninitialized urandom read (4 bytes read, 20 bits of entropy available)
[   10.390000] random: ubusd: uninitialized urandom read (4 bytes read, 20 bits of entropy available)
[   10.410000] random: ubusd: uninitialized urandom read (4 bytes read, 20 bits of entropy available)
[   10.430000] random: ubusd: uninitialized urandom read (4 bytes read, 20 bits of entropy available)
[   10.440000] procd: - init -
[   10.920000] kmodloader: loading kernel modules from /etc/modules.d/*
[   10.940000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   10.960000] Loading modules backported from Linux version wt-2017-01-31-0-ge882dff19e7f
[   10.980000] Backport generated by backports.git backports-20160324-13-g24da7d3c
[   11.020000] mt7603e 0000:02:00.0: ASIC revision: 76030010
[   11.040000] mt7603e 0000:02:00.0: Invalid MAC address, using random address 5e:b1:14:75:11:2f
[   13.150000] mt7603e 0000:02:00.0: Firmware Version: _mt7603mp
[   13.160000] mt7603e 0000:02:00.0: Build Time: 20151020155902
[   13.220000] firmware init done
[   13.380000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   13.390000] mt76x2e 0000:01:00.0: ASIC revision: 76120044
[   13.400000] mt76x2e 0000:01:00.0: EEPROM data check failed: ffff
[   13.420000] mt76x2e 0000:01:00.0: Invalid MAC address, using random address 82:51:f9:da:ad:3b
[   13.440000] mt76x2e 0000:01:00.0: ROM patch already applied
[   13.460000] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
[   13.470000] mt76x2e 0000:01:00.0: Build: 1
[   13.480000] mt76x2e 0000:01:00.0: Build Time: 201507311614____
[   13.510000] mt76x2e 0000:01:00.0: Firmware running!
[   13.520000] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[   13.530000] usbcore: registered new interface driver usbserial
[   13.540000] usbcore: registered new interface driver usbserial_generic
[   13.560000] usbserial: USB Serial support registered for generic
[   13.660000] usbcore: registered new interface driver cdc_wdm
[   13.680000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   13.700000] nf_conntrack version 0.5.0 (1948 buckets, 7792 max)
[   13.770000] xt_time: kernel timezone is -0000
[   13.780000] usbcore: registered new interface driver cdc_ether
[   13.810000] usbcore: registered new interface driver option
[   13.820000] usbserial: USB Serial support registered for GSM modem (1-port)
[   13.840000] PPP generic driver version 2.4.2
[   13.850000] NET: Registered protocol family 24
[   13.860000] usbcore: registered new interface driver qmi_wwan
[   13.880000] usbcore: registered new interface driver rndis_host
[   13.890000] kmodloader: done loading kernel modules from /etc/modules.d/*
[   14.350000] random: jshn: uninitialized urandom read (4 bytes read, 28 bits of entropy available)
[   19.280000] device eth0.1 entered promiscuous mode
[   19.290000] device eth0 entered promiscuous mode
[   19.310000] br-lan: port 1(eth0.1) entered forwarding state
[   19.320000] br-lan: port 1(eth0.1) entered forwarding state
[   21.320000] br-lan: port 1(eth0.1) entered forwarding state
[   22.020000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   22.420000] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[   22.440000] device wlan0 entered promiscuous mode
[   22.450000] device wlan1 entered promiscuous mode
[   22.460000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   22.480000] br-lan: port 2(wlan0) entered forwarding state
[   22.490000] br-lan: port 2(wlan0) entered forwarding state
[   23.100000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[   23.110000] br-lan: port 3(wlan1) entered forwarding state
[   23.120000] br-lan: port 3(wlan1) entered forwarding state
[   24.490000] br-lan: port 2(wlan0) entered forwarding state
[   25.120000] br-lan: port 3(wlan1) entered forwarding state
[   27.960000] device wlan1 left promiscuous mode
[   27.960000] br-lan: port 3(wlan1) entered disabled state
[   28.320000] device wlan0 left promiscuous mode
[   28.330000] br-lan: port 2(wlan0) entered disabled state
[   41.980000] random: nonblocking pool is initialized