linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Artem Bityutskiy <dedekind1@gmail.com>
To: jerry <jerrydreaming@gmail.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: ubiattach error!
Date: Thu, 08 Apr 2010 11:23:52 +0300	[thread overview]
Message-ID: <1270715032.6754.108.camel@localhost> (raw)
In-Reply-To: <71103bce1003230226q7fce2443vad3853d7c6d6d947@mail.gmail.com>

On Tue, 2010-03-23 at 17:26 +0800, jerry wrote:
> hi all,
> I am trying to use ubi to attach mtd3(3.9G),but there are some
> question.the mlc is SAMSUNG K9LBG080D,the kernel version is 2.6.28
> # flash_erase  /dev/mtd3;
> 
> # ubiattach /dev/ubi_ctrl -m 3
> UBI: attaching mtd3 to ubi0
> UBI: physical eraseblock size:   524288 bytes (512 KiB)
> UBI: logical eraseblock size:    516096 bytes
> UBI: smallest flash I/O unit:    4096
> UBI: VID header offset:          4096 (aligned 4096)
> UBI: data offset:                8192
> UBI: empty MTD device detected
> UBI: create volume table (copy #1)
> UBI: create volume table (copy #2)
> UBI: attached mtd3 to ubi0
> UBI: MTD device name:            "Filesys partition"
> UBI: MTD device size:            4078 MiB
> UBI: number of good PEBs:        8156
> UBI: number of bad PEBs:         0
> UBI: max. allowed volumes:       128
> UBI: wear-leveling threshold:    4096
> UBI: number of internal volumes: 1
> UBI: number of user volumes:     0
> UBI: available PEBs:             8071
> UBI: total number of reserved PEBs: 85
> UBI: number of PEBs reserved for bad PEB handling: 81
> UBI: max/mean erase counter: 0/0
> UBI: background thread "ubi_bgt0d" started, PID 452
> UBI device number 0, total 8156 LEBs (fae48000 bytes, 3.9 GiB),
> available 8071 LEBs (f8472000 bytes, 3.9 GiB), LEB size 7e000 bytes
> (504.0 KiB)
> 
> # ubimkvol /dev/ubi0 -n 0 -N uu -s 100MiB;
> Volume ID 0, size 204 LEBs (105283584 bytes, 100.4 MiB), LEB size
> 516096 bytes (504.0 KiB), dynamic, name "uu", alignment 1
> 
> # ubidetach /dev/ubi_ctrl -m 3
> UBI: mtd3 is detached from ubi0
> 
> # ubiattach /dev/ubi_ctrl -m 3
> UBI: attaching mtd3 to ubi0
> UBI: physical eraseblock size:   524288 bytes (512 KiB)
> UBI: logical eraseblock size:    516096 bytes
> UBI: smallest flash I/O unit:    4096
> UBI: VID header offset:          4096 (aligned 4096)
> UBI: data offset:                8192
> UBI error: ubi_scan_add_used: two LEBs with same sequence number 4
> ubiattach: error!: cannot attach mtd3
>           error 22 (Invalid argument)

Looks weird, is this reproducible with nandsim?

-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)

  reply	other threads:[~2010-04-08  8:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-23  9:26 ubiattach error! jerry
2010-04-08  8:23 ` Artem Bityutskiy [this message]
2011-05-20 14:14   ` Timon ter Braak
2011-05-20 14:23     ` Artem Bityutskiy
2011-05-20 16:24       ` Timon ter Braak
2011-05-23 12:42         ` Artem Bityutskiy

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=1270715032.6754.108.camel@localhost \
    --to=dedekind1@gmail.com \
    --cc=jerrydreaming@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).