U-boot issue with Intel StrataFlash P30.
Hi,
I am porting the u-boot to a MPC8536E custom board and I am facing an issue with flash. When u-boot tries to detect the flash (INTEL STRATAFLASH P30) it just freeze. The u-boot is started from the same flash.
The problem happen when the CFI Driver tries a read from flash (flash_read8()) for the first time. Please, see the log bellow.
Has someone faced this kind of issue? Are there some tip to solve the problem?
Thank you,
Moratelli
U-Boot 2010.06-00738-gae5b042-dirty (Sep 10 2010 - 18:02:00)
CPU: 8536E, Version: 1.1, (0x803f0091)
Core: E500, Version: 3.0, (0x80210030)
Clock Configuration:
CPU0:800 MHz,
CCB:400 MHz,
DDR:200 MHz (400 MT/s data rate) (Synchronous), LBC:25 MHzL1: D-cache 32 kB enabled
I-cache 32 kB enabled
DRAM: lcrr: 0x20004
128 MiB
SDRAM test phase 1:
write ok.
SDRAM test phase 2:
SDRAM test passed.
Top of RAM usable for U-Boot at: 08000000
Reserving 728k for U-Boot at: 07f40000
Reserving 1032k for malloc() at: 07e3e000
Reserving 80 Bytes for Board Info at: 07e3dfb0
Reserving 80 Bytes for Global Data at: 07e3df60
Stack Pointer at: 07e3df48
New Stack Pointer is: 07e3df48
Now running in RAM - U-Boot at: 07f40000
FLASH: flash detect cfi
fwc addr e0000000 cmd f0 f0 8bit x 8 bit
fwc addr e0000000 cmd ff ff 8bit x 8 bit
fwc addr e0000055 cmd 98 98 8bit x 8 bit
is= cmd 51(Q) addr e0000010
Dear Carlos Roberto Moratelli,
Quoted 5 lines · In message <[email protected]> you wrote:
I am porting the u-boot to a MPC8536E custom board and I am facing an issue with flash. When u-boot tries to detect the flash (INTEL STRATAFLASH P30) it just freeze. The u-boot is started from the same flash.
...
Quoted 1 line
U-Boot 2010.06-00738-gae5b042-dirty (Sep 10 2010 - 18:02:00)
Try using recent code instead (v2010.09-rc1).
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Until you walk a mile in another man's moccasins, you can't imagine the smell.
Hi Moratelli,
Quoted 10 lines · On Friday 10 September 2010 23:30:19 Carlos Roberto Moratelli wrote:
I am porting the u-boot to a MPC8536E custom board and I am facing an issue with flash. When u-boot tries to detect the flash (INTEL STRATAFLASH P30) it just freeze. The u-boot is started from the same flash.
The problem happen when the CFI Driver tries a read from flash (
flash_read8()) for the first time. Please, see the log bellow.Has someone faced this kind of issue? Are there some tip to solve the problem?
Might be that you have problems with byte access to this most likely 16bit wide flash device. I suggest you try setting this in your board config header:
#define CONFIG_SYS_FLASH_CFI_WIDTH FLASH_CFI_16BIT
Cheers,
Stefan
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de