public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* flash_info and MEMGETREGIONCOUNT
@ 2008-08-05 15:05 Hinko Kocevar
  2008-08-05 18:22 ` hartleys
  0 siblings, 1 reply; 3+ messages in thread
From: Hinko Kocevar @ 2008-08-05 15:05 UTC (permalink / raw)
  To: linux-mtd

Hi,

I would like to know some info about the flash chip present on the board. I found flash_info utility and can't seem to get information about the region count with MEMGETREGIONCOUNT.
# /flash_info /dev/mtd0 
Device /dev/mtd0 has 0 erase regions
# /flash_info /dev/mtd1 
Device /dev/mtd1 has 0 erase regions
# /flash_info /dev/mtd2
Device /dev/mtd2 has 0 erase regions

Although during boot these messages are shown (with CFI debug on):
...
[42949374.037212] Probing cse0 at physical address 0x00000000 (16-bit bankwidth)
[42949374.044444] Number of erase regions: 4
[42949374.054706] Primary Vendor Command Set: 0002 (AMD/Fujitsu Standard)
[42949374.064951] Primary Algorithm Table at 0040
[42949374.069392] Alternative Vendor Command Set: 0000 (None)
[42949374.079548] No Alternate Algorithm Table
[42949374.083729] Vcc Minimum:  2.7 V
[42949374.087113] Vcc Maximum:  3.6 V
[42949374.097284] Vpp Minimum: 11.5 V
[42949374.100662] Vpp Maximum: 12.5 V
[42949374.104043] Typical byte/word write timeout: 16 µs
[42949374.114211] Maximum byte/word write timeout: 512 µs
[42949374.119413] Full buffer write not supported
[42949374.129580] Typical block erase timeout: 1024 ms
[42949374.134452] Maximum block erase timeout: 16384 ms
[42949374.144596] Chip erase not supported
[42949374.148426] Device size: 0x400000 bytes (4 MiB)
[42949374.158590] Flash Device Interface description: 0x0002
[42949374.163975]   - supports x8 and x16 via BYTE# with asynchronous interface
[42949374.174140] Max. bytes in buffer write: 0x1
[42949374.178570] Number of Erase Block Regions: 4
[42949374.188759]   Erase Region #0: BlockSize 0x4000 bytes, 1 blocks
[42949374.198948]   Erase Region #1: BlockSize 0x2000 bytes, 2 blocks
[42949374.205157]   Erase Region #2: BlockSize 0x8000 bytes, 1 blocks
[42949374.215347]   Erase Region #3: BlockSize 0x10000 bytes, 63 blocks
[42949374.221744] cse0: Found 1 x16 devices at 0x0 in 16-bit bank
[42949374.235520]  Amd/Fujitsu Extended Query Table at 0x0040
[42949374.245764] number of CFI chips: 1
[42949374.249441] cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
[42949374.259647] Probing cse1 at physical address 0x04000000 (16-bit bankwidth)
[42949374.270098] Using static partitions on cse0
[42949374.274538] NOR flash size: 4194304 b (4 Mb)
[42949374.284722] Creating 3 MTD partitions on "cse0":
[42949374.289640] 0x00000000-0x00010000 : "Rescue"
[42949374.310538] 0x00010000-0x00130000 : "Kernel"
[42949374.329690] 0x00130000-0x00400000 : "Filesystem"
[42949374.350519] cse1 is absent. Skipping
...

It is clearly seen that there are four regions reported by the kernel, but the 
userspace does not agree with the kernel !?

Thank you,
Hinko

-- 
ČETRTA POT, d.o.o., Kranj
Planina 3
4000 Kranj
Slovenia, Europe
Tel. +386 (0) 4 280 66 03
E-mail: hinko.kocevar@cetrtapot.si
Http: www.cetrtapot.si

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

end of thread, other threads:[~2008-08-07  7:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-05 15:05 flash_info and MEMGETREGIONCOUNT Hinko Kocevar
2008-08-05 18:22 ` hartleys
2008-08-07  7:55   ` Hinko Kocevar

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