DistroKit Mailinglist
 help / color / mirror / Atom feed
From: Alexander Dahl <ada@thorsis.com>
To: Roland Hieber <rhi@pengutronix.de>
Cc: distrokit@pengutronix.de
Subject: Re: [DistroKit] [PATCH v5 1/7] enable MTD and UBI tools
Date: Fri, 25 Aug 2023 13:06:53 +0200	[thread overview]
Message-ID: <20230825-heroism-confetti-68b95a837959@ifak-system.com> (raw)
In-Reply-To: <20230825110310.2948272-2-rhi@pengutronix.de>

Hei hei,

Am Fri, Aug 25, 2023 at 01:03:04PM +0200 schrieb Roland Hieber:
> The v7a kernel has been configured with MTD and UBI/UBIFS support at
> least since commit b04ad84da416e79906e5 (2023-04-17, Ahmad Fatoum: "v7a:
> kernel: extend support to SAMA5D4-based Wifx L1"), so it should also
> have the necessary tools to work with those kinds of devices.
> 
> Signed-off-by: Roland Hieber <rhi@pengutronix.de>
> ---
>  configs/ptxconfig | 53 ++++++++++++++++++++++++++++++++++++++++++++++-
>  1 file changed, 52 insertions(+), 1 deletion(-)
> 
> diff --git a/configs/ptxconfig b/configs/ptxconfig
> index b469734e57e5..543cf0107eda 100644
> --- a/configs/ptxconfig
> +++ b/configs/ptxconfig
> @@ -1376,7 +1376,58 @@ PTXCONF_MEMTOOL=y
>  # PTXCONF_MINICOREDUMPER is not set
>  # PTXCONF_MONIT is not set
>  # PTXCONF_MTD_OOPSLOG is not set
> -# PTXCONF_MTD_UTILS is not set
> +PTXCONF_MTD_UTILS=y
> +PTXCONF_MTD_UTILS_UBIFS=y
> +# PTXCONF_MTD_UTILS_USE_LIBLZO is not set
> +# PTXCONF_MTD_UTILS_DOC_LOADBIOS is not set
> +# PTXCONF_MTD_UTILS_DOCFDISK is not set
> +PTXCONF_MTD_UTILS_FLASH_ERASE=y
> +# PTXCONF_MTD_UTILS_FLASH_ERASEALL is not set
> +# PTXCONF_MTD_UTILS_FLASH_LOCK is not set
> +# PTXCONF_MTD_UTILS_FLASH_OTP_DUMP is not set
> +# PTXCONF_MTD_UTILS_FLASH_OTP_INFO is not set
> +# PTXCONF_MTD_UTILS_FLASH_OTP_LOCK is not set
> +# PTXCONF_MTD_UTILS_FLASH_OTP_WRITE is not set
> +# PTXCONF_MTD_UTILS_FLASH_UNLOCK is not set
> +# PTXCONF_MTD_UTILS_FLASHCP is not set
> +# PTXCONF_MTD_UTILS_FTL_CHECK is not set
> +# PTXCONF_MTD_UTILS_FTL_FORMAT is not set
> +# PTXCONF_MTD_UTILS_LSMTD is not set
> +# PTXCONF_MTD_UTILS_JFFS2_DUMP is not set
> +# PTXCONF_MTD_UTILS_JFFS2READER is not set
> +# PTXCONF_MTD_UTILS_MTDDEBUG is not set
> +# PTXCONF_MTD_UTILS_MTDPART is not set
> +# PTXCONF_MTD_UTILS_NANDDUMP is not set
> +# PTXCONF_MTD_UTILS_NANDMARKBAD is not set
> +# PTXCONF_MTD_UTILS_NANDTEST is not set
> +# PTXCONF_MTD_UTILS_NANDWRITE is not set
> +# PTXCONF_MTD_UTILS_NFTL_FORMAT is not set
> +# PTXCONF_MTD_UTILS_NFTLDUMP is not set
> +# PTXCONF_MTD_UTILS_MKJFFS2 is not set
> +# PTXCONF_MTD_UTILS_RECV_IMAGE is not set
> +# PTXCONF_MTD_UTILS_RFDDUMP is not set
> +# PTXCONF_MTD_UTILS_RFDFORMAT is not set
> +# PTXCONF_MTD_UTILS_SERVE_IMAGE is not set
> +# PTXCONF_MTD_UTILS_SUMTOOL is not set
> +PTXCONF_MTD_UTILS_UBI_UTILS=y
> +PTXCONF_MTD_UTILS_UBIATTACH=y
> +# PTXCONF_MTD_UTILS_UBIBLOCK is not set
> +# PTXCONF_MTD_UTILS_UBICRC32 is not set
> +PTXCONF_MTD_UTILS_UBIDETACH=y
> +PTXCONF_MTD_UTILS_UBIFORMAT=y
> +# PTXCONF_MTD_UTILS_UBIFS_MOUNTHELPER is not set
> +# PTXCONF_MTD_UTILS_UBIHEALTHD is not set
> +PTXCONF_MTD_UTILS_UBIMKVOL=y
> +# PTXCONF_MTD_UTILS_UBIRENAME is not set
> +# PTXCONF_MTD_UTILS_UBIRSVOL is not set
> +PTXCONF_MTD_UTILS_UBINFO=y
> +# PTXCONF_MTD_UTILS_UBINIZE is not set
> +PTXCONF_MTD_UTILS_UBIRMVOL=y
> +PTXCONF_MTD_UTILS_UBISCAN=y

If you want to use ubiscan, which is nice for seeing some stats, you
might also consider lsmtd.  That one shows you at a glance which mtd
device contains UBI.  You need the /dev/mtdX anyways to pass to ubiscan.

Greets
Alex

> +# PTXCONF_MTD_UTILS_UBIUPDATEVOL is not set
> +PTXCONF_MTD_UTILS_MKFS_UBIFS=y
> +PTXCONF_MTD_UTILS_MTDINFO=y
> +# PTXCONF_MTD_UTILS_TESTS is not set
>  # PTXCONF_MXT_APP is not set
>  # PTXCONF_NUMACTL is not set
>  # PTXCONF_NVME_CLI is not set
> -- 
> 2.39.2
> 
> 



  reply	other threads:[~2023-08-25 11:07 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-25 11:03 [DistroKit] [PATCH v5 0/7] v7a: add redundant update support via RAUC Roland Hieber
2023-08-25 11:03 ` [DistroKit] [PATCH v5 1/7] enable MTD and UBI tools Roland Hieber
2023-08-25 11:06   ` Alexander Dahl [this message]
2023-08-25 12:19     ` [DistroKit] [PATCH] fixup! " Roland Hieber
2023-08-25 13:04   ` [DistroKit] [PATCH v5 1/7] " Robert Schwebel
2023-08-25 11:03 ` [DistroKit] [PATCH v5 2/7] rauc: add initial support Roland Hieber
2023-08-25 13:04   ` Robert Schwebel
2023-08-25 11:03 ` [DistroKit] [PATCH v5 3/7] silence QA checks regarding missing kernel features for RAUC Roland Hieber
2023-08-25 13:05   ` Robert Schwebel
2023-08-25 11:03 ` [DistroKit] [PATCH v5 4/7] v7a: enable RAUC bundle creation Roland Hieber
2023-08-25 13:08   ` Robert Schwebel
2023-08-28  9:00     ` Roland Hieber
2023-08-25 11:03 ` [DistroKit] [PATCH v5 5/7] image-rauc: fork config file from PTXdist 2023.08.0 Roland Hieber
2023-08-25 13:06   ` Robert Schwebel
2023-08-25 11:03 ` [DistroKit] [PATCH v5 6/7] image-rauc: use ext4 rootfs instead of tar.gz Roland Hieber
2023-08-25 13:09   ` Robert Schwebel
2023-08-25 11:03 ` [DistroKit] [PATCH v5 7/7] v7a: run: start with barebox by default Roland Hieber
2023-08-25 13:09   ` Robert Schwebel

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=20230825-heroism-confetti-68b95a837959@ifak-system.com \
    --to=ada@thorsis.com \
    --cc=distrokit@pengutronix.de \
    --cc=rhi@pengutronix.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