mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: "Lambrecht Jürgen" <J.Lambrecht@TELEVIC.com>
To: "barebox@lists.infradead.org" <barebox@lists.infradead.org>
Subject: ubiattach error
Date: Tue, 20 Sep 2011 16:25:18 +0200	[thread overview]
Message-ID: <4E78A24E.7080000@televic.com> (raw)

Hello,

When I want to run 'ubiattach' I get this error:

barebox:/dev erase nand0.root1.bb
Skipping bad block at 0x08000000
Skipping bad block at 0x08020000
barebox:/dev ubiattach nand0.root1
UBI: attaching mtd0 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    129024 bytes
UBI: smallest flash I/O unit:    2048
UBI: sub-page size:              512
UBI: VID header offset:          512 (aligned 512)
UBI: data offset:                2048
UBI: empty MTD device detected
UBI: create volume table (copy #1)
UBI error: ubi_io_write: error -5 while writing 512 bytes to PEB 0:512, 
written 0 bytes
UBI error: ubi_io_write: error -5 while writing 512 bytes to PEB 1:512, 
written 0 bytes
UBI error: ubi_io_write: error -5 while writing 512 bytes to PEB 2:512, 
written 0 bytes
UBI error: ubi_io_write: error -5 while writing 512 bytes to PEB 3:512, 
written 0 bytes
UBI error: ubi_io_write: error -5 while writing 512 bytes to PEB 4:512, 
written 0 bytes
UBI error: ubi_io_write: error -5 while writing 512 bytes to PEB 5:512, 
written 0 bytes
failed to attach: I/O error
------------------------------------------------------------------
- I use a imx27, and our HW is based on the imx27pdk.
- We use the BI-swap solution to work around the nand flash HW bug (2kB 
pages are load in 512 chunks, mangling the spare area) (so 
drivers/mtd/nand/nand_imx.c is patched).
- I see UBI detects a sub-page size of 512B, what does that mean?
   Because in the UBI menu config "drivers - mtd - NAND - select nand 
pagesize you want to support booting from", I must take '2048 byte page 
size'; with '512 byte and 2048 byte pagesize' selected the board does 
not boot.
- I use LTIB from CVS (not the freescale one), that I have patched 
according to the imx28 BSP from freescale to support UBI

Kind regards,
Jürgen

-- 
Jürgen Lambrecht
R&D Associate
Tel: +32 (0)51 303045    Fax: +32 (0)51 310670
http://www.televic-rail.com
Televic Rail NV - Leo Bekaertlaan 1 - 8870 Izegem - Belgium
Company number 0825.539.581 - RPR Kortrijk

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

             reply	other threads:[~2011-09-20 14:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-20 14:25 Lambrecht Jürgen [this message]
2011-09-23 14:01 ` Lambrecht Jürgen

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=4E78A24E.7080000@televic.com \
    --to=j.lambrecht@televic.com \
    --cc=barebox@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