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=-3.8 required=3.0 tests=BAYES_00, 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 123C8C4320A for ; Thu, 29 Jul 2021 11:45:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EC940604D7 for ; Thu, 29 Jul 2021 11:45:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235136AbhG2Lpv convert rfc822-to-8bit (ORCPT ); Thu, 29 Jul 2021 07:45:51 -0400 Received: from lithops.sigma-star.at ([195.201.40.130]:46474 "EHLO lithops.sigma-star.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234098AbhG2Lpu (ORCPT ); Thu, 29 Jul 2021 07:45:50 -0400 Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 93E5D60A59E0; Thu, 29 Jul 2021 13:45:45 +0200 (CEST) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id aO_TuqCBAGxP; Thu, 29 Jul 2021 13:45:45 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 3EEFA60A59E2; Thu, 29 Jul 2021 13:45:45 +0200 (CEST) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ubc79fz-8zcI; Thu, 29 Jul 2021 13:45:45 +0200 (CEST) Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lithops.sigma-star.at (Postfix) with ESMTP id 15DB260A59E0; Thu, 29 Jul 2021 13:45:45 +0200 (CEST) Date: Thu, 29 Jul 2021 13:45:44 +0200 (CEST) From: Richard Weinberger To: Ezequiel Garcia Cc: Pintu Agarwal , Kernelnewbies , Greg KH , linux-kernel , linux-mtd , Sean Nyekjaer , linux-fsdevel , Phillip Lougher Message-ID: <1668790824.35266.1627559144878.JavaMail.zimbra@nod.at> In-Reply-To: References: <1556211076.48404.1626763215205.JavaMail.zimbra@nod.at> <2132615832.4458.1626900868118.JavaMail.zimbra@nod.at> Subject: Re: MTD: How to get actual image size from MTD partition MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Originating-IP: [195.201.40.130] X-Mailer: Zimbra 8.8.12_GA_3807 (ZimbraWebClient - FF90 (Linux)/8.8.12_GA_3809) Thread-Topic: How to get actual image size from MTD partition Thread-Index: o5rhXDaMb949oL+oV/E2gN2BDVZpgg== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ezequiel, ----- Ursprüngliche Mail ----- > [snip] > > Ouch, so surprised that after all these years someone is doing squashfs/mtdblock > instead of using ubiblock :-) > > Can we patch either Kconfig or add some warn_once on mtdblock > usage, suggesting to use ubiblock instead? a hint in Kconfig makes IMHO sense. Do you want to send a patch? A warning is too much since on some tiny embedded system with NOR flash mtdblock is still a good choice. ubiblock is mostly useful for NAND flash. > I remember there was still some use case(s) for mtdblock but I can't remember > now what was it, perhaps we should document the expectations? > (Is that for JFFS2 to mount?) a long time ago mount didn't accept character devices, so you had to pass mtdblockX to mount JFFS2. This limitation is gone. Thanks, //richard