All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Weinberger <richard@nod.at>
To: Bhuvanchandra DV <bhuvanchandradv@gmail.com>
Cc: "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>
Subject: Re: UBIFS errors when file-system is full
Date: Tue, 14 Jul 2015 13:06:47 +0200	[thread overview]
Message-ID: <55A4ED47.4060802@nod.at> (raw)
In-Reply-To: <55A4DF83.5080505@gmail.com>

Am 14.07.2015 um 12:08 schrieb Bhuvanchandra DV:
> On 07/14/2015 02:12 PM, Richard Weinberger wrote:
> 
>> Am 14.07.2015 um 10:29 schrieb Bhuvanchandra DV:
>>> On 07/14/2015 12:02 PM, Richard Weinberger wrote:
>>>
>>>> Am 14.07.2015 um 08:30 schrieb Bhuvanchandra DV:
>>>>> Reproduced the issue with a clean UBI image.
>>>> On 4.1?
>>>> How can you reproduce?
>>> Flashed a clean UBI image with 4.1.
>>> I can reproduce it by amost filling up the flash and doing a power resets for around ~200 cycles.
>> And it really happens only if you're filling up the UBIFS?
> 
> The only thing observed so far during this tests is when the journactl log starts filling up the flash
> memory and at some point of time fails to mount the ubifs.

You mean filling up the filesystem? How and when does the power cut happen?

> Flashed an Image which occupies less flash ~40-50%. Run the same tests for around 1200 power cycles
> no issues observed during mounting but still there are few error messages:
> ..
> [    6.879643] ubi0 error: __wl_get_peb: no free eraseblocks

This message cannot come from a recent kernel.

> So came to an assumption that filling the flash to max lead to this issue.
> 
> Could there be any other possibility for this issue apart from filling up the flash ?
> 
>> If you set the UBI module parameter "fm_debug", does the EBA selfcheck trigger?
> 
> Yes, EBA selfcheck got triggered. Atleast i could see the debug printks added
> in 'self_check_eba' method after setting the fm_debug parameter.
> 
>>
>>> During some point U-Boot cannot mount the ubifs partition and fails with:
>>> "Error reading superblock on volume 'ubi0:rootfs' errno=-22!"
>> How exactly is U-Boot involved? Does U-Boot touch UBI in any way?
> 
> kernel, device tree blobs are available in rootfs /boot. U-Boot mounts the ubi partition
> and loads the kernel and device tree blob.
> 
> Also U-Boot is involved during flashing the UBI image to flash.

In you last mail you wrote
"During some point U-Boot cannot mount the ubifs partition and fails with"..

So, please reproduce from scratch(!) with a recent kernel (4.1 or newer) and provide all needed infos.
Otherwise I see no way howto help you.

Thanks,
//richard

  reply	other threads:[~2015-07-14 11:07 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-13 13:55 UBIFS errors when file-system is full Bhuvanchandra DV
2015-07-13 14:09 ` Richard Weinberger
2015-07-14  4:23   ` Bhuvanchandra DV
2015-07-14  6:13     ` Richard Weinberger
2015-07-14  6:30       ` Bhuvanchandra DV
2015-07-14  6:32         ` Richard Weinberger
2015-07-14  8:29           ` Bhuvanchandra DV
2015-07-14  8:42             ` Richard Weinberger
2015-07-14 10:08               ` Bhuvanchandra DV
2015-07-14 11:06                 ` Richard Weinberger [this message]
     [not found]                   ` <55A74812.2020906@gmail.com>
2015-07-16  7:35                     ` Fwd: " Bhuvanchandra DV
     [not found]                     ` <55A74AA1.2000000@nod.at>
     [not found]                       ` <55A7540C.3050900@nod.at>
     [not found]                         ` <55A7592D.6010906@gmail.com>
     [not found]                           ` <55A75A05.7040603@nod.at>
2015-07-16  7:33                             ` Bhuvanchandra DV
2015-07-21  6:04                             ` Bhuvanchandra DV
2015-07-21  6:14                               ` Richard Weinberger
2015-07-22  7:10                                 ` Bhuvanchandra DV
2015-07-22  7:20                                   ` Richard Weinberger
2015-07-24 14:43                                     ` Bhuvanchandra DV
2015-07-24 16:51                                       ` Richard Weinberger
2015-07-31 16:47                                         ` Bhuvanchandra DV
2015-08-01  6:36                                           ` Richard Weinberger
2015-08-06 10:31                                             ` Bhuvanchandra DV
2015-08-07 12:37                                               ` Richard Weinberger
2015-08-12  7:01                                                 ` Stefan Agner
2015-08-12  7:27                                                   ` Richard Weinberger
2015-09-01  0:45                                                     ` Stefan Agner
2015-09-01  1:43                                                       ` Brian Norris
2015-09-01  2:20                                                         ` Stefan Agner
2015-09-02 19:58                                                         ` Stefan Agner
2015-09-02 20:13                                                           ` Brian Norris
2015-09-02 20:41                                                             ` Stefan Agner
2015-09-07 13:47                                                           ` Bhuvanchandra
2015-09-11  4:03                                           ` Bhuvanchandra
2015-09-12  9:39                                             ` Richard Weinberger
2015-09-13  4:45                                               ` Bhuvanchandra

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55A4ED47.4060802@nod.at \
    --to=richard@nod.at \
    --cc=bhuvanchandradv@gmail.com \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.