From: Andre Schwarz <andre.schwarz@matrix-vision.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] issue with 'ubi part'
Date: Fri, 04 Mar 2011 11:46:36 +0100 [thread overview]
Message-ID: <4D70C30C.1080406@matrix-vision.de> (raw)
In-Reply-To: <201103041134.41172.sr@denx.de>
Stefan,
> Andre,
>
> On Friday 04 March 2011 11:16:50 Andre Schwarz wrote:
>>>> => ubi part root
>>>> Creating 1 MTD partitions on "nand0":
>>>> 0x000000000000-0x000040000000 : "mtd=0"
>>>> UBI: attaching mtd2 to ubi0
>>>> UBI error: io_init: unaligned VID header shift 2
>>>> UBI error: ubi_init: cannot attach mtd2
>>>> UBI error: ubi_init: UBI error: cannot initialize UBI, error -22
>>>> UBI init error -22
>>>> exit not allowed from main input shell.
>>>> =>
>>> Did you erase the flash partition before trying to attach UBI on it?
>> yes - the ubi volume has been created by linux and is working fine :
>>
>> ubiformat /dev/NAND -y
>> ubiattach /dev/ubi_ctrl -m 9
>> ubimkvol /dev/ubi0 -N rootfs -m
>> mount -t ubifs ubi0:rootfs /mnt/nand
>>
>> Actually I'm running Linux with rootfs on this very ubi volume.
>>
>> All I wanna do is get the kernel + dtb from this volume for stand-alone
>> boot.
>> Meanwhile I'm getting both files using tftp from the server - but that's
>> no long term solution.
> I have no real idea then why this fails in U-Boot, sorry. What versions of U-
> Boot and Linux are you using?
I'm running TOT with kernel 2.6.34.7
> I suggest you debug a bit, to see where this error results from.
ok - so no obvious mistakes.
Will try a bisect because it has been working back in November 2010.
>
>> I'm still curious why we get
>>
>> 0x000000000000-0x000040000000 : "mtd=0" -> 0 !
>> and
>> UBI error: ubi_init: cannot attach mtd2 -> 2 !
>>
>>
>> Is this the expected behaviour ?
> IIRC, it's because the NOR flash partitions are enumerated first. So 2 NOR
> partitions (0...1) makes the first NAND partition #2.
ok - will have a look.
--
Regards,
Andre
MATRIX VISION GmbH, Talstrasse 16, DE-71570 Oppenweiler
Registergericht: Amtsgericht Stuttgart, HRB 271090
Geschaeftsfuehrer: Gerhard Thullner, Werner Armingeon, Uwe Furtner
prev parent reply other threads:[~2011-03-04 10:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-02 15:35 [U-Boot] issue with 'ubi part' Andre Schwarz
2011-03-04 10:00 ` Stefan Roese
2011-03-04 10:16 ` Andre Schwarz
2011-03-04 10:34 ` Stefan Roese
2011-03-04 10:46 ` Andre Schwarz [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=4D70C30C.1080406@matrix-vision.de \
--to=andre.schwarz@matrix-vision.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox