From: Sascha Hauer <s.hauer@pengutronix.de>
To: Madhu koriginja <madhava.koriginja@gmail.com>
Cc: barebox@lists.infradead.org
Subject: Re: How to flash ubi image from barebox
Date: Tue, 23 Oct 2012 09:15:42 +0200 [thread overview]
Message-ID: <20121023071542.GM27665@pengutronix.de> (raw)
In-Reply-To: <CA+pW49pE4oHFFC4=8UzDm+KTfYVVKWGzcmUT6n+Sza2HkeUL-A@mail.gmail.com>
On Wed, Oct 17, 2012 at 04:41:59PM +0530, Madhu koriginja wrote:
> Hi All,
> Please help me how to flash the ubi image from barebox.
> I generated the ubifs image using the mkfs.jffs2,
I assume the above is a typo, right? mkfs.jffs2 won't create ubifs
images.
> then I created the ubi
> image using the ubinize. I am trying to flash this ubi image on NAND.
>
> I tried in two ways
> 1) I flashed the UBI image directly on /dev/nand0.rootfs.bb(erased the
> partition before flash).
This should generally work.
>
> 2) I executed the below commands from barebox
> #erase /dev/nand0.rootfs.bb
> #ubiattach /dev/nand0.rootfs
> After this command it created the /dev/ubi0
> #ubimkvol /dev/ubi0 rootfs 0
> After this command it created the /dev/ubi0.rootfs
This should also work.
Do the parameters to mkfs.ubifs/ubinize match your hardware? Some
parameters are not really obvious.
Also, what hardware are you on?
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
prev parent reply other threads:[~2012-10-23 7:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-17 11:11 Madhu koriginja
2012-10-17 17:03 ` Madhu koriginja
2012-10-23 7:15 ` Sascha Hauer [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=20121023071542.GM27665@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=madhava.koriginja@gmail.com \
/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