[uClinux-dev] Problems with the flash memory

1010904 at isep.ipp.pt 1010904 at isep.ipp.pt
Wed Aug 8 16:44:44 EDT 2007


Hi Matt,

That was my first suspect. So i've reviewed the mapping of the flash and
analised the size of the jffs2 image created. It's all clear. My suspect
now is over the version of the jffs2.c available in the distribution that
i'm using. Its the version 2.1. Does anyone knows if this is an estable
version or if i should upgrade it?
Or could the problem of the writing be caused by the MTD?

Jorge



>
> Hi,
>
> Is the jffs2 image created with an appropriate page size and erase block
> for the flash device?
>
> Matt
>
>
> -----Original Message-----
> From: uclinux-dev-bounces at uclinux.org
> [mailto:uclinux-dev-bounces at uclinux.org] On Behalf Of
> 1010904 at isep.ipp.pt
> Sent: Wednesday, August 08, 2007 1:21 PM
> To: uclinux-dev at uclinux.org
> Subject: [uClinux-dev] Problems with the flash memory
>
> Hello everybody.
>
>     I'm having a sort of a problem. I'm using a uClinux distribution
> with
> the kernel 2.4.xx for the Netburner Coldfire MOD5272 kit. To adress to
> the flash memory (an AMD AM29VL160DB) i'm using the blkmem.c file
> (with the proper configuration for memory). As far as i have
> underthood, the blkmem is used at the start up of the memory. It
> defines the memory blocks that we are going to use in size and length.
> So far so good.
>     To access the filesystem in the flash (/mnt) i'm using the jffs2 to
> built the structure of the filesystem. This binary works with the MTD
> (binary that writes and reads from the flash) to read and write files
> to the /mnt. It keeps a log of all the changes that we operate at the
> flash.
>     Now the problem.... When i try to read files from the /mnt theres no
> problem. It works perfectly. But when i try to write to the flash i
> get a strange behavior. When writing small files it works fine (file
> around 1-4kB). But when i try to write (copy in this case) a big file
> (around 70kB) i get the following error:
>
> # cp file test
> cp: unable to open `test': No space left on device
>
>     The problem is that i have plenty of space left in the flash. I
> don't
> understand what i'm missing here... Can someone give me a clue?
> Someone who had a similar problem perhaps...
>
> Thanks for you patience, Jorge Lopes.
>
> _______________________________________________
> uClinux-dev mailing list
> uClinux-dev at uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev at uclinux.org
> To unsubscribe see:
> http://mailman.uclinux.org/mailman/options/uclinux-dev
>




More information about the uClinux-dev mailing list