[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] Nu Horizons S31500: 16-bit FLASH working.
David -
JFFS2 will take care of erasures for you as necessary. Plain ol' copy
into /dev/mtdX won't.
Steve
--- David Banas <dbanas@nuhorizons.com> wrote:
> Steve, Greg,
>
> I've got it working now; thanks for all your help.
>
> Greg,
>
> It was your suggestion to erase the FLASH before attempting to copy
> the
> JFFS2 image file onto it that got things working, which confuses me:
> isn't
> the erasing taken care of automatically when needed? For instance, I
> just
> created a new file successfully on the FLASH by redirecting the
> output of a
> 'cat' command to '/mnt/cat_output'. (I have '/dev/mtdblock6' mounted
> at
> '/mnt'.) I didn't get any of those "Internal timeout on FLASH."
> errors when
> I did this and the file got correctly written. Does this automatic
> erase-when-needed behavior only occur when you're going through the
> JFFS2
> file system and not when you directly copy to /dev/mtd6?
>
> Another peculiarity: when I do a 'df /mnt', I get the following:
>
> Total bytes: 524288
> Free bytes: 192512
> Total nodes: 0
> Free nodes: 0
>
> The "Total bytes" reported is correct for that partition, but the
> other 3
> values look bogus. (The only things originally in '/mnt' were 2 *.pid
> files,
> consuming a wopping 6 bytes total. Also, "Free bytes" didn't change
> when I
> executed the command mentioned, above, which produces a file in
> '/mnt' that
> is 3241 bytes in size.) Any thoughts?
>
> Thanks, again, for the help,
>
> David Banas
> Field Applications Engineer
> Nu Horizons Electronics Corp.
> 2070 Ringwood Avenue
> San Jose, CA 95131
> (408)434-0800 - office
> (415)846-5837 - cell
> http://www.nuhorizons.com
>
>
>
> ___________________________
> microblaze-uclinux mailing list
> microblaze-uclinux@itee.uq.edu.au
> Project Home Page :
> http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
> Mailing List Archive :
> http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
>
>
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/