From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_2 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2FF00C432BE for ; Mon, 30 Aug 2021 20:17:10 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C880A60F5C for ; Mon, 30 Aug 2021 20:17:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org C880A60F5C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94.2) (envelope-from ) id 1mKnhx-0006Do-Rc; Mon, 30 Aug 2021 16:16:41 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mKmhr-0001Pd-FY for kernelnewbies@kernelnewbies.org; Mon, 30 Aug 2021 15:12:31 -0400 Received: (Authenticated sender: thomas.petazzoni@bootlin.com) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id DA682240003; Mon, 30 Aug 2021 19:12:25 +0000 (UTC) Date: Mon, 30 Aug 2021 21:12:24 +0200 From: Thomas Petazzoni To: Pintu Agarwal Subject: Re: Kernel 4.14: Using dm-verity with squashfs rootfs - mounting issue Message-ID: <20210830211224.76391708@windsurf> In-Reply-To: References: <20210830185541.715f6a39@windsurf> Organization: Bootlin X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) MIME-Version: 1.0 X-Mailman-Approved-At: Mon, 30 Aug 2021 16:16:21 -0400 Cc: Sami Tolvanen , snitzer@redhat.com, Kernelnewbies , open list , dm-devel@redhat.com, Mikulas Patocka , linux-mtd , linux-fsdevel , Phillip Lougher , agk@redhat.com X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces@kernelnewbies.org Hello, On Mon, 30 Aug 2021 23:48:40 +0530 Pintu Agarwal wrote: > ohh that means we already have a working reference. > If possible can you share the details, even 4.19 or higher will be > also a good reference. > > > > Or, another option is to use the new concept from 5.1 kernel that is: > > > dm-mod.create = ? > > How are you doing it today without dm-mod.create ? > I think in 4.14 we don't have dm-mod.create right ? No, but you can backport it easily. Back at http://lists.infradead.org/pipermail/openwrt-devel/2019-November/025967.html I provided backports of this feature to OpenWrt, for the 4.14 and 4.19 kernels. > Here is our kernel command line: > > [ 0.000000] Kernel command line: ro rootwait > console=ttyMSM0,115200,n8 .... verity="95384 11923 > 16da5e4bbc706e5d90511d2a3dae373b5d878f9aebd522cd614a4faaace6baa3 12026 > " rootfstype=squashfs ubi.mtd=40,0,30 ubi.block=0,0 root=/dev/dm-0 > .... init=/sbin/init root=/dev/dm-0 dm="rootfs none ro,0 95384 verity > 1 /dev/ubiblock0_0 /dev/mtdblock53 4096 4096 11923 8 sha256 > 16da5e4bbc706e5d90511d2a3dae373b5d878f9aebd522cd614a4faaace6baa3 > aee087a5be3b982978c923f566a94613496b417f2af592639bc80d141e34dfe7 10 > restart_on_corruption ignore_zero_blocks use_fec_from_device > /dev/mtdblock53 fec_roots 2 fec_blocks 12026 fec_start 12026" ... I don't see how this can work without the dm-mod.create feature. Are you sure the verity= and dm= kernel arguments exist? Best regards, Thomas -- Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies