Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6012264pxv; Thu, 29 Jul 2021 04:22:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZ5POMVOuNol8y7lHhFT1x3gu8dKQWnbmdYaCZewmQqNWsESEY5ALYGaKj6QtAazf7p8Gh X-Received: by 2002:a17:906:e089:: with SMTP id gh9mr4237327ejb.80.1627557757154; Thu, 29 Jul 2021 04:22:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627557757; cv=none; d=google.com; s=arc-20160816; b=NuybnuKcF2s2kCAag31C+J/MIbrntBxdit+g3Qb2Ay6Q+PD9M4xGbx9dtLyDvUsgQN f63Gl1iQNIeS+Y4cBYe+vDr2aPnZK8AjrlTDG9nzTR6xh8VeDmAzfG8Ubu9UcWvs+VAw Fs6kft7HDj5EqxUv9L8J8mHxVJe0skmgUk6eAIpOB91/6cqq5RamtMoeZVTwTN6GmTJH IrBZ+CqaGabQbVrP6LIpvxlHXJ+Jz8IFlYd+mZEIWnNNKpv9NbLWjkANfJ+n95YfoNxi IidC7n4Dm8WzxiN4YFBM2kaxELiQHIOKg8F0wG1e4nwbVbcahVJMxNlOGXyFrLaRW+it Mg+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=65ZwwJqLgs4c9HtCALozYsS5NsihCPZf/ynWKHwUyR8=; b=lKpTSor1XRXjfIUVnbb0MzyW6efSAxbICgex0IbHkn1CO1VEIdpFYh4zLaowGedfrY 2R/Y66L9q+OUTlqkBvC19YnlkNsAk8FvwIsk/6hSerEyBVSmvSod/wKoI5BUw15YQmU8 GyrnfHAL7Xpj30bslq3ju+iwJgU1GMY+x4apsIYf50bVtnKAknzJDclyNyuu1xi+FbC6 MY2Ro151SHfvsMlD+3C7BBXOP/YXnQ85ClRSI9nRZnENJphuWcYyVbF+zVtfOSm1a3RS rEwPlVae7I3bGyrnMVTfUtP8CTHHDaxSYkTFje/l1BUxM10H66xv+Qt5EAjmDut3P5vR 65Qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b=KzMZFRO6; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bq17si3019818ejb.353.2021.07.29.04.22.14; Thu, 29 Jul 2021 04:22:37 -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=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b=KzMZFRO6; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236674AbhG2LSL (ORCPT + 99 others); Thu, 29 Jul 2021 07:18:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236244AbhG2LSL (ORCPT ); Thu, 29 Jul 2021 07:18:11 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3393CC0613C1 for ; Thu, 29 Jul 2021 04:18:07 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id hs10so1401402ejc.0 for ; Thu, 29 Jul 2021 04:18:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vanguardiasur-com-ar.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=65ZwwJqLgs4c9HtCALozYsS5NsihCPZf/ynWKHwUyR8=; b=KzMZFRO6hmvgYKId5o3d7SOQb8EMTg17Lt7c87ajkq3mxdsrAnZuzjd78zV0hB5Ak3 RuFRi/DPGHSeLWQzsrOq8Zd1HeQ2O8CeHk0XTbJtxEGCyWC7asw5mHDbHXgFdTiXRE8N XGJ29IMNwRmw0twXFXZkQcrCvoXJLz/XngDGdADdW7jHpe+J/6pruVphVa6LRvJHmewK /hLCmSB0eIdXXBmW5mIucvOw2q31pAjUa8YFBq2I3h02fldHSdy2aqyUcFe2mihrB1eG TDt65ZvGSiD1eIJ7QY4RhbmAuF26F2phzx/LqqecLEDMpBbsu5/2f6HBamAYpIiIctO0 VfGg== 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:content-transfer-encoding; bh=65ZwwJqLgs4c9HtCALozYsS5NsihCPZf/ynWKHwUyR8=; b=YrnGyxVFVLq1uchtfH6mAZ9E5F+1ZXxk/kAvDliVwTWG56Sr8GH/sr9kOoGjuo/ZYw Lmi0O+UFFG8EMvoWwBv2S0C5mC+gupMmIVZbbJCclqyb9CSgMhwfsMlleA4a9PdtSjvr frBFQnWHQz+OvjuJKACQHJ9d7fXI6wnI6tqQTv6AsVm7SqLkEmcFbuA1byQ+NzZ1B6Bx OPiVCcLAjFcm+ZbpsIR0u969dYVlmayVzfVaYcAXkKdUffTvyuw9WSvUgifWdAqUbYiU sZRmpBzYxMAhw0JrH4P3aKRpj9HsVygU9GGadpu/8Gokh+Nbpn3SQaqOs51V4SoXJw+e e4Zg== X-Gm-Message-State: AOAM5309/1z7DU4CaLYjW+AyZs+SKM/ITwyu21S6/IFHzJUL1Jsj6ffw hHKDppa3NB7o6mQlsTSOfOWeYSSePpUojR3qRxMZlA== X-Received: by 2002:a17:906:4fd6:: with SMTP id i22mr4214483ejw.92.1627557485657; Thu, 29 Jul 2021 04:18:05 -0700 (PDT) MIME-Version: 1.0 References: <568938486.33366.1626452816917.JavaMail.zimbra@nod.at> <1458549943.44607.1626686894648.JavaMail.zimbra@nod.at> <1556211076.48404.1626763215205.JavaMail.zimbra@nod.at> <2132615832.4458.1626900868118.JavaMail.zimbra@nod.at> In-Reply-To: From: Ezequiel Garcia Date: Thu, 29 Jul 2021 08:17:53 -0300 Message-ID: Subject: Re: MTD: How to get actual image size from MTD partition To: Richard Weinberger Cc: Pintu Agarwal , Richard Weinberger , Kernelnewbies , Greg KH , linux-kernel , linux-mtd , Sean Nyekjaer , linux-fsdevel , Phillip Lougher Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Richard, On Tue, 27 Jul 2021 at 18:16, Richard Weinberger wrote: > > On Thu, Jul 22, 2021 at 1:11 PM Pintu Agarwal wrot= e: > > > > On Thu, 22 Jul 2021 at 02:24, Richard Weinberger wrote= : > > > > > > ----- Urspr=C3=BCngliche Mail ----- > > > >> But let me advertise ubiblock a second time. > > > > Sorry, I could not understand about the ubiblock request. Is it > > > > possible to elaborate little more ? > > > > We are already using squashfs on top of our UBI volumes (including > > > > rootfs mounting). > > > > This is the kernel command line we pass: > > > > rootfstype=3Dsquashfs root=3D/dev/mtdblock44 ubi.mtd=3D40,0,30 > > > > And CONFIG_MTD_UBI_BLOCK=3Dy is already enabled in our kernel. > > > > Do we need to do something different for ubiblock ? > > > > > > From that command line I understand that you are *not* using squashfs= on top of UBI. > > > You use mtdblock. ubiblock is a mechanism to turn an UBI volume into = a read-only > > > block device. > > > See: http://www.linux-mtd.infradead.org/doc/ubi.html#L_ubiblock > > > [snip] Ouch, so surprised that after all these years someone is doing squashfs/mtd= block instead of using ubiblock :-) Can we patch either Kconfig or add some warn_once on mtdblock usage, suggesting to use ubiblock instead? I remember there was still some use case(s) for mtdblock but I can't rememb= er now what was it, perhaps we should document the expectations? (Is that for JFFS2 to mount?) Thanks, Ezequiel