All of lore.kernel.org
 help / color / mirror / Atom feed
From: JH <jupiter.hce@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] What is the current U-Boot status to boot from multiple UBI volumes?
Date: Sat, 12 Oct 2019 11:52:59 +1100	[thread overview]
Message-ID: <CAA=hcWRV3e0ry=+U_MuGeL4awOamPOr5LezVyA5W1AtX4=Ev7A@mail.gmail.com> (raw)

Hi,

I tried to find more information about configure u-boot for booting
multiple UBI volumes on imx6, but seems to me that information is
really sparse.

There was a proposal by Wolfgang Denk many years ago at
https://elinux.org/Boot_U-Boot_from_UBI_volume, and I could not find
anyone talked about it in ELC_2019_Presentations.

Apologize if I am wrong to seek solutions in u-boot mailing list.

If I have only one UBI volume rootfs in an partition /dev/mtd5, I can
configure to boot the image from /dev/ubi0, but with following three
UBI volumes, how should I configure u-boot to boot from the UBI volume
configure file volume.conf? How to set up u-boot to start boot from
the volume.conf?

I have three UBI volumes for UBIFS:

[kernel-volume]
mode=ubi
image=zImage
vol_id=1
vol_size=10MiB
vol_type=static
vol_name=kernel

[rootfs-volume]
mode=ubi
image=rootfs_data
vol_id=2
vol_size=110MiB
vol_type=static
vol_name=rootfs

[data-volume]

mode=ubi
image=rootfs_data
vol_id=3
vol_size=10MiB
vol_type=dynamic
vol_name=data
vol_flags=autoresize

$ ubinize -o rootfs.img -p 130MiB -m 512 -s 256 volume.conf

Thank you.

Kind regards,

- jh

                 reply	other threads:[~2019-10-12  0:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=hcWRV3e0ry=+U_MuGeL4awOamPOr5LezVyA5W1AtX4=Ev7A@mail.gmail.com' \
    --to=jupiter.hce@gmail.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.