Skip to contentSkip to conversation

What is ANAND header?

DISCUSSION Seongsu Lee 5 participants 12 messages Jan 13, 2007 – Jan 25, 2007 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hello,

I've a embedded board with 1GB NAND flash memory from Samsung. (The model number of the flash memory is
SAMSUNG 640, K9K8G08U0A)
I want to use NFTL to mount the flash memory by FAT filesystem.

But NFTL does not work for me. I found that MTD failed to find boot record in nftlmount.c source.

It try to find out ANAND header from the MTD device. But it fails to find out.

	if (retlen < 6 || memcmp(buf, "ANAND", 6)) {
		continue;
	}

What is ANAND header?

Is it possible to use NFTL for mounting FAT on MTD device in my environment?

Thank you in advance!

Signature · 3 lines
Seongsu's blog - http://www.senux.com/
Some people have parts that are so private they
themselves have no knowledge of them.
#1 lore raw
Quoted 4 lines · Seongsu Lee

I want to use NFTL to mount the flash memory by FAT filesystem.

But NFTL does not work for me. I found that MTD failed to find boot record in nftlmount.c source.

NFTL is only for M-Systems DiskOnChip devices. It can not be used on bare NAND chips.

tglx

#2 lore raw
Quoted 8 lines · Thomas Gleixner
Quoted 4 lines · Seongsu Lee

I want to use NFTL to mount the flash memory by FAT filesystem.

But NFTL does not work for me. I found that MTD failed to find boot record in nftlmount.c source.

NFTL is only for M-Systems DiskOnChip devices. It can not be used on bare NAND chips.

Ok, I see.

Then, is there any sub module, like NFTL, that serves as translation layer on NAND flash memory?

How can I mount 'conventional filesystem' such as FAT, EXT{2,3} on NAND flash memory instead of mouting on mtdblock because of its poor functionality. (no wear-leveling)

What I want to do in a final is to mount FAT filesystem on bare NAND flash memories without performance degradation.

Thank you very much in advance.

Signature · 4 lines
Seongsu's blog - http://www.senux.com/
LILO, you've got me on my knees! (from David Black,
[email protected], with apologies to Derek and the
Dominos, and Werner Almsberger)
#3 lore raw
Quoted 6 lines

How can I mount 'conventional filesystem' such as FAT, EXT{2,3} on NAND flash memory instead of mouting on mtdblock because of its poor functionality. (no wear-leveling)

What I want to do in a final is to mount FAT filesystem on bare NAND flash memories without performance degradation.

Use UBI, then mount the filesystem on an UBI volume? (Check the mtd list archives or web pages for more info on UBI)

/Ricard

#4 lore raw
Quoted 8 lines · Ricard Wanderlöf
Quoted 6 lines

How can I mount 'conventional filesystem' such as FAT, EXT{2,3} on NAND flash memory instead of mouting on mtdblock because of its poor functionality. (no wear-leveling)

What I want to do in a final is to mount FAT filesystem on bare NAND flash memories without performance degradation.

Use UBI, then mount the filesystem on an UBI volume? (Check the mtd list archives or web pages for more info on UBI)

Thank you for the reply.

Then, is there any technical reason that translation layer for bare NAND flash memory is *not* exist?
(NFTL is not for base flash memory but for DiskOnChip)

(I prefer to use translation layer in MTD because UBI is still
experimental and is not included stable kernel tree.)

If something wrong, let me know. Thank you in advance.

Signature · 3 lines
Seongsu's blog - http://www.senux.com/
The human race never solves any of its problems. It
merely outlives them. -- David Gerrold
#6 lore raw
Quoted 5 lines · Artem Bityutskiy
Quoted 2 lines · Seongsu Lee

Then, is there any technical reason that translation layer for bare NAND flash memory is *not* exist?

Just because it is a damn difficult task.

No it isn't. It's just not an _interesting_ task. A 'normal' file system on top of a translation layer is always going to be suboptimal when compared to a file system designed to run directly on flash.

Signature · 1 line
dwmw2
#7 lore raw
Quoted 10 lines · David Woodhouse
Quoted 5 lines · Artem Bityutskiy
Quoted 2 lines · Seongsu Lee

Then, is there any technical reason that translation layer for bare NAND flash memory is *not* exist?

Just because it is a damn difficult task.

No it isn't. It's just not an _interesting_ task. A 'normal' file system on top of a translation layer is always going to be suboptimal when compared to a file system designed to run directly on flash.

Well, FTL is somewhat similar to flash FS in terms of complexity. A reasonably good FTL is probably not a damn difficult task. But a scalable FTL where you do not need to scan your device when initializing it is really difficult.

Of course, FTL will always be slower then flash-oriented FS. But if you have a very quick HW (like Cafe?) you may end-up with an acceptable speed - this depends on requirements.

Also, if you teach the FS to inform FTL about blocks that are free - it'll be much faster.

Signature · 2 lines
Best regards,
Artem Bityutskiy (Битюцкий Артём)
#8 lore raw
Quoted 4 lines · Artem Bityutskiy

Well, FTL is somewhat similar to flash FS in terms of complexity. A reasonably good FTL is probably not a damn difficult task. But a scalable FTL where you do not need to scan your device when initializing it is really difficult.

No more difficult than a file system, which will give better results.

Quoted 6 lines

Of course, FTL will always be slower then flash-oriented FS. But if you have a very quick HW (like Cafe?) you may end-up with an acceptable speed - this depends on requirements.

Also, if you teach the FS to inform FTL about blocks that are free - it'll be much faster.

Well, yes. The more you teach the FS about the actual requirements of flash hardware, the more efficient it'll be. Hence the observation that FTL isn't an interesting problem; filesystems are.

Signature · 1 line
dwmw2
#9 lore raw
Quoted 1 line · David Woodhouse

No more difficult than a file system, which will give better results.

Agree, an FS is a much more interesting problem. Although a good FTL is is something which would be nice to have.

Signature · 2 lines
Best regards,
Artem Bityutskiy (Битюцкий Артём)
#10 lore raw
Quoted 3 lines · Artem Bityutskiy

Agree, an FS is a much more interesting problem. Although a good FTL is is something which would be nice to have.

Not really. If we had a well-maintained FTL then people would only use it. :)

NFTL/INFTL/SAFTL are actually quite good designs as FTLs go; it's just that we have the potential patent issues with them and nobody really cares enough about them to make sure _our_ implementation is as good as it should be, or even that we tie in block-deletion events from the file system.

Signature · 1 line
dwmw2
#11 lore raw
Quoted 5 lines · David Woodhouse
Quoted 2 lines

Agree, an FS is a much more interesting problem. Although a good FTL is is something which would be nice to have.

Not really. If we had a well-maintained FTL then people would only use it. :)

Heh, users are morons and they would use inefficient FTL instead of JFFS2, so having an FTL is bad - good point :-)

Signature · 2 lines
Best regards,
Artem Bityutskiy (Битюцкий Артём)