From: Justin Clacherty <justin@redfish-group.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Flash configuration
Date: Thu, 24 Aug 2006 19:49:38 +1000 [thread overview]
Message-ID: <44ED7632.7010700@redfish-group.com> (raw)
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 */
next reply other threads:[~2006-08-24 9:49 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-24 9:49 Justin Clacherty [this message]
2006-08-24 10:01 ` [U-Boot-Users] Flash configuration 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44ED7632.7010700@redfish-group.com \
--to=justin@redfish-group.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.