Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
openwrt-bot opened this issue Jan 13, 2017 · 0 comments
Labels

Comments

@openwrt-bot
Copy link

bittorf:

after flashing r2919 i can see strange message with dmesg:

root@lede:~ dmesg | grep -i jffs [ 0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2 [ 0.638380] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [ 9.908794] jffs2: Node at 0x00000044 with length 0x00001044 would run over the end of the erase block [ 9.918337] jffs2: Perhaps the file system was created with the wrong erase size? [ 9.926009] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000048: 0x1044 instead [ 9.935697] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000004c: 0x586d instead [ 9.945403] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000050: 0x0002 instead [ 9.955094] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000054: 0x0002 instead [ 9.964797] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000058: 0x81a4 instead [ 9.974488] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000060: 0xd8a2 instead [ 9.984190] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000064: 0x9ad1 instead [ 9.993881] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000068: 0x9ad2 instead [ 10.003587] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000006c: 0x9ad2 instead [ 10.013278] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000074: 0x1000 instead [ 10.022959] jffs2: Further such events for this erase block will not be printed [ 11.479386] 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.496420] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab [ 11.525523] jffs2: Node at 0x00000044 with length 0x00001044 would run over the end of the erase block [ 11.535100] jffs2: Perhaps the file system was created with the wrong erase size? [ 11.542896] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000048: 0x1044 instead [ 11.552600] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000004c: 0x586d instead [ 11.562304] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000050: 0x0002 instead [ 11.571994] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000054: 0x0002 instead [ 11.581696] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000058: 0x81a4 instead [ 11.591387] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000060: 0xd8a2 instead [ 11.601089] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000064: 0x9ad1 instead [ 11.610780] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000068: 0x9ad2 instead [ 11.620481] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000006c: 0x9ad2 instead [ 11.630173] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000074: 0x1000 instead [ 11.639854] jffs2: Further such events for this erase block will not be printed [ 13.095966] 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. [ 14.064922] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab [ 14.086950] mount_root: switching to jffs2 overlay root@lede:~

beside that, it seems that the device is working:

root@lede:~ df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 3.5M 3.5M 0 100% /rom
tmpfs 61.5M 1.1M 60.4M 2% /tmp
/dev/mtdblock6 10.8M 796.0K 10.0M 7% /overlay
overlayfs:/overlay 10.8M 796.0K 10.0M 7% /
tmpfs 512.0K 0 512.0K 0% /dev
tmpfs 2.0M 0 2.0M 0% /coredumps

@openwrt-bot
Copy link
Author

bittorf:

just a note:
what also happened: i lost config after sysupgrade

@openwrt-bot
Copy link
Author

mkresin:

Please provide a full bootlog and the output of

cat /proc/mtd

@openwrt-bot
Copy link
Author

bittorf:

root@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@xiaomi:~

