Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp232927pxb; Fri, 29 Oct 2021 08:53:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4/UkWRXpatNrt4ndjknvT7tE1OzfpM6YvOLd4N9KfRVKEzDkX2X8v8rvzJbv56pF3vzZZ X-Received: by 2002:a6b:a19:: with SMTP id z25mr6913890ioi.57.1635522782153; Fri, 29 Oct 2021 08:53:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635522782; cv=none; d=google.com; s=arc-20160816; b=ajQuP5CogT3+r67Cx8nfJRc2JKpCyOVypzcA8rwcsOZ1vOxkQLomUgPaaMiRi01TV0 66tgPaJIJzDLQDynkqpHCWFQyXUoQsvy3l9Sb/6iDidKOXkn28nK1cIHtW8CQQ1twqqm x9P7Ymu9BTYNnWYaYUdrZw5yFtwiPQKMLhSp3RMH+GlDz9Byuksvur5IeGPxhY2OvDTl cyAnpiK8/+iNWJcG2WxPG4MwSc23QwfLv4Cgga0m6hx9YpCNeuSogpSJNqRDqF8QxSfA gsta2arhocTsLg6xLufS/qp/cB1Kt25KHWaa5CBbPc43yJb9GBxgyWyDFzz5fn63B5iA 35Hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=NESlwwMORorwSWYzWjNc0O70aEVgaVjtuvkdZI1/8es=; b=InKuSYMDTenqOPiv+o1EDVrRP3hbDHnAlFq461/0Hp/prE3LiShqS2kclsSBO4w7+P RKkieb3HT+HoFRI0fmowjwraIkVninmERyqeL0abS7+OYOQlAuwuKlEuhj+CvZkHEeVT p6libnogpd9H9Q5SW54XKW0AOxoEutkizxOl/i4M7fqLYrIKhYMsyZ/YgXb7Gg6gHLtt dzO0bdxmdeyi1s1RFfiCuVzTJsn/Q3Hhow7CZ6RJcdhlJA+YpllvKItHzDmOr0ozXXeb TBJhVW9JVZlXOdb1+rx7LCKo4z4Ss2oSTxJIQjP5NnNr+C8/lIF3OoYBcJi4rG/xW2QD D+sA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=KtJDps6d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i4si10303100ilm.18.2021.10.29.08.52.50; Fri, 29 Oct 2021 08:53:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=KtJDps6d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230036AbhJ2PyP (ORCPT + 99 others); Fri, 29 Oct 2021 11:54:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229662AbhJ2PyO (ORCPT ); Fri, 29 Oct 2021 11:54:14 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAF54C061714; Fri, 29 Oct 2021 08:51:45 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id s1so40256164edd.3; Fri, 29 Oct 2021 08:51:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NESlwwMORorwSWYzWjNc0O70aEVgaVjtuvkdZI1/8es=; b=KtJDps6dyol74mgZwTFC89lUznMWMTflRjyEGBQg8fGTIHN4eS84jauTuUjHSkxHST dg466nqGzuri8/DlWUUN8zd2NaCCz0U8kvOGxHCqjTMGdZ6iMDYunWvuGt2cOtXkcv/e Ue2xn0HPWcE13DrP2OOnzAVehZzgf7sonec4sRhiS1xjKpw6AHFzBdaM06bbQlJ7Ja6j DqvSlb2Et8rx+kql0yC4WX+v7blifYbbw8XxCxbiTrhkRNvvRa2UjvXED5+77b1wlOPY lBS+nUPNJn2q/KU3a4esLsUmSIB7aVNfjuXrsKyw+tg80XBA+VjpMSYDL8e2U0sAf4mG 8W+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NESlwwMORorwSWYzWjNc0O70aEVgaVjtuvkdZI1/8es=; b=IL3WJ5eAgcGwVVL69Y8FLZVE3zcGbUKQ/yzWZyy+Q8uu9RV8i2Ro2GZWqFz6DnlAMp ankvuDDSM+lAHUj/Gwtwm06bYSQGxvoqlAEdfToDAScoRjcbn9ulyzYSkKPuWwzC323x qJzbRENJky/4iqUhePkcCutt2ESqhFJnH6j9bIHMJjthColtEmKK05lP9H0kEVyb/1Tp 8UkrQvF54Xhc7Wwtcmt+1dUfgSL58IXb2QFOmOQFcQQoDZguc2EM82xJ7ksr4Nil9dxR zOpWG822uXhTbisrDi2BCLq42uLYaGUah0jxjZGzybFU0Wi4wcmScaDK1gjNoeUtmpc0 QkBA== X-Gm-Message-State: AOAM530/+CbR+RScdKX4btlx+OjU2X+KAxSMQW0OCxDxwQ1TIqlooTy9 CyjvUQgMevWwyU42kUasL1hCpiDqYUExXei0wmU= X-Received: by 2002:a05:6402:274f:: with SMTP id z15mr16361253edd.306.1635522704379; Fri, 29 Oct 2021 08:51:44 -0700 (PDT) MIME-Version: 1.0 References: <20210830185541.715f6a39@windsurf> <20210830211224.76391708@windsurf> In-Reply-To: From: Pintu Agarwal Date: Fri, 29 Oct 2021 21:21:33 +0530 Message-ID: Subject: Re: Kernel 4.14: Using dm-verity with squashfs rootfs - mounting issue To: Greg KH Cc: Thomas Petazzoni , Sami Tolvanen , snitzer@redhat.com, Kernelnewbies , open list , dm-devel@redhat.com, Mikulas Patocka , linux-mtd , linux-fsdevel , Phillip Lougher , agk@redhat.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi All, On Wed, 8 Sept 2021 at 17:38, Greg KH wrote: > > > > > 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. > > > > Can you please let me know where to get the below patches for > > backporting to our kernel: > > create mode 100644 > > target/linux/generic/backport-4.14/390-dm-add-support-to-directly-boot-to-a-mapped-device.patch > > create mode 100644 > > target/linux/generic/backport-4.14/391-dm-init-fix-max-devices-targets-checks.patch > > create mode 100644 > > target/linux/generic/backport-4.14/392-dm-ioctl-fix-hang-in-early-create-error-condition.patch > > create mode 100644 > > target/linux/generic/backport-4.14/393-Documentation-dm-init-fix-multi-device-example.patch > > If you are stuck on an older kernel version, then you need to get > support from the vendor that is forcing you to be on that kernel > version, as you are already paying them for support. Please take > advantage of that, as no one knows what is really in "your kernel". > This is to update this thread that now I am able to successfully bring-up dm-verity with NAND+ubiblock+squashfs on our 4.14 kernel itself without backporting the patches. Now, I am able to boot dm-verity using both initramfs and bootloader approach. The initramfs booting issue was our internal issue which was related to Kernel size configuration in UEFI. The bootloader approach issue was related to system image size issue, where we need to pass the exact image size to find the verity-metadata offset at the end of system image. However, I felt that dm-verity documentation still needs to be enhanced further with a better example. With the 5.4 Kernel, I may further explore the option of using dm-mod.create option, then I might get more clarity on how best to use it. Thank you all for your help and support! Regards, Pintu