linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: JH <jupiter.hce@gmail.com>
To: linux-mtd <linux-mtd@lists.infradead.org>
Subject: Where to define multiple volumes sizes in one MTD rootfs partition?
Date: Sat, 5 Oct 2019 10:50:55 +1000	[thread overview]
Message-ID: <CAA=hcWRsrE73HPc0qzcUY7AEHha3NUYQCXj7tTK8o-KN0xLbzw@mail.gmail.com> (raw)

Hi,

My apology if my question is not related to this mailing list.

I set up following 6 MTD partitions in boot argument environment, the
rootfs is in mtd5 partition where it is currently created one ubi
volume for rootfs in ubi0.

MFG_NAND_PARTITION
"mtdparts=gpmi-nand:4m(boot),2m(ubootenv),2m(dtb),16m(kernel1),16m(kernel2),-(ubi)
"

NAND_ROOT_UBI "root=ubi0:rootfs_data rw ubi.mtd=5,2048 noinitrd
rootfstype=ubifs mem=256M rootwait=1"

Recently, one of my device is broken failed to boot up, I still don't
know what was the cause by hardware problem or software, to be
precaution in the future meltdown, I am going to separate all writing
data from ubi0 to to another ubi volume ubi1, to keep the rootfs in
ubi0 read only. How can I define the ubi0 volume size to 160 MB and
the ubi1 volume size to 30 MB?

NAND_ROOT_UBI "root=ubi0:rootfs_data ro storage=ubi1:rootfs_data rw
ubi.mtd=5,2048 noinitrd rootfstype=ubifs mem=256M rootwait=1"

Sorry if it is a wrong question to this mailing list.

Thank you.

Kind regards,

- jh

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

             reply	other threads:[~2019-10-05  0:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-05  0:50 JH [this message]
2019-10-05  8:43 ` Where to define multiple volumes sizes in one MTD rootfs partition? Richard Weinberger
2019-10-11  9:38   ` JH
2019-10-14  4:57     ` JH
2019-10-15 19:17       ` Richard Weinberger
2019-10-29  6:00         ` JH

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='CAA=hcWRsrE73HPc0qzcUY7AEHha3NUYQCXj7tTK8o-KN0xLbzw@mail.gmail.com' \
    --to=jupiter.hce@gmail.com \
    --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).