/proc/mtd file does not show partitions
Midhun Agnihotram
agnimidhun at gmail.com
Wed Jun 20 02:20:35 EDT 2007
Hi All,
We want to use the on board flash as our file system on our
Development Kit (CSB535FS). We have defined the partitions in the
respective file and the kernel creates the partitions while bootig.
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
Cirrus Logic CS8900A driver for Linux (V0.02)
eth0: CS8900A rev E detected
physmap flash device: 800000 at c8000000
phys_mapped_flash: Found 1 x16 devices at 0x0 in 16-bit bank
Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
RedBoot partition parsing not available
mtd: Giving out device 0 to phys_mapped_flash
Probing flash00 at physical address 0xc8000000 (16-bit bankwidth)
flash00: Found 1 x16 devices at 0x0 in 16-bit bank
Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
Done probing.
Setting mtd_parts to csbxxx_partitions.
Should be adding devices or partitions now.
Going to call add_mtd_partitions.
csbxxx: using static partition definition
Creating 3 MTD partitions on "flash00":
0x00000000-0x00200000 : "U-Boot flash"
mtd: Giving out device 1 to U-Boot flash
0x00200000-0x00400000 : "Kernel flash"
mtd: Giving out device 2 to Kernel flash
0x00400000-0x00800000 : "RootFS flash"
mtd: Giving out device 3 to RootFS flash
I boot with a Ramdisk. I have created the required mtd entries in
the Ramdisk's /dev folder. On the target's linux prompt, when I do a
cat /proc/mtd, it says that the file does not exist. Who is supposed
to create this file? Is it not the kernel which creates this file when
the partitions are created? I am pretty new to MTD. What is the
problem here?
Thanks,
Midhun.
More information about the linux-mtd
mailing list