root@xiaomi:~ dmesg
[ 0.000000] Linux version 4.4.40 (bastian@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@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 maxk@qualcomm.com
[ 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@xiaomi:~

@openwrt-bot
Copy link
Author

mkresin:

Would you please give the attached patch a try.

If it still does not work, please try again with a stock configuration. Means, no extra packages like zram etc.

If you report bugs for custom builds, please paste always the output of ./scripts/diffconfig.sh.

Btw. your zram seem to have issues as well:

[ 20.226080] zram: Unknown symbol lz4_compress (err 0) [ 20.231361] zram: Unknown symbol lz4_decompress_unknownoutputsize (err 0)

Seams to me that either a dependency to [[http://lxr.free-electrons.com/source/lib/lz4/Makefile?v=4.4|CONFIG_LZ4*]] is missing or zram is compiled with lz4 support where it should not. Maybe you can investigate the issue by yourself and provide a patch.

@openwrt-bot
Copy link
Author

bittorf:

is does work! the zram-problem message is there since ages, but zram is working. here the output of the new image, which a produced like this:

make menuconfig (my changes)
make target/linux/clean

apply your patch

make

scp + sysupgrade image

her the diffconfig just in case:

bastian@LEDE:~/ledebot/source$ ./scripts/diffconfig.sh
CONFIG_TARGET_ramips=y
CONFIG_TARGET_ramips_mt7620=y
CONFIG_TARGET_ramips_mt7620_DEVICE_miwifi-mini=y
CONFIG_BUSYBOX_CUSTOM=y
CONFIG_BUSYBOX_CONFIG_ARPING=y

CONFIG_BUSYBOX_CONFIG_FEATURE_IP_RULE is not set

CONFIG_BUSYBOX_CONFIG_FEATURE_SWAPON_PRI=y
CONFIG_BUSYBOX_CONFIG_NC_110_COMPAT=y
CONFIG_BUSYBOX_CONFIG_NC_EXTRA=y
CONFIG_BUSYBOX_CONFIG_NC_SERVER=y
CONFIG_BUSYBOX_CONFIG_SWAPONOFF=y
CONFIG_BUSYBOX_CONFIG_TELNET=y
CONFIG_PACKAGE_block-mount=y

CONFIG_PACKAGE_firewall is not set

CONFIG_PACKAGE_ip-full=y
CONFIG_PACKAGE_iptables-mod-conntrack-extra=y
CONFIG_PACKAGE_iptables-mod-ipopt=y
CONFIG_PACKAGE_iptables-mod-nat-extra=y
CONFIG_PACKAGE_kmod-crypto-crc32c=y
CONFIG_PACKAGE_kmod-crypto-hash=y
CONFIG_PACKAGE_kmod-fs-ext4=y
CONFIG_PACKAGE_kmod-fs-vfat=y
CONFIG_PACKAGE_kmod-ifb=y
CONFIG_PACKAGE_kmod-ipip=y
CONFIG_PACKAGE_kmod-ipt-conntrack-extra=y
CONFIG_PACKAGE_kmod-ipt-ipopt=y
CONFIG_PACKAGE_kmod-ipt-nat-extra=y
CONFIG_PACKAGE_kmod-ipt-raw=y
CONFIG_PACKAGE_kmod-iptunnel=y
CONFIG_PACKAGE_kmod-iptunnel4=y
CONFIG_PACKAGE_kmod-lib-crc16=y
CONFIG_PACKAGE_kmod-lib-lz4=y
CONFIG_PACKAGE_kmod-lib-lzo=y
CONFIG_PACKAGE_kmod-macvlan=y
CONFIG_PACKAGE_kmod-nls-cp437=y
CONFIG_PACKAGE_kmod-nls-iso8859-1=y
CONFIG_PACKAGE_kmod-nls-utf8=y
CONFIG_PACKAGE_kmod-sched=y
CONFIG_PACKAGE_kmod-sched-core=y
CONFIG_PACKAGE_kmod-scsi-core=y
CONFIG_PACKAGE_kmod-tun=y
CONFIG_PACKAGE_kmod-usb-ledtrig-usbport=y
CONFIG_PACKAGE_kmod-usb-storage=y
CONFIG_PACKAGE_kmod-usb-storage-extras=y
CONFIG_PACKAGE_kmod-zram=y
CONFIG_PACKAGE_liblzo=y
CONFIG_PACKAGE_librrd1=y
CONFIG_PACKAGE_olsrd=y
CONFIG_PACKAGE_olsrd-mod-dyn-gw-plain=y
CONFIG_PACKAGE_olsrd-mod-jsoninfo=y
CONFIG_PACKAGE_olsrd-mod-nameservice=y
CONFIG_PACKAGE_olsrd-mod-txtinfo=y
CONFIG_PACKAGE_olsrd-mod-watchdog=y
CONFIG_PACKAGE_resolveip=y
CONFIG_PACKAGE_rrdtool1=y
CONFIG_PACKAGE_tc=y
CONFIG_PACKAGE_uhttpd=y
CONFIG_PACKAGE_vtun=y
CONFIG_PACKAGE_wireless-tools=y
CONFIG_PACKAGE_zlib=y
CONFIG_PACKAGE_zram-swap=y
CONFIG_PROCD_SHOW_BOOT=y
CONFIG_STRIP_ARGS="--strip-all"
CONFIG_TARGET_SQUASHFS_BLOCK_SIZE=64

CONFIG_USE_SSTRIP is not set

CONFIG_USE_STRIP=y
CONFIG_VTUN_LZO=y

CONFIG_PACKAGE_libopenssl is not set

CONFIG_VTUN_SSL is not set

bastian@LEDE:~/ledebot/source$

here new dmesg without any errors:

root@xiaomi-mini-TV:~ :) cat /tmp/dmesg.log
[ 0.000000] Linux version 4.4.40 (bastian@LEDE) (gcc version 5.4.0 (LEDE GCC 5.4.0 r2919+14-1d911fa) ) #0 Fri Jan 13 16:05:53 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=132768
[ 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.070067] pid_max: default: 32768 minimum: 301
[ 0.074694] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.081063] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.094720] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.104421] pinctrl core: initialized pinctrl subsystem
[ 0.110173] NET: Registered protocol family 16
[ 0.377818] PCI host bridge /pcie@10140000 ranges:
[ 0.382426] MEM 0x0000000020000000..0x000000002fffffff
[ 0.387490] IO 0x0000000010160000..0x000000001016ffff
[ 0.401350] rt2880_gpio 10000600.gpio: registering 24 gpios
[ 0.406740] rt2880_gpio 10000600.gpio: registering 24 irq handlers
[ 0.412963] rt2880_gpio 10000638.gpio: registering 16 gpios
[ 0.418330] rt2880_gpio 10000638.gpio: registering 16 irq handlers
[ 0.424522] rt2880_gpio 10000660.gpio: registering 32 gpios
[ 0.429889] rt2880_gpio 10000660.gpio: registering 32 irq handlers
[ 0.436725] PCI host bridge to bus 0000:00
[ 0.440653] pci_bus 0000:00: root bus resource [mem 0x20000000-0x2fffffff]
[ 0.447364] pci_bus 0000:00: root bus resource [io 0xffffffff]
[ 0.453068] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 0.459670] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.467393] pci 0000:00:00.0: [1814:0801] type 01 class 0x060400
[ 0.467441] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[ 0.467465] pci 0000:00:00.0: reg 0x14: [mem 0x20200000-0x2020ffff]
[ 0.467539] pci 0000:00:00.0: supports D1
[ 0.467558] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[ 0.468032] pci 0000:01:00.0: [14c3:7662] type 00 class 0x028000
[ 0.468109] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[ 0.468171] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[ 0.468263] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[ 0.468525] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[ 0.468554] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 01
[ 0.468610] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[ 0.475020] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[ 0.481738] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
[ 0.488340] pci 0000:00:00.0: BAR 9: assigned [mem 0x20100000-0x201fffff pref]
[ 0.495344] pci 0000:00:00.0: BAR 1: assigned [mem 0x20200000-0x2020ffff]
[ 0.501957] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff 64bit]
[ 0.509054] pci 0000:01:00.0: BAR 6: assigned [mem 0x20100000-0x2010ffff pref]
[ 0.516063] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 0.520874] pci 0000:00:00.0: bridge window [mem 0x20000000-0x200fffff]
[ 0.527476] pci 0000:00:00.0: bridge window [mem 0x20100000-0x201fffff pref]
[ 0.534495] pci 0000:00:00.0: card - bus=0x0, slot = 0x0 irq=0
root@xiaomi-mini-TV:~ :) cat /tmp/dmesg.log
[ 0.000000] Linux version 4.4.40 (bastian@LEDE) (gcc version 5.4.0 (LEDE GCC 5.4.0 r2919+14-1d911fa) ) #0 Fri Jan 13 16:05:53 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.070067] pid_max: default: 32768 minimum: 301
[ 0.074694] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.081063] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.094720] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.104421] pinctrl core: initialized pinctrl subsystem
[ 0.110173] NET: Registered protocol family 16
[ 0.377818] PCI host bridge /pcie@10140000 ranges:
[ 0.382426] MEM 0x0000000020000000..0x000000002fffffff
[ 0.387490] IO 0x0000000010160000..0x000000001016ffff
[ 0.401350] rt2880_gpio 10000600.gpio: registering 24 gpios
[ 0.406740] rt2880_gpio 10000600.gpio: registering 24 irq handlers
[ 0.412963] rt2880_gpio 10000638.gpio: registering 16 gpios
[ 0.418330] rt2880_gpio 10000638.gpio: registering 16 irq handlers
[ 0.424522] rt2880_gpio 10000660.gpio: registering 32 gpios
[ 0.429889] rt2880_gpio 10000660.gpio: registering 32 irq handlers
[ 0.436725] PCI host bridge to bus 0000:00
[ 0.440653] pci_bus 0000:00: root bus resource [mem 0x20000000-0x2fffffff]
[ 0.447364] pci_bus 0000:00: root bus resource [io 0xffffffff]
[ 0.453068] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 0.459670] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.467393] pci 0000:00:00.0: [1814:0801] type 01 class 0x060400
[ 0.467441] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[ 0.467465] pci 0000:00:00.0: reg 0x14: [mem 0x20200000-0x2020ffff]
[ 0.467539] pci 0000:00:00.0: supports D1
[ 0.467558] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[ 0.468032] pci 0000:01:00.0: [14c3:7662] type 00 class 0x028000
[ 0.468109] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[ 0.468171] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[ 0.468263] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[ 0.468525] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[ 0.468554] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 01
[ 0.468610] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[ 0.475020] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[ 0.481738] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
[ 0.488340] pci 0000:00:00.0: BAR 9: assigned [mem 0x20100000-0x201fffff pref]
[ 0.495344] pci 0000:00:00.0: BAR 1: assigned [mem 0x20200000-0x2020ffff]
[ 0.501957] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff 64bit]
[ 0.509054] pci 0000:01:00.0: BAR 6: assigned [mem 0x20100000-0x2010ffff pref]
[ 0.516063] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 0.520874] pci 0000:00:00.0: bridge window [mem 0x20000000-0x200fffff]
[ 0.527476] pci 0000:00:00.0: bridge window [mem 0x20100000-0x201fffff pref]
[ 0.534495] pci 0000:00:00.0: card - bus=0x0, slot = 0x0 irq=0
[ 0.540160] pci 0000:01:00.0: card - bus=0x1, slot = 0x0 irq=4
[ 0.546858] clocksource: Switched to clocksource systick
[ 0.553519] NET: Registered protocol family 2
[ 0.558653] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.565378] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.571599] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.577821] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.583446] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.589854] NET: Registered protocol family 1
[ 0.594128] PCI: CLS 80 bytes, default 32
[ 0.598949] rt-timer 10000100.timer: maximum frequency is 1220Hz
[ 0.605739] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.611792] Crashlog allocated RAM at address 0x3f00000
[ 0.632709] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.638391] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.650741] io scheduler noop registered
[ 0.654500] io scheduler deadline registered (default)
[ 0.659799] ralink-usb-phy usbphy: invalid resource
[ 0.665195] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.672552] console [ttyS0] disabled
[ 0.676000] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a Palmchip BK-3103
[ 0.685682] console [ttyS0] enabled
[ 0.692713] bootconsole [early0] disabled
[ 0.705635] spi spi0.0: force spi mode3
[ 0.710175] m25p80 spi0.0: w25q128 (16384 Kbytes)
[ 0.715030] 7 ofpart partitions found on MTD device spi0.0
[ 0.720673] Creating 7 MTD partitions on "spi0.0":
[ 0.725568] 0x000000000000-0x000000030000 : "u-boot"
[ 0.732423] 0x000000030000-0x000000040000 : "u-boot-env"
[ 0.739789] 0x000000040000-0x000000050000 : "factory"
[ 0.746787] 0x000000050000-0x000000fd0000 : "firmware"
[ 2.059652] 2 uimage-fw partitions found on MTD device firmware
[ 2.065726] 0x000000050000-0x0000001853a5 : "kernel"
[ 2.072493] 0x0000001853a5-0x000000fd0000 : "rootfs"
[ 2.079489] mtd: device 5 (rootfs) set to be root filesystem
[ 2.085417] 1 squashfs-split partitions found on MTD device rootfs
[ 2.091797] 0x000000500000-0x000000fd0000 : "rootfs_data"
[ 2.099230] 0x000000fd0000-0x000000fe0000 : "crash"
[ 2.106035] 0x000000fe0000-0x000000ff0000 : "reserved"
[ 2.113207] 0x000000ff0000-0x000001000000 : "Bdata"
[ 2.123239] gsw: setting port4 to ephy mode
[ 2.127607] mtk_soc_eth 10100000.ethernet eth0 (uninitialized): port 1 link up (100Mbps/Full duplex)
[ 2.137138] mtk_soc_eth 10100000.ethernet: loaded mt7620 driver
[ 2.143986] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[ 2.153020] rt2880_wdt 10000120.watchdog: Initialized
[ 2.159777] NET: Registered protocol family 10
[ 2.168960] NET: Registered protocol family 17
[ 2.173590] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[ 2.186531] 8021q: 802.1Q VLAN Support v1.8
[ 2.206335] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[ 2.214392] Freeing unused kernel memory: 144K (803ac000 - 803d0000)
[ 3.820145] init: Console is alive
[ 3.823835] init: - watchdog -
[ 6.603291] usbcore: registered new interface driver usbfs
[ 6.609101] usbcore: registered new interface driver hub
[ 6.614630] usbcore: registered new device driver usb
[ 6.734493] SCSI subsystem initialized
[ 6.744702] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 6.753075] ehci-platform: EHCI generic platform driver
[ 6.768813] phy phy-usbphy.0: remote usb device wakeup disabled
[ 6.774861] phy phy-usbphy.0: UTMI 16bit 30MHz
[ 6.779440] ehci-platform 101c0000.ehci: EHCI Host Controller
[ 6.785338] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[ 6.793552] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[ 6.805873] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[ 6.813413] hub 1-0:1.0: USB hub found
[ 6.817694] hub 1-0:1.0: 1 port detected
[ 6.824920] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 6.832819] ohci-platform: OHCI generic platform driver
[ 6.838491] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
[ 6.845470] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
[ 6.853684] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
[ 6.884271] hub 2-0:1.0: USB hub found
[ 6.888480] hub 2-0:1.0: 1 port detected
[ 6.900020] usbcore: registered new interface driver usb-storage
[ 6.910624] init: - preinit -
[ 7.691820] 8021q: adding VLAN 0 to HW filter on device eth0
[ 7.765775] random: procd: uninitialized urandom read (4 bytes read, 13 bits of entropy available)
[ 8.918193] mount_root: loading kmods from internal overlay
[ 11.351079] 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.367841] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[ 11.386572] block: extroot: not configured
[ 12.838560] 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.817806] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[ 13.832166] block: extroot: not configured
[ 13.837544] mount_root: switching to jffs2 overlay
[ 13.861313] urandom-seed: Seeding with /etc/urandom.seed
[ 13.931679] procd: - early -
[ 13.934734] procd: - watchdog -
[ 14.544657] procd: - ubus -
[ 14.644497] random: ubusd: uninitialized urandom read (4 bytes read, 28 bits of entropy available)
[ 14.654290] random: ubusd: uninitialized urandom read (4 bytes read, 28 bits of entropy available)
[ 14.663607] random: ubusd: uninitialized urandom read (4 bytes read, 28 bits of entropy available)
[ 14.673270] random: ubusd: uninitialized urandom read (4 bytes read, 28 bits of entropy available)
[ 14.682546] random: ubusd: uninitialized urandom read (4 bytes read, 28 bits of entropy available)
[ 14.691982] random: ubusd: uninitialized urandom read (4 bytes read, 28 bits of entropy available)
[ 14.701400] random: ubusd: uninitialized urandom read (4 bytes read, 28 bits of entropy available)
[ 14.711056] procd: - init -
[ 18.158926] random: ubusd: uninitialized urandom read (4 bytes read, 34 bits of entropy available)
[ 18.259431] random: ubusd: uninitialized urandom read (4 bytes read, 34 bits of entropy available)
[ 19.438945] zram: Unknown symbol lz4_compress (err 0)
[ 19.444307] zram: Unknown symbol lz4_decompress_unknownoutputsize (err 0)
[ 30.553486] zram: Added device: zram0
[ 30.587766] tun: Universal TUN/TAP device driver, 1.6
[ 30.592935] tun: (C) 1999-2004 Max Krasnyansky maxk@qualcomm.com
[ 30.619294] ipip: IPv4 over IPv4 tunneling driver
[ 30.645881] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 30.672347] Loading modules backported from Linux version wt-2016-10-03-1-g6fcb1a6
[ 30.680156] Backport generated by backports.git backports-20160324-9-g0e38f5c
[ 31.000981] mt76x2e 0000:01:00.0: ASIC revision: 76120044
[ 31.012524] mt76x2e 0000:01:00.0: ROM patch already applied
[ 31.144450] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
[ 31.150065] mt76x2e 0000:01:00.0: Build: 1
[ 31.154279] mt76x2e 0000:01:00.0: Build Time: 201507311614____
[ 31.169487] mt76x2e 0000:01:00.0: Firmware running!
[ 31.175345] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 31.220086] u32 classifier
[ 31.222861] input device check on
[ 31.226592] Actions configured
[ 31.251491] Mirror/redirect action on
[ 31.311559] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 31.351239] nf_conntrack version 0.5.0 (1966 buckets, 7864 max)
[ 31.446962] usbcore: registered new interface driver ums-alauda
[ 31.461450] usbcore: registered new interface driver ums-cypress
[ 31.479271] usbcore: registered new interface driver ums-datafab
[ 31.497036] usbcore: registered new interface driver ums-freecom
[ 31.511597] usbcore: registered new interface driver ums-isd200
[ 31.531752] usbcore: registered new interface driver ums-jumpshot
[ 31.550023] usbcore: registered new interface driver ums-karma
[ 31.572321] usbcore: registered new interface driver ums-sddr09
[ 31.587501] usbcore: registered new interface driver ums-sddr55
[ 31.604704] usbcore: registered new interface driver ums-usbat
[ 31.684388] xt_time: kernel timezone is -0000
[ 31.704984] PPP generic driver version 2.4.2
[ 31.712696] NET: Registered protocol family 24
[ 31.741577] rt2800_wmac 10180000.wmac: loaded eeprom from mtd device "factory"
[ 31.748974] ieee80211 phy1: rt2x00_set_rt: Info - RT chipset 5390, rev 0500 detected
[ 31.756961] ieee80211 phy1: rt2x00_set_rf: Info - RF chipset 7620 detected
[ 31.764724] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[ 33.159479] zram0: detected capacity change from 0 to 63963136
[ 33.178965] Adding 62460k swap on /dev/zram0. Priority:0 extents:1 across:62460k SS
[ 37.387331] 8021q: adding VLAN 0 to HW filter on device eth0
[ 39.147956] NET: Unregistered protocol family 24
[ 55.201719] random: nonblocking pool is initialized
[ 84.417364] zram: 5292 (cat) Attribute num_writes (and others) will be removed. See zram documentation.
root@xiaomi-mini-TV:~ :)

