From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from metis.ext.4.pengutronix.de ([92.198.50.35]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cY8Bi-0002uv-87 for linux-mtd@lists.infradead.org; Mon, 30 Jan 2017 09:23:52 +0000 References: <20161125113412.3ozyc7bjjecjahnb@pengutronix.de> <4d53ffff-a294-8238-bab1-004416e8d7be@nod.at> <20161125135152.f4npajnz5x76f5x7@pengutronix.de> <6708b0f4-63e4-663f-794a-13b95f38a928@nod.at> From: Steffen Trumtrar To: Richard Weinberger Cc: linux-mtd@lists.infradead.org, Artem Bityutskiy Subject: Re: [BUG?] ubi.fm_autoconvert=1 on first boot In-reply-to: <6708b0f4-63e4-663f-794a-13b95f38a928@nod.at> Date: Mon, 30 Jan 2017 10:23:23 +0100 Message-ID: <73k29cgaus.fsf@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi Richard! Richard Weinberger writes: > Steffen, > > Am 25.11.2016 um 14:51 schrieb Steffen Trumtrar: >> [ 3.167543] ubi1: scanning is finished >> [ 3.190860] ubi1 error: ubi_refill_pools: no free eraseblocks >> [ 3.196670] ubi1 error: ubi_update_fastmap: could not find any anchor PEB >> [ 3.203608] ubi1 warning: ubi_update_fastmap: Unable to write new fastmap, err=-28 >> [ 3.211299] ubi1 error: ubi_refill_pools: no free eraseblocks >> [ 3.217082] ubi1 error: ubi_update_fastmap: could not find any anchor PEB >> [ 3.223965] ubi1 warning: ubi_update_fastmap: Unable to write new fastmap, err=-28 >> [ 3.231632] ubi1 error: ubi_wl_get_peb: Unable to get a free PEB from user WL pool >> [ 3.239320] ubi1 warning: ubi_eba_atomic_leb_change: switch to read-only mode >> [ 3.246484] CPU: 0 PID: 1 Comm: swapper Not tainted 4.9.0-rc6 #45 >> [ 3.255341] Hardware name: Freescale MXS (Device Tree) >> [ 3.260616] [] (unwind_backtrace) from [] (show_stack+0x10/0x14) >> [ 3.268483] [] (show_stack) from [] (ubi_eba_atomic_leb_change+0x3c4/0x3e0) >> [ 3.277232] [] (ubi_eba_atomic_leb_change) from [] (ubi_update_layout_vol+0x38/0x54) >> [ 3.286826] [] (ubi_update_layout_vol) from [] (ubi_change_vtbl_record+0x8c/0x110) >> [ 3.296247] [] (ubi_change_vtbl_record) from [] (ubi_resize_volume+0x158/0x2e0) >> [ 3.305406] [] (ubi_resize_volume) from [] (autoresize+0x68/0x130) >> [ 3.313437] [] (autoresize) from [] (ubi_attach_mtd_dev+0x4c4/0xd54) >> [ 3.321641] [] (ubi_attach_mtd_dev) from [] (ubi_init+0x1bc/0x25c) >> [ 3.329688] [] (ubi_init) from [] (do_one_initcall+0x3c/0x17c) >> [ 3.337306] [] (do_one_initcall) from [] (kernel_init_freeable+0x108/0x1d0) >> [ 3.346123] [] (kernel_init_freeable) from [] (kernel_init+0x8/0xf8) >> [ 3.354331] [] (kernel_init) from [] (ret_from_fork+0x14/0x24) >> [ 3.362017] ubi1 error: autoresize: cannot auto-resize volume 0 >> [ 3.369308] UBI error: cannot attach mtd8[ 3.373284] stmp3xxx-rtc 80056000.rtc: setting system clock to 1970-01-01 00:57:18 UTC (3438) >> [ 3.382547] usb0_vbus: disabling >> [ 3.386189] uart-pl011 80074000.serial: no DMA platform data >> [ 3.394947] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 40 >> [ 3.482996] UBIFS (ubi0:0): recovery needed >> [ 3.739605] UBIFS (ubi0:0): recovery completed >> [ 3.744224] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "root" >> [ 3.751583] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes >> [ 3.761600] UBIFS (ubi0:0): FS size: 61837312 bytes (58 MiB, 487 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs) >> [ 3.772122] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB) >> [ 3.778051] UBIFS (ubi0:0): media format: w4/r0 (latest is w4/r0), UUID 79048B39-39D6-4BA2-89CF-8F2A0C699060, small LPT model >> [ 3.791974] VFS: Mounted root (ubifs filesystem) on device 0:14. >> [ 3.801380] devtmpfs: mounted >> [ 3.805096] Freeing unused kernel memory: 144K (c0440000 - c0464000) >> [ 3.811571] This architecture does not have kernel memory protection. >> mounting filesystems...[ 4.463895] UBIFS error (pid: 44): cannot open "ubi1:data", error -19done. > > Can you please give the attached patch a try? > It is untested since I cannot reproduce. > Thank you for the patch, I will get back to you once I found the time to test it. Thanks, Steffen -- Pengutronix e.K. | Steffen Trumtrar | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |