From: "Manuel Sahm" <Manuel.Sahm@feig.de>
To: <linux-mtd@lists.infradead.org>
Subject: Create, Flash and Mount UBIFS Images
Date: Thu, 02 Apr 2009 13:36:29 +0200 [thread overview]
Message-ID: <49D4BF5A.187F.00BC.1@feig.de> (raw)
Hello,
Could anybody explain me how to build an ubi.img that I could flash
inside my system ?
NAND Flash: Micron 256 MByte
Physical Eraseblock Size = 131072
Logical Eraseblock Size = 129024
Min I/O Size = 2048
SubPage = 512
The Partition /dev/mtd6 is 32MByte.
I did the following steps:
On my host I created the file through:
mkfs.ubifs -d /exports/ -m 2048 -e 129024 -o ubifs.img -x "none" -c
2047
ubinize -p 128KiB -m 2048 -s 512 -O 512 -o ubi.img ubi.ini
with ubi.ini
[TEST]
mode=ubi
image=ubifs.img
vol_id=0
vol_size=3MiB
vol_type=dynamic
vol_alignment=1
vol_flags=autoresize
Then I copy this creted ubi.img to my embedded system.
On my embedded system I did:
flash_eraseall /dev/mtd6
ubiformat /dev/mtd6 -s 512 -f ubi.img
ubiattach /dev/ubi_ctrl -m6 -d6 -O512
mount -t ubifs ubi6_0 /mnt/ubi6
Then at the mount command I got the error:
validate_sb: bad superblock
So what´s wrong ?
Thank you
next reply other threads:[~2009-04-02 11:36 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-02 11:36 Manuel Sahm [this message]
2009-04-02 11:42 ` Create, Flash and Mount UBIFS Images Artem Bityutskiy
2009-04-02 12:07 ` Manuel Sahm
[not found] ` <49D4C59A.187F.00BC.1@feig.de>
2009-04-02 12:20 ` Antw: " Artem Bityutskiy
2009-04-02 12:21 ` Artem Bityutskiy
2009-04-03 7:32 ` Manuel Sahm
2009-04-03 8:30 ` Artem Bityutskiy
2009-04-03 10:57 ` Manuel Sahm
2009-04-03 14:41 ` 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=49D4BF5A.187F.00BC.1@feig.de \
--to=manuel.sahm@feig.de \
--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).