All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] U-boot issue with Intel StrataFlash P30.
@ 2010-09-10 21:30 Carlos Roberto Moratelli
  2010-09-10 22:00 ` Wolfgang Denk
  2010-09-11  6:41 ` Stefan Roese
  0 siblings, 2 replies; 3+ messages in thread
From: Carlos Roberto Moratelli @ 2010-09-10 21:30 UTC (permalink / raw)
  To: u-boot

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   MHz
L1:    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 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] U-boot issue with Intel StrataFlash P30.
  2010-09-10 21:30 [U-Boot] U-boot issue with Intel StrataFlash P30 Carlos Roberto Moratelli
@ 2010-09-10 22:00 ` Wolfgang Denk
  2010-09-11  6:41 ` Stefan Roese
  1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2010-09-10 22:00 UTC (permalink / raw)
  To: u-boot

Dear Carlos Roberto Moratelli,

In message <1284154219.13384.13.camel@parana.digitel.com.br> 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. 
...
> 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

-- 
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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] U-boot issue with Intel StrataFlash P30.
  2010-09-10 21:30 [U-Boot] U-boot issue with Intel StrataFlash P30 Carlos Roberto Moratelli
  2010-09-10 22:00 ` Wolfgang Denk
@ 2010-09-11  6:41 ` Stefan Roese
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Roese @ 2010-09-11  6:41 UTC (permalink / raw)
  To: u-boot

Hi Moratelli,

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-09-11  6:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-10 21:30 [U-Boot] U-boot issue with Intel StrataFlash P30 Carlos Roberto Moratelli
2010-09-10 22:00 ` Wolfgang Denk
2010-09-11  6:41 ` Stefan Roese

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.