[FS#385] rampis / JFFS2-problem / Xiaomi Miwifi mini / r2919 / wrong erase size?

LEDE Bugs lede-bugs at lists.infradead.org
Fri Jan 13 07:03:38 PST 2017


The following task has a new comment added:

FS#385 - rampis / JFFS2-problem / Xiaomi Miwifi mini / r2919 / wrong erase size?
User who did this - Bastian Bittorf (bittorf)

----------

root at xiaomi:~ cat /proc/mtd 
dev:    size   erasesize  name
mtd0: 00030000 00001000 "u-boot"
mtd1: 00010000 00001000 "u-boot-env"
mtd2: 00010000 00001000 "factory"
mtd3: 00f80000 00001000 "firmware"
mtd4: 001353c1 00001000 "kernel"
mtd5: 00e4ac3f 00001000 "rootfs"
mtd6: 00ad0000 00001000 "rootfs_data"
mtd7: 00010000 00001000 "crash"
mtd8: 00010000 00001000 "reserved"
mtd9: 00010000 00001000 "Bdata"
root at xiaomi:~ 

root at xiaomi:~ dmesg 
[    0.000000] Linux version 4.4.40 (bastian at LEDE) (gcc version 5.4.0 (LEDE GCC 5.4.0 r2919+14-1d911fa) ) #0 Thu Jan 12 18:03:48 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 Xiaomi MiWiFi Mini
[    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] 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 803903d0, 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] 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] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 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=00025000
[    0.000000] Readback ErrCtl register=00025000
[    0.000000] Memory: 125740K/131072K available (2912K kernel code, 140K rwdata, 700K rodata, 144K init, 203K bss, 5332K 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.070058] pid_max: default: 32768 minimum: 301
[    0.074685] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.081054] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.094711] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.104413] pinctrl core: initialized pinctrl subsystem
[    0.110164] NET: Registered protocol family 16
[    0.377809] PCI host bridge /pcie at 10140000 ranges:
[    0.382417]  MEM 0x0000000020000000..0x000000002fffffff
[    0.387481]   IO 0x0000000010160000..0x000000001016ffff
[    0.401341] rt2880_gpio 10000600.gpio: registering 24 gpios
[    0.406731] rt2880_gpio 10000600.gpio: registering 24 irq handlers
[    0.412954] rt2880_gpio 10000638.gpio: registering 16 gpios
[    0.418322] rt2880_gpio 10000638.gpio: registering 16 irq handlers
[    0.424514] rt2880_gpio 10000660.gpio: registering 32 gpios
[    0.429881] rt2880_gpio 10000660.gpio: registering 32 irq handlers
[    0.436716] PCI host bridge to bus 0000:00
[    0.440645] pci_bus 0000:00: root bus resource [mem 0x20000000-0x2fffffff]
[    0.447355] pci_bus 0000:00: root bus resource [io  0xffffffff]
[    0.453059] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.459662] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.467384] pci 0000:00:00.0: [1814:0801] type 01 class 0x060400
[    0.467433] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    0.467456] pci 0000:00:00.0: reg 0x14: [mem 0x20200000-0x2020ffff]
[    0.467531] pci 0000:00:00.0: supports D1
[    0.467550] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    0.468024] pci 0000:01:00.0: [14c3:7662] type 00 class 0x028000
[    0.468100] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[    0.468163] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    0.468255] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    0.468516] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    0.468546] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 01
[    0.468602] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    0.475013] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    0.481730] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
[    0.488332] pci 0000:00:00.0: BAR 9: assigned [mem 0x20100000-0x201fffff pref]
[    0.495337] pci 0000:00:00.0: BAR 1: assigned [mem 0x20200000-0x2020ffff]
[    0.501950] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff 64bit]
[    0.509046] pci 0000:01:00.0: BAR 6: assigned [mem 0x20100000-0x2010ffff pref]
[    0.516055] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.520866] pci 0000:00:00.0:   bridge window [mem 0x20000000-0x200fffff]
[    0.527468] pci 0000:00:00.0:   bridge window [mem 0x20100000-0x201fffff pref]
[    0.534487] pci 0000:00:00.0: card - bus=0x0, slot = 0x0 irq=0
[    0.540153] pci 0000:01:00.0: card - bus=0x1, slot = 0x0 irq=4
[    0.546850] clocksource: Switched to clocksource systick
[    0.553512] NET: Registered protocol family 2
[    0.558647] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.565372] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.571593] TCP: Hash tables configured (established 1024 bind 1024)
[    0.577815] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.583440] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.589847] NET: Registered protocol family 1
[    0.594121] PCI: CLS 80 bytes, default 32
[    0.598943] rt-timer 10000100.timer: maximum frequency is 1220Hz
[    0.605733] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.611786] Crashlog allocated RAM at address 0x3f00000
[    0.632653] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.638334] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.650687] io scheduler noop registered
[    0.654446] io scheduler deadline registered (default)
[    0.659745] ralink-usb-phy usbphy: invalid resource
[    0.665142] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.672500] console [ttyS0] disabled
[    0.675950] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a Palmchip BK-3103
[    0.685631] console [ttyS0] enabled
[    0.692662] bootconsole [early0] disabled
[    0.705584] spi spi0.0: force spi mode3
[    0.710125] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    0.714980] 7 ofpart partitions found on MTD device spi0.0
[    0.720622] Creating 7 MTD partitions on "spi0.0":
[    0.725518] 0x000000000000-0x000000030000 : "u-boot"
[    0.732371] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.739743] 0x000000040000-0x000000050000 : "factory"
[    0.746744] 0x000000050000-0x000000fd0000 : "firmware"
[    2.059548] 2 uimage-fw partitions found on MTD device firmware
[    2.065622] 0x000000050000-0x0000001853c1 : "kernel"
[    2.072386] 0x0000001853c1-0x000000fd0000 : "rootfs"
[    2.079379] mtd: device 5 (rootfs) set to be root filesystem
[    2.085307] 1 squashfs-split partitions found on MTD device rootfs
[    2.091688] 0x000000500000-0x000000fd0000 : "rootfs_data"
[    2.099124] 0x000000fd0000-0x000000fe0000 : "crash"
[    2.105928] 0x000000fe0000-0x000000ff0000 : "reserved"
[    2.113099] 0x000000ff0000-0x000001000000 : "Bdata"
[    2.123134] gsw: setting port4 to ephy mode
[    2.127502] mtk_soc_eth 10100000.ethernet eth0 (uninitialized): port 1 link up (100Mbps/Full duplex)
[    2.137034] mtk_soc_eth 10100000.ethernet: loaded mt7620 driver
[    2.143880] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[    2.152913] rt2880_wdt 10000120.watchdog: Initialized
[    2.159669] NET: Registered protocol family 10
[    2.168854] NET: Registered protocol family 17
[    2.173484] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    2.186426] 8021q: 802.1Q VLAN Support v1.8
[    2.206229] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    2.214290] Freeing unused kernel memory: 144K (803ac000 - 803d0000)
[    3.817992] init: Console is alive
[    3.821680] init: - watchdog -
[    6.601917] usbcore: registered new interface driver usbfs
[    6.607733] usbcore: registered new interface driver hub
[    6.613262] usbcore: registered new device driver usb
[    6.733915] SCSI subsystem initialized
[    6.744125] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.752503] ehci-platform: EHCI generic platform driver
[    6.768241] phy phy-usbphy.0: remote usb device wakeup disabled
[    6.774290] phy phy-usbphy.0: UTMI 16bit 30MHz
[    6.778869] ehci-platform 101c0000.ehci: EHCI Host Controller
[    6.784767] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[    6.792982] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[    6.805490] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[    6.813037] hub 1-0:1.0: USB hub found
[    6.817312] hub 1-0:1.0: 1 port detected
[    6.824556] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    6.832453] ohci-platform: OHCI generic platform driver
[    6.838129] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
[    6.845105] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
[    6.853321] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
[    6.883912] hub 2-0:1.0: USB hub found
[    6.888123] hub 2-0:1.0: 1 port detected
[    6.899684] usbcore: registered new interface driver usb-storage
[    6.910286] init: - preinit -
[    7.694445] 8021q: adding VLAN 0 to HW filter on device eth0
[    7.764121] random: procd: uninitialized urandom read (4 bytes read, 13 bits of entropy available)
[    8.918678] mount_root: loading kmods from internal overlay
[    9.908802] jffs2: Node at 0x00000044 with length 0x00001044 would run over the end of the erase block
[    9.918379] jffs2: Perhaps the file system was created with the wrong erase size?
[    9.926062] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000048: 0x1044 instead
[    9.935752] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000004c: 0x586d instead
[    9.945456] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000050: 0x0002 instead
[    9.955146] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000054: 0x0002 instead
[    9.964848] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000058: 0x81a4 instead
[    9.974540] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000060: 0xd8a2 instead
[    9.984242] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000064: 0x9ad1 instead
[    9.993995] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000068: 0x9ad2 instead
[   10.003726] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000006c: 0x9ad2 instead
[   10.013419] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000074: 0x1000 instead
[   10.023100] jffs2: Further such events for this erase block will not be printed
[   11.482328] jffs2: notice: (377) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   11.499353] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[   11.522923] block: extroot: not configured
[   11.532378] jffs2: Node at 0x00000044 with length 0x00001044 would run over the end of the erase block
[   11.541956] jffs2: Perhaps the file system was created with the wrong erase size?
[   11.549731] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000048: 0x1044 instead
[   11.559431] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000004c: 0x586d instead
[   11.569135] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000050: 0x0002 instead
[   11.578809] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000054: 0x0002 instead
[   11.588497] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000058: 0x81a4 instead
[   11.598200] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000060: 0xd8a2 instead
[   11.607890] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000064: 0x9ad1 instead
[   11.617592] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000068: 0x9ad2 instead
[   11.627283] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000006c: 0x9ad2 instead
[   11.636985] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000074: 0x1000 instead
[   11.646670] jffs2: Further such events for this erase block will not be printed
[   13.105765] jffs2: notice: (374) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   13.126726] mount_root: loading kmods from internal overlay
[   14.151834] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[   14.165842] block: extroot: not configured
[   14.171299] mount_root: switching to jffs2 overlay
[   14.185325] urandom-seed: Seeding with /etc/urandom.seed
[   14.258052] procd: - early -
[   14.261269] procd: - watchdog -
[   14.845309] procd: - ubus -
[   14.889409] random: ubusd: uninitialized urandom read (4 bytes read, 28 bits of entropy available)
[   14.899212] random: ubusd: uninitialized urandom read (4 bytes read, 28 bits of entropy available)
[   14.908510] random: ubusd: uninitialized urandom read (4 bytes read, 28 bits of entropy available)
[   14.920643] random: ubusd: uninitialized urandom read (4 bytes read, 28 bits of entropy available)
[   14.929925] random: ubusd: uninitialized urandom read (4 bytes read, 28 bits of entropy available)
[   14.939364] random: ubusd: uninitialized urandom read (4 bytes read, 28 bits of entropy available)
[   14.948788] random: ubusd: uninitialized urandom read (4 bytes read, 28 bits of entropy available)
[   14.958477] procd: - init -
[   18.709900] random: ubusd: uninitialized urandom read (4 bytes read, 35 bits of entropy available)
[   18.808246] random: ubusd: uninitialized urandom read (4 bytes read, 35 bits of entropy available)
[   20.226080] zram: Unknown symbol lz4_compress (err 0)
[   20.231361] zram: Unknown symbol lz4_decompress_unknownoutputsize (err 0)
[   31.539479] zram: Added device: zram0
[   31.573655] tun: Universal TUN/TAP device driver, 1.6
[   31.578823] tun: (C) 1999-2004 Max Krasnyansky 
[   31.608743] ipip: IPv4 over IPv4 tunneling driver
[   31.628320] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   31.658127] Loading modules backported from Linux version wt-2016-10-03-1-g6fcb1a6
[   31.665936] Backport generated by backports.git backports-20160324-9-g0e38f5c
[   31.988049] mt76x2e 0000:01:00.0: ASIC revision: 76120044
[   32.000345] mt76x2e 0000:01:00.0: ROM patch already applied
[   32.132250] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
[   32.137866] mt76x2e 0000:01:00.0: Build: 1
[   32.142080] mt76x2e 0000:01:00.0: Build Time: 201507311614____
[   32.157305] mt76x2e 0000:01:00.0: Firmware running!
[   32.163185] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   32.208039] u32 classifier
[   32.210814]     input device check on
[   32.214544]     Actions configured
[   32.239466] Mirror/redirect action on
[   32.299710] ip_tables: (C) 2000-2006 Netfilter Core Team
[   32.344870] nf_conntrack version 0.5.0 (1966 buckets, 7864 max)
[   32.428028] usbcore: registered new interface driver ums-alauda
[   32.444012] usbcore: registered new interface driver ums-cypress
[   32.469468] usbcore: registered new interface driver ums-datafab
[   32.489207] usbcore: registered new interface driver ums-freecom
[   32.500783] usbcore: registered new interface driver ums-isd200
[   32.518770] usbcore: registered new interface driver ums-jumpshot
[   32.533593] usbcore: registered new interface driver ums-karma
[   32.555659] usbcore: registered new interface driver ums-sddr09
[   32.572136] usbcore: registered new interface driver ums-sddr55
[   32.599727] usbcore: registered new interface driver ums-usbat
[   32.689025] xt_time: kernel timezone is -0000
[   32.709640] PPP generic driver version 2.4.2
[   32.717343] NET: Registered protocol family 24
[   32.746514] rt2800_wmac 10180000.wmac: loaded eeprom from mtd device "factory"
[   32.753986] ieee80211 phy1: rt2x00_set_rt: Info - RT chipset 5390, rev 0500 detected
[   32.761914] ieee80211 phy1: rt2x00_set_rf: Info - RF chipset 7620 detected
[   32.769630] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[   34.169933] zram0: detected capacity change from 0 to 63963136
[   34.189427] Adding 62460k swap on /dev/zram0.  Priority:0 extents:1 across:62460k SS
[   38.405373] 8021q: adding VLAN 0 to HW filter on device eth0
[   40.188812] NET: Unregistered protocol family 24
[   56.382552] random: nonblocking pool is initialized
[   90.239183] zram: 5380 (cat) Attribute num_writes (and others) will be removed. See zram documentation.
root at xiaomi:~ 

----------

More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=385#comment1243



More information about the lede-bugs mailing list