Received: from fish.redhat.com ([213.86.99.237] helo=passion.cambridge.redhat.com) by pentafluge.infradead.org with esmtp (Exim 4.14 #3 (Red Hat Linux)) id 19N8Gy-0000G0-Un for ; Tue, 03 Jun 2003 10:40:04 +0100 From: David Woodhouse To: Vikram Mehta In-Reply-To: References: Message-Id: <1054633243.17921.34.camel@passion.cambridge.redhat.com> Mime-Version: 1.0 Date: Tue, 03 Jun 2003 10:40:43 +0100 Content-Type: text/plain Content-Transfer-Encoding: 7bit cc: linux-mtd@lists.infradead.org cc: uclinux-dev@uclinux.org Subject: Re: cfi_send_gen_cmd(0x98, 0x55, base, map, cfi, cfi->device_type, NULL); not workin List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, 2003-06-03 at 10:23, Vikram Mehta wrote: > Hi joern, > Thanx > I agree this format was confusing. So let me put it simply > > in cfi_probe.c in cfi_probe_chip function > > cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL); > Works > but > > cfi_send_gen_cmd(0x98, 0x55, base, map, cfi, cfi->device_type, NULL); > doesnot work. > It fails when __raw_writew(d, map->map_priv_1 +adr); is called in its > stack. >From the Cc I'm inferring you're using uCLinux. Are you running with your kernel in flash? Is your kernel in the _same_ flash chip as is being probed here? If so, it's not really surprising it doesn't work. As soon as you send the '0x98' command, your entire kernel turns into the CFI query results and it isn't really going to work too well :) -- dwmw2