[U-Boot] [U-Boot-Users] U-boot for PPC405GP based custom Board
ravi.rao at rflelect.com
ravi.rao at rflelect.com
Thu Jun 24 23:58:39 CEST 2010
Hi Feng,
We do not have two banks. Our design has only one Bank but two chips
in the single Bank. Any idea how to get this working in u-boot..
Thanks
Ravishankar Govindarao
RFL Electronics Inc.
E-mail : Ravi.Rao at rflelect.com
Voice: 973.334.3100 Ext. 233
Fax: 973.334.3863
CONFIDENTIALITY NOTE
This e-mail, including any attachments, may contain confidential and/or
legally privileged information. The Information is intended only for the
use of the individual or entity named on this e-mail . If you are not the
intended recipient, you are hereby notified that any disclosure, copying,
distribution, or the taking of any action in reliance on the contents of
this transmitted Information is strictly prohibited. Further, if you are
not the intended recipient, please notify us by return e-mail and delete
the Information promptly.
Feng Kan <fkan at apm.com>
06/24/2010 05:45 PM
To
ravi.rao at rflelect.com
cc
u-boot at lists.denx.de
Subject
Re: [U-Boot-Users] U-boot for PPC405GP based custom Board
I dont know how the hardware is tied down. But at it seems to be getting
bank 0 correctly.
However, you second bank base address should be bank0_base + size instead
of 0.
You may have a hardware problem.
Feng Kan
On Thu, Jun 24, 2010 at 2:14 PM, <ravi.rao at rflelect.com> wrote:
Hi Feng,
Below is the screen dump after enabling Debug. ..
===============================================================
Booting RFL GARD 8000 Controller using u-boot based bootloader
===============================================================
U-Boot 1.3.0-rc4 (Jun 24 2010 - 16:47:32)
CPU: AMCC PowerPC 405GP Rev. E at 200 MHz (PLB=100, OPB=50, EBC=50 MHz)
, PCI sync clock at 50 MHz 16 kB I-Cache 8 kB D-Cache
Board: RFL-GARD8000 with AMCC PPC405GP processor
I2C: ready
DRAM: 64 MB
SDRAM test passes
FLASH: FLASH ADDR: fc000000
FLASH MANUFACT: 10001
FLASH DEVICEID: 227e227e
C2: 22222222 LS: 22012201
info->flash_id: f2
Size of Flash0 at addr 0xfc000000 is 0x2000000
FLASH ADDR: 00000000
FLASH MANUFACT: 55555555
## Unknown FLASH on Bank 1 - Size = 0x00000000 = 0 MB
Size of Flash1 at addr 0x0 is 0x0
32 MB
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
Error: start and/or end address not on sector boundary
Error: start and/or end address not on sector boundary
Error: start and/or end address not on sector boundary
Hit any key to stop autoboot: 0
=> flinfo
Bank # 1: AMD S29GL256N (256 Mbit, uniform sector size)
Size: 32768 KB in 256 Sectors
Sector Start Addresses:
FC000000 FC020000 FC040000 FC060000 FC080000
FC0A0000 FC0C0000 FC0E0000 FC100000 FC120000
FC140000 FC160000 FC180000 FC1A0000 FC1C0000
FC1E0000 FC200000 FC220000 FC240000 FC260000
FC280000 FC2A0000 FC2C0000 FC2E0000 FC300000
FC320000 FC340000 FC360000 FC380000 FC3A0000
FC3C0000 FC3E0000 FC400000 FC420000 FC440000
FC460000 FC480000 FC4A0000 FC4C0000 FC4E0000
FC500000 FC520000 FC540000 FC560000 FC580000
FC5A0000 FC5C0000 FC5E0000 FC600000 FC620000
FC640000 FC660000 FC680000 FC6A0000 FC6C0000
FC6E0000 FC700000 FC720000 FC740000 FC760000
FC780000 FC7A0000 FC7C0000 FC7E0000 FC800000
FC820000 FC840000 FC860000 FC880000 FC8A0000
FC8C0000 FC8E0000 FC900000 FC920000 FC940000
FC960000 FC980000 FC9A0000 FC9C0000 FC9E0000
FCA00000 FCA20000 FCA40000 FCA60000 FCA80000
FCAA0000 E FCAC0000 FCAE0000 E FCB00000 FCB20000 E
FCB40000 FCB60000 E FCB80000 FCBA0000 E FCBC0000
FCBE0000 E FCC00000 FCC20000 E FCC40000 FCC60000 E
FCC80000 FCCA0000 E FCCC0000 FCCE0000 E FCD00000
FCD20000 E FCD40000 FCD60000 E FCD80000 FCDA0000
FCDC0000 FCDE0000 E FCE00000 FCE20000 E FCE40000
FCE60000 E FCE80000 FCEA0000 E FCEC0000 FCEE0000 E
FCF00000 FCF20000 E FCF40000 FCF60000 E FCF80000
FCFA0000 E FCFC0000 FCFE0000 E FD000000 FD020000 E
FD040000 FD060000 FD080000 FD0A0000 E FD0C0000
FD0E0000 E FD100000 FD120000 E FD140000 FD160000 E
FD180000 FD1A0000 E FD1C0000 FD1E0000 E FD200000
FD220000 E FD240000 FD260000 E FD280000 FD2A0000 E
FD2C0000 FD2E0000 E FD300000 FD320000 E FD340000
FD360000 E FD380000 FD3A0000 FD3C0000 FD3E0000 E
FD400000 FD420000 E FD440000 FD460000 E FD480000
FD4A0000 E FD4C0000 FD4E0000 E FD500000 FD520000 E
FD540000 FD560000 E FD580000 FD5A0000 E FD5C0000
FD5E0000 E FD600000 FD620000 E FD640000 FD660000
FD680000 FD6A0000 E FD6C0000 FD6E0000 E FD700000
FD720000 E FD740000 FD760000 E FD780000 FD7A0000 E
FD7C0000 FD7E0000 FD800000 FD820000 E FD840000
FD860000 E FD880000 FD8A0000 E FD8C0000 FD8E0000 E
FD900000 FD920000 E FD940000 FD960000 E FD980000
FD9A0000 E FD9C0000 FD9E0000 E FDA00000 FDA20000 E
FDA40000 FDA60000 E FDA80000 FDAA0000 FDAC0000
FDAE0000 E FDB00000 FDB20000 E FDB40000 FDB60000 E
FDB80000 FDBA0000 E FDBC0000 FDBE0000 E FDC00000
FDC20000 E FDC40000 FDC60000 E FDC80000 FDCA0000
FDCC0000 FDCE0000 FDD00000 FDD20000 E FDD40000
FDD60000 E FDD80000 FDDA0000 E FDDC0000 FDDE0000 E
FDE00000 FDE20000 E FDE40000 FDE60000 E FDE80000
FDEA0000 E FDEC0000 FDEE0000 FDF00000 FDF20000 E
FDF40000 FDF60000 E FDF80000 FDFA0000 E FDFC0000
FDFE0000 E
=>
Thanks,
Ravishankar Govindarao
RFL Electronics Inc.
E-mail : Ravi.Rao at rflelect.com
Voice: 973.334.3100 Ext. 233
Fax: 973.334.3863
CONFIDENTIALITY NOTE
This e-mail, including any attachments, may contain confidential and/or
legally privileged information. The Information is intended only for the
use of the individual or entity named on this e-mail . If you are not the
intended recipient, you are hereby notified that any disclosure, copying,
distribution, or the taking of any action in reliance on the contents of
this transmitted Information is strictly prohibited. Further, if you are
not the intended recipient, please notify us by return e-mail and delete
the Information promptly.
Feng Kan <fkan at apm.com>
06/24/2010 04:32 PM
To
ravi.rao at rflelect.com
cc
Subject
Re: [U-Boot-Users] U-boot for PPC405GP based custom Board
please enable debug in the flash driver and send out that information.
Feng Kan
On Thu, Jun 24, 2010 at 12:56 PM, <ravi.rao at rflelect.com> wrote:
HI All,
Our Custom board is based on EP405GP which is not supported in current
u-boot. I have almost everything running except for the Flash interface. I
am not able to Get the Flash size correct it comes back as 32MB.Also none
of the Flash related operations work. One major difference I see in our
design is we have 2, AMD S29GL256N spansion flashes in the same Bank. I
do not see any reference board which is doing this. Number of Banks is 1
and word size is 32.
Following are the definitions
#define CFG_FLASH_CHIPS_PER_BANK 2
#define CFG_FLASH_TOTAL_BANKS 1 /* also used
by CFG_MAX_FLASH_BANKS below */
#define CFG_TOTAL_CONTIG_BANKS 1
#define CFG_FLASH_BUS_WIDTH 32
#define CFG_MAX_FLASH_BANKS CFG_FLASH_TOTAL_BANKS /* max
flash banks for rfl boards */
#define FLASH_BASE0_PRELIM CFG_FLASH_BASE /* FLASH bank #0
*/
#define FLASH_BASE1_PRELIM 0 /* FLASH bank #1
*/
#define CFG_MAX_FLASH_SECT 512 /* max number of sectors on
one chip */
#define CFG_FLASH_ERASE_TOUT 120000 /* Timeout for Flash
Erase (in ms) */
#define CFG_FLASH_WRITE_TOUT 500 /* Timeout for Flash Write
(in ms) */
#define CFG_FLASH_EMPTY_INFO /* print 'E' for empty sector
on flinfo */
#define CFG_FLASH_ADDR0 0x555
#define CFG_FLASH_ADDR1 0x2aa
// An important configuration when trying to bring the board up -RAVI..
#define CFG_FLASH_WORD_SIZE unsigned int //(32 bits = Bus width..)
Any pointers to resolve this is greatly apreciated.
Thanks,
Ravishankar Govindarao
RFL Electronics Inc.
E-mail : Ravi.Rao at rflelect.com
Voice: 973.334.3100 Ext. 233
Fax: 973.334.3863
CONFIDENTIALITY NOTE
This e-mail, including any attachments, may contain confidential and/or
legally privileged information. The Information is intended only for the
use of the individual or entity named on this e-mail . If you are not the
intended recipient, you are hereby notified that any disclosure, copying,
distribution, or the taking of any action in reliance on the contents of
this transmitted Information is strictly prohibited. Further, if you are
not the intended recipient, please notify us by return e-mail and delete
the Information promptly.
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users
--
Feng Kan
CONFIDENTIALITY NOTICE: This e-mail message, including any attachments,
is for the sole use of the intended recipient(s) and contains information
that is confidential and proprietary to AppliedMicro Corporation or its
subsidiaries.
It is to be used solely for the purpose of furthering the parties'
business relationship.
All unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by reply
e-mail
and destroy all copies of the original message.
--
Feng Kan
CONFIDENTIALITY NOTICE: This e-mail message, including any attachments,
is for the sole use of the intended recipient(s) and contains information
that is confidential and proprietary to AppliedMicro Corporation or its
subsidiaries.
It is to be used solely for the purpose of furthering the parties'
business relationship.
All unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by reply
e-mail
and destroy all copies of the original message.
More information about the U-Boot
mailing list