public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] Sector size with CFI driver?
@ 2006-10-31 20:00 Timur Tabi
  2006-10-31 20:53 ` Tolunay Orkun
  2006-11-01 13:05 ` Stefan Roese
  0 siblings, 2 replies; 16+ messages in thread
From: Timur Tabi @ 2006-10-31 20:00 UTC (permalink / raw)
  To: u-boot

When using the CFI driver, how is the sector size determined?

The reason I ask is that I have two different versions of U-Boot for my board, 
both developed in-house.  One version is based on 1.1.3, and the other on 
1.1.5.  The 1.1.5 version cannot erase/program the last sector on the first 
flash bank.  Also, the 1.1.3 says this when I do flinfo:

Bank # 1: CFI conformant FLASH (16 x 16)  Size: 8 MB in 135 Sectors
  Erase timeout 16384 ms, write timeout 1 ms, buffer write timeout 1 ms, 
buffer size 1
   Sector Start Addresses:
     FE000000      FE002000      FE004000      FE006000      FE008000
     FE00A000      FE00C000      FE00E000      FE010000      FE020000

And the 1.1.5 version says:

Bank # 1: CFI compatible FLASH (16 port width with 16 chip width)
Command set is AMD/Fujitsu standard. Driver is polling DQ6 for status checking.
   Size: 8 MB in 135 Sectors
  Erase timeout 16384 ms, write timeout 0 ms, buffer write timeout 1 ms, 
buffer size 1
   Sector Start Addresses:
     FE000000      FE010000      FE020000      FE030000      FE040000
     FE050000      FE060000      FE070000      FE080000      FE090000

As you can see the sector sizes are different, but everything else is the same.

Both versions have this:

#define CFG_FLASH_CFI
#define CFG_FLASH_CFI_DRIVER
#define CFG_FLASH_BASE		0xFE000000
#define CFG_FLASH_SIZE		16
#define CFG_MAX_FLASH_BANKS	2
#define CFG_MAX_FLASH_SECT	135

so I can't figure out why one works and the other doesn't.

-- 
Timur Tabi
Linux Kernel Developer @ Freescale

^ permalink raw reply	[flat|nested] 16+ messages in thread
* [U-Boot-Users] Sector size with CFI driver?
@ 2006-11-01 17:47 Yogi
  0 siblings, 0 replies; 16+ messages in thread
From: Yogi @ 2006-11-01 17:47 UTC (permalink / raw)
  To: u-boot

If it is a flash from SPANSION, you can look at the MODEL number field in the CFI 
querry output. Model#3 is top boot, and Model#4 is bottom boot.
Thanks
Yogi

-------------------------------------------------------------------------------------------------
Perhaps you can identify such a reserved list from the CFI tables on the 
flash. If this can be done no macros would be needed to handle this case.

Can you tell me the exact part number for your flash. I would like to 
read the data sheet and compare its CFI structures if I can.

Best regards,
Tolunay


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

^ permalink raw reply	[flat|nested] 16+ messages in thread
* [U-Boot-Users] Sector size with CFI driver?
@ 2006-11-01 18:29 Yogi
  0 siblings, 0 replies; 16+ messages in thread
From: Yogi @ 2006-11-01 18:29 UTC (permalink / raw)
  To: u-boot

Yeah, you can use the field at 4F (9E). If it is 2 it is bottom boot. If it is 3 it is top boot.
See page 27, Table 4-4 CFI Mode: Primary Vendor-Specific Extended  Querry Data Values 
in the data sheet.
Thanks
Yogi

----- Original Message ----
From: Timur Tabi <timur@freescale.com>
To: Tolunay Orkun <listmember@orkun.us>
Cc: u-boot-users at lists.sourceforge.net; Stefan Roese <sr@denx.de>
Sent: Wednesday, November 1, 2006 9:52:44 AM
Subject: Re: [U-Boot-Users] Sector size with CFI driver?


Tolunay Orkun wrote:

> Secondly, it looks like the erase region list returned is reversed for 
> this flash chip. I think, CFG_CFI_GEOMETRY_REVERSED would be more 
> appropriate.

I like that one better.

> Perhaps you can identify such a reserved list from the CFI tables on the 
> flash. If this can be done no macros would be needed to handle this case.
> 
> Can you tell me the exact part number for your flash. I would like to 
> read the data sheet and compare its CFI structures if I can.

29LV640BTTC-90G

You can find the specs here by going to http://www.macronix.com, clicking on 
"Flash Memory", and then scrolling to the bottom for this entry:

MX29LV640B T/B    3V    x8/x16 Boot sector    90/120    48-TSOP, 63-CSP

I'm using the 48-pin version.

-- 
Timur Tabi
Linux Kernel Developer @ Freescale

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

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

end of thread, other threads:[~2006-11-01 18:29 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-31 20:00 [U-Boot-Users] Sector size with CFI driver? Timur Tabi
2006-10-31 20:53 ` Tolunay Orkun
2006-10-31 21:40   ` Timur Tabi
2006-10-31 21:59     ` Tolunay Orkun
2006-10-31 23:08       ` Timur Tabi
2006-11-01 13:05 ` Stefan Roese
2006-11-01 16:34   ` Timur Tabi
2006-11-01 16:44     ` Ben Warren
2006-11-01 16:58     ` Timur Tabi
2006-11-01 17:02       ` Stefan Roese
2006-11-01 17:08         ` Timur Tabi
2006-11-01 17:41           ` Tolunay Orkun
2006-11-01 17:52             ` Timur Tabi
2006-11-01 17:47       ` Tolunay Orkun
  -- strict thread matches above, loose matches on Subject: below --
2006-11-01 17:47 Yogi
2006-11-01 18:29 Yogi

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