From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Pont Date: Thu, 2 Oct 2014 09:16:50 +0100 Subject: [U-Boot] UBI issues on SAMA5D31 NOR flash In-Reply-To: <542BE6EB.4080204@denx.de> References: <009101cfdc04$16a621c0$43f26540$@pont@sdcsystems.com> <542A33F6.9030509@denx.de> <005501cfdc8d$a0e18f30$e2a4ad90$@pont@sdcsystems.com> <542A7992.6060802@denx.de> <003101cfdca0$7ab760b0$70262210$@pont@sdcsystems.com> <542BE6EB.4080204@denx.de> Message-ID: <006301cfde19$3e253c10$ba6fb430$@pont@sdcsystems.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Heiko, > > UBI error: vtbl_check: reserved_pebs 81, ubi->good_peb_count 80 > > UBI error: vtbl_check: too large reserved_pebs, good PEBs 80 > > > > Use of UBI is new to me so where are the PEBs configured? > > Good question ... looking into vtbl_check(), the "reserved_pebs" value > is read from the record in the volume table: > > reserved_pebs = be32_to_cpu(vtbl[i].reserved_pebs); > > "@reserved_pebs: how many physical eraseblocks are reserved for this > volume" I have changed the size of the partition as defined in U-Boot and also reduced the maximum image size when creating the UBI image and have found a combination that moves me on to the next error: U-Boot> ubi part rootfs UBI: attaching mtd2 to ubi0 UBI: physical eraseblock size: 131072 bytes (128 KiB) UBI: logical eraseblock size: 130944 bytes UBI: smallest flash I/O unit: 1 UBI: VID header offset: 64 (aligned 64) UBI: data offset: 128 - Warning: 1 protected sectors will not be erased! - Warning: 1 protected sectors will not be erased! - Warning: 1 protected sectors will not be erased! - Warning: 1 protected sectors will not be erased! - Warning: 1 protected sectors will not be erased! - Warning: 1 protected sectors will not be erased! - Warning: 1 protected sectors will not be erased! - Warning: 1 protected sectors will not be erased! - Warning: 1 protected sectors will not be erased! - Warning: 1 protected sectors will not be erased! - Warning: 1 protected sectors will not be erased! - Warning: 1 protected sectors will not be erased! - Warning: 1 protected sectors will not be erased! - Warning: 1 protected sectors will not be erased! - Warning: 1 protected sectors will not be erased! - Warning: 1 protected sectors will not be erased! - Warning: 1 protected sectors will not be erased! UBI error: ubi_io_write: error -5 while writing 64 bytes to PEB 0:0, written 0 bytes UBI error: erase_worker: failed to erase PEB 0, error -5 UBI error: erase_worker: bad physical eraseblock 0 detected UBI warning: ubi_ro_mode: switch to read-only mode UBI error: do_work: work failed with error code -5 UBI error: autoresize: cannot auto-resize volume 0 UBI error: ubi_init: cannot attach mtd2 UBI error: ubi_init: UBI error: cannot initialize UBI, error -30 UBI init error 30 Hopefully this may be the last hurdle to overcome but somehow I think maybe not! Regards, Andy.