Re: platform_driver_register() ??

2007-07-05 Thread Midhun Agnihotram
Hi All, > I think mmc driver is layered modules, only top block driver > registers driver under "mmc_bus_type" bus, see > drivers/mmc/mmc_sysfs.c and mmc_block.c. I think they are creating a > tree of devices of same characteristics under that bus. > I think your driver is linux/drivers/mm

Re: Fwd: Mounting MMC card

2007-07-03 Thread Midhun Agnihotram
Hi All, This is referring to my problem - not able to mount MMC card. I have some output from dmesg when I remove and put the card back (I have changes the kernel config to include i.MX SPI and disabled the generic SPI). DOes this give any clue as to why the MMC card is not appaering in /proc/p

platform_driver_register() ??

2007-07-03 Thread Midhun Agnihotram
Hi All, I have an MMC driver for my kit (i.MX21 based cogent board CSB535FS), which is supplied by Cogent (Kernel version 2.6.16). The original driver (linux/drivers/mmc/mmc_block.c) uses mmc_register_driver() method to register the driver but the one supplied by Cogent uses platform_driver_r

Re: Fwd: Mounting MMC card

2007-06-29 Thread Midhun Agnihotram
Then something is seriously broken with your kernel. I can only assume that this is because of some vendor modifications. So I would suggest contacting them or trying to get a vanilla kernel running. Hmm. I will try getting the vanilla kernel and putting the required patches. Or rather see wh

Re: Fwd: Mounting MMC card

2007-06-29 Thread Midhun Agnihotram
Not likely. It's probably a no-op when you don't have devfs. CONFIG_MMC_DEBUG is already enabled. This is not printing any debug statements as such. Midhun. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo

Re: Fwd: Mounting MMC card

2007-06-29 Thread Midhun Agnihotram
Hi, > Both of them show no sign of MMC. > Then you cannot mount them. What output did you see in dmesg when you inserted the card? The dmesg contains only the following when I remove and insert the card. <6>imx-mmc imx-mmc.0: card removed <6>imx-mmc imx-mmc.0: card inserted Also I was

Re: Fwd: Mounting MMC card

2007-06-29 Thread Midhun Agnihotram
This all looks correct. How about /proc/partitions? And what's in /sys/block? Both of them show no sign of MMC. / # cat /proc/partitions major minor #blocks name 31 0 8192 mtdblock0 31 1384 mtdblock1 31 2 1664 mtdblock2 31 3 2048 mtdblock3 31

Re: Fwd: Mounting MMC card

2007-06-29 Thread Midhun Agnihotram
Hi All, Let's try something a lot less complex than mounting. Try running: dd if=/dev/mmcblk0 of=/dev/null count=100 Here goes the output(error). / # dd if=/dev/mmcblk0 of=/dev/null count=100 dd: can't open '/dev/mmcblk0': No such device or address The /dev is has the following

Re: Fwd: Mounting MMC card

2007-06-29 Thread Midhun Agnihotram
Hi, I was talking about the file system on the card. Usually, you've got vfat on such a card. How about that? BTW, You mounted proc on /proc and sysfs on /sys, I hope? Yes I do have the support for vfat and msdos file system. I have formatted the card on a Windows system with "FAT" file s

Fwd: Mounting MMC card

2007-06-29 Thread Midhun Agnihotram
Hi All, # mount /dev/mmcblk0p0 /mnt/mmc mount: mounting /dev/mmcblk0p0 on /mnt/mmc failed I have tried with /dev/mmcblk0p0, mmcblk0p1,etc. But of no use. How Try to mount mmcblk0 and/or try fdisk and look at the partition table. dmesg output would also be helpful (after the failed mount).

Mounting MMC card

2007-06-28 Thread Midhun Agnihotram
----- From: Midhun Agnihotram <[EMAIL PROTECTED]> Date: Jun 28, 2007 10:30 PM Subject: Fwd: Mounting MMC card To: linux-kernel@vger.kernel.org Cc: [EMAIL PROTECTED] Hi All, I am new to linux kernel stuff. I am using Cogent CSB535FS board. I have configured the kernel to include support

Fwd: Mounting MMC card

2007-06-28 Thread Midhun Agnihotram
Hi All, I am new to linux kernel stuff. I am using Cogent CSB535FS board. I have configured the kernel to include support for MMC card and also i.MX MMC driver. When I insert the card, it says : # imx-mmc imx-mmc.0: card inserted So, the kernel has identified that MMC has been inserted. I h