Re: Fwd: Mounting MMC card

2007-07-03 Thread Pierre Ossman
On Tue, 3 Jul 2007 14:39:40 +0530 "Midhun Agnihotram" <[EMAIL PROTECTED]> wrote: > 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

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

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 Pierre Ossman
Midhun Agnihotram wrote: >> >> 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. > Then something is seriously broken with your kernel. I can only assume that this is because of some ven

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 Pierre Ossman
Midhun Agnihotram wrote: > linux/fs/devfs/base.c. I don't have devfs enabled in my kernel (kernel > version 2.6.16. In fact I don't even get an option to enable it in > menuconfig.). Can this be the cause of the problem?? I have found the > same code in the original kernel version too (the one from

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 Pierre Ossman
Midhun Agnihotram wrote: >> >> This all looks correct. How about /proc/partitions? And what's in >> /sys/block? >> > > 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? -- -- Pierre Ossman Linux kernel, MMC main

Re: Fwd: Mounting MMC card

2007-06-29 Thread Pierre Ossman
Uli Luckas wrote: > If I remember correctly, mmc devices did not have fixed majors/minors > allocated until recently. Either get a recent kernel or use some kind of > hotplug (udev) scripts to create your device nodes with dynamically allocated > major/minors. > Correct. But a double check in

Re: Fwd: Mounting MMC card

2007-06-29 Thread Hans-Jürgen Koch
Am Freitag 29 Juni 2007 11:45 schrieb 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 1

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 Uli Luckas
On Friday, 29. June 2007, Midhun Agnihotram wrote: > 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/m

Re: Fwd: Mounting MMC card

2007-06-29 Thread Pierre Ossman
Midhun Agnihotram wrote: > >So are the device nodes wrong? When i say `cat /proc/devices` it says : > > So is the major number 254 is correct for MMC ?? > This all looks correct. How about /proc/partitions? And what's in /sys/block? Rgds -- -- Pierre Ossman Linux kernel, MMC main

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 Pierre Ossman
Midhun Agnihotram wrote: > > The kernel version is 2.6.16. So I guess there should not be a > problem. Any more things that I need to check?? > Let's try something a lot less complex than mounting. Try running: dd if=/dev/mmcblk0 of=/dev/null count=100 If that fails, then you should

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

Re: Fwd: Mounting MMC card

2007-06-29 Thread Hans-Jürgen Koch
Am Freitag 29 Juni 2007 09:40 schrieb Midhun Agnihotram: > > >* Is support for the file system on the MMC in your kernel? > > Yes. There is support for MMC card in my kernel. I was talking about the file system on the card. Usually, you've got vfat on such a card. How about that? BTW, You m

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).

Re: Mounting MMC card

2007-06-28 Thread Hans-Jürgen Koch
Am Donnerstag 28 Juni 2007 21:22 schrieb Pierre Ossman: > Since you use busybox I > assume the system is too lightweight to run udev. I run udev on an arm system, it costs you about 200kBytes, and saves you all the trouble with creating device files. Note that you don't need any rules files. If yo

Re: Mounting MMC card

2007-06-28 Thread Pierre Ossman
Midhun Agnihotram wrote: > >How do I access the MMC card data now? If I try to mount it, > busybox doesnot mount it. > > # mount /dev/mmcblk0p0 /mnt/mmc > mount: mounting /dev/mmcblk0p0 on /mnt/mmc failed > Have you checked that your device nodes are correct? Since you use busybox I assume

Re: Mounting MMC card

2007-06-28 Thread Hans-Jürgen Koch
Am Donnerstag 28 Juni 2007 19:08 schrieb Midhun Agnihotram: > How do I access the MMC card data now? If I try to mount it, > busybox doesnot mount it. > > # mount /dev/mmcblk0p0 /mnt/mmc > mount: mounting /dev/mmcblk0p0 on /mnt/mmc failed > > I have tried with /dev/mmcblk0p0, mmcblk0p1,etc

Re: Mounting MMC card

2007-06-28 Thread Jan Dittmer
Midhun Agnihotram wrote: > Sorry for resending. I dont know if my previous mail has reached the > list with "Fwd" in the subject line. I am pretty sure there must a > filter in Majordomo to discard forwards. Actually I am resending the > mail I had sent to Linux-Arm-Kernel. The mail came already t

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