RT5350F sysupgrade fails

Started by zokl, July 27, 2016, 05:02:13 PM

Previous topic - Next topic

zokl

Hello,
I have sometimes problem with upgrade RT5350F board with the web interface or sysupgrade utility. It occures after larger changes at target image (more then 1kB). Upgrade throught TFTP works fine and system starts everytime.

The problem is with JFFS2 filesystem ... Does anybody how to make upgrade throught sysupgrade utility or web interface more reliable?


[    0.572150] bootconsole [early0] disabled
[    0.589403] 10000c00.uartlite: ttyS1 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a Palmchip BK-3103
[    0.623948] spi spi0.0: force spi mode3
[    0.632570] m25p80 spi0.0: en25q64 (8192 Kbytes)
[    0.641975] 4 ofpart partitions found on MTD device spi0.0
[    0.652978] Creating 4 MTD partitions on "spi0.0":
[    0.662605] 0x000000000000-0x000000030000 : "u-boot"
[    0.676178] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.690878] 0x000000040000-0x000000050000 : "factory"
[    0.704814] 0x000000050000-0x000000800000 : "firmware"
[    0.757736] 2 uimage-fw partitions found on MTD device firmware
[    0.769681] 0x000000050000-0x000000177e8c : "kernel"
[    0.782943] 0x000000177e8c-0x000000800000 : "rootfs"
[    0.796758] mtd: device 5 (rootfs) set to be root filesystem
[    0.808362] 1 squashfs-split partitions found on MTD device rootfs
[    0.820792] 0x000000700000-0x000000800000 : "rootfs_data"
[    0.841302] rt3050-esw 10110000.esw: link changed 0x00
[    0.853833] mtk_soc_eth 10100000.ethernet: generated random MAC address c2:52:4a:58:92:31
[    0.871612] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[    0.889329] rt2880_wdt 10000120.watchdog: Initialized
[    0.902331] NET: Registered protocol family 10
[    0.919341] NET: Registered protocol family 17
[    0.928587] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    0.953902] 8021q: 802.1Q VLAN Support v1.8
[    0.973093] squashfs: SQUASHFS error: unable to read id index table
[    0.986395] jffs2: Flash size not aligned to erasesize, reducing to 6656KiB
[    1.001265] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000: 0x7368 instead
[    1.020298] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000004: 0x06e7 instead
[    1.039267] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000008: 0x882a instead
[    1.058232] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000010: 0x003b instead
[    1.077202] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000014: 0x0004 instead
[    1.096167] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000018: 0x06c0 instead
[    1.115132] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000001c: 0x0004 instead
[    1.134097] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000020: 0x0359 instead
[    1.153064] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000028: 0x4f84 instead
[    1.172030] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000030: 0x4f7c instead
[    1.190979] jffs2: Further such events for this erase block will not be printed
[    1.212409] jffs2: Empty flash at 0x00000038 ends at 0x00000040
[    1.275806] jffs2: Old JFFS2 bitmask found at 0x0000717c
[    1.286471] jffs2: You cannot use older JFFS2 filesystems with newer kernels
[    1.360577] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010000: 0xaf5c instead
[    1.379580] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010004: 0x5e42 instead
[    1.398549] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010008: 0xe771 instead
[    1.417515] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001000c: 0x700a instead
[    1.436479] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010010: 0x4ff4 instead
[    1.455444] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010014: 0x8d45 instead
[    1.474408] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010018: 0x3808 instead
[    1.493373] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001001c: 0xcb1d instead
[    1.512337] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010020: 0xe710 instead
[    1.531301] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010024: 0x3ba9 instead
[    1.550249] jffs2: Further such events for this erase block will not be printed
[    1.682766] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020000: 0xc475 instead
[    1.701773] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020004: 0x63ef instead
[    1.720743] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020008: 0xae81 instead
[    1.739706] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0002000c: 0x6d5a instead
[    1.758672] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020010: 0xb7ac instead
[    1.777637] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020014: 0x6d38 instead
[    1.796601] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020018: 0xbec7 instead
[    1.815565] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0002001c: 0x6adb instead
[    1.834529] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020020: 0xaa05 instead
[    1.853494] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020024: 0x2dc9 instead
[    1.872457] jffs2: Further such events for this erase block will not be printed
[    2.004971] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030000: 0xb728 instead
[    2.023979] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030004: 0xba8e instead
[    2.042947] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030008: 0x15a5 instead
[    2.061915] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0003000c: 0xb613 instead
[    2.080879] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030010: 0x3444 instead
[    2.099852] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030014: 0x4aca instead
[    2.118812] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030018: 0x7914 instead
[    2.137776] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0003001c: 0xdb6a instead
[    2.156742] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030020: 0xd370 instead
[    2.175706] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030024: 0x8b21 instead
[    2.194654] jffs2: Further such events for this erase block will not be printed
[    2.327143] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040000: 0x804a instead
[    2.346150] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040004: 0xd478 instead
[    2.365119] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040008: 0xbcec instead
[    2.384083] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0004000c: 0x4dcf instead
[    2.403047] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040010: 0x1b94 instead
[    2.422012] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040014: 0xaecd instead
[    2.440978] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040018: 0x666c instead
[    2.459955] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0004001c: 0x9de2 instead
[    2.478920] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040020: 0x5d06 instead
[    2.497884] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040024: 0x054c instead
[    2.516832] jffs2: Further such events for this erase block will not be printed
[    2.649288] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050000: 0x6d93 instead
[    2.668294] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050004: 0x6870 instead
[    2.687262] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050008: 0x42f0 instead
[    2.706226] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0005000c: 0xac85 instead
[    2.725190] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050010: 0x1121 instead
[    2.744156] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050014: 0x892a instead
[    2.763122] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050018: 0x70d9 instead
[    2.782086] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0005001c: 0x2a3e instead
[    2.801051] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050020: 0xff8c instead
[    2.820017] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050024: 0x1de5 instead
[    2.838963] jffs2: Further such events for this erase block will not be printed
...
[   29.735490] jffs2: Further such events for this erase block will not be printed
[   29.786187] jffs2: Empty flash at 0x00583e10 ends at 0x00584174
[   29.825194] jffs2: Empty flash at 0x00584178 ends at 0x00588174
[   29.843891] jffs2: CLEANMARKER node found at 0x00588174, not first node in block (0x00580000)
[   29.921588] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00670000: 0xc577 instead
[   29.940594] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00670004: 0xf8fd instead
[   29.959561] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00670008: 0xfa41 instead
[   29.978527] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0067000c: 0xb2b4 instead
[   29.997492] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00670010: 0xebce instead
[   30.016458] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00670014: 0x91a8 instead
[   30.035422] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00670018: 0x171b instead
[   30.054388] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0067001c: 0x2435 instead
[   30.073356] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00670020: 0xce28 instead
[   30.092321] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00670024: 0xa541 instead
[   30.111280] jffs2: Further such events for this erase block will not be printed
[   30.168562] jffs2: CLEANMARKER node found at 0x00678174, not first node in block (0x00670000)
[   30.239457] jffs2: notice: (1) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   30.270135] VFS: Mounted root (jffs2 filesystem) readonly on device 31:5.
[   30.285781] Freeing unused kernel memory: 188K (80371000 - 803a0000)
[   30.298738] Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
[   30.339077] ---[ end Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.

blacky

Hi,

I have the some problem. Did you managed to solve it?

Roman Shishko

You need erase the linux partition and reload firmware via bootloader command line,after that sysupgrade will work fine.