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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 55A23C77B72 for ; Thu, 20 Apr 2023 17:33:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229839AbjDTRds convert rfc822-to-8bit (ORCPT ); Thu, 20 Apr 2023 13:33:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229670AbjDTRdp (ORCPT ); Thu, 20 Apr 2023 13:33:45 -0400 Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 633554EE3 for ; Thu, 20 Apr 2023 10:33:22 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 12C8664551D0; Thu, 20 Apr 2023 19:33:20 +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 jA3v9_EJX3hK; Thu, 20 Apr 2023 19:33:19 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id A6C3C63CC166; Thu, 20 Apr 2023 19:33:19 +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 ILxeHMeUlP07; Thu, 20 Apr 2023 19:33:19 +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 88AEB64551D0; Thu, 20 Apr 2023 19:33:19 +0200 (CEST) Date: Thu, 20 Apr 2023 19:33:19 +0200 (CEST) From: Richard Weinberger To: Yu Hao Cc: chengzhihao1 , Miquel Raynal , Vignesh Raghavendra , linux-mtd , linux-kernel Message-ID: <977347543.226888.1682011999468.JavaMail.zimbra@nod.at> In-Reply-To: References: <687864524.118195.1681799447034.JavaMail.zimbra@nod.at> Subject: Re: BUG: divide error in ubi_attach_mtd_dev 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 - FF97 (Linux)/8.8.12_GA_3809) Thread-Topic: divide error in ubi_attach_mtd_dev Thread-Index: HhyYkKa9UL/icxFryd8ZleAEcsQTSA== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ----- Ursprüngliche Mail ----- > The kernel is in qemu. We find that the `mtd` is from > `mtd = get_mtd_device(NULL, req.mtd_num);` in function `ctrl_cdev_ioctl`. > And we are still trying to figure out what MTD is. Can you please share the qemu command line? Within Linux you can query /proc/mtd or /sys/class/mtd/ to get infos about the MTD in question. Thanks, //richard