public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] Flash configuration
@ 2006-08-24  9:49 Justin Clacherty
  2006-08-24 10:01 ` Wolfgang Denk
  0 siblings, 1 reply; 13+ messages in thread
From: Justin Clacherty @ 2006-08-24  9:49 UTC (permalink / raw)
  To: u-boot

Hi,

I've ported u-boot to my PXA270 board and have it working as a network 
boot loader.  I'm now trying to get flash programming working so I can 
flash the kernel and root file system.  Our board has two Intel 512Mib 
P30 flashes on it configured as 32-bit memory.  The 512Mib parts are 
actually two 256Mib parts on the same die so u-boot should see two banks 
of 32-bit memory with two flash devices in each bank.

After booting flinfo shows that u-boot has found four devices but the 
addresses seem to be wrong.  It has

bank 1 0x00000000 - 0x03ffffff
bank 2 0x04000000 - 0x07ffffff
bank3 0x00000000 - 0x03ffffff
bank 4 0x00000000 - 0x03ffffff.

Any ideas where I might have gone wrong?  The relevant portions of my 
board header file are below.

Regards,
Justin.

#define PHYS_FLASH_1            0x00000000 /* Flash Bank #1 */
#define PHYS_FLASH_2            0x04000000 /* Flash Bank #2 */

#define CFG_FLASH_CFI
#define CFG_FLASH_CFI_DRIVER    1
#define CFG_FLASH_CFI_WIDTH     FLASH_CFI_32BIT

#define CFG_FLASH_BASE_1        PHYS_FLASH_1
#define CFG_FLASH_BASE_2        PHYS_FLASH_2
#define CFG_FLASH_BANKS_LIST    { CFG_FLASH_BASE_1, CFG_FLASH_BASE_2 }

#define CFG_MONITOR_BASE        0
#define CFG_MONITOR_LEN         0x20000

#define CFG_MAX_FLASH_BANKS     4           /* max number of memory 
banks               */
#define CFG_MAX_FLASH_SECT      (4 + 255)   /* max number of sectors on 
one chip    */

/* timeout values are in ticks */
#define CFG_FLASH_ERASE_TOUT    (25*CFG_HZ) /* Timeout for Flash Erase */
#define CFG_FLASH_WRITE_TOUT    (25*CFG_HZ) /* Timeout for Flash Write */

/* write flash less slowly */
#define CFG_FLASH_USE_BUFFER_WRITE 1

/* Flash environment locations */
#define CFG_ENV_IS_IN_FLASH     1
#define CFG_ENV_ADDR            (CFG_FLASH_BASE_1 + CFG_MONITOR_LEN)    
/* Addr of Environment Sector   */
#define CFG_ENV_SIZE            0x10000 /* Total Size of 
Environment            */
#define CFG_ENV_SECT_SIZE       0x10000 /* Total Size of Environment 
Sector     */

^ permalink raw reply	[flat|nested] 13+ messages in thread
* [U-Boot-Users] Flash configuration
@ 2005-10-13 15:27 Jose França (Ext_GTBC)
  2005-10-13 15:43 ` Alex Zeffertt
  2005-10-13 15:53 ` Wolfgang Denk
  0 siblings, 2 replies; 13+ messages in thread
From: Jose França (Ext_GTBC) @ 2005-10-13 15:27 UTC (permalink / raw)
  To: u-boot

Hello u all!

	I'm configuring u-boot (for the first time) so that i can have 2 flash eprom chips, in two different banks, for a mpc8272 based board. They are organized the following way:
	
		BOOT Flash -> starts at 0xFFF00000 and has 512KB of size. (read-only)
		Linux Flash -> starts at 0x50000000 and has 64MB of size. (CFI compatible)

	Since CFG_FLASH_BASE is used throughout the u-boot code as a reference, which one should it be? The boot flash address or the linux flash address? I'm really confused here...
	All is setup so that the processor starts to boot from 0xFFF00000 and the reset vector set to 0xFFF00100.
	Should I use the cfi_flash driver, provided by u-boot? Or should I write a flash.c in my board directory (this is done already)? Do I have to change anything when I use the driver?



Thanks in advance!
Filipe

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

end of thread, other threads:[~2006-08-25 14:13 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-24  9:49 [U-Boot-Users] Flash configuration Justin Clacherty
2006-08-24 10:01 ` Wolfgang Denk
2006-08-24 10:18   ` Justin Clacherty
2006-08-24 10:30     ` Wolfgang Denk
2006-08-24 11:26       ` Justin Clacherty
2006-08-24 12:13         ` Wolfgang Denk
2006-08-24 12:24           ` [U-Boot-Users] about the function "pci_write_config_dwor d" Denny
2006-08-24 15:18             ` Wolfgang Denk
2006-08-24 12:31           ` [U-Boot-Users] Flash configuration Jerry Van Baren
2006-08-25 14:13           ` Justin Clacherty
  -- strict thread matches above, loose matches on Subject: below --
2005-10-13 15:27 Jose França (Ext_GTBC)
2005-10-13 15:43 ` Alex Zeffertt
2005-10-13 15:53 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox