The spec sheet for this device shows 128M RAM and 128M Flash. I've installed OpenWrt SNAPSHOT r5645-7aa1595
successfully and the device operates, but it seems like the NAND is not fully utilized. I'm including what I understand may be the proper information to diagnose this, but I'm eager to learn more about my device and LEDE and will do my best to document and provide any needed further information. Is anyone able to help me figure this issue out?
cat /proc/mtd
dev: size erasesize name
mtd0: 00100000 00020000 "u-boot"
mtd1: 00100000 00020000 "SC PID"
mtd2: 00400000 00020000 "kernel"
mtd3: 01c00000 00020000 "ubi"
mtd4: 00100000 00020000 "factory"
mtd5: 03c00000 00020000 "reserved"
df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 2.0M 2.0M 0 100% /rom
tmpfs 60.7M 692.0K 60.0M 1% /tmp
/dev/ubi0_1 18.7M 13.8M 3.9M 78% /overlay
overlayfs:/overlay 18.7M 13.8M 3.9M 78% /
tmpfs 512.0K 0 512.0K 0% /dev
dmesg
[ 0.000000] Linux version 4.9.72 (buildbot@builds) (gcc version 5.5.0 (OpenWrt GCC 5.5.0 r5596-e90dc8d) ) #0 SMP Tue Dec 26 22:35:45 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] 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] 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 8051dc20, node_mem_map 81003000
[ 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] percpu: Embedded 12 pages/cpu @8110f000 s17744 r8192 d23216 u49152
[ 0.000000] pcpu-alloc: s17744 r8192 d23216 u49152 alloc=12*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=00023440
[ 0.000000] Readback ErrCtl register=00023440
[ 0.000000] Memory: 123972K/131072K available (4089K kernel code, 227K rwdata, 924K rodata, 252K init, 272K bss, 7100K 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] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[ 0.000009] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns
[ 0.015475] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[ 0.080692] pid_max: default: 32768 minimum: 301
[ 0.089987] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.103003] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.134927] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.134938] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.134949] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.135094] CPU1 revision is: 0001992f (MIPS 1004Kc)
[ 0.227355] Synchronize counters for CPU 1:
[ 0.227356] done.
[ 0.239765] Brought up 2 CPUs
[ 0.249306] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.268781] futex hash table entries: 512 (order: 2, 16384 bytes)
[ 0.280949] pinctrl core: initialized pinctrl subsystem
[ 0.291943] NET: Registered protocol family 16
[ 0.310595] FPU Affinity set after 11720 emulations
[ 0.341866] pull PCIe RST: RALINK_RSTCTRL = 0
[ 0.650905] release PCIe RST: RALINK_RSTCTRL = 7000000
[ 0.660974] ***** Xtal 40MHz *****
[ 0.667699] release PCIe RST: RALINK_RSTCTRL = 7000000
[ 0.677916] Port 0 N_FTS = 1b105000
[ 0.684804] Port 1 N_FTS = 1b102800
[ 0.691733] Port 2 N_FTS = 1b105000
[ 1.850436] PCIE1 no card, disable it(RST&CLK)
[ 1.859124] -> 12007f2
[ 1.863943] PCIE0 enabled
[ 1.869144] PCIE2 enabled
[ 1.874315] PCI host bridge /pcie@1e140000 ranges:
[ 1.883856] MEM 0x0000000060000000..0x000000006fffffff
[ 1.894208] IO 0x000000001e160000..0x000000001e16ffff
[ 1.904580] PCI coherence region base: 0x60000000, mask/settings: 0xf0000002
[ 1.960315] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 1.971652] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 1.982907] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 1.995126] PCI host bridge to bus 0000:00
[ 2.003142] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[ 2.016809] pci_bus 0000:00: root bus resource [io 0xffffffff]
[ 2.028540] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 2.042022] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 2.057790] pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
[ 2.057821] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[ 2.057835] pci 0000:00:00.0: reg 0x14: [mem 0x60300000-0x6030ffff]
[ 2.057895] pci 0000:00:00.0: supports D1
[ 2.057904] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[ 2.058175] pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400
[ 2.058204] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[ 2.058223] pci 0000:00:01.0: reg 0x14: [mem 0x60310000-0x6031ffff]
[ 2.058288] pci 0000:00:01.0: supports D1
[ 2.058300] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[ 2.058836] pci 0000:01:00.0: [14c3:7662] type 00 class 0x028000
[ 2.058887] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[ 2.058943] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[ 2.059052] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[ 2.059269] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[ 2.059532] pci 0000:02:00.0: [14c3:7603] type 00 class 0x028000
[ 2.059574] pci 0000:02:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[ 2.059714] pci 0000:02:00.0: PME# supported from D0 D3hot D3cold
[ 2.059938] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[ 2.059963] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 02
[ 2.060039] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[ 2.073070] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[ 2.086881] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[ 2.100013] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[ 2.113844] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[ 2.127317] pci 0000:00:00.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref]
[ 2.141662] pci 0000:00:01.0: BAR 8: assigned [mem 0x60200000-0x602fffff]
[ 2.155142] pci 0000:00:00.0: BAR 1: assigned [mem 0x60300000-0x6030ffff]
[ 2.168620] pci 0000:00:01.0: BAR 1: assigned [mem 0x60310000-0x6031ffff]
[ 2.182106] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
[ 2.196624] pci 0000:01:00.0: BAR 6: assigned [mem 0x60100000-0x6010ffff pref]
[ 2.210955] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 2.220790] pci 0000:00:00.0: bridge window [mem 0x60000000-0x600fffff]
[ 2.234283] pci 0000:00:00.0: bridge window [mem 0x60100000-0x601fffff pref]
[ 2.248627] pci 0000:02:00.0: BAR 0: assigned [mem 0x60200000-0x602fffff]
[ 2.262104] pci 0000:00:01.0: PCI bridge to [bus 02]
[ 2.271939] pci 0000:00:01.0: bridge window [mem 0x60200000-0x602fffff]
[ 2.285443] BAR0 at slot 0 = 0
[ 2.291457] bus=0x0, slot = 0x0
[ 2.297698] BAR0 at slot 1 = 0
[ 2.303724] bus=0x0, slot = 0x1
[ 2.309971] bus=0x1, slot = 0x0, irq=0xff
[ 2.317902] bus=0x2, slot = 0x1, irq=0xff
[ 2.327571] clocksource: Switched to clocksource GIC
[ 2.338902] NET: Registered protocol family 2
[ 2.348306] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 2.362051] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[ 2.374645] TCP: Hash tables configured (established 1024 bind 1024)
[ 2.387328] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 2.398863] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 2.411485] NET: Registered protocol family 1
[ 2.420073] PCI: CLS 80 bytes, default 32
[ 2.657528] 4 CPUs re-calibrate udelay(lpj = 2924544)
[ 2.668655] Crashlog allocated RAM at address 0x3f00000
[ 2.679512] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[ 2.702367] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 2.713873] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 2.736210] io scheduler noop registered
[ 2.743975] io scheduler deadline registered (default)
[ 2.754558] gpio-export gpio_export: 1 gpio(s) exported
[ 2.765576] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 2.782154] console [ttyS0] disabled
[ 2.789221] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 14, base_baud = 3125000) is a 16550A
[ 2.807136] console [ttyS0] enabled
[ 2.820931] bootconsole [early0] disabled
[ 2.838336] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
[ 2.852315] Allocate 16 byte aligned buffer: 80598360
[ 2.862373] Enable NFI Clock
[ 2.868103] # MTK NAND # : Use HW ECC
[ 2.875392] Device not found, ID: c2f1
[ 2.882850] Not Support this Device!
[ 2.890307] chip_mode=00000001
[ 2.896375] Support this Device in MTK table! c2f1
[ 2.906264] [NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
[ 2.919145] nand: device found, Manufacturer ID: 0xc2, Chip ID: 0xf1
[ 2.931786] nand: Macronix NAND 128MiB 3,3V 8-bit
[ 2.941153] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 2.956229] Scanning device for bad blocks
[ 3.207374] 6 ofpart partitions found on MTD device MT7621-NAND
[ 3.219163] Creating 6 MTD partitions on "MT7621-NAND":
[ 3.229569] 0x000000000000-0x000000100000 : "u-boot"
[ 3.240842] 0x000000100000-0x000000200000 : "SC PID"
[ 3.252056] 0x000000200000-0x000000600000 : "kernel"
[ 3.263519] 0x000000600000-0x000002200000 : "ubi"
[ 3.274937] 0x000002e00000-0x000002f00000 : "factory"
[ 3.286392] 0x000004200000-0x000007e00000 : "reserved"
[ 3.298209] random: fast init done
[ 3.298454] [mtk_nand] probe successfully!
[ 3.299163] Signature matched and data read!
[ 3.299168] load_fact_bbt success 1023
[ 3.299736] libphy: Fixed MDIO Bus: probed
[ 3.370190] libphy: mdio: probed
[ 4.776140] mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
[ 4.788800] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 16
[ 4.807901] NET: Registered protocol family 10
[ 4.818325] NET: Registered protocol family 17
[ 4.827232] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 4.853042] 8021q: 802.1Q VLAN Support v1.8
[ 4.864383] UBI: auto-attach mtd3
[ 4.871059] ubi0: attaching mtd3
[ 5.135756] ubi0: scanning is finished
[ 5.158600] ubi0: attached mtd3 (name "ubi", size 28 MiB)
[ 5.169404] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 5.183096] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[ 5.196608] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 5.210473] ubi0: good PEBs: 224, bad PEBs: 0, corrupted PEBs: 0
[ 5.222448] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[ 5.236829] ubi0: max/mean erase counter: 3/1, WL threshold: 4096, image sequence number: 805793595
[ 5.254842] ubi0: available PEBs: 0, total reserved PEBs: 224, PEBs reserved for bad PEB handling: 20
[ 5.273226] ubi0: background thread "ubi_bgt0d" started, PID 339
[ 5.275391] block ubiblock0_0: created from ubi0:0(rootfs)
[ 5.275402] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[ 5.275418] hctosys: unable to open rtc device (rtc0)
[ 5.326456] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[ 5.341324] Freeing unused kernel memory: 252K
[ 5.350228] This architecture does not have kernel memory protection.
[ 5.782128] init: Console is alive
[ 5.789148] init: - watchdog -
[ 6.309140] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 6.383645] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
[ 6.418285] usbcore: registered new interface driver usbfs
[ 6.429357] usbcore: registered new interface driver hub
[ 6.440127] mtk_soc_eth 1e100000.ethernet eth0: port 4 link up
[ 6.451968] usbcore: registered new device driver usb
[ 6.471078] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[ 6.481753] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 1
[ 6.507764] xhci-mtk 1e1c0000.xhci: hcc params 0x01401198 hci version 0x96 quirks 0x00210010
[ 6.524675] xhci-mtk 1e1c0000.xhci: irq 15, io mem 0x1e1c0000
[ 6.537183] hub 1-0:1.0: USB hub found
[ 6.544780] hub 1-0:1.0: 2 ports detected
[ 6.553229] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[ 6.563889] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 2
[ 6.578983] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 6.595989] hub 2-0:1.0: USB hub found
[ 6.603557] hub 2-0:1.0: 1 port detected
[ 6.614231] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 6.647861] init: - preinit -
[ 7.246890] usb 1-2: new high-speed USB device number 2 using xhci-mtk
[ 10.551535] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 428
[ 10.624535] UBIFS (ubi0:1): recovery needed
[ 10.785725] UBIFS (ubi0:1): recovery completed
[ 10.794719] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[ 10.810316] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 10.830058] UBIFS (ubi0:1): FS size: 21966848 bytes (20 MiB, 173 LEBs), journal size 1142784 bytes (1 MiB, 9 LEBs)
[ 10.850662] UBIFS (ubi0:1): reserved for root: 1037548 bytes (1013 KiB)
[ 10.863836] UBIFS (ubi0:1): media format: w4/r0 (latest is w4/r0), UUID 459CAF50-1696-402F-8A05-5A37BFB739F8, small LPT model
[ 10.897770] mount_root: loading kmods from internal overlay
[ 11.291092] block: attempting to load /tmp/ubifs_cfg/upper/etc/config/fstab
[ 11.309872] block: extroot: not configured
[ 11.360245] mount_root: switching to ubifs overlay
[ 11.387954] urandom-seed: Seeding with /etc/urandom.seed
[ 11.501260] procd: - early -
[ 11.507082] procd: - watchdog -
[ 12.157714] procd: - watchdog -
[ 12.164246] procd: - ubus -
[ 12.236154] procd: - init -
[ 13.115771] kmodloader: loading kernel modules from /etc/modules.d/*
[ 13.138455] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 13.188232] u32 classifier
[ 13.193655] input device check on
[ 13.200975] Actions configured
[ 13.210302] Mirror/redirect action on
[ 13.226486] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[ 13.253697] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[ 13.269725] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[ 13.286024] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 13.354606] xt_time: kernel timezone is -0000
[ 13.418671] mt7603e 0000:02:00.0: ASIC revision: 76030010
[ 13.461025] mt7603e 0000:02:00.0: Firmware Version: ap_pcie
[ 13.472339] mt7603e 0000:02:00.0: Build Time: 20160107100755
[ 13.517575] firmware init done
[ 13.695148] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 13.703233] mt76x2e 0000:01:00.0: ASIC revision: 76120044
[ 13.737741] mt76x2e 0000:01:00.0: ROM patch already applied
[ 13.750331] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
[ 13.761295] mt76x2e 0000:01:00.0: Build: 1
[ 13.769502] mt76x2e 0000:01:00.0: Build Time: 201507311614____
[ 13.807658] mt76x2e 0000:01:00.0: Firmware running!
[ 13.818850] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[ 13.827789] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 19.101550] device eth0 entered promiscuous mode
[ 19.114383] br-lan: port 1(eth0.1) entered blocking state
[ 19.125218] br-lan: port 1(eth0.1) entered disabled state
[ 19.136724] device eth0.1 entered promiscuous mode
[ 19.161021] br-lan: port 1(eth0.1) entered blocking state
[ 19.171850] br-lan: port 1(eth0.1) entered forwarding state
[ 19.183433] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[ 20.100341] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 22.367907] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 22.774810] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[ 22.787043] br-lan: port 2(wlan0) entered blocking state
[ 22.797941] br-lan: port 2(wlan0) entered disabled state
[ 22.809241] device wlan0 entered promiscuous mode
[ 22.835963] br-lan: port 3(wlan1) entered blocking state
[ 22.846730] br-lan: port 3(wlan1) entered disabled state
[ 22.858077] device wlan1 entered promiscuous mode
[ 22.867716] br-lan: port 3(wlan1) entered blocking state
[ 22.878328] br-lan: port 3(wlan1) entered forwarding state
[ 23.457872] br-lan: port 3(wlan1) entered disabled state
[ 24.236869] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[ 24.249955] br-lan: port 3(wlan1) entered blocking state
[ 24.260593] br-lan: port 3(wlan1) entered forwarding state
[ 24.677300] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 24.690342] br-lan: port 2(wlan0) entered blocking state
[ 24.700974] br-lan: port 2(wlan0) entered forwarding state
[ 37.449849] random: crng init done