/proc/mtd file does not show partitions
hinko.kocevar at cetrtapot.si
hinko.kocevar at cetrtapot.si
Wed Jun 20 07:38:01 EDT 2007
Midhun Agnihotram wrote:
> 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?
/usr/src/linux/drivers/mtd/mtdcore.c iff CONFIG_PROC_FS is enabled.
Silly question - do you have any files in /proc? Is procfs mounted?
best regards,
hinko
--
ČETRTA POT, d.o.o., Kranj
Planina 3
4000 Kranj
Slovenia, Europe
Tel. +386 (0) 4 280 66 03
E-mail: hinko.kocevar at cetrtapot.si
Http: www.cetrtapot.si
More information about the linux-mtd
mailing list