From: Heiko Schocher <hs@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] UBI issues on SAMA5D31 NOR flash
Date: Tue, 30 Sep 2014 06:39:18 +0200 [thread overview]
Message-ID: <542A33F6.9030509@denx.de> (raw)
In-Reply-To: <009101cfdc04$16a621c0$43f26540$@pont@sdcsystems.com>
Hello Andy,
Am 29.09.2014 18:40, schrieb Andy Pont:
> Hello,
>
> Using the patches from Bo Shen to support the NOR flash on the Atmel
which patches?
> SAMA5D31EK hardware platform I am trying to get a UBI root file system
> within the NOR flash, at offset 0x10000000 in the memory map, to work but
> get errors from the "ubi part" command using U-Boot 2014.04:
>
> U-Boot> mtdparts
>
> device nor0<physmap-flash.0>, # parts = 5
> #: name size offset mask_flags
> 0: bootstrap 0x00020000 0x00000000 1
> 1: u-boot 0x000c0000 0x00020000 1
> 2: fdt 0x00020000 0x000e0000 0
> 3: kernel 0x00400000 0x00100000 0
> 4: rootfs 0x00a00000 0x00500000 0
>
> active partition: nor0,0 - (bootstrap) 0x00020000 @ 0x00000000
>
> defaults:
> mtdids : nor0=physmap-flash.0
> mtdparts:
> mtdparts=physmap-flash.0:128k(bootstrap)ro,768k(u-boot)ro,128k(fdt),4m(kerne
> l),10m(rootfs)
>
> 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
> UBI error: vtbl_check: volume table check failed: record 0, error 9
seems ubi does not find the volume table ... could you activate
ubi error messages ubi_err() ?
> UBI error: ubi_init: cannot attach mtd2
> UBI error: ubi_init: UBI error: cannot initialize UBI, error -22
> UBI init error 22
>
> The UBI settings are:
>
> (2048) Image Size
> (130944) Logical Erase Block Size
> (1) Minimum I/O Size
> [ ] mkfs.ubifs Space Fixup
> () mkfs.ubifs Options
>
> *** UBI Image Properties ***
> [*] Create UBI Volume
> (10MiB) Root File System Volume Size
> (128 KiB) Physical Erase Block Size
> (1) Sub-page Size
> () ubinize Configuration File
> () ubinize Options
>
> Any ideas as to what I have missed?
Did the ubi partition work under linux? Did you tried current ML
U-Boot (there MTD/UBI and UBIFS is synced with linux 3.15) ...
bye,
Heiko
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
next prev parent reply other threads:[~2014-09-30 4:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-29 16:40 [U-Boot] UBI issues on SAMA5D31 NOR flash Andy Pont
2014-09-30 4:39 ` Heiko Schocher [this message]
2014-09-30 9:04 ` Andy Pont
2014-09-30 9:36 ` Heiko Schocher
2014-09-30 11:19 ` Andy Pont
2014-10-01 11:35 ` Heiko Schocher
2014-10-02 8:16 ` Andy Pont
2014-10-02 9:10 ` Heiko Schocher
2014-10-02 9:16 ` Andy Pont
2014-10-02 9:44 ` Andy Pont
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=542A33F6.9030509@denx.de \
--to=hs@denx.de \
--cc=u-boot@lists.denx.de \
/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.