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=-0.5 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 B878FC12002 for ; Mon, 19 Jul 2021 09:10:39 +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 674BE6100C for ; Mon, 19 Jul 2021 09:10:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 674BE6100C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94.2) (envelope-from ) id 1m5PHr-0007Hp-7I; Mon, 19 Jul 2021 05:10:07 -0400 Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1m5PHl-0007HK-6j for kernelnewbies@kernelnewbies.org; Mon, 19 Jul 2021 05:10:01 -0400 Received: by mail-ej1-x630.google.com with SMTP id gb6so27489842ejc.5 for ; Mon, 19 Jul 2021 02:10:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=RBSq6zJFuhCvZnOd2gsZfOMT0eqyDUMuVPMMsfBiF1k=; b=tyuwkC2PzoZWVuCqm9kCcz3M9SCCkXn/k2TPyTvNUCyrH//h97IumALBHO8pcUpWgj OIWRiPnAheYYrXvjryxDIP6hOU9+DElevR87h88njDFs3ujo0voRJaw5/Ll1x8qjwGgv zd1xKrFqSC+6ZSuU5Wyn9GEwDDm+eQGmeUJu/ZCU1tnUkp/B08O/yyMYbk60PfjNWBRs HtRbPlO/whptCcPo2L3HmnD6a9KfspVqDB+1IKiFAVxZtb9cttM5npNsK/uS0YEHudjQ v3detn/3H/nsLpPwP9PVzSAFnGO6NtzfUIcxd+tPhJ0i6uwXc9BWELDB/9jK/hpPQpXX GHGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=RBSq6zJFuhCvZnOd2gsZfOMT0eqyDUMuVPMMsfBiF1k=; b=fOXak+SoSPoT6XioDulXgyAM7z3MWFK3TPXHcHW+eO/H1Wdxly7ejHuKERw/fbkm8x X94wrbHwzlLaZG98ZN4XBWR8UENkpJMNeL1lVEnkLN4nBzEYM1DjXKlUXmOoPu7d0wZy fQw3zPJ9urqNQIjoR/HvEDC5P7c6klfnwSleH/8l4Abs7WPAiT0pkRVVM9767W2qJfa9 0CQoa1or5uT/he3MGaRn46naG90JyC8ZTau7l6rbSW9JRvw0r/KNJPLstXchT6l1Pn27 Ay8o48WeiZ4b7ejro6PNZ4+IoNhKruaZ4crflG3GGrZmE9dahFF9SdV3LlnUAe2npFrm xcFA== X-Gm-Message-State: AOAM532qSglww2KLN5RN1z/43ZvEZ61a9iN+qtSOM0LdvIkg7LgEGJHK /+a54P9IjWZkZ2cX4JRNlSRII/e8X5jcE+KUwz0= X-Google-Smtp-Source: ABdhPJwubtgEMes7Ng29QD5qA/jN51mjW/q7+dtbpcLGkpLbDjrv1aOLcqCXW12Mc7+LVAk5fM+b/NX/9+Yz96jFMnM= X-Received: by 2002:a17:906:9d17:: with SMTP id fn23mr26835249ejc.191.1626685798074; Mon, 19 Jul 2021 02:09:58 -0700 (PDT) MIME-Version: 1.0 References: <568938486.33366.1626452816917.JavaMail.zimbra@nod.at> In-Reply-To: <568938486.33366.1626452816917.JavaMail.zimbra@nod.at> From: Pintu Agarwal Date: Mon, 19 Jul 2021 14:39:46 +0530 Message-ID: Subject: Re: MTD: How to get actual image size from MTD partition To: Richard Weinberger Cc: Kernelnewbies , Greg KH , linux-kernel , linux-mtd , Sean Nyekjaer , linux-fsdevel , Phillip Lougher 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 On Fri, 16 Jul 2021 at 21:56, Richard Weinberger wrote: > >> My requirement: > >> To find the checksum of a real image in runtime which is flashed in an > >> MTD partition. > > > > Try using the dm-verity module for ensuring that a block device really > > is properly signed before mounting it. That's what it was designed for > > and is independent of the block device type. > > MTDs are not block devices. :-) > Is it possible to use dm-verity with squashfs ? We are using squashfs for our rootfs which is an MTD block /dev/mtdblock44 _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies