I'm having an issue using the MTD Utils to create a filesystem in NAND
on the DaVinci 6446 EVM.  I've done the following steps:

Loaded the davinci_nand module
# modprobe davinci_nand
DaVinci NAND Controller rev. 2.1
Warning: NAND config: Set A1CR reg to 0x0432018c, was 0x0432229c, should
be done
 by bootloader.
NAND device: Manufacturer ID: 0xec, Chip ID: 0x36 (Samsung NAND 64MiB
1,8V 8-bit
)
Bad block scan: 0 out of 4096 blocks are bad.
Creating 1 MTD partitions on "NAND 64MiB 1,8V 8-bit":
0x00500000-0x04000000 : "NAND filesystem"

Created the dev entries:
# ls -l /dev/mtd0
crw-rw-rw-    1 root     root      90,   0 Nov 13  2008 /dev/mtd0
# ls -l /dev/mtdblock0
brw-rw-rw-    1 root     root      31,   0 Nov 13  2008 /dev/mtdblock0

Checked that everything was working:
# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 03b00000 00004000 "NAND filesystem"

Then tried to erase the flash:
# whoami
root
# flash_eraseall -j /dev/mtd0
flash_eraseall: /dev/mtd0: No such device or address

I cross-compiled the MTD Utilities for ARM.  Here's the version of
flash_eraseall:
# flash_eraseall --version
flash_eraseall $Revision: 1.22 $

What could be the problem with the flash_eraseall command?  The dev
entry is clearly there and there shouldn't be a permissions issue since
I'm running as root.  Thanks for any help.

Clif
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to