U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Weijie Gao <weijie.gao@mediatek.com>
To: <u-boot@lists.denx.de>
Cc: GSS_MTK_Uboot_upstream <GSS_MTK_Uboot_upstream@mediatek.com>,
	Tom Rini <trini@konsulko.com>,
	Marek Vasut <marek.vasut+renesas@mailbox.org>,
	Simon Glass <sjg@chromium.org>,
	Weijie Gao <weijie.gao@mediatek.com>
Subject: [PATCH v4 00/10] Add support for ubi environment to create volumes (v4)
Date: Wed, 13 May 2026 16:02:45 +0800	[thread overview]
Message-ID: <cover.1778657347.git.weijie.gao@mediatek.com> (raw)

This patch series expose more ubi helpers to allow the ubi environment to
create ubi env volumes before loading if they're not exist.

Changes:
v4: Adjust command message. Error messages will be printed in both command
     and api call.
    Add parameter check for "ubi rename" subcommand
    Fix duplicated call to ubi_require_volume() in command.
    Squash api function comments.
    Change all return value to negative.
    Add another kconfig option to control whether to create static volume.
    Read environment volume only when it exists or has been created.

v3: Fix command messages
    Fix some incorrect code flow and error handling
    Correct dynamic parameter type
    Add comments for exported functions

v2: Add const qualifier for char */void * in function parameters
    Adjust normal command message

Weijie Gao (10):
  ubi: remove unnecessary extern directive from function prototypes
  cmd: ubi: mark read-only function parameters with const
  cmd: ubi: use void * for buf parameter in ubi_volume_read
  cmd: ubifs: mark string parameters with const
  cmd: ubi: change the type of parameter dynamic to bool
  cmd: ubi: change all positive error return value to negative
  cmd: ubi: reorganize command messages
  cmd: ubi: export more APIs to public
  cmd: ubi: allow creating volume with all free spaces in ubi_create_vol
  env: ubi: add support to create environment volume if it does not
    exist

 cmd/ubi.c             | 276 +++++++++++++++++++++++++++---------------
 cmd/ubifs.c           |   2 +-
 env/Kconfig           |  20 +++
 env/ubi.c             |  65 ++++++++--
 fs/ubifs/super.c      |   2 +-
 fs/ubifs/ubifs.c      |   2 +-
 include/ubi_uboot.h   | 106 ++++++++++++++--
 include/ubifs_uboot.h |   4 +-
 8 files changed, 355 insertions(+), 122 deletions(-)

-- 
2.45.2


             reply	other threads:[~2026-05-13  8:03 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-13  8:02 Weijie Gao [this message]
2026-05-13  8:02 ` [PATCH v4 01/10] ubi: remove unnecessary extern directive from function prototypes Weijie Gao
2026-05-13  8:02 ` [PATCH v4 02/10] cmd: ubi: mark read-only function parameters with const Weijie Gao
2026-05-13  8:02 ` [PATCH v4 03/10] cmd: ubi: use void * for buf parameter in ubi_volume_read Weijie Gao
2026-05-13  8:02 ` [PATCH v4 04/10] cmd: ubifs: mark string parameters with const Weijie Gao
2026-05-13  8:02 ` [PATCH v4 05/10] cmd: ubi: change the type of parameter dynamic to bool Weijie Gao
2026-05-15 12:55   ` Simon Glass
2026-05-13  8:02 ` [PATCH v4 06/10] cmd: ubi: change all positive error return value to negative Weijie Gao
2026-05-15 12:56   ` Simon Glass
2026-05-13  8:02 ` [PATCH v4 07/10] cmd: ubi: reorganize command messages Weijie Gao
2026-05-15 12:56   ` Simon Glass
2026-05-13  8:02 ` [PATCH v4 08/10] cmd: ubi: export more APIs to public Weijie Gao
2026-05-15 12:58   ` Simon Glass
2026-05-13  8:03 ` [PATCH v4 09/10] cmd: ubi: allow creating volume with all free spaces in ubi_create_vol Weijie Gao
2026-05-13  8:03 ` [PATCH v4 10/10] env: ubi: add support to create environment volume if it does not exist Weijie Gao
2026-05-15 12:59   ` Simon Glass

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=cover.1778657347.git.weijie.gao@mediatek.com \
    --to=weijie.gao@mediatek.com \
    --cc=GSS_MTK_Uboot_upstream@mediatek.com \
    --cc=marek.vasut+renesas@mailbox.org \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox