Skip to contentSkip to conversation

OMAP MMC - problem with initing card

DISCUSSION Marek Vašut 2 participants 2 messages Dec 23, 2006 – Jan 2, 2007

lore
Share & tools
lore
#0 lore raw

Hi,
I posted this question some time ago, but I made some progress. Here it is: I´ve been using omap mmc driver (omap.c) on Palm Zire71 since 2.6.16 at least and it was working perfectly. I was using the mmc card as root device. There was no problem with it - I booted linux, mmc got inited, printed info about partitions on it (that mmc0: p1 p2) and system normally booted from it. This changed by this merge

http://source.mvista.com/git/gitweb.cgi?p=linux-omap-2.6.git;a=commit;h=36808520ce2c9ade647d36c80004c158c71d0510

which caused, that the list of partition wasnt displayed anymore and system ended up without root device. Like the mmc wasnt present at all. I tested latest git and when I used initramfs and (from initramfs environment) issued

mount /dev/mmcblk0p2 /mnt/card
(mount second partition of mmc to /mnt/card)

it made the kernel somehow init the card. So the list of partitions got printed (mmc0: p1 p2), but mount crashed and argued that it cant mount that partition. So I tried it once again... and voila, partition was mounted without problems and was working like before. But the problem still persists - I cant boot directly from it without initramfs. Any ideas?

Thanx a lot for anything, any ideas.
Enjoy tomorow ;-)

Best regards
Marek

#1 lore raw

Hi,

Quoted 17 lines · Marek Vašut

Hi,
I posted this question some time ago, but I made some progress. Here it is: I´ve been using omap mmc driver (omap.c) on Palm Zire71 since 2.6.16 at least and it was working perfectly. I was using the mmc card as root device. There was no problem with it - I booted linux, mmc got inited, printed info about partitions on it (that mmc0: p1 p2) and system normally booted from it. This changed by this merge

http://source.mvista.com/git/gitweb.cgi?p=linux-omap-2.6.git;a=commit;h=36808520ce2c9ade647d36c80004c158c71d0510

which caused, that the list of partition wasnt displayed anymore and system ended up without root device. Like the mmc wasnt present at all. I tested latest git and when I used initramfs and (from initramfs environment) issued

mount /dev/mmcblk0p2 /mnt/card
(mount second partition of mmc to /mnt/card)

Quoted 8 lines

it made the kernel somehow init the card. So the list of partitions got printed (mmc0: p1 p2), but mount crashed and argued that it cant mount that partition. So I tried it once again... and voila, partition was mounted without problems and was working like before. But the problem still persists - I cant boot directly from it without initramfs. Any ideas?

Thanx a lot for anything, any ideas.
Enjoy tomorow ;-)

Just a guess, but it sounds like something is not ready with MMC when compiled in. Maybe try rootdelay=3 or something to try to troubleshoot it?

Tony