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#2742 - ath79 problems initializing rootfs, settings not saved (TPLINK 2543ND) #7770

Closed
openwrt-bot opened this issue Jan 16, 2020 · 25 comments
Labels

Comments

@openwrt-bot
Copy link

mgondium:

Errors initializing rootfs when running trunk for ath79, back on ar7xxx/9xxx all is fine. Device is a TP-LINK 2543ND router.

root@OpenWrt:~# dmesg
[ 0.000000] Linux version 4.19.93 (user@debian-c2q-x64) (gcc version 8.3.0 (OpenWrt GCC 8.3.0 r11822-e0382e88a9)) #0 Tue Jan 14 21:04:44 2020
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[ 0.000000] MIPS: machine is TP-Link TL-WR2543N/ND
[ 0.000000] SoC: Atheros AR7242 rev 1
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 04000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] On node 0 totalpages: 16384
[ 0.000000] Normal zone: 144 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 16384 pages, LIFO batch:3
[ 0.000000] random: get_random_bytes called from start_kernel+0x98/0x4a8 with crng_init=0
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=132768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 16240
[ 0.000000] Kernel command line: console=ttyS0,115200n8 rootfstype=squashfs,jffs2
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 57968K/65536K available (3980K kernel code, 167K rwdata, 936K rodata, 1180K init, 203K bss, 7568K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS: 51
[ 0.000000] CPU clock: 400.000 MHz
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[ 0.000013] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[ 0.007907] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[ 0.094156] pid_max: default: 32768 minimum: 301
[ 0.099133] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.105740] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.119824] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.129706] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.135986] pinctrl core: initialized pinctrl subsystem
[ 0.142608] NET: Registered protocol family 16
[ 0.156659] PCI host bridge /ahb/apb/pcie-controller@180c0000 ranges:
[ 0.163185] MEM 0x0000000010000000..0x0000000013ffffff
[ 0.168399] IO 0x0000000000000000..0x0000000000000000
[ 0.201928] PCI host bridge to bus 0000:00
[ 0.206124] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[ 0.212980] pci_bus 0000:00: root bus resource [io 0x0000]
[ 0.218558] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 0.225328] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.233289] pci 0000:00:00.0: [168c:0030] type 00 class 0x028000
[ 0.233362] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x0001ffff 64bit]
[ 0.233426] pci 0000:00:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[ 0.233521] pci 0000:00:00.0: supports D1
[ 0.233535] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[ 0.235175] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[ 0.235216] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1001ffff 64bit]
[ 0.242526] pci 0000:00:00.0: BAR 6: assigned [mem 0x10020000-0x1002ffff pref]
[ 0.254484] clocksource: Switched to clocksource MIPS
[ 0.261312] NET: Registered protocol family 2
[ 0.266926] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[ 0.274685] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.281648] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.288030] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.294645] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.300499] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.307274] NET: Registered protocol family 1
[ 0.311702] PCI: CLS 0 bytes, default 32
[ 0.316111] Crashlog allocated RAM at address 0x3f00000
[ 0.323305] workingset: timestamp_bits=14 max_order=14 bucket_order=0
[ 0.340312] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.346203] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.373785] io scheduler noop registered
[ 0.377794] io scheduler deadline registered (default)
[ 0.383295] ar7200-usb-phy usb-phy: phy reset is missing
[ 0.389267] pinctrl-single 18040028.pinmux: 64 pins, size 8
[ 0.396295] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[ 0.403613] console [ttyS0] disabled
[ 0.407309] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 9, base_baud = 12500000) is a 16550A
[ 0.416027] console [ttyS0] enabled
[ 0.423032] bootconsole [early0] disabled
[ 0.441001] m25p80 spi0.0: s25sl064p (8192 Kbytes)
[ 0.445953] 3 fixed-partitions partitions found on MTD device spi0.0
[ 0.452341] Creating 3 MTD partitions on "spi0.0":
[ 0.457206] 0x000000000000-0x000000020000 : "u-boot"
[ 0.463459] 0x000000020000-0x0000007f0000 : "firmware"
[ 0.473571] 2 tplink-fw partitions found on MTD device firmware
[ 0.479615] Creating 2 MTD partitions on "firmware":
[ 0.484652] 0x000000000000-0x0000001993fd : "kernel"
[ 0.490869] 0x000000199400-0x0000007d0000 : "rootfs"
[ 0.497070] mtd: device 3 (rootfs) set to be root filesystem
[ 0.505010] 1 squashfs-split partitions found on MTD device rootfs
[ 0.511258] 0x0000004e0000-0x0000007d0000 : "rootfs_data"
[ 0.517967] 0x0000007f0000-0x000000800000 : "art"
[ 0.524984] rtl8367 rtl8367: cannot find mdio node phandle
[ 0.530534] rtl8367 rtl8367: using GPIO pins 1 (SDA) and 6 (SCK)
[ 0.537223] rtl8367 rtl8367: RTL8367R ver. 0 chip found
[ 2.555857] libphy: rtl8367: probed
[ 2.564128] libphy: Fixed MDIO Bus: probed
[ 2.584531] random: fast init done
[ 2.926564] ag71xx 19000000.eth: connected to PHY at fixed-0:00 [uid=00000000, driver=Generic PHY]
[ 2.936665] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: rgmii
[ 2.945044] NET: Registered protocol family 17
[ 2.949670] 8021q: 802.1Q VLAN Support v1.8
[ 2.971556] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[ 2.988334] Freeing unused kernel memory: 1180K
[ 2.992895] This architecture does not have kernel memory protection.
[ 2.999404] Run /sbin/init as init process
[ 4.506002] init: Console is alive
[ 4.509757] init: - watchdog -
[ 6.153769] kmodloader: loading kernel modules from /etc/modules-boot.d/

