public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Artem Bityutskiy <dedekind1@gmail.com>
To: "Shawn J. Goff" <shawn7400@gmail.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: ubiattach fails after mkvol with "vtbl_check: bad CRC..."
Date: Thu, 03 May 2012 13:49:18 +0300	[thread overview]
Message-ID: <1336042158.13013.38.camel@sauron.fi.intel.com> (raw)
In-Reply-To: <CAGiDA6KgHTQehUPtN_wT90unaHwZPzre7V5WCOEipaVpzbxJOQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1564 bytes --]

On Tue, 2012-05-01 at 10:39 -0400, Shawn J. Goff wrote:
> Sorry if this is a double-post; I haven't seen a bounce-back, but I also
> didn't see it go on the list.
> 
> I am having trouble attaching an ubi device after creating a volume on
> it. My procedure is as follows (a full console log is at the end of
> this e-mail):
> 
> ubiformat /dev/mtd6
> ubiattach -m 6
> ubimkvol /dev/ubi0 -N root0 -s 11MiB
> ubidetach -m 6
> ubiattach -m 6
> 
> When I try to re-attach, the UBI module produces messages:
> 
> [ 2558.700000] UBI error: vtbl_check: bad CRC at record 0: 0x2863aedc,
> not 0xcd06c54d
> [ 2558.710000] UBI error: vtbl_check: bad CRC at record 0: 0x2863aedc,
> not 0xcd06c54d
> [ 2558.717500] UBI error: process_lvol: both volume tables are corrupted
> [ 2558.725000] UBI error: ubi_attach_mtd_dev: failed to attach by
> scanning, error -22
> 
> If I don't make a volume, but just format the mtd device, then I can
> attach and detach just fine; it's only after making a volume that it
> gives this problem. I've tried making the volume both static and
> dynamic, and I've tried writing a filesystem with ubiupdatevol; it
> always has this issue. The mtd device itself works fine. I can write
> and read data from it, I can run mtd_speedtest and mtd_stresstest with
> no problems.

Try to enable UBI I/O checks - they are in debugfs - chk_io file, write
1 there to enable the checks.

The http://www.linux-mtd.infradead.org/faq/ubi.html#L_how_debug section
is out-of-date :-(

-- 
Best Regards,
Artem Bityutskiy

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

      parent reply	other threads:[~2012-05-03 10:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-01 14:39 ubiattach fails after mkvol with "vtbl_check: bad CRC..." Shawn J. Goff
2012-05-02 14:43 ` Artem Bityutskiy
2012-05-02 16:19   ` Shawn J. Goff
2012-05-03 10:49 ` Artem Bityutskiy [this message]

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=1336042158.13013.38.camel@sauron.fi.intel.com \
    --to=dedekind1@gmail.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=shawn7400@gmail.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox