[U-Boot-Users] Sector size with CFI driver?

Timur Tabi timur at freescale.com
Tue Oct 31 21:00:35 CET 2006


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




More information about the U-Boot mailing list