Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Error when I mount a MMC on at91sam9260ek with linux-2.6.21
PostPosted: Thu Jul 19, 2007 9:34 am 
Offline

Joined: Tue Jul 10, 2007 1:15 pm
Posts: 25
Location: Rennes
Hello,

I have a problem with my MMC driver. I use at91sam9260 with linux-2.6.21+patch.arm. My kernel is in RAM and my rootfs in NFS.
For the moment I want simply mount MMC but after I hope to use the MMC for my rootfs.
So I compile mmc.c, mmc_block.c and at91_mci.c with the patch of Nicolas Ferré. My config is :
<M> MMC support
[*] MMC debugging
<M> MMC block device driver
<M> AT91 SD/MMC Card Interface support

Then the kernel boot and I make :
$ mknod /dev/mmcblk b 254 0
$ mknod /dev/mmcblk0 b 254 1
$
$ insmod mmc_core
$ insmod mmc_block
$ insmod at91_mci
$ lsmod
Module Size Used by Not tainted
at91_mci 8744 -
mmc_block 6512 -
mmc_core 22328 -
$
$ mkdir /mnt/mmc
$ mount /dev/mmcblk0 /mnt/mmc/
mount: mounting /dev/mmcblk0 on /mnt/mmc/ failed

This is the problem !!!!!!!!!!!! And I don't know why ...

If it can help you:
$ dmesg | grep mmc
PM: Adding info for No Bus:mmc0
mmc0: clock 0Hz busmode 1 powermode 0 cs 0 Vdd 0 width 0 timing 0
mmc0: clock 0Hz busmode 1 powermode 1 cs 0 Vdd 21 width 0 timing 0
mmc0: clock 375000Hz busmode 1 powermode 2 cs 0 Vdd 21 width 0 timing 0
mmc0: clock 375000Hz busmode 1 powermode 2 cs 1 Vdd 21 width 0 timing 0
mmc0: starting CMD0 arg 00000000 flags 00000040
mmc0: req done (CMD0): 0/0/0: 00000000 00000000 00000000 00000000
mmc0: clock 375000Hz busmode 1 powermode 2 cs 0 Vdd 21 width 0 timing 0
mmc0: starting CMD8 arg 000001aa flags 00000075
mmc0: req done (CMD8): 1/0/0: 00000000 00000000 00000000 00000000
mmc0: starting CMD55 arg 00000000 flags 00000015
mmc0: req done (CMD55): 1/0/0: 00000000 00000000 00000000 00000000
mmc0: starting CMD55 arg 00000000 flags 00000015
mmc0: req done (CMD55): 1/0/0: 00000000 00000000 00000000 00000000
mmc0: starting CMD55 arg 00000000 flags 00000015
mmc0: req done (CMD55): 1/0/0: 00000000 00000000 00000000 00000000
mmc0: starting CMD55 arg 00000000 flags 00000015
mmc0: req done (CMD55): 1/0/0: 00000000 00000000 00000000 00000000
mmc0: starting CMD1 arg 00000000 flags 00000061
mmc0: req done (CMD1): 1/0/0: 00000000 00000000 00000000 00000000
mmc0: clock 0Hz busmode 1 powermode 0 cs 0 Vdd 0 width 0 timing 0

I have already try with many things but nothing.

Can you help me please? Could you send me full files at91_mci.c, mmc.c and mmc_block.c that work with 2.6.21 on arm?

Thanks

Pierre


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 28 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: