From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Woodhouse To: libber@deathgrab.com In-Reply-To: <63072.65.37.112.188.1078528537.squirrel@mail.deathgrab.com> References: <63072.65.37.112.188.1078528537.squirrel@mail.deathgrab.com> Content-Type: text/plain Message-Id: <1078530792.6971.1.camel@lapdancer.baythorne.internal> Mime-Version: 1.0 Date: Fri, 05 Mar 2004 23:53:14 +0000 Content-Transfer-Encoding: 7bit cc: linux-mtd@lists.infradead.org Subject: Re: can only save empty files List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, 2004-03-05 at 14:15 -0900, libber@deathgrab.com wrote: > Greetings, I am trying to get a read/write partition working for the > linksys WRT54G. I believe the bus controller is set up wrong, and read of less than a full buswidth are returning incorrect data. IIRC the fix was to make copy_from() of an odd length in your particular map driver copy the last word into a local buffer, then copy only the required bytes from that. That or find chip docs and fix up the bus controller setup. :) -- dwmw2