From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 25 Aug 2023 13:07:36 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qZUfB-008NmH-SA for lore@lore.pengutronix.de; Fri, 25 Aug 2023 13:07:36 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1qZUf9-000314-JZ; Fri, 25 Aug 2023 13:07:35 +0200 Received: from mail.thorsis.com ([92.198.35.195]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qZUf7-00030p-68; Fri, 25 Aug 2023 13:07:34 +0200 Date: Fri, 25 Aug 2023 13:06:53 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thorsis.com; s=default; t=1692961651; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:content-type:content-type:in-reply-to:in-reply-to: references:references; bh=DfE0bCcEKpzWeGYbuXiM4RByQ8FyiFXmVm2Pc2hlYXo=; b=m7uMNXk0NvxAhnACbsXpR98Lde4ZTnknM5dCnEqWoKPgi8NAOGk3xVLxzVl2mYJXASK6Z0 HUo1Xrqdea4g+9eOZlyLEl0ALwtsfFqheNg0SOF2l64hJAv4nQQdVMiNEra043ElbKMwKb OndhG7/ff7FHIkv/nVZtPHlU78oHj7PCU99PP0PXx4gfa4W4zZnxs5k/BTDKesUtGM8brN dLB2zoka/W75QFub+gBuxObf3SxmGEhljJ4NC8coMX19rzonmNd2ZZY38M1OFxS6bFM2ej aHWjrcvN1JLJpFWeK45yxDRVmWBSa0oqUMOBedKEqV5/wOyFXhlRX6MaMwMwjg== From: Alexander Dahl To: Roland Hieber Message-ID: <20230825-heroism-confetti-68b95a837959@ifak-system.com> Mail-Followup-To: Roland Hieber , distrokit@pengutronix.de References: <20230825110310.2948272-1-rhi@pengutronix.de> <20230825110310.2948272-2-rhi@pengutronix.de> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230825110310.2948272-2-rhi@pengutronix.de> X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.8 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, UPPERCASE_50_75 autolearn=no autolearn_force=no version=3.4.2 Subject: Re: [DistroKit] [PATCH v5 1/7] enable MTD and UBI tools X-BeenThere: distrokit@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: DistroKit Mailinglist List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: distrokit@pengutronix.de Sender: "DistroKit" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: distrokit-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false 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 > --- > 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 > >