Chinaunix首页 | 论坛 | 博客
  • 博客访问: 532728
  • 博文数量: 75
  • 博客积分: 2374
  • 博客等级: 大尉
  • 技术积分: 933
  • 用 户 组: 普通用户
  • 注册时间: 2009-11-18 14:27
文章分类

全部博文(75)

文章存档

2014年(1)

2013年(17)

2012年(10)

2011年(15)

2010年(23)

2009年(9)

我的朋友

分类: LINUX

2013-04-26 17:32:23

在u-boot中,使用flinfo命令查看flash信息,会看到bank信息。例如,在板子上输入

  1. $ help erase
  2. erase - erase FLASH memory

  3. Usage:
  4. erase start end
  5.     - erase FLASH from addr 'start' to addr 'end'
  6. erase start +len
  7.     - erase FLASH from addr 'start' to the end of sect w/addr 'start'+'len'-1
  8. erase N:SF[-SL]
  9.     - erase sectors SF-SL in FLASH bank # N
  10. erase bank N
  11.     - erase FLASH bank # N
  12. erase all
  13.     - erase all FLASH banks

  14. $ flinfo

  15. Bank # 1: CFI conformant flash (16 x 16) Size: 64 MB in 512 Sectors
  16.   AMD Standard command set, Manufacturer ID: 0x01, Device ID: 0x227E
  17.   Erase timeout: 4096 ms, write timeout: 1 ms
  18.   Buffer write timeout: 3 ms, buffer size: 64 bytes

  19.   Sector Start Addresses:
  20.   00000000 RO 00020000 00040000 RO 00060000 RO 00080000
  21.   000A0000 000C0000 000E0000 00100000 00120000
  22.   00140000 00160000 00180000 001A0000 001C0000
  23.   001E0000 00200000 00220000 00240000 00260000
  24.   00280000 002A0000 002C0000 002E0000 00300000
对于bank,在上,这么解释:

Technically speaking, a bank is an area of memory implemented by one or more memory chips that are connected to the same chip select signal of the , and a flash sector or erase unit is the smallest area that can be erased in one operation.

For practical purposes it is sufficient to remember that with flash memory a bank is something that eventually may be erased as a whole in a single operation. This may be more efficient (faster) than erasing the same area sector by sector.


bank仅仅只是同一个片选信号选中的一块内存区域而已。或许是单块内存芯片中的一部分,或许是多个内存芯片组合而成。
方便之处,在于以后删除多个sector时,可以选中同一个bank,删除该bank即可。

有些flash的datasheet中也涉及到bank这个名词,道理同上所述。片选信号不同,bank号码亦不同。
阅读(1197) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~