Skip to contentSkip to conversation

DOC problems on PowerPC

DISCUSSION Felix Radensky 3 participants 3 messages May 14, 2001 – May 16, 2001 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hi, all

I was able to solve the DOC problems on PowerPC I've reported yesterday.

All I had to do is to run "eraseall /dev/mtd0", then run "nftl_format /dev/mtd0"
and then create partitions with fdisk.

Can someone please explain me the difference between eraseall and nftl_format.
HOWTO says nothing about it.

By the way, the latest mtd code would not compile, at least on my 2.4.2 kernel
unless you add #include <linux/kmod.h> to chipreg.c. This is because of

a call to request_module() in do_map_probe(), which IMHO should be under #ifdef CONFIG_KMOD, and not #ifdef CONFIG_MODULES.

#1 lore raw
Quoted 1 line

All I had to do is to run "eraseall /dev/mtd0",

Is "eraseall" equivalent to the DOS utility "docpmap /e" in functionality? Anyone who can shed some light?

Shuh Chang

----- Original Message -----
From: "Felix Radensky" <[email protected]>
To: "Linux-mtd" <[email protected]>
Sent: Monday, May 14, 2001 9:13 AM
Subject: DOC problems on PowerPC

Quoted 24 lines

Hi, all

I was able to solve the DOC problems on PowerPC I've reported yesterday.

All I had to do is to run "eraseall /dev/mtd0", then run "nftl_format /dev/mtd0"
and then create partitions with fdisk.

Can someone please explain me the difference between eraseall and nftl_format.
HOWTO says nothing about it.

By the way, the latest mtd code would not compile, at least on my 2.4.2 kernel
unless you add #include <linux/kmod.h> to chipreg.c. This is because of

a call to request_module() in do_map_probe(), which IMHO should be under #ifdef CONFIG_KMOD, and not #ifdef CONFIG_MODULES.

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

#2 lore raw
In reply to Felix Radensky
Quoted 5 lines · Felix Radensky

Hi, all

I was able to solve the DOC problems on PowerPC I've reported yesterday.

Quoted 8 lines

All I had to do is to run "eraseall /dev/mtd0", then run "nftl_format /dev/mtd0"
and then create partitions with fdisk.

Can someone please explain me the difference between eraseall and nftl_format.
HOWTO says nothing about it.

For flash devices either NOR type or NAND type. You can only turn each bits for 1 state to 0 by a "write" command. If you want to turn a bit from 0 to 1, you have to erase the device. Each device has its onw minimal erase size i.e. if you want to erase onely 1 byte in a erase region, you have to erase the whole erase region.

The nftl_format is used somewht like "low-level" format for old HDs.

Ollie