Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3875427imm; Mon, 11 Jun 2018 03:17:21 -0700 (PDT) X-Google-Smtp-Source: ADUXVKICj9RVgEq++lQSEudNd6Q5iZuXJFUWVeDSkIBDZZlxguSW/J4lttQSe/zn635oECNgO6RN X-Received: by 2002:a17:902:b706:: with SMTP id d6-v6mr18038836pls.105.1528712241181; Mon, 11 Jun 2018 03:17:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528712241; cv=none; d=google.com; s=arc-20160816; b=dJ8kHwXYbiKyIKo9R1WJfX9gKEiHyGwO6DgYK3Dt878CbLEDmCq1mfDi7vn/D9Kumi bb+Eyzz3ssjEfrAfPnV5E4FXufY0dYeuXwvoyYwe0Mz3bc+bNTmH6lV/qFSI1Nxbp70D YUVdkzxGT4yQBvSlstCr41XOBZUr8gwUxE65H8M93Dflwfufju2Cscri8uCLqEpnWhbw gqJHtR0k5xbggivKCfDZRchm6r6PF5JOibjg6c356YQvZOn2XVbjVjk/srAAAHDXcEWI toXCSEP9H+iaiQJ0adxwmqPgv7J7rJ6j8k04YMHf0naosnSCDP4FUbwb03DaUwpwoQpY N2IQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=EwCbuX1B73x0rIMOT7WxjjYH/wCr0zKL+WRDDEqXCjw=; b=ssibx2yGS4kK8Hqy1pNq5wB1eZ5DPGTFxt7shVjc6BGwA4avDiHMssuqLahYxp0u2T MwdO2THv5SrclezK/K9+fXqKmtQOgQMYG6C6/aD2CPBupXRzLcHUGKGFgurIcFwclEIT UF367p9qBV1j0p87p5pSKfnKyS7ioQ8WjdX9y0/DJRUpLdgt7djkdRvpE0hhbxC5QwcC JeHmrntEXEzOgEvBApFCuae4fV2wlUp62906658OV5dG0W4nU2Z8G+Tm9SLGJOMu/YEg XCQb8nDwUbWmrXbubRqvA0b5uikyzGM6zAnbg4aF6BAacD70bDQRDx+QrSwn/2sQf91W I6+g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d10-v6si22354798pgo.630.2018.06.11.03.16.55; Mon, 11 Jun 2018 03:17:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932710AbeFKKQV (ORCPT + 99 others); Mon, 11 Jun 2018 06:16:21 -0400 Received: from mail.bootlin.com ([62.4.15.54]:48104 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932515AbeFKKQU (ORCPT ); Mon, 11 Jun 2018 06:16:20 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 45FA4207A5; Mon, 11 Jun 2018 12:16:18 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from bbrezillon (AAubervilliers-681-1-37-30.w90-88.abo.wanadoo.fr [90.88.156.30]) by mail.bootlin.com (Postfix) with ESMTPSA id D86062069C; Mon, 11 Jun 2018 12:16:17 +0200 (CEST) Date: Mon, 11 Jun 2018 12:16:18 +0200 From: Boris Brezillon To: Yogesh Narayan Gaur Cc: "marek.vasut@gmail.com" , Frieder Schrempf , "linux-mtd@lists.infradead.org" , "linux-spi@vger.kernel.org" , "dwmw2@infradead.org" , "computersforpeace@gmail.com" , "richard@nod.at" , "miquel.raynal@bootlin.com" , "broonie@kernel.org" , David Wolfe , Fabio Estevam , Prabhakar Kushwaha , Han Xu , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 03/11] spi: Add a driver for the Freescale/NXP QuadSPI controller Message-ID: <20180611121618.40f4b609@bbrezillon> In-Reply-To: References: <1527686082-15142-1-git-send-email-frieder.schrempf@exceet.de> <1527686082-15142-4-git-send-email-frieder.schrempf@exceet.de> <20180608145130.09f979f9@bbrezillon> <20180611094616.5c8f82cf@bbrezillon> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 11 Jun 2018 09:38:14 +0000 Yogesh Narayan Gaur wrote: > > > Observation 3: > > > As we can support JFFS2 filesystem on NOR flash, so we can expect JFFS2 commands should work fine on NOR flash. > > > But with this driver change my mount command is not working. > > > > > > In my target there are 2 flash slave devices connected, and I have given argument to create MTD partition like "mtdparts=20c0000.quadspi-1:5M(rcw),10M(test),46M(rootfs) " for 2nd flash. > > > Below is output for /proc/mtd commands > > > root@ls1012ardb:~# cat /proc/mtd > > > dev: size erasesize name > > > mtd0: 04000000 00040000 "20c0000.quadspi-0" --> First 64MB flash > > > mtd1: 00500000 00040000 "rcw" --> Second 64 MB flash device, 3 MTD partition are created for it. > > > mtd2: 00a00000 00040000 "test" > > > mtd3: 02e00000 00040000 "rootfs" When I do mtd1 + mtd2 + mtd3, I end up with 0x3d00000 instead of 0x4000000. Is that normal? Do you reserve a bit of space at the end or is it that rcw is not starting at 0? > > > > > > root@ls1012ardb:~# mkdir /media/ram ; flash_eraseall /dev/mtd3 > > > flash_eraseall has been replaced by `flash_erase 0 0`; please use it > > > Erasing 256 Kibyte @ 0 -- 0 % complete [ 18.299929] random: crng init done > > > Erasing 256 Kibyte @ 2dc0000 -- 100 % complete > > > root@ls1012ardb:~# mount -t jffs2 /dev/mtdblock3 /media/ram/ > > > > > > This command didn't finish successfully and there are lot of messages coming on console mentioning failure in jffs2_scan_eraseblock() > > > [ 187.118677] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x013c0000: 0x2886 instead Did you try to create a smaller partition? Maybe we have a problem when accessing addresses higher than X with the new driver (X to be determined). > > > [ 187.128159] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x013c0004: 0x7a3b instead > > > [ 187.137641] jffs2: jffs2_scan_eraseblock(): Magic bitmask > > > 0x1985 not found at 0x013c0008: 0xb10f instead > > >