[ 6.283565] usbcore: registered new interface driver usbfs
[ 6.289280] usbcore: registered new interface driver hub
[ 6.294831] usbcore: registered new device driver usb
[ 6.309855] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 6.319030] ehci-platform: EHCI generic platform driver
[ 6.324678] ehci-platform 1b000000.usb: EHCI Host Controller
[ 6.330447] ehci-platform 1b000000.usb: new USB bus registered, assigned bus number 1
[ 6.338554] ehci-platform 1b000000.usb: irq 3, io mem 0x1b000000
[ 6.374534] ehci-platform 1b000000.usb: USB 2.0 started, EHCI 1.00
[ 6.382033] hub 1-0:1.0: USB hub found
[ 6.386403] hub 1-0:1.0: 1 port detected
[ 6.392487] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 6.402623] init: - preinit -
[ 8.315535] random: jshn: uninitialized urandom read (4 bytes read)
[ 8.460370] random: jshn: uninitialized urandom read (4 bytes read)
[ 8.761016] random: jshn: uninitialized urandom read (4 bytes read)
[ 11.300784] urandom_read: 4 callbacks suppressed
[ 11.300795] random: procd: uninitialized urandom read (4 bytes read)
[ 12.275666] eth0: link up (1000Mbps/Full duplex)
[ 15.606249] mount_root: no usable overlay filesystem found, using tmpfs overlay
[ 15.643517] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 15.806863] eth0: link down
[ 15.837831] procd: - early -
[ 15.840874] procd: - watchdog -
[ 16.519048] procd: - watchdog -
[ 16.522628] procd: - ubus -
[ 16.641371] random: ubusd: uninitialized urandom read (4 bytes read)
[ 16.756450] random: ubusd: uninitialized urandom read (4 bytes read)
[ 16.764917] procd: - init -
[ 17.722444] kmodloader: loading kernel modules from /etc/modules.d/*
[ 17.981326] Loading modules backported from Linux version v5.4-rc8-0-gaf42d3466bdc
[ 17.989025] Backport generated by backports.git v5.4-rc8-1-0-g368e8c51
[ 18.068321] xt_time: kernel timezone is -0000
[ 18.376933] ath9k 0000:00:00.0: enabling device (0000 -> 0002)
[ 18.384448] ath9k 0000:00:00.0: Direct firmware load for ath9k-eeprom-pci-0000:00:00.0.bin failed with error -2
[ 18.394692] ath9k 0000:00:00.0: Falling back to syfs fallback for: ath9k-eeprom-pci-0000:00:00.0.bin
[ 18.871169] urngd: v1.0.1 started.
[ 19.068440] ath: EEPROM regdomain: 0x0
[ 19.068453] ath: EEPROM indicates default country code should be used
[ 19.068458] ath: doing EEPROM country->regdmn map search
[ 19.068475] ath: country maps to regdmn code: 0x3a
[ 19.068483] ath: Country alpha2 being used: US
[ 19.068488] ath: Regpair used: 0x3a
[ 19.085748] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 19.087923] ieee80211 phy0: Atheros AR9300 Rev:3 mem=0xb0000000, irq=14
[ 19.161569] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 19.546958] random: crng init done

[ 68.544632] jffs2: Empty flash at 0x000a00f8 ends at 0x000a06b0
[ 68.550612] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a06b0: 0xffff instead
[ 68.614616] jffs2: Empty flash at 0x000a06b4 ends at 0x000a0d88
[ 68.620598] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0d88: 0xffff instead
[ 68.636838] eth0: link up (1000Mbps/Full duplex)
[ 68.655831] br-lan: port 1(eth0.1) entered blocking state
[ 68.661278] br-lan: port 1(eth0.1) entered disabled state
[ 68.667205] device eth0.1 entered promiscuous mode
[ 68.672033] device eth0 entered promiscuous mode
[ 68.719024] jffs2: Empty flash at 0x000a0d8c ends at 0x000a14ac
[ 68.745080] br-lan: port 1(eth0.1) entered blocking state
[ 68.750528] br-lan: port 1(eth0.1) entered forwarding state
[ 68.758660] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a14ac: 0xffff instead
[ 68.832139] jffs2: Empty flash at 0x000a14b0 ends at 0x000a1bd8
[ 68.874881] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a1bd8: 0xffff instead
[ 68.884435] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a1bdc: 0xfbff instead
[ 69.005220] jffs2: Empty flash at 0x000a1be0 ends at 0x000a2304
[ 69.011202] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a2304: 0xffff instead
[ 69.094740] jffs2: Empty flash at 0x000a2308 ends at 0x000a2a2c
[ 69.100721] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a2a2c: 0xfbff instead
[ 69.195331] jffs2: Empty flash at 0x000a2a30 ends at 0x000a3150
[ 69.201307] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a3150: 0xffff instead
[ 69.328298] jffs2: Empty flash at 0x000a3154 ends at 0x000a3874
[ 69.334278] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a3874: 0xfffd instead
[ 69.415320] jffs2: Empty flash at 0x000a3878 ends at 0x000a3f94
[ 69.421304] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a3f94: 0xfff7 instead
[ 69.430907] jffs2: Further such events for this erase block will not be printed
[ 69.544669] jffs2: Empty flash at 0x000a3fa0 ends at 0x000a46bc
[ 69.636806] jffs2: Empty flash at 0x000a46c4 ends at 0x000a4de0
[ 69.683935] jffs2: Empty flash at 0x000a4de4 ends at 0x000a54b4
[ 69.720916] jffs2: Empty flash at 0x000a54bc ends at 0x000a5b90
[ 69.764603] jffs2: Empty flash at 0x000a5b9c ends at 0x000a62bc
[ 69.884723] jffs2: Empty flash at 0x000a62c4 ends at 0x000a69e0
[ 69.903148] jffs2: Empty flash at 0x000a69e4 ends at 0x000a710c
[ 69.944606] jffs2: Empty flash at 0x000a7114 ends at 0x000a7824
[ 69.994610] jffs2: Empty flash at 0x000a8110 ends at 0x000a8800
[ 70.024598] jffs2: Empty flash at 0x000a8804 ends at 0x000a8f18
[ 70.064590] jffs2: Empty flash at 0x000a8f1c ends at 0x000a9640
[ 70.094585] jffs2: Empty flash at 0x000a964c ends at 0x000a9d64
[ 70.134623] jffs2: Empty flash at 0x000a9d6c ends at 0x000aa48c
[ 70.174635] jffs2: Empty flash at 0x000aa490 ends at 0x000aabb0
[ 70.234683] jffs2: Empty flash at 0x000aabb4 ends at 0x000ab2dc
[ 70.274230] jffs2: Empty flash at 0x000ab2e4 ends at 0x000ab9fc
[ 70.334597] jffs2: Empty flash at 0x000aba0c ends at 0x000ac130
[ 70.405182] jffs2: Empty flash at 0x000ac134 ends at 0x000ac84c
[ 70.463400] jffs2: Empty flash at 0x000ac854 ends at 0x000acf6c
[ 70.517190] jffs2: Empty flash at 0x000acf74 ends at 0x000ad684
[ 70.555497] jffs2: Empty flash at 0x000ad688 ends at 0x000add44
[ 70.618041] jffs2: Empty flash at 0x000add48 ends at 0x000ae468
[ 70.647351] jffs2: Empty flash at 0x000ae46c ends at 0x000aeb58
[ 70.684645] jffs2: Empty flash at 0x000aeb5c ends at 0x000af22c
[ 70.724576] jffs2: Empty flash at 0x000af238 ends at 0x000af960
[ 70.758090] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001300e4: 0xfbdf instead
[ 70.774857] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001300e8: 0xfdff instead
[ 70.784401] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001300ec: 0xffff instead
[ 70.831609] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001300f0: 0xefff instead
[ 70.860490] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001300f4: 0xefff instead
[ 70.964607] jffs2: Empty flash at 0x001300f8 ends at 0x001307ec
[ 70.970586] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001307ec: 0xffff instead
[ 71.034636] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001307f0: 0xffff instead
[ 71.084796] jffs2: Empty flash at 0x001307f4 ends at 0x00130ef4
[ 71.090774] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00130ef4: 0xffff instead
[ 71.117083] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00130ef8: 0xffff instead
[ 71.144581] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00130efc: 0xbfff instead
[ 71.154121] jffs2: Further such events for this erase block will not be printed
[ 71.194599] jffs2: Empty flash at 0x001317f0 ends at 0x00131d8c
[ 71.214607] jffs2: Empty flash at 0x00131d94 ends at 0x00132444
[ 71.244674] jffs2: Empty flash at 0x00132448 ends at 0x00132b48
[ 71.274675] jffs2: Empty flash at 0x00133444 ends at 0x00133a3c
[ 71.294669] jffs2: Empty flash at 0x00133a48 ends at 0x00134128
[ 71.324644] jffs2: Empty flash at 0x0013412c ends at 0x00134820
[ 71.354559] jffs2: Empty flash at 0x00134824 ends at 0x00134f30
[ 71.374567] jffs2: Empty flash at 0x00134f34 ends at 0x00135638
[ 71.394593] jffs2: Empty flash at 0x0013563c ends at 0x00135d24
[ 71.414616] jffs2: Empty flash at 0x00135d28 ends at 0x00136414
[ 71.437378] jffs2: Empty flash at 0x00136418 ends at 0x00136b18
[ 71.464665] jffs2: Empty flash at 0x00136b1c ends at 0x001371dc
[ 71.493007] jffs2: Empty flash at 0x001371e0 ends at 0x001378f8
[ 71.514648] jffs2: Empty flash at 0x00137900 ends at 0x00137ff8
[ 71.534435] jffs2: Empty flash at 0x00137ffc ends at 0x001386f8
[ 71.571989] jffs2: Empty flash at 0x001386fc ends at 0x00138e14
[ 71.589904] jffs2: Empty flash at 0x00138e20 ends at 0x00139538
[ 71.614301] jffs2: Empty flash at 0x0013953c ends at 0x00139bdc
[ 71.634638] jffs2: Empty flash at 0x00139be0 ends at 0x0013a2b0
[ 71.669522] jffs2: Empty flash at 0x0013a2b8 ends at 0x0013a984
[ 71.690000] jffs2: Empty flash at 0x0013a990 ends at 0x0013b0a4
[ 71.706806] jffs2: Empty flash at 0x0013b0a8 ends at 0x0013b76c
[ 71.718121] jffs2: Empty flash at 0x0013b770 ends at 0x0013bd28
[ 71.729424] jffs2: Empty flash at 0x0013bd30 ends at 0x0013c2e8
[ 71.740506] jffs2: Empty flash at 0x0013c2ec ends at 0x0013c8d8
[ 71.757215] jffs2: Empty flash at 0x0013d2e8 ends at 0x0013d308
[ 71.773945] jffs2: Empty flash at 0x0013e300 ends at 0x0013e474
[ 71.785219] jffs2: Empty flash at 0x0013e484 ends at 0x0013ea68
[ 71.796523] jffs2: Empty flash at 0x0013ea6c ends at 0x0013f074
[ 71.806587] jffs2: Empty flash at 0x0013fa68 ends at 0x0013fc94
[ 71.816542] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001a00d4: 0xffbf instead
[ 71.826126] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001a00d8: 0xffff instead
[ 71.836046] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001a00dc: 0xdfff instead
[ 71.845846] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001a00e0: 0xffff instead
[ 71.860741] jffs2: Empty flash at 0x001a00e4 ends at 0x001a0804
[ 71.867033] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001a0804: 0xfff7 instead
[ 71.881909] jffs2: Empty flash at 0x001a0808 ends at 0x001a0f10
[ 71.888107] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001a0f10: 0xffff instead
[ 71.897903] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001a0f14: 0xfeff instead
[ 71.907762] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001a0f18: 0xffff instead
[ 71.922630] jffs2: Empty flash at 0x001a0f1c ends at 0x001a1634
[ 71.928831] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001a1634: 0xffff instead
[ 71.943688] jffs2: Empty flash at 0x001a1638 ends at 0x001a1d28
[ 71.949887] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001a1d28: 0xffff instead
[ 71.959459] jffs2: Further such events for this erase block will not be printed
[ 71.972214] jffs2: Empty flash at 0x001a1d2c ends at 0x001a243c
[ 71.983483] jffs2: Empty flash at 0x001a2440 ends at 0x001a2a38
[ 71.994865] jffs2: Empty flash at 0x001a2a3c ends at 0x001a3038
[ 72.006106] jffs2: Empty flash at 0x001a3040 ends at 0x001a361c
[ 72.017367] jffs2: Empty flash at 0x001a3620 ends at 0x001a3c04
[ 72.028632] jffs2: Empty flash at 0x001a3c08 ends at 0x001a41c8
[ 72.039699] jffs2: Empty flash at 0x001a41cc ends at 0x001a47c4
[ 72.051031] jffs2: Empty flash at 0x001a47cc ends at 0x001a4dcc
[ 72.062292] jffs2: Empty flash at 0x001a4dd0 ends at 0x001a53bc
[ 72.073559] jffs2: Empty flash at 0x001a53c4 ends at 0x001a59c4
[ 72.084876] jffs2: Empty flash at 0x001a59c8 ends at 0x001a5fb4
[ 72.096115] jffs2: Empty flash at 0x001a5fb8 ends at 0x001a65a0
[ 72.107378] jffs2: Empty flash at 0x001a65a4 ends at 0x001a6b90
[ 72.118675] jffs2: Empty flash at 0x001a6b98 ends at 0x001a7144
[ 72.129757] jffs2: Empty flash at 0x001a7148 ends at 0x001a773c
[ 72.141094] jffs2: Empty flash at 0x001a7744 ends at 0x001a7d28
[ 72.152352] jffs2: Empty flash at 0x001a7d2c ends at 0x001a8334
[ 72.169684] jffs2: Empty flash at 0x001a8d28 ends at 0x001a8fa0
[ 72.180744] jffs2: Empty flash at 0x001a8fa4 ends at 0x001a9590
[ 72.197481] jffs2: Empty flash at 0x001a9fa0 ends at 0x001a9fc0
[ 72.214225] jffs2: Empty flash at 0x001aafb8 ends at 0x001ab138
[ 72.225490] jffs2: Empty flash at 0x001ab140 ends at 0x001ab71c
[ 72.236750] jffs2: Empty flash at 0x001ab720 ends at 0x001abd10
[ 72.248050] jffs2: Empty flash at 0x001abd1c ends at 0x001ac2c8
[ 72.259322] jffs2: Empty flash at 0x001ac2cc ends at 0x001ac884
[ 72.270396] jffs2: Empty flash at 0x001ac888 ends at 0x001ace88
[ 72.287098] jffs2: Empty flash at 0x001ad884 ends at 0x001ad8a4
[ 72.303827] jffs2: Empty flash at 0x001ae89c ends at 0x001aea18
[ 72.315084] jffs2: Empty flash at 0x001aea24 ends at 0x001aeff8
[ 72.326335] jffs2: Empty flash at 0x001af000 ends at 0x001af5f0
[ 72.335731] jffs2: Empty flash at 0x001af5f4 ends at 0x001afbdc
[ 72.344772] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001e00c8: 0xdfff instead
[ 72.359730] jffs2: Empty flash at 0x001e00cc ends at 0x001e0730
[ 72.365752] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001e0730: 0xffff instead
[ 72.380728] jffs2: Empty flash at 0x001e0734 ends at 0x001e0e34
[ 72.386943] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001e0e34: 0xfff7 instead
[ 72.396737] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001e0e38: 0xefff instead
[ 72.411596] jffs2: Empty flash at 0x001e0e3c ends at 0x001e156c
[ 72.417807] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001e156c: 0xffef instead
[ 72.427604] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001e1570: 0xffff instead
[ 72.437399] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001e1574: 0xff43 instead
[ 72.447191] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001e1578: 0x37f0 instead
[ 72.456985] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001e1580: 0x0800 instead
[ 72.477177] jffs2: Empty flash at 0x001e1e38 ends at 0x001e1e58
[ 72.493905] jffs2: Empty flash at 0x001e2e50 ends at 0x001e2fc4
[ 72.499915] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001e2fc4: 0xfff7 instead
[ 72.509469] jffs2: Further such events for this erase block will not be printed
[ 72.522365] jffs2: Empty flash at 0x001e2fc8 ends at 0x001e36d8
[ 72.533633] jffs2: Empty flash at 0x001e36dc ends at 0x001e3ccc
[ 72.544944] jffs2: Empty flash at 0x001e3cd0 ends at 0x001e42c0
[ 72.556183] jffs2: Empty flash at 0x001e42c4 ends at 0x001e48a8
[ 72.567441] jffs2: Empty flash at 0x001e48ac ends at 0x001e4e8c
[ 72.578700] jffs2: Empty flash at 0x001e4e98 ends at 0x001e5450
[ 72.589774] jffs2: Empty flash at 0x001e5454 ends at 0x001e5a3c
[ 72.601105] jffs2: Empty flash at 0x001e5a40 ends at 0x001e6038
[ 72.612368] jffs2: Empty flash at 0x001e603c ends at 0x001e662c
[ 72.623636] jffs2: Empty flash at 0x001e663c ends at 0x001e6c24
[ 72.634965] jffs2: Empty flash at 0x001e6c2c ends at 0x001e721c
[ 72.646233] jffs2: Empty flash at 0x001e7220 ends at 0x001e7800
[ 72.657505] jffs2: Empty flash at 0x001e7804 ends at 0x001e7de8
[ 72.668766] jffs2: Empty flash at 0x001e7dec ends at 0x001e83b4
[ 72.679835] jffs2: Empty flash at 0x001e83bc ends at 0x001e89a8
[ 72.691166] jffs2: Empty flash at 0x001e89ac ends at 0x001e8fa8
[ 72.702429] jffs2: Empty flash at 0x001e8fb4 ends at 0x001e95b8
[ 72.713695] jffs2: Empty flash at 0x001e95bc ends at 0x001e9ba8
[ 72.725012] jffs2: Empty flash at 0x001e9bac ends at 0x001ea198
[ 72.736251] jffs2: Empty flash at 0x001ea19c ends at 0x001ea77c
[ 72.747508] jffs2: Empty flash at 0x001ea784 ends at 0x001ead80
[ 72.764133] jffs2: Empty flash at 0x001eb780 ends at 0x001eb928
[ 72.775436] jffs2: Empty flash at 0x001eb92c ends at 0x001ebf10
[ 72.786717] jffs2: Empty flash at 0x001ebf1c ends at 0x001ec510
[ 72.797980] jffs2: Empty flash at 0x001ec514 ends at 0x001ecacc
[ 72.809310] jffs2: Empty flash at 0x001ecad0 ends at 0x001ed094
[ 72.820395] jffs2: Empty flash at 0x001ed0a0 ends at 0x001ed698
[ 72.831736] jffs2: Empty flash at 0x001ed69c ends at 0x001edca0
[ 72.848445] jffs2: Empty flash at 0x001ee698 ends at 0x001ee6b8
[ 72.860949] jffs2: Empty flash at 0x001ef6b0 ends at 0x001ef6d0
[ 72.870242] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002600d8: 0xffff instead
[ 72.880138] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002600dc: 0xffff instead
[ 72.889933] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002600e0: 0xfbff instead
[ 72.899711] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002600e4: 0xffff instead
[ 72.909597] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002600e8: 0xfffc instead
[ 72.919416] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002600ec: 0x80ff instead
[ 72.929207] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002600f0: 0xfe00 instead
[ 72.939001] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002600f4: 0x00c0 instead
[ 72.958943] jffs2: Empty flash at 0x002600f8 ends at 0x00260118
[ 72.975676] jffs2: Empty flash at 0x00261110 ends at 0x00261130
[ 72.992427] jffs2: Empty flash at 0x00262128 ends at 0x002622a0
[ 72.998436] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002622a0: 0xffff instead
[ 73.008313] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002622a4: 0xffff instead
[ 73.017893] jffs2: Further such events for this erase block will not be printed
[ 73.030645] jffs2: Empty flash at 0x002622ac ends at 0x002629c8
[ 73.041944] jffs2: Empty flash at 0x002629cc ends at 0x00262fc0
[ 73.053227] jffs2: Empty flash at 0x00262fc8 ends at 0x002635bc
[ 73.064557] jffs2: Empty flash at 0x002635c8 ends at 0x00263bb0
[ 73.075787] jffs2: Empty flash at 0x00263bb4 ends at 0x00264194
[ 73.087049] jffs2: Empty flash at 0x00264198 ends at 0x00264790
[ 73.098315] jffs2: Empty flash at 0x00264798 ends at 0x00264d48
[ 73.109575] jffs2: Empty flash at 0x00264d4c ends at 0x00265310
[ 73.120649] jffs2: Empty flash at 0x00265314 ends at 0x002658f8
[ 73.131979] jffs2: Empty flash at 0x002658fc ends at 0x00265ef8
[ 73.143241] jffs2: Empty flash at 0x00265f00 ends at 0x002664f4
[ 73.154572] jffs2: Empty flash at 0x00266500 ends at 0x00266af4
[ 73.165837] jffs2: Empty flash at 0x00266af8 ends at 0x002670c0
[ 73.177110] jffs2: Empty flash at 0x002670c4 ends at 0x002676c0
[ 73.188373] jffs2: Empty flash at 0x002676c8 ends at 0x00267c8c
[ 73.199631] jffs2: Empty flash at 0x00267c90 ends at 0x0026824c
[ 73.210699] jffs2: Empty flash at 0x00268250 ends at 0x00268840
[ 73.222031] jffs2: Empty flash at 0x00268848 ends at 0x00268e34
[ 73.233294] jffs2: Empty flash at 0x00268e38 ends at 0x0026943c
[ 73.249927] jffs2: Empty flash at 0x00269e34 ends at 0x00269e54
[ 73.266666] jffs2: Empty flash at 0x0026ae4c ends at 0x0026ae6c
[ 73.283494] jffs2: Empty flash at 0x0026be64 ends at 0x0026c04c
[ 73.300256] jffs2: Empty flash at 0x0026ce7c ends at 0x0026d020
[ 73.311324] jffs2: Empty flash at 0x0026d024 ends at 0x0026d5f8
[ 73.322665] jffs2: Empty flash at 0x0026d600 ends at 0x0026dbf4
[ 73.339301] jffs2: Empty flash at 0x0026e5fc ends at 0x0026e61c
[ 73.351987] jffs2: Empty flash at 0x0026f614 ends at 0x0026f634
[ 73.361559] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002e00c8: 0xffff instead
[ 73.376494] jffs2: Empty flash at 0x002e00cc ends at 0x002e075c
[ 73.382464] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002e075c: 0xfffd instead
[ 73.397470] jffs2: Empty flash at 0x002e0760 ends at 0x002e0e24
[ 73.403436] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002e0e24: 0xfffd instead
[ 73.413323] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002e0e28: 0xfffb instead
[ 73.428274] jffs2: Empty flash at 0x002e0e2c ends at 0x002e1508
[ 73.434244] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002e1508: 0xffff instead
[ 73.449262] jffs2: Empty flash at 0x002e150c ends at 0x002e1be4
[ 73.455263] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002e1be4: 0xffbf instead
[ 73.465142] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002e1be8: 0xffff instead
[ 73.480006] jffs2: Empty flash at 0x002e1bec ends at 0x002e2304
[ 73.486203] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002e2304: 0xffef instead
[ 73.501062] jffs2: Empty flash at 0x002e2308 ends at 0x002e29fc
[ 73.507262] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002e29fc: 0xf7ff instead
[ 73.522122] jffs2: Empty flash at 0x002e2a00 ends at 0x002e30f8
[ 73.528321] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002e30f8: 0xffff instead
[ 73.537901] jffs2: Further such events for this erase block will not be printed
[ 73.550653] jffs2: Empty flash at 0x002e3100 ends at 0x002e3810
[ 73.561952] jffs2: Empty flash at 0x002e381c ends at 0x002e3e0c
[ 73.573225] jffs2: Empty flash at 0x002e3e10 ends at 0x002e43f0
[ 73.585744] jffs2: Empty flash at 0x002e43f4 ends at 0x002e4a1c
[ 73.596994] jffs2: Empty flash at 0x002e4a20 ends at 0x002e4ff8
[ 73.608249] jffs2: Empty flash at 0x002e4ffc ends at 0x002e55b0
[ 73.619508] jffs2: Empty flash at 0x002e55b4 ends at 0x002e5b6c
[ 73.630576] jffs2: Empty flash at 0x002e5b70 ends at 0x002e616c
[ 73.641912] jffs2: Empty flash at 0x002e6174 ends at 0x002e6778
[ 73.653180] jffs2: Empty flash at 0x002e677c ends at 0x002e6d6c
[ 73.664443] jffs2: Empty flash at 0x002e6d70 ends at 0x002e736c
[ 73.675765] jffs2: Empty flash at 0x002e7370 ends at 0x002e7974
[ 73.692372] jffs2: Empty flash at 0x002e836c ends at 0x002e8520
[ 73.709085] jffs2: Empty flash at 0x002e9384 ends at 0x002e93a4
[ 73.725847] jffs2: Empty flash at 0x002ea39c ends at 0x002ea3bc
[ 73.742677] jffs2: Empty flash at 0x002eb3b4 ends at 0x002eb588
[ 73.753745] jffs2: Empty flash at 0x002eb58c ends at 0x002ebb60
[ 73.765136] jffs2: Empty flash at 0x002ebb64 ends at 0x002ec150
[ 73.776372] jffs2: Empty flash at 0x002ec158 ends at 0x002ec73c
[ 73.787630] jffs2: Empty flash at 0x002ec740 ends at 0x002ecd28
[ 73.798928] jffs2: Empty flash at 0x002ecd2c ends at 0x002ed2e0
[ 73.810007] jffs2: Empty flash at 0x002ed2ec ends at 0x002ed8e4
[ 73.821380] jffs2: Empty flash at 0x002ed8e8 ends at 0x002edee0
[ 73.838025] jffs2: Empty flash at 0x002ee8e4 ends at 0x002ee904
[ 73.849103] jffs2: Empty flash at 0x002ef8fc ends at 0x002efaf4
[ 73.856723] jffs2: Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
[ 73.865249] jffs2: empty_blocks 41, bad_blocks 0, c->nr_blocks 47

@openwrt-bot
Copy link
Author

mgondium:

Problem remains in current trunk.
Also, the image upgrade from ar7x/9x to ath79 warns of incompatibility. As far as i know, there is only one version of the 2543ND model, so something is wrong in the image configuration regarding the flash layout or the device identification.

[ 0.000000] Linux version 4.19.93 (user@debian-c2q-x64) (gcc version 8.3.0 (OpenWrt GCC 8.3.0 r11822-e0382e88a9)) #0 Sat Jan 18 13:18:22 2020
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[ 0.000000] MIPS: machine is TP-Link TL-WR2543N/ND
[ 0.000000] SoC: Atheros AR7242 rev 1
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 04000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] On node 0 totalpages: 16384
[ 0.000000] Normal zone: 144 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 16384 pages, LIFO batch:3
[ 0.000000] random: get_random_bytes called from start_kernel+0x98/0x4a8 with crng_init=0
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=132768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 16240
[ 0.000000] Kernel command line: console=ttyS0,115200n8 rootfstype=squashfs,jffs2
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 57580K/65536K available (4277K kernel code, 179K rwdata, 1012K rodata, 1180K init, 206K bss, 7956K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS: 51
[ 0.000000] CPU clock: 400.000 MHz
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[ 0.000012] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[ 0.007905] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[ 0.094147] pid_max: default: 32768 minimum: 301
[ 0.099126] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.105731] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.119826] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.129704] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.135985] pinctrl core: initialized pinctrl subsystem
[ 0.142585] NET: Registered protocol family 16
[ 0.156867] PCI host bridge /ahb/apb/pcie-controller@180c0000 ranges:
[ 0.163391] MEM 0x0000000010000000..0x0000000013ffffff
[ 0.168606] IO 0x0000000000000000..0x0000000000000000
[ 0.203694] PCI host bridge to bus 0000:00
[ 0.207895] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[ 0.214750] pci_bus 0000:00: root bus resource [io 0x0000]
[ 0.220328] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 0.227098] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.235059] pci 0000:00:00.0: [168c:0030] type 00 class 0x028000
[ 0.235131] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x0001ffff 64bit]
[ 0.235195] pci 0000:00:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[ 0.235289] pci 0000:00:00.0: supports D1
[ 0.235304] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[ 0.236960] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[ 0.237000] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1001ffff 64bit]
[ 0.244315] pci 0000:00:00.0: BAR 6: assigned [mem 0x10020000-0x1002ffff pref]
[ 0.256382] clocksource: Switched to clocksource MIPS
[ 0.263162] NET: Registered protocol family 2
[ 0.268766] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[ 0.276561] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.283531] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.289926] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.296532] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.302383] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.309204] NET: Registered protocol family 1
[ 0.313618] PCI: CLS 0 bytes, default 32
[ 0.318109] Crashlog allocated RAM at address 0x3f00000
[ 0.325376] workingset: timestamp_bits=14 max_order=14 bucket_order=0
[ 0.342560] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.348446] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.377039] io scheduler noop registered
[ 0.380962] io scheduler deadline registered (default)
[ 0.386570] ar7200-usb-phy usb-phy: phy reset is missing
[ 0.392484] pinctrl-single 18040028.pinmux: 64 pins, size 8
[ 0.399517] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[ 0.406880] console [ttyS0] disabled
[ 0.410489] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 9, base_baud = 12500000) is a 16550A
[ 0.419240] console [ttyS0] enabled
[ 0.426246] bootconsole [early0] disabled
[ 0.444251] m25p80 spi0.0: s25sl064p (8192 Kbytes)
[ 0.449210] 3 fixed-partitions partitions found on MTD device spi0.0
[ 0.455598] Creating 3 MTD partitions on "spi0.0":
[ 0.460468] 0x000000000000-0x000000020000 : "u-boot"
[ 0.466801] 0x000000020000-0x0000007f0000 : "firmware"
[ 0.477043] 2 tplink-fw partitions found on MTD device firmware
[ 0.483008] Creating 2 MTD partitions on "firmware":
[ 0.488092] 0x000000000000-0x0000001b86b4 : "kernel"
[ 0.494268] 0x0000001b86b4-0x0000007d0000 : "rootfs"
[ 0.500421] mtd: device 3 (rootfs) set to be root filesystem
[ 0.508415] 1 squashfs-split partitions found on MTD device rootfs
[ 0.514662] 0x000000540000-0x0000007d0000 : "rootfs_data"
[ 0.521379] 0x0000007f0000-0x000000800000 : "art"
[ 0.528380] rtl8367 rtl8367: cannot find mdio node phandle
[ 0.533940] rtl8367 rtl8367: using GPIO pins 1 (SDA) and 6 (SCK)
[ 0.540654] rtl8367 rtl8367: RTL8367R ver. 0 chip found
[ 2.557680] libphy: rtl8367: probed
[ 2.565979] libphy: Fixed MDIO Bus: probed
[ 2.586423] random: fast init done
[ 2.928477] ag71xx 19000000.eth: connected to PHY at fixed-0:00 [uid=00000000, driver=Generic PHY]
[ 2.938561] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: rgmii
[ 2.948016] NET: Registered protocol family 10
[ 2.959502] Segment Routing with IPv6
[ 2.963348] NET: Registered protocol family 17
[ 2.968005] 8021q: 802.1Q VLAN Support v1.8
[ 2.988386] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[ 3.005101] Freeing unused kernel memory: 1180K
[ 3.009701] This architecture does not have kernel memory protection.
[ 3.016174] Run /sbin/init as init process
[ 4.523020] init: Console is alive
[ 4.526882] init: - watchdog -
[ 6.277569] kmodloader: loading kernel modules from /etc/modules-boot.d/

[ 6.407808] usbcore: registered new interface driver usbfs
[ 6.413421] usbcore: registered new interface driver hub
[ 6.418976] usbcore: registered new device driver usb
[ 6.434323] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 6.443560] ehci-platform: EHCI generic platform driver
[ 6.449212] ehci-platform 1b000000.usb: EHCI Host Controller
[ 6.454976] ehci-platform 1b000000.usb: new USB bus registered, assigned bus number 1
[ 6.463087] ehci-platform 1b000000.usb: irq 3, io mem 0x1b000000
[ 6.496429] ehci-platform 1b000000.usb: USB 2.0 started, EHCI 1.00
[ 6.503921] hub 1-0:1.0: USB hub found
[ 6.508331] hub 1-0:1.0: 1 port detected
[ 6.514423] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 6.524541] init: - preinit -
[ 8.430577] random: jshn: uninitialized urandom read (4 bytes read)
[ 8.573214] random: jshn: uninitialized urandom read (4 bytes read)
[ 8.866543] random: jshn: uninitialized urandom read (4 bytes read)
[ 11.282714] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 11.288806] IPv6: ADDRCONF(NETDEV_UP): eth0.1: link is not ready
[ 11.394575] urandom_read: 4 callbacks suppressed
[ 11.394586] random: procd: uninitialized urandom read (4 bytes read)
[ 12.357556] eth0: link up (1000Mbps/Full duplex)
[ 12.362241] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 12.369319] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready
[ 15.734065] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[ 15.783882] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 15.947593] eth0: link down
[ 15.979261] procd: - early -
[ 15.982302] procd: - watchdog -
[ 16.664044] procd: - watchdog -
[ 16.667691] procd: - ubus -
[ 16.770665] random: ubusd: uninitialized urandom read (4 bytes read)
[ 16.886079] random: ubusd: uninitialized urandom read (4 bytes read)
[ 16.894486] procd: - init -
[ 17.893391] kmodloader: loading kernel modules from /etc/modules.d/*
[ 18.181556] Loading modules backported from Linux version v5.4-rc8-0-gaf42d3466bdc
[ 18.189251] Backport generated by backports.git v5.4-rc8-1-0-g368e8c51
[ 18.282260] xt_time: kernel timezone is -0000
[ 18.493597] PPP generic driver version 2.4.2
[ 18.508121] NET: Registered protocol family 24
[ 18.639993] ath9k 0000:00:00.0: enabling device (0000 -> 0002)
[ 18.647592] ath9k 0000:00:00.0: Direct firmware load for ath9k-eeprom-pci-0000:00:00.0.bin failed with error -2
[ 18.657823] ath9k 0000:00:00.0: Falling back to syfs fallback for: ath9k-eeprom-pci-0000:00:00.0.bin
[ 19.067399] urngd: v1.0.1 started.
[ 19.323656] ath: EEPROM regdomain: 0x0
[ 19.323668] ath: EEPROM indicates default country code should be used
[ 19.323674] ath: doing EEPROM country->regdmn map search
[ 19.323691] ath: country maps to regdmn code: 0x3a
[ 19.323698] ath: Country alpha2 being used: US
[ 19.323703] ath: Regpair used: 0x3a
[ 19.340970] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 19.343419] ieee80211 phy0: Atheros AR9300 Rev:3 mem=0xb0000000, irq=14
[ 19.417442] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 19.752831] random: crng init done
[ 53.506848] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[ 53.513796] jffs2_build_filesystem(): unlocking the mtd device...
[ 53.513801] done.
[ 53.521996] jffs2_build_filesystem(): erasing all blocks after the end marker...
[ 53.821559] jffs2: Newly-erased block contained word 0xfffffffd at offset 0x00281704
[ 54.126547] jffs2: Newly-erased block contained word 0xf7ffffff at offset 0x00271390
[ 54.436528] jffs2: Newly-erased block contained word 0xffffdfff at offset 0x00260eb0
[ 54.502805] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 54.509966] eth0: link up (1000Mbps/Full duplex)
[ 54.514640] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 54.561819] br-lan: port 1(eth0.1) entered blocking state
[ 54.567346] br-lan: port 1(eth0.1) entered disabled state
[ 54.573275] device eth0.1 entered promiscuous mode
[ 54.578321] device eth0 entered promiscuous mode
[ 54.636594] br-lan: port 1(eth0.1) entered blocking state
[ 54.642044] br-lan: port 1(eth0.1) entered forwarding state
[ 54.647962] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[ 54.819176] jffs2: Newly-erased block contained word 0xfffffeff at offset 0x0025173c
[ 55.156699] jffs2: Newly-erased block contained word 0xfffffffb at offset 0x00240d88
[ 55.506521] jffs2: Newly-erased block contained word 0xfffffffd at offset 0x00230e64
[ 55.557162] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 55.846568] jffs2: Newly-erased block contained word 0xfffdffff at offset 0x00220c18
[ 56.216479] jffs2: Newly-erased block contained word 0xfffffffd at offset 0x00211708
[ 56.581884] jffs2: Newly-erased block contained word 0xfffffffd at offset 0x00200e9c
[ 56.941632] jffs2: Newly-erased block contained word 0xfffffffd at offset 0x001f0fcc
[ 57.316505] jffs2: Newly-erased block contained word 0xdfffffff at offset 0x001e1700
[ 57.631629] jffs2: Newly-erased block contained word 0xfffff7f3 at offset 0x001d0fb8
[ 57.951655] jffs2: Newly-erased block contained word 0xfffffeff at offset 0x001c0fc8
[ 58.281627] jffs2: Newly-erased block contained word 0xfffffffd at offset 0x001b144c
[ 58.597994] jffs2: Newly-erased block contained word 0xfffffff3 at offset 0x001a1464
[ 58.907749] jffs2: Newly-erased block contained word 0xfff7fffd at offset 0x00191470
[ 59.217684] jffs2: Newly-erased block contained word 0xfffeffff at offset 0x00181474
[ 59.526614] jffs2: Newly-erased block contained word 0xffffffdf at offset 0x00171484
[ 59.835381] jffs2: Newly-erased block contained word 0xfffffffd at offset 0x0016146c
[ 60.146575] jffs2: Newly-erased block contained word 0xfffffffe at offset 0x001512ac
[ 60.453731] jffs2: Newly-erased block contained word 0xfffffffe at offset 0x00141464
[ 60.763411] jffs2: Newly-erased block contained word 0xffffefff at offset 0x00131478
[ 61.072766] jffs2: Newly-erased block contained word 0xfffffffe at offset 0x0012147c
[ 61.381673] jffs2: Newly-erased block contained word 0xfbffffff at offset 0x00111470
[ 61.695837] jffs2: Newly-erased block contained word 0xffefffff at offset 0x001016ac
[ 62.021807] jffs2: Newly-erased block contained word 0xffffdffd at offset 0x000f0f5c
[ 62.341568] jffs2: Newly-erased block contained word 0xffffffdf at offset 0x000e0e34
[ 62.658022] jffs2: Newly-erased block contained word 0xfffbffff at offset 0x000d144c
[ 62.971616] jffs2: Newly-erased block contained word 0xffffffbf at offset 0x000c0fc4
[ 63.306494] jffs2: Newly-erased block contained word 0xffffffed at offset 0x000b146c
[ 63.627887] jffs2: Newly-erased block contained word 0xfffffffd at offset 0x000a147c
[ 63.937178] jffs2: Newly-erased block contained word 0xfefffeff at offset 0x00091488
[ 64.245614] jffs2: Newly-erased block contained word 0xffffefff at offset 0x00081468
[ 64.553962] jffs2: Newly-erased block contained word 0xfffffbff at offset 0x0007147c
[ 64.859828] jffs2: Newly-erased block contained word 0xfffff6ff at offset 0x000614a4
[ 65.167678] jffs2: Newly-erased block contained word 0xffbfffff at offset 0x0005147c
[ 65.474182] jffs2: Newly-erased block contained word 0xfffffffe at offset 0x00041478
[ 65.785005] jffs2: Newly-erased block contained word 0xf7ffffff at offset 0x00031490
[ 66.093543] jffs2: Newly-erased block contained word 0xffffffee at offset 0x0002148c
[ 66.401757] jffs2: Newly-erased block contained word 0xfffff7ff at offset 0x00011480
[ 66.706419] jffs2: Newly-erased block contained word 0xffffff9f at offset 0x0000147c
[ 66.714217] done.
[ 66.716195] jffs2: notice: (1371) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.

@openwrt-bot
Copy link
Author

luizluca:

Is this still in current 19.06 release?

@openwrt-bot
Copy link
Author

mgondium:

This is in trunk, for both ath79 (fault) and ar7xxx/9xxx (good).

@openwrt-bot
Copy link
Author

luizluca:

This issue is as bad as a device without space for overlay. Until it's fixed, I suggest to remove image file from the stable release.

@openwrt-bot
Copy link
Author

luizluca:

I tested just now this with 19.07.0 and it worked as expected. Is it something only for trunk kernel?

[ 0.000000] Linux version 4.14.162 (builder@buildhost) (gcc version 7.5.0 (OpenWrt GCC 7.5.0 r10860-a3ffeb413b)) #0 Mon Jan 6 16:47:09 2020
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[ 0.000000] MIPS: machine is TP-Link TL-WR2543N/ND
[ 0.000000] SoC: Atheros AR7242 rev 1
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 04000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] On node 0 totalpages: 16384
[ 0.000000] free_area_init_node: node 0, pgdat 804f9f60, node_mem_map 81007060
[ 0.000000] Normal zone: 128 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 16384 pages, LIFO batch:3
[ 0.000000] random: get_random_bytes called from 0x804fd740 with crng_init=0
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=132768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: console=ttyS0,115200n8 rootfstype=squashfs,jffs2
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 58332K/65536K available (4027K kernel code, 156K rwdata, 532K rodata, 1228K init, 212K bss, 7204K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS: 51
[ 0.000000] CPU clock: 400.000 MHz
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[ 0.000013] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[ 0.007915] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[ 0.094164] pid_max: default: 32768 minimum: 301
[ 0.099075] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.105679] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.118616] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.128493] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.134689] pinctrl core: initialized pinctrl subsystem
[ 0.143205] NET: Registered protocol family 16
[ 0.151426] PCI host bridge /ahb/apb/pcie-controller@180c0000 ranges:
[ 0.157875] MEM 0x0000000010000000..0x0000000013ffffff
[ 0.163151] IO 0x0000000000000000..0x0000000000000000
[ 0.192225] PCI host bridge to bus 0000:00
[ 0.196401] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[ 0.203251] pci_bus 0000:00: root bus resource [io 0x0000]
[ 0.208825] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 0.215590] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.223550] pci 0000:00:00.0: [168c:0030] type 00 class 0x028000
[ 0.223621] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x0001ffff 64bit]
[ 0.223686] pci 0000:00:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[ 0.223778] pci 0000:00:00.0: supports D1
[ 0.223792] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[ 0.224100] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[ 0.224138] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1001ffff 64bit]
[ 0.231449] pci 0000:00:00.0: BAR 6: assigned [mem 0x10020000-0x1002ffff pref]
[ 0.242831] clocksource: Switched to clocksource MIPS
[ 0.249388] NET: Registered protocol family 2
[ 0.255033] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.262005] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.268431] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.275003] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.280850] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.287495] NET: Registered protocol family 1
[ 0.291890] PCI: CLS 0 bytes, default 32
[ 0.296224] Crashlog allocated RAM at address 0x3f00000
[ 0.303344] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.317578] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.323453] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.346677] io scheduler noop registered
[ 0.350602] io scheduler deadline registered (default)
[ 0.356251] ar7200-usb-phy usb-phy: phy reset is missing
[ 0.362133] pinctrl-single 18040028.pinmux: 64 pins at pa b8040028 size 8
[ 0.370276] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 0.380184] console [ttyS0] disabled
[ 0.383882] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 9, base_baud = 12500000) is a 16550A
[ 0.392576] console [ttyS0] enabled
[ 0.399618] bootconsole [early0] disabled
[ 0.419930] m25p80 spi0.0: s25sl064p (8192 Kbytes)
[ 0.424885] 3 fixed-partitions partitions found on MTD device spi0.0
[ 0.431272] Creating 3 MTD partitions on "spi0.0":
[ 0.436129] 0x000000000000-0x000000020000 : "u-boot"
[ 0.442264] 0x000000020000-0x0000007f0000 : "firmware"
[ 0.448791] 2 tplink-fw partitions found on MTD device firmware
[ 0.454828] Creating 2 MTD partitions on "firmware":
[ 0.459838] 0x000000000000-0x000000185b0c : "kernel"
[ 0.465899] 0x000000185b0c-0x0000007d0000 : "rootfs"
[ 0.471918] mtd: device 3 (rootfs) set to be root filesystem
[ 0.477728] 1 squashfs-split partitions found on MTD device rootfs
[ 0.483988] 0x0000003f0000-0x0000007d0000 : "rootfs_data"
[ 0.490447] 0x0000007f0000-0x000000800000 : "art"
[ 0.497302] rtl8367 rtl8367: cannot find mdio node phandle
[ 0.502930] rtl8367 rtl8367: using GPIO pins 1 (SDA) and 6 (SCK)
[ 0.509575] rtl8367 rtl8367: RTL8367R ver. 0 chip found
[ 2.572869] libphy: rtl8367: probed
[ 2.581072] libphy: Fixed MDIO Bus: probed
[ 2.585277] random: fast init done
[ 2.924768] ag71xx 19000000.eth: connected to PHY at fixed-0:00 [uid=00000000, driver=Generic PHY]
[ 2.934724] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: rgmii
[ 2.944057] NET: Registered protocol family 10
[ 2.955327] Segment Routing with IPv6
[ 2.959152] NET: Registered protocol family 17
[ 2.963766] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 2.976823] 8021q: 802.1Q VLAN Support v1.8
[ 2.984397] hctosys: unable to open rtc device (rtc0)
[ 2.996288] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[ 3.013430] Freeing unused kernel memory: 1228K
[ 3.017990] This architecture does not have kernel memory protection.
[ 4.028312] init: Console is alive
[ 4.032026] init: - watchdog -
[ 5.226425] kmodloader: loading kernel modules from /etc/modules-boot.d/

[ 5.352067] usbcore: registered new interface driver usbfs
[ 5.357780] usbcore: registered new interface driver hub
[ 5.363302] usbcore: registered new device driver usb
[ 5.376241] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 5.385126] ehci-platform: EHCI generic platform driver
[ 5.390692] ehci-platform 1b000000.usb: EHCI Host Controller
[ 5.396531] ehci-platform 1b000000.usb: new USB bus registered, assigned bus number 1
[ 5.404604] ehci-platform 1b000000.usb: irq 3, io mem 0x1b000000
[ 5.432888] ehci-platform 1b000000.usb: USB 2.0 started, EHCI 1.00
[ 5.440232] hub 1-0:1.0: USB hub found
[ 5.444621] hub 1-0:1.0: 1 port detected
[ 5.450463] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 5.468382] init: - preinit -
[ 6.811045] random: jshn: uninitialized urandom read (4 bytes read)
[ 7.141663] random: jshn: uninitialized urandom read (4 bytes read)
[ 7.437977] random: jshn: uninitialized urandom read (4 bytes read)
[ 7.841077] urandom_read: 3 callbacks suppressed
[ 7.841089] random: jshn: uninitialized urandom read (4 bytes read)
[ 9.759499] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 9.765559] IPv6: ADDRCONF(NETDEV_UP): eth0.1: link is not ready
[ 9.855961] random: procd: uninitialized urandom read (4 bytes read)
[ 10.834003] eth0: link up (1000Mbps/Full duplex)
[ 10.838691] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 10.845642] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready
[ 13.156064] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[ 13.198077] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 13.359174] eth0: link down
[ 13.388381] procd: - early -
[ 13.391428] procd: - watchdog -
[ 14.174491] procd: - watchdog -
[ 14.178078] procd: - ubus -
[ 14.291282] random: ubusd: uninitialized urandom read (4 bytes read)
[ 14.401562] random: ubusd: uninitialized urandom read (4 bytes read)
[ 14.409901] procd: - init -
[ 15.309226] kmodloader: loading kernel modules from /etc/modules.d/*
[ 15.540786] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 15.576813] Loading modules backported from Linux version v4.19.85-0-gc63ee2939dc1
[ 15.584509] Backport generated by backports.git v4.19.85-1-0-g8a8be258
[ 15.616174] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 15.644411] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[ 15.659835] urngd: v1.0.0 started.
[ 15.805556] xt_time: kernel timezone is -0000
[ 15.970012] PPP generic driver version 2.4.2
[ 15.984187] NET: Registered protocol family 24
[ 16.083293] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[ 16.090222] ath9k 0000:00:00.0: Direct firmware load for ath9k-eeprom-pci-0000:00:00.0.bin failed with error -2
[ 16.100447] ath9k 0000:00:00.0: Falling back to user helper
[ 16.326633] random: crng init done
[ 16.565038] ath: EEPROM regdomain: 0x0
[ 16.565051] ath: EEPROM indicates default country code should be used
[ 16.565056] ath: doing EEPROM country->regdmn map search
[ 16.565075] ath: country maps to regdmn code: 0x3a
[ 16.565082] ath: Country alpha2 being used: US
[ 16.565088] ath: Regpair used: 0x3a
[ 16.582184] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 16.584859] ieee80211 phy0: Atheros AR9300 Rev:3 mem=0xb0000000, irq=12
[ 16.627749] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 57.632729] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[ 57.672926] jffs2_build_filesystem(): unlocking the mtd device...
[ 57.672941] done.
[ 57.681089] jffs2_build_filesystem(): erasing all blocks after the end marker...
[ 58.559572] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 58.574267] eth0: link up (1000Mbps/Full duplex)
[ 58.578954] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 58.636213] br-lan: port 1(eth0.1) entered blocking state
[ 58.641665] br-lan: port 1(eth0.1) entered disabled state
[ 58.647783] device eth0.1 entered promiscuous mode
[ 58.652612] device eth0 entered promiscuous mode
[ 58.723641] br-lan: port 1(eth0.1) entered blocking state
[ 58.729094] br-lan: port 1(eth0.1) entered forwarding state
[ 58.734988] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[ 59.633506] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 75.974268] done.
[ 75.976268] jffs2: notice: (1271) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 76.488001] overlayfs: upper fs does not support tmpfile.

root@OpenWrt:~# cat /etc/os-release
NAME="OpenWrt"
VERSION="19.07.0"
ID="openwrt"
ID_LIKE="lede openwrt"
PRETTY_NAME="OpenWrt 19.07.0"
VERSION_ID="19.07.0"
HOME_URL="https://openwrt.org/"
BUG_URL="https://bugs.openwrt.org/"
SUPPORT_URL="https://forum.openwrt.org/"
BUILD_ID="r10860-a3ffeb413b"
OPENWRT_BOARD="ath79/generic"
OPENWRT_ARCH="mips_24kc"
OPENWRT_TAINTS=""
OPENWRT_DEVICE_MANUFACTURER="OpenWrt"
OPENWRT_DEVICE_MANUFACTURER_URL="https://openwrt.org/"
OPENWRT_DEVICE_PRODUCT="Generic"
OPENWRT_DEVICE_REVISION="v0"
OPENWRT_RELEASE="OpenWrt 19.07.0 r10860-a3ffeb413b"

It kept fs changes even after a cold boot.

The only issue I have with 19.07.0 is FS#2751

I'll try snapshot now.

@openwrt-bot
Copy link
Author

luizluca:

I did some side-by-side check:

mtd2 "kernel": On 19.07, it ends exactly before SQFS(mtd3) while in trunk it ends 1 byte before squashfs. There is an 0xff between the end of mtd2 and the beginning of mtd3. However, it should do no harm.

mtd3 "rootfs" starts at the Squashfs magic number "hsqs" on both versions and ends at 0x0000007d0000, just before art

mtd5 "art" there is some written data at the beginning of art on trunk while in 19.07, it is 0xff between 0x00000000 0x00001000. I checked other devices and it is normally only 0xff. Maybe flashing trunk version wrote those extra bytes.

Now the fun begins: mtd4. If I get mtd4 offset from mtd1 (dmesg), it matches mtd4 contents:

root@OpenWrt:~# dmesg | grep rootfs_data [ 0.483997] 0x0000003f0000-0x0000007d0000 : "rootfs_data" root@OpenWrt:~# hexdump -C -s $(( 0x0000003f0000 )) /dev/mtd1 | head 003f0000 19 85 20 03 00 00 00 0c f0 60 dc 98 ff ff ff ff |.. ......`......| 003f0010 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| * 00400000 19 85 20 03 00 00 00 0c f0 60 dc 98 ff ff ff ff |.. ......`......| 00400010 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| * 00410000 19 85 20 03 00 00 00 0c f0 60 dc 98 ff ff ff ff |.. ......`......| 00410010 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| * 00420000 19 85 20 03 00 00 00 0c f0 60 dc 98 ff ff ff ff |.. ......`......| root@OpenWrt:~# hexdump -C /dev/mtd4 | head 00000000 19 85 20 03 00 00 00 0c f0 60 dc 98 ff ff ff ff |.. ......`......| 00000010 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| * 00010000 19 85 20 03 00 00 00 0c f0 60 dc 98 ff ff ff ff |.. ......`......| 00010010 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| * 00020000 19 85 20 03 00 00 00 0c f0 60 dc 98 ff ff ff ff |.. ......`......| 00020010 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| * 00030000 19 85 20 03 00 00 00 0c f0 60 dc 98 ff ff ff ff |.. ......`......|

Now with trunk, it simply does not match at all. It changes on each run:

root@OpenWrt:# dd if=/dev/mtdblock4 bs=1M | hexdump | head
0000000 ffff ffff ffff ffff ffff ffff ffff ffff
*
00008e0 ffff ffef ffff ffff dfff ffff ffff ffff
00008f0 ffff ffff ffff ffff ffff feff ffff ffff
0000900 feff bfff ffbf ffff fbff ffff ffff fffb
0000910 ffff ffbf ffff fff5 ffff 80ff fc0f ff80
0000920 2ff0 00ff 8000 c000 0700 0000 0000 0000
0000930 0000 0000 0000 0000 0000 0000 0000 0000
*
0007800 ffff ffff ffff ffff ffff ffff ffff ffff
root@OpenWrt:
# dd if=/dev/mtdblock4 bs=1M | hexdump | head
0000000 ffff ffff ffff ffff ffff ffff ffff ffff
*
00008f0 ffff ffff ffff fbff ffff ffce efff ffff
0000900 ffff fdff ffff ffff ffff ffbf ffff fffa
0000910 ffff ffff ffff bffd efff ffff ffdf fffd
0000920 99ff fc1f ff80 fff6 03ff 0017 f000 0f80
0000930 00e0 0000 0000 0000 0000 0000 0000 0000
0000940 0000 0000 0000 0000 0000 0000 0000 0000
*
000ea00 ffff ffff ffff ffff ffff ffff ffff ffff

It might be mapping a RAM region.

@openwrt-bot
Copy link
Author

mgondium:

Tested current trunk, no change regarding this. However, got no more incompatibility warnings, probably solved by this commit: [[https://github.com/openwrt/openwrt/commit/07ce940b77e6aceb095b0a16dda41e190dfc5b87]]

First boot after flashing:
[ 0.000000] Linux version 4.19.98 (user@debian-c2q-x64) (gcc version 8.3.0 (OpenWrt GCC 8.3.0 r12121-2dc0a8c180)) #0 Thu Jan 30 18:08:09 2020
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[ 0.000000] MIPS: machine is TP-Link TL-WR2543N/ND
[ 0.000000] SoC: Atheros AR7242 rev 1
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 04000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] On node 0 totalpages: 16384
[ 0.000000] Normal zone: 144 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 16384 pages, LIFO batch:3
[ 0.000000] random: get_random_bytes called from start_kernel+0x98/0x4a8 with crng_init=0
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=132768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 16240
[ 0.000000] Kernel command line: console=ttyS0,115200n8 rootfstype=squashfs,jffs2
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 57904K/65536K available (3983K kernel code, 169K rwdata, 972K rodata, 1204K init, 203K bss, 7632K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS: 51
[ 0.000000] CPU clock: 400.000 MHz
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[ 0.000012] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[ 0.007906] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[ 0.094156] pid_max: default: 32768 minimum: 301
[ 0.099132] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.105739] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.119792] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.129680] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.135962] pinctrl core: initialized pinctrl subsystem
[ 0.142577] NET: Registered protocol family 16
[ 0.156685] PCI host bridge /ahb/apb/pcie-controller@180c0000 ranges:
[ 0.163211] MEM 0x0000000010000000..0x0000000013ffffff
[ 0.168424] IO 0x0000000000000000..0x0000000000000000
[ 0.201806] PCI host bridge to bus 0000:00
[ 0.206001] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[ 0.212859] pci_bus 0000:00: root bus resource [io 0x0000]
[ 0.218432] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 0.225198] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.233157] pci 0000:00:00.0: [168c:0030] type 00 class 0x028000
[ 0.233229] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x0001ffff 64bit]
[ 0.233294] pci 0000:00:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[ 0.233385] pci 0000:00:00.0: supports D1
[ 0.233399] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[ 0.235044] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[ 0.235084] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1001ffff 64bit]
[ 0.242396] pci 0000:00:00.0: BAR 6: assigned [mem 0x10020000-0x1002ffff pref]
[ 0.254318] clocksource: Switched to clocksource MIPS
[ 0.261120] NET: Registered protocol family 2
[ 0.266727] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[ 0.274488] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.281452] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.287833] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.294441] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.300298] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.307050] NET: Registered protocol family 1
[ 0.311470] PCI: CLS 0 bytes, default 32
[ 0.315846] Crashlog allocated RAM at address 0x3f00000
[ 0.323021] workingset: timestamp_bits=14 max_order=14 bucket_order=0
[ 0.340023] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.345908] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.373632] io scheduler noop registered
[ 0.377636] io scheduler deadline registered (default)
[ 0.383143] ar7200-usb-phy usb-phy: phy reset is missing
[ 0.389110] pinctrl-single 18040028.pinmux: 64 pins, size 8
[ 0.396155] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[ 0.403473] console [ttyS0] disabled
[ 0.407171] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 9, base_baud = 12500000) is a 16550A
[ 0.415889] console [ttyS0] enabled
[ 0.422894] bootconsole [early0] disabled
[ 0.440905] m25p80 spi0.0: s25sl064p (8192 Kbytes)
[ 0.445860] 3 fixed-partitions partitions found on MTD device spi0.0
[ 0.452246] Creating 3 MTD partitions on "spi0.0":
[ 0.457110] 0x000000000000-0x000000020000 : "u-boot"
[ 0.463377] 0x000000020000-0x0000007f0000 : "firmware"
[ 0.473456] 2 tplink-fw partitions found on MTD device firmware
[ 0.479493] Creating 2 MTD partitions on "firmware":
[ 0.484530] 0x000000000000-0x00000019defa : "kernel"
[ 0.490734] 0x00000019defc-0x0000007d0000 : "rootfs"
[ 0.496913] mtd: device 3 (rootfs) set to be root filesystem
[ 0.504832] 1 squashfs-split partitions found on MTD device rootfs
[ 0.511075] 0x000000500000-0x0000007d0000 : "rootfs_data"
[ 0.517766] 0x0000007f0000-0x000000800000 : "art"
[ 0.524775] rtl8367 rtl8367: cannot find mdio node phandle
[ 0.530326] rtl8367 rtl8367: using GPIO pins 1 (SDA) and 6 (SCK)
[ 0.537013] rtl8367 rtl8367: RTL8367R ver. 0 chip found
[ 2.555671] libphy: rtl8367: probed
[ 2.563945] libphy: Fixed MDIO Bus: probed
[ 2.584358] random: fast init done
[ 2.926384] ag71xx 19000000.eth: connected to PHY at fixed-0:00 [uid=00000000, driver=Generic PHY]
[ 2.936473] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: rgmii
[ 2.944887] NET: Registered protocol family 17
[ 2.949513] 8021q: 802.1Q VLAN Support v1.8
[ 2.971474] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[ 2.988443] Freeing unused kernel memory: 1204K
[ 2.993010] This architecture does not have kernel memory protection.
[ 2.999521] Run /sbin/init as init process
[ 4.509857] init: Console is alive
[ 4.513605] init: - watchdog -
[ 6.172545] kmodloader: loading kernel modules from /etc/modules-boot.d/

[ 6.301200] usbcore: registered new interface driver usbfs
[ 6.306904] usbcore: registered new interface driver hub
[ 6.312413] usbcore: registered new device driver usb
[ 6.327924] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 6.337122] ehci-platform: EHCI generic platform driver
[ 6.342692] ehci-platform 1b000000.usb: EHCI Host Controller
[ 6.348518] ehci-platform 1b000000.usb: new USB bus registered, assigned bus number 1
[ 6.356615] ehci-platform 1b000000.usb: irq 3, io mem 0x1b000000
[ 6.384368] ehci-platform 1b000000.usb: USB 2.0 started, EHCI 1.00
[ 6.391801] hub 1-0:1.0: USB hub found
[ 6.396238] hub 1-0:1.0: 1 port detected
[ 6.402238] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 6.420176] init: - preinit -
[ 8.361196] random: jshn: uninitialized urandom read (4 bytes read)
[ 8.504901] random: jshn: uninitialized urandom read (4 bytes read)
[ 8.802689] random: jshn: uninitialized urandom read (4 bytes read)
[ 11.299536] urandom_read: 4 callbacks suppressed
[ 11.299547] random: procd: uninitialized urandom read (4 bytes read)
[ 12.275496] eth0: link up (1000Mbps/Full duplex)
[ 15.605023] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[ 15.641848] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 15.804823] eth0: link down
[ 15.835653] procd: - early -
[ 15.838700] procd: - watchdog -
[ 16.517178] procd: - watchdog -
[ 16.520750] procd: - ubus -
[ 16.639871] random: ubusd: uninitialized urandom read (4 bytes read)
[ 16.755268] random: ubusd: uninitialized urandom read (4 bytes read)
[ 16.763613] procd: - init -
[ 17.775079] kmodloader: loading kernel modules from /etc/modules.d/*
[ 18.001265] Loading modules backported from Linux version v5.4-rc8-0-gaf42d3466bdc
[ 18.008958] Backport generated by backports.git v5.4-rc8-1-0-g368e8c51
[ 18.085796] xt_time: kernel timezone is -0000
[ 18.411122] ath9k 0000:00:00.0: enabling device (0000 -> 0002)
[ 18.418718] ath9k 0000:00:00.0: Direct firmware load for ath9k-eeprom-pci-0000:00:00.0.bin failed with error -2
[ 18.428949] ath9k 0000:00:00.0: Falling back to syfs fallback for: ath9k-eeprom-pci-0000:00:00.0.bin
[ 18.878803] urngd: v1.0.2 started.
[ 19.101713] ath: EEPROM regdomain: 0x0
[ 19.101725] ath: EEPROM indicates default country code should be used
[ 19.101730] ath: doing EEPROM country->regdmn map search
[ 19.101747] ath: country maps to regdmn code: 0x3a
[ 19.101755] ath: Country alpha2 being used: US
[ 19.101759] ath: Regpair used: 0x3a
[ 19.119026] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 19.121162] ieee80211 phy0: Atheros AR9300 Rev:3 mem=0xb0000000, irq=14
[ 19.201282] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 19.548251] random: crng init done
[ 76.434256] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[ 76.444715] jffs2_build_filesystem(): unlocking the mtd device...
[ 76.444725] done.
[ 76.452872] jffs2_build_filesystem(): erasing all blocks after the end marker...
[ 76.771837] eth0: link up (1000Mbps/Full duplex)
[ 76.796415] br-lan: port 1(eth0.1) entered blocking state
[ 76.801861] br-lan: port 1(eth0.1) entered disabled state
[ 76.807830] device eth0.1 entered promiscuous mode
[ 76.812660] device eth0 entered promiscuous mode
[ 76.824500] jffs2: Newly-erased block contained word 0xfffffff7 at offset 0x002c0e40
[ 76.869710] br-lan: port 1(eth0.1) entered blocking state
[ 76.875230] br-lan: port 1(eth0.1) entered forwarding state
[ 77.154411] jffs2: Newly-erased block contained word 0xdffffffb at offset 0x002b1748
[ 77.494458] jffs2: Newly-erased block contained word 0xfff7ffff at offset 0x002a0f3c
[ 77.856406] jffs2: Newly-erased block contained word 0xfffffff7 at offset 0x0029175c
[ 78.204486] jffs2: Newly-erased block contained word 0xfffffffd at offset 0x0028174c
[ 78.546184] jffs2: Newly-erased block contained word 0xfbffffff at offset 0x00270f80
[ 78.915120] jffs2: Newly-erased block contained word 0xefffffff at offset 0x00261750
[ 79.224480] jffs2: Newly-erased block contained word 0xfffffffe at offset 0x00250fb0
[ 79.533404] jffs2: Newly-erased block contained word 0xffffbfff at offset 0x00240ef4
[ 79.859437] jffs2: Newly-erased block contained word 0xfffef3ff at offset 0x00231698
[ 80.148639] jffs2: Newly-erased block contained word 0xff7effff at offset 0x00221460
[ 80.431139] jffs2: Newly-erased block contained word 0xfbffffff at offset 0x00211458
[ 80.732623] jffs2: Newly-erased block contained word 0xfffffffd at offset 0x00201478
[ 81.042160] jffs2: Newly-erased block contained word 0xfdffffff at offset 0x001f147c
[ 81.350402] jffs2: Newly-erased block contained word 0xffbfffff at offset 0x001e146c
[ 81.658241] jffs2: Newly-erased block contained word 0xfffffffe at offset 0x001d1478
[ 81.966976] jffs2: Newly-erased block contained word 0xfffffffe at offset 0x001c1488
[ 82.275162] jffs2: Newly-erased block contained word 0xfffffffb at offset 0x001b1478
[ 82.594495] jffs2: Newly-erased block contained word 0xffffffbf at offset 0x001a1634
[ 82.924393] jffs2: Newly-erased block contained word 0xefffffff at offset 0x00191458
[ 83.239486] jffs2: Newly-erased block contained word 0xfffff7ff at offset 0x001816dc
[ 83.569770] jffs2: Newly-erased block contained word 0xfffffffd at offset 0x00171400
[ 83.894418] jffs2: Newly-erased block contained word 0xf7fffffd at offset 0x0016163c
[ 84.213966] jffs2: Newly-erased block contained word 0xffdffffd at offset 0x0015146c
[ 84.521389] jffs2: Newly-erased block contained word 0xdbdfffff at offset 0x0014147c
[ 84.828028] jffs2: Newly-erased block contained word 0xffdfffff at offset 0x0013148c
[ 85.135169] jffs2: Newly-erased block contained word 0xffffffdf at offset 0x00121484
[ 85.443646] jffs2: Newly-erased block contained word 0xffffdfff at offset 0x00111488
[ 85.751630] jffs2: Newly-erased block contained word 0xfffffffd at offset 0x00101484
[ 86.059910] jffs2: Newly-erased block contained word 0xffffbfff at offset 0x000f1480
[ 86.368260] jffs2: Newly-erased block contained word 0xfffffffd at offset 0x000e147c
[ 86.676625] jffs2: Newly-erased block contained word 0xfdffffff at offset 0x000d1484
[ 86.984667] jffs2: Newly-erased block contained word 0xefffdffe at offset 0x000c14b0
[ 87.291702] jffs2: Newly-erased block contained word 0xdfffffff at offset 0x000b1488
[ 87.596948] jffs2: Newly-erased block contained word 0xffffeffe at offset 0x000a1498
[ 87.904476] jffs2: Newly-erased block contained word 0xfff7fffd at offset 0x00091494
[ 88.210756] jffs2: Newly-erased block contained word 0xfbffffff at offset 0x00081490
[ 88.520372] jffs2: Newly-erased block contained word 0xfdffffff at offset 0x00071488
[ 88.827926] jffs2: Newly-erased block contained word 0xffffbfff at offset 0x00061488
[ 89.135922] jffs2: Newly-erased block contained word 0xfffffdff at offset 0x00051498
[ 89.442091] jffs2: Newly-erased block contained word 0xffffffdf at offset 0x00041474
[ 89.749884] jffs2: Newly-erased block contained word 0xfffeffff at offset 0x0003148c
[ 90.054088] jffs2: Newly-erased block contained word 0xfffbbfff at offset 0x00021494
[ 90.364427] jffs2: Newly-erased block contained word 0xfffffffd at offset 0x00011494
[ 90.665925] jffs2: Newly-erased block contained word 0xfffffffd at offset 0x0000149c
[ 90.673721] done.
[ 90.675739] jffs2: notice: (1273) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.

@openwrt-bot
Copy link
Author

mgondium:

@ Luiz Angelo Daros de Luca

Regarding the mtd4/art and the post "mess" fallout, back in ar7x/9x mine's also like that and I'm getting get this at boot.

[ 0.476017] pci 0000:00:00.0: invalid calibration data

I've checked this
https://github.com/bkil/calibrated-art-collection/tree/master/AR9380
and the structure is similar, so maybe it went unharmed.
I don't have a backup from before to compare but for now the radio comes up and works.

If the initialization is writing where it shouldn't and the ART gets messed up, wifi won't come up an we'll just own a slow booting "switch".
We're taking the risk every time we test ath79.

@openwrt-bot
Copy link
Author

luizluca:

I'm not to worried about art for now because the different part should be 0xff. It doesn't really looks like an important info. Maybe it's not even changed in flash but an apparent change caused by the real issue.

I'll check for that invalid calibration message in an untouched 2543.

I have dozens of 2543 and I can sacrifice one for the good of a working ath79 port.
I asked ML for help. I don't know where to look for problems any further as 19.07 do work and its dts is mostly identical to master.

@openwrt-bot
Copy link
Author

luizluca:

Don't bother with "invalid calibration data". It happens even on a device that never got in contact with ath79.

Today I loaded a ath76 initram variant (it does not change device flash). Even though, I keep reading random data from mtd devices.

@openwrt-bot
Copy link
Author

mgondium:

Glad to hear that, it may have dodged the bullet then.
It is weird, I've used ath79 to upgrade a load of ar7k/9k tplink atheros devices (1043ND, 841N, 710N, C6v2) and only the 2543ND had this flash problem.

@openwrt-bot
Copy link
Author

luizluca:

Maybe the issue is not the target, but kernel itself.

ar71xx will die with 4.14, which is also used for 19.07 (both ar71xx and ath79). So, the issue could be something introduced by the kernel between 4.14 and 4.19.

I already checked multiple places:

  • There is no obvious difference between 19.07 DTS and master DTS, also considering included files
  • There is no significant differences between patches-4.14 and patches-4.19, specially those that contain /724./
  • There is no significant changes on patches-4.14 between 19.07 and master

It might be something inside the kernel. I can try it with 4.14 and see what I get.

@openwrt-bot
Copy link
Author

luizluca:

I can confirm that the issue doesn't happen with master when using kernel 4.14.

So, something between kernel 4.14 and kernel 4.19 broke it.

@openwrt-bot
Copy link
Author

luizluca:

Getting there...

The issue happens because kernel 4.19 dropped patch 461-spi-ath79-add-fast-flash-read.patch. It was using "flash read" interface that got replaced by spi-mem.

@openwrt-bot
Copy link
Author

luizluca:

Good news! Got a working fix:

https://github.com/luizluca/openwrt/tree/ath79-spi-mem (still WIP)

root@OpenWrt:# uname -a
Linux OpenWrt 4.19.98 #0 Mon Feb 3 15:18:08 2020 mips GNU/Linux
root@OpenWrt:
# dmesg | grep ' jffs2'
[ 0.349426] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 14.359135] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[ 47.997397] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[ 48.004357] jffs2_build_filesystem(): unlocking the mtd device...
[ 48.012555] jffs2_build_filesystem(): erasing all blocks after the end marker...
[ 68.567262] jffs2: notice: (1193) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.

I implemented the old fast read codepath used until 4.14 on top of the new spi-mem.
I'll update here as soon as it hit master.

@openwrt-bot
Copy link
Author

mgondium:

Thanks! I'll keep an eye for it.

@openwrt-bot
Copy link
Author

psyborg:

that seems not to be a cause of the issue. with your patch it is the same as without it:
first boot after flashing all is good.

after next reboot: [ 10.058996] jffs2: notice: (502) jffs2_build_xattr_subsystem: complete building xattr subsystem, 3 of xdatum (0 unchecked, 1 orphan) and 11 of xref (1 dead, 0 orphan) found.

@openwrt-bot
Copy link
Author

luizluca:

I'll double check it but it worked even after a reboot for me. It did keep the changes.

@openwrt-bot
Copy link
Author

mgondium:

Now I'm having problems too on a different platform, I don't know if it's related but it's a strange coincidence.
https://bugs.openwrt.org/index.php?do=details&task_id=2837

@openwrt-bot
Copy link
Author

luizluca:

@Psyborg, I checked it again: no errors after the patch is in use:

# for dev in /dev/mtdblock*; do for x in 1 2 3 4 5; do dd if=$dev 2>/dev/null | md5sum - | sed -e "s,-,$dev:x,"; done; done
ac7830eeea44a58b1c5ecac927efc5a1 /dev/mtdblock0:x
ac7830eeea44a58b1c5ecac927efc5a1 /dev/mtdblock0:x
ac7830eeea44a58b1c5ecac927efc5a1 /dev/mtdblock0:x
ac7830eeea44a58b1c5ecac927efc5a1 /dev/mtdblock0:x
ac7830eeea44a58b1c5ecac927efc5a1 /dev/mtdblock0:x
298683a86e97e1c7a896d6fe98137fab /dev/mtdblock1:x
298683a86e97e1c7a896d6fe98137fab /dev/mtdblock1:x
298683a86e97e1c7a896d6fe98137fab /dev/mtdblock1:x
298683a86e97e1c7a896d6fe98137fab /dev/mtdblock1:x
298683a86e97e1c7a896d6fe98137fab /dev/mtdblock1:x
e958c1cc5393cd36e708c5c96334ab59 /dev/mtdblock2:x
e958c1cc5393cd36e708c5c96334ab59 /dev/mtdblock2:x
e958c1cc5393cd36e708c5c96334ab59 /dev/mtdblock2:x
e958c1cc5393cd36e708c5c96334ab59 /dev/mtdblock2:x
e958c1cc5393cd36e708c5c96334ab59 /dev/mtdblock2:x
bc494bb8715183bdf4d715fd72ae4eac /dev/mtdblock3:x
bc494bb8715183bdf4d715fd72ae4eac /dev/mtdblock3:x
bc494bb8715183bdf4d715fd72ae4eac /dev/mtdblock3:x
bc494bb8715183bdf4d715fd72ae4eac /dev/mtdblock3:x
bc494bb8715183bdf4d715fd72ae4eac /dev/mtdblock3:x
29e74b5d1bd7ecf321d50ae057cc6410 /dev/mtdblock4:x
29e74b5d1bd7ecf321d50ae057cc6410 /dev/mtdblock4:x
29e74b5d1bd7ecf321d50ae057cc6410 /dev/mtdblock4:x
29e74b5d1bd7ecf321d50ae057cc6410 /dev/mtdblock4:x
29e74b5d1bd7ecf321d50ae057cc6410 /dev/mtdblock4:x
1b74800f1f1dd40507e73d0e233991df /dev/mtdblock5:x
1b74800f1f1dd40507e73d0e233991df /dev/mtdblock5:x
1b74800f1f1dd40507e73d0e233991df /dev/mtdblock5:x
1b74800f1f1dd40507e73d0e233991df /dev/mtdblock5:x
1b74800f1f1dd40507e73d0e233991df /dev/mtdblock5:x

I rebooted it multiple times. I always keep the saved data. The line you posted:

[ 10.058996] jffs2: notice: (502) jffs2_build_xattr_subsystem: complete > building xattr subsystem, 3 of xdatum (0 unchecked, 1 orphan) and 11 of xref (1 > dead, 0 orphan) found.

Is no different from what I get with 19.07/ar71xx:

[ 10.607363] jffs2: notice: (427) jffs2_build_xattr_subsystem: complete building xattr subsystem, 4 of xdatum (3 unchecked, 1 orphan) and 63 of xref (1 dead, 1 orphan) found.

19.07/ath79:
[ 14.516015] jffs2: notice: (496) jffs2_build_xattr_subsystem: complete building xattr subsystem, 9 of xdatum (3 unchecked, 6 orphan) and 46 of xref (6 dead, 7 orphan) found.

and master/ath79:
[ 14.260996] jffs2: notice: (498) jffs2_build_xattr_subsystem: complete building xattr subsystem, 5 of xdatum (3 unchecked, 2 orphan) and 25 of xref (2 dead, 0 orphan) found.

I only saw 'all zero' log with 18.06/ar71xx

[ 10.484289] jffs2: notice: (407) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.

So, my patch does nothing related to this dmesg message. I'm not sure what those values really mean. It looks like just some jffs2 housekeeping.

Are your devices still failing to keep data after reboot (ignore that dmesg line)?
If not, did you test on more than one device? Do the md5sum test similar to the one I did and check if you still get random data.

I just updated my patch with a final form (now it is used by default).
https://github.com/luizluca/openwrt/tree/ath79-spi-mem

@openwrt-bot
Copy link
Author

psyborg:

as you noticed it is some sort of regression since 18.06
i think those are actual errors as i've been getting them even before 18.06 when having problems during SPI hardware mods (different hardware, not the one i use now)

LBE5ACGEN2, ath79, r10011, k4.14.118:
[ 8.525792] jffs2: notice: (407) jffs2_build_xattr_subsystem: complete building xattr subsystem, 61 of xdatum (2 unchecked, 59 orphan) and 111 of xref (57 dead, 34 orphan) found.

same on archer c7 v1.

TLMR22U, ar71xx, r7410, k4.9.111 - all zero

@openwrt-bot
Copy link
Author

mgondium:

Could the fix for this help?
https://bugs.openwrt.org/index.php?do=details&task_id=2837

It worked on mt7620, but had no effect I could see on the ath79 devices I'm running.

@openwrt-bot
Copy link
Author

luizluca:

Not for the original bug related to tl-wr2543nd. This bug happens since forever if you remove the flashread patch (dropped during upgrade to kernel 4.19), even on 4.14. it is probably a hardware bug unnoticed because we always used the memory mapped region to read from flash. Once you do it using normal flash commands, you will get the random output.

I already created a PR but I need to update it to kernel 5.4 recently added to ath79.

@openwrt-bot
Copy link
Author

mgondium:

I confirm that this is fixed with today's commit. Thank you!

@luizluca
Copy link
Contributor

For the record, patches applied upstream since 5.18 (torvalds/linux@d08de02)

DragonBluep added a commit to DragonBluep/openwrt that referenced this issue Jan 18, 2024
Fix jffs2 read fail issue for TP-Link TL-WR2543N. Error log:

[*] jffs2: Newly-erased block contained word 0x* at offset 0x*

Fixes: openwrt#7770
Signed-off-by: Shiji Yang <yangshiji66@qq.com>
DragonBluep added a commit to DragonBluep/openwrt that referenced this issue Jan 24, 2024
Fix jffs2 read fail issue for TP-Link TL-WR2543N. Error log:

[*] jffs2: Newly-erased block contained word 0x* at offset 0x*

Fixes: openwrt#7770
Signed-off-by: Shiji Yang <yangshiji66@qq.com>
DragonBluep added a commit to DragonBluep/openwrt that referenced this issue Mar 14, 2024
Fix jffs2 read fail issue for TP-Link TL-WR2543N. Error log:

[*] jffs2: Newly-erased block contained word 0x* at offset 0x*

Fixes: openwrt#7770
Signed-off-by: Shiji Yang <yangshiji66@qq.com>
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

2 participants