public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Artem Bityutskiy <dedekind@infradead.org>
To: Nancy <nancydreaming@gmail.com>
Cc: linux-mtd <linux-mtd@lists.infradead.org>
Subject: Re: UBI: about ubinize tool
Date: Thu, 27 Mar 2008 08:53:45 +0200	[thread overview]
Message-ID: <1206600825.3856.25.camel@sauron> (raw)
In-Reply-To: <bae050c10803252102k373c5bddudda56bba12a0979f@mail.gmail.com>


On Wed, 2008-03-26 at 12:02 +0800, Nancy wrote:
> Hi,
>     As I know, ubinize can generate UBI images. I don't understand why
> its .cfg file need parameter "image=ubifs.img", why can't it collect
> the content
> from the defined vol_id automatically and output to file "ubi.img"?

You may want to create an UBI image with 3 UBI volumes. In this case you
may want to specify 3 different images as the contents of the UBI
volumes.

For example, you may want to have "/home" UBIFS volume, "/" UBIFS
volume, and "/boot" JFFS2 volume. In this case you prepare
"home.ubifs.img", "rootfs.ubifs.img" with mkfs.ubifs, and
"boot.jffs2.img" with mkfs.jffs2. Then you create a config file where
you ask ubinize to create an UBI image, add 3 volumes to it, the first
volume should have ID 5 (you specify vol_id=5), the second volume should
have ID 10, and the third volume ID 0, and so on.

This is the idea.

>     How to make the input image file? mkfs.ubifs can only generate
> ubifs image. If it was another filesystem eg. vfat, there's no tool.

ubinize does not care about the contents of the image you ask it to put
to the volume. It may be anything. I do not know how one can prepare
vfat image, there should be a tool or a way to do this.

-- 
Best regards,
Artem Bityutskiy (Битюцкий Артём)

      parent reply	other threads:[~2008-03-27 11:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-26  4:02 UBI: about ubinize tool Nancy
2008-03-26  4:11 ` Nancy
2008-03-27  6:58   ` Artem Bityutskiy
2008-03-27  6:53 ` Artem Bityutskiy [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=1206600825.3856.25.camel@sauron \
    --to=dedekind@infradead.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=nancydreaming@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