[Top] [All Lists]

Re: Fixes to MTD flash driver on AMD Alchemy db1100 board

To: Ulrich Eckhardt <>
Subject: Re: Fixes to MTD flash driver on AMD Alchemy db1100 board
From: Josh Green <>
Date: Mon, 21 Feb 2005 22:06:52 -0800
In-reply-to: <1109030275.13988.21.camel@SillyPuddy.localdomain>
Original-recipient: rfc822;
References: <1108962105.6611.24.camel@SillyPuddy.localdomain> <> <1109030275.13988.21.camel@SillyPuddy.localdomain>
On Mon, 2005-02-21 at 15:57 -0800, Josh Green wrote:
> I've also got jffs2 working on the User FS partition, but I get a whole
> bunch of errors when it boots (regardless it still seems to function).
> I'll post these in another thread if I can't get it resolved.

Just to complete this thread, I did figure out what my trouble was.  I
erroneously thought that I didn't need the mtd0-3 dev support, but I
ended up needing it for the flash_erase (sometimes called just "erase")
command, which was what I had to run before my jffs2 errors went away.
Things seem to be working fine now :)  Make sure to erase the partition
using the correct count, I had to do:

flash_erase /dev/mtd0 0 0xe0

The first parameter is the offset, the second is the number of "erase
size" blocks to erase (likely different for your case).  This can be
found from your total flash size divided by the erase size
(cat /proc/mtd for this info).  Gee, funny how things work when you do
it right :)  I must say documentation is lacking for the mtd tools
though, I had to look at the code, sheesh, ha ha.  Cheers.
        Josh Green

Attachment: signature.asc
Description: This is a digitally signed message part

<Prev in Thread] Current Thread [Next in Thread>