@openwrt-bot
Copy link
Author

mkresin:

The issue is not fixed by my patch.

It took some time till I figured out what's the reason for the jffs2 errors. You have done a sysupgrade from a version prior r1597 and preserved the config.

To preserve the config a small jffs2 partition is created and a tar.gz archive with your config files is written to this partition. On next boot, the config is restored from this jffs2 partition. With [[https://git.lede-project.org/925e63e71fa6691f3fa374f71c77d0a91c7e7539|r1597]] I've enabled support for 4KB sectors and the flash chip of the MiWiFi Mini supports 4KB sectors.

During sysupgrade with preserving the config from a version prior r1597, a backup partition with 64KB sector size is create. On boot of the new image, the kernel (with 4KB sector size support) recognizes the mismatch of the sector size of the flash chip (0x1000 bytes) and the sector size used for creating the jffs2 backup partition (0x10000 bytes) and at warns about it. Not sure if the restore of the config really worked for you.

It was finally fixed by running sysupgrade again.

I've no idea how this error could be prevented. The only solution I've so far for upgrading from a pre r1597 is:

  • create a backup (sysupgrade -b) and copy this backup to safe location
  • upgrade the running systems without preserving the config (sysupgrade -n)
  • restore your backup afterwards (sysupgrade -r)

Till now I wasn't aware of the jffs2 backup partition and never expected such an issue in regard to enabling 4K support in the kernel.

@openwrt-bot
Copy link
Author

s7lx:

I have a miwif nano too.
But I can use 8M flash only
root@LEDE:~# cat /proc/mtd
dev: size erasesize name
mtd0: 00030000 00010000 "u-boot"
mtd1: 00010000 00010000 "u-boot-env"
mtd2: 00010000 00010000 "factory"
mtd3: 007b0000 00010000 "firmware"
mtd4: 00128233 00010000 "kernel"
mtd5: 00687dcd 00010000 "rootfs"
mtd6: 00440000 00010000 "rootfs_data"

how do you use 16M flash ?

@openwrt-bot
Copy link
Author

bittorf:

@richard: i use a 'mini' not a 'nano'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant