From: Shiju <shiju.mathew@amd.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Spansion flash not detected by CFI driver
Date: Wed, 18 Apr 2007 10:48:28 -0400 [thread overview]
Message-ID: <1176907708.20491.4.camel@localhost> (raw)
Hello,
I have sent this mail in an other mail id. Looks like it hasn't reached
the mailing list. Hence forwarding again.
I have a spansion flash (S71WS256ND0BFWEP) on my board (Freescale imx31
ADS).I use CFI driver with the below configuration. But I get the
following error(debug message). I am not able to write to the flash
memory too. Currently I use an other bootloader on the board to flash
uboot. Could someone help me to resolve the problem.
#define CFG_FLASH_BASE 0xa0000000
#define CFG_MAX_FLASH_BANKS 1
#define CFG_MAX_FLASH_SECT 128
#define CFG_FLASH_CFI 1
#define CFG_FLASH_CFI_DRIVER 1
#define CFG_FLASH_USE_BUFFER_WRITE 1
U-Boot 1.2.0 (Apr 17 2007 - 18:43:30)
U-Boot code: 87F00000 -> 87F1BD48 BSS: -> 87F22370
CPU: Freescale i.MX31 at 398 MHz
Board: i.MX31 Litekit
RAM Configuration:
Bank #0: 80000000 128 MB
flash detect cfi
fwc addr a0000000 cmd 0 0 8bit x 8 bit
fwc addr a0000055 cmd 98 98 8bit x 8 bit
is= cmd 51(Q) addr a0000010 is= 14 51
fwc addr a0000555 cmd 98 98 8bit x 8 bit
is= cmd 51(Q) addr a0000010 is= 14 51
fwc addr a0000000 cmd 0 0000 16bit x 8 bit
fwc addr a00000aa cmd 98 9898 16bit x 8 bit
is= cmd 51(Q) addr a0000020 is= 0100 5151
fwc addr a0000aaa cmd 98 9898 16bit x 8 bit
is= cmd 51(Q) addr a0000020 is= 0051 5151
fwc addr a0000000 cmd 0 0000 16bit x 16 bit
fwc addr a00000aa cmd 98 0098 16bit x 16 bit
is= cmd 51(Q) addr a0000020 is= 0100 0051
fwc addr a0000aaa cmd 98 0098 16bit x 16 bit
is= cmd 51(Q) addr a0000020 is= 0051 0051
is= cmd 52(R) addr a0000022 is= 0052 0052
is= cmd 59(Y) addr a0000024 is= 0059 0059
ushort addr is at a0000050 info->portwidth = 2
addr[0] = 0x1
addr[1] = 0x0
addr[2] = 0x0
addr[3] = 0x0
retval = 0x1
device interface is 1
found port 2 chip 2 port 16 bits chip 16 bits
ushort addr is at a0000026 info->portwidth = 2
addr[0] = 0x2
addr[1] = 0x0
addr[2] = 0x0
addr[3] = 0x0
retval = 0x2
fwc addr a0000000 cmd f0 00f0 16bit x 16 bit
fwc addr a0000aaa cmd aa 00aa 16bit x 16 bit
fwc addr a0000554 cmd 55 0055 16bit x 16 bit
fwc addr a0000aaa cmd 90 0090 16bit x 16 bit
fwc addr a0000000 cmd f0 00f0 16bit x 16 bit
fwc addr a0000aaa cmd 98 0098 16bit x 16 bit
ushort addr is at a000002a info->portwidth = 2
addr[0] = 0x40
addr[1] = 0x0
addr[2] = 0x0
addr[3] = 0x0
retval = 0x40
a0000020 : 51 00 52 00 59 00 02 00 00 00 40 00 00 00 00 00
Q.R.Y..... at .....
a0000030 : 00 00 00 00 00 00 17 00 19 00 00 00 00 00 06
00 ................
a0000040 : 09 00 0a 00 00 00 04 00 04 00 03 00 00 00 19
00 ................
a0000050 : 01 00 00 00 06 00 00 00 03 00 03 00 00 00 80
00 ................
a0000060 : 00 00 fd 00 00 00 00 00 02 00 03 00 00 00 80
00 ................
a0000070 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 ................
a0000080 : 50 00 52 00 49 00 31 00 34 00 10 00 02 00 01 00
P.R.I.1.4.......
a0000090 : 00 00 08 00 f3 00 01 00 00 00 85 00 95 00 01
00 ................
manufacturer is 2
manufacturer id is 0x1
device id is 0x7e
device id2 is 0x3000
cfi version is 0x3134
size_ratio 1 port 16 bits chip 16 bits
found 3 erase regions
long addr is at a000005a info->portwidth = 2
addr[0] = 0x3
addr[1] = 0x0
addr[2] = 0x0
addr[3] = 0x0
addr[4] = 0x80
addr[5] = 0x0
addr[6] = 0x0
addr[7] = 0x0
erase_region_count = 4 erase_region_size = 32768
long addr is at a0000062 info->portwidth = 2
addr[0] = 0xfd
addr[1] = 0x0
addr[2] = 0x0
addr[3] = 0x0
addr[4] = 0x0
addr[5] = 0x0
addr[6] = 0x2
addr[7] = 0x0
erase_region_count = 254 erase_region_size = 131072
long addr is at a0000000 info->portwidth = 0
erase_region_count = 65536 erase_region_size = 16776960
ushort addr is at a0000000 info->portwidth = 0
retval = 0xffff
Flash Size is 0
flash_protect ON: from 0xA0000000 to 0xA001BD47
flash_protect ON: from 0xA01F0000 to 0xA01FFFFF
Flash: 0 kB
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
### Set environment from HW MAC addr = "00:04:9F:00:0E:B0"
### main_loop entered: bootdelay=3
### main_loop: bootcmd="run bootcmd_net"
Hit any key to stop autoboot: 0
uboot>
Thanks,
Shiju
next reply other threads:[~2007-04-18 14:48 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-18 14:48 Shiju [this message]
2007-04-18 15:24 ` [U-Boot-Users] Spansion flash not detected by CFI driver Wolfgang Denk
2007-04-18 15:59 ` Shiju
-- strict thread matches above, loose matches on Subject: below --
2007-04-18 1:42 Shiju Mathew
2007-04-19 2:06 ` Tolunay Orkun
2007-04-19 15:46 ` Shiju
2007-04-19 16:51 ` Shiju
2007-04-19 21:13 ` Shiju
2007-04-19 22:13 ` Tolunay Orkun
2007-04-19 22:25 ` Shiju
2007-04-19 23:52 ` Tolunay Orkun
2007-04-17 23:15 Shiju Mathew
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=1176907708.20491.4.camel@localhost \
--to=shiju.mathew@amd.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.