[U-Boot] [MPC8272ADS/BDI2000]Can not program my u-boot into Flash

Jerry Van Baren gerald.vanbaren at ge.com
Mon Jan 19 20:06:23 CET 2009


Jean-Michel Hautbois wrote:

[snip]

> The error in programming tells that it couldn't write the second byte
> of the u-boot file. Indeed, I have displayed the memory before and
> after the prog command, and the first byte is correctly written.
> I can't understand where my problem is.
> 
> Thx and Regards,
> JM

Hi JM,

After you erase the sector/chip, is it all 0xFF (especially the second 
location)?  (I expect it is, but it is good to start with the fundamentals.)

If so, I would speculate your flash chip configuration isn't right.  You 
need to know how your hardware is wired:
* How many chips in parallel on the bus?
* Bus width on each chip?
* Bus width into the processor?

Common configurations are things like one 8-bit wide chip running 8 bits 
into the processor, one 16-bit wide chip running 16 bits into the 
processor, two 16-bit wide chips in parallel running 32 bits into the 
processor.

(Some flash chips can be configured to be either 8 or 16 bits wide 
depending on a strapping pin.  For them, you need to figure out how the 
hardware has them configured.)

Good luck,
gvb


More information about the U-Boot mailing list