public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* can only save empty files
@ 2004-03-05 23:15 libber
  2004-03-05 23:53 ` David Woodhouse
  0 siblings, 1 reply; 2+ messages in thread
From: libber @ 2004-03-05 23:15 UTC (permalink / raw)
  To: linux-mtd

Greetings, I am trying to get a read/write partition working for the
linksys WRT54G. To this end I have created a new partition which is the
correct size and is alinged on erase-block bounderies and such, I have
crosscompiled most of the programs in util from cvs. All should be well,
but alas it is not, I can erase my new partition (this is an amd flash
chip on a broadcom board if that changes things) and erasing works, I can
mount the partition rw which works. the really strange thing is that when
I write an empty file ('touch blah') and unmount or reboot or whatnot, the
file is saved and is there when I remount the partition. But if a file is
created that actuially has information in it then it is not saved. I have
no idea what the problem is here but I find it very strange, I have also
tried mkfs.jffs2 with the output going to the block device and that does
not work, I have also tried making an image with mkjfs.jffs2 and dding the
image to the device /dev/mtdblock/4 and that also does not work. This
might not even be related to jffs2 and is a problem with the driver for
the flash chip or something else,I am just hoping my post here will help
illuminate the problem. I am using kernel 2.4. I would be happy to provide
more information as needed.

Thanks for your time,
Libber

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: can only save empty files
  2004-03-05 23:15 can only save empty files libber
@ 2004-03-05 23:53 ` David Woodhouse
  0 siblings, 0 replies; 2+ messages in thread
From: David Woodhouse @ 2004-03-05 23:53 UTC (permalink / raw)
  To: libber; +Cc: linux-mtd

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-03-05 23:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-05 23:15 can only save empty files libber
2004-03-05 23:53 ` David Woodhouse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox