From: Wolfgang Denk Date: Tue, 05 Aug 2003 16:34:40 +0200 Subject: [U-Boot-Users] FLASH AM29LV320DB on AdderII In-Reply-To: Your message of "Tue, 05 Aug 2003 06:47:35 PDT." <20030805134735.21564.qmail@web40409.mail.yahoo.com> Message-ID: <20030805143445.4BF3BC59E4@atlas.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <20030805134735.21564.qmail@web40409.mail.yahoo.com> you wrote: > > I picked the flash.c from fads and modified few > things. > > I went through the code of walnut405 ( flash.c ) looks > like it has some kind of fix for this. The ( unsigned > short ) declarations. This is not a "fix". It is a different configuration for a different board. You cannot simply pick any flash driver and hope it will work as is for you. You must adapt (port) the flash driver as required by the hardware on your board. Note that it is generally a bad idea to use the FADS as an example configuration. > But I am able to detect the sectors correctly. That means nothing. Wolfgang Denk -- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de Let's say the docs present a simplified view of reality... :-) - Larry Wall in <6940@jpl-devvax.JPL.NASA.GOV>