From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from n1.cetrtapot.si ([89.212.80.162]) by canuck.infradead.org with esmtp (Exim 4.63 #1 (Red Hat Linux)) id 1I0yVl-0003QF-3Z for linux-mtd@lists.infradead.org; Wed, 20 Jun 2007 07:38:15 -0400 Message-ID: <46791199.7020402@cetrtapot.si> Date: Wed, 20 Jun 2007 13:38:01 +0200 From: "hinko.kocevar@cetrtapot.si" MIME-Version: 1.0 To: Midhun Agnihotram Subject: Re: /proc/mtd file does not show partitions References: <4dde4acb0706192320n7ca4157q1219adfb68e50ce1@mail.gmail.com> In-Reply-To: <4dde4acb0706192320n7ca4157q1219adfb68e50ce1@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: linux-mtd@lists.infradead.org List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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@cetrtapot.si Http: www.cetrtapot.si