Strange problem related to writing to flash

Justin Wojdacki justin.wojdacki at analog.com
Tue Jun 4 19:41:34 EDT 2002


Jim Thompson wrote:
> 
> I've been seeing similar things (well, worse, the kernel (yes the
> kernel) crashes somewhere in the bootloader after a soft reset) on
> PowerPC.  If the root filesystem is mounted read-only, things are just
> peachy.
> 
> In your case, I'd bet that the flash isn't in 'read' mode.  You
> probably want to assure that the flash is in 'read' mode before you
> soft reset the CPU.
> 
> I haven't figured out whats wrong with mine yet.
> 

That's along the lines of what a few of us discussed here, except for
one issue: 

The bootstrap isn't part of the kernel. So the bootstrap has no
problem running, loading the kernel from flash, and then executing the
kernel. Seems to me that that wouldn't be possible if the flash wasn't
in read mode (unless I'm missing something). The bootstrap being used
has to ID the flash device itself, so if it can ID it and read from it
fine, the kernel should be able to also right? 

-- 
-------------------------------------------------
Justin Wojdacki        
justin.wojdacki at analog.com         (408) 350-5032
Communications Processors Group -- Analog Devices




More information about the linux-mtd mailing list