at91sam9g20ek_2mmc_demo - mmc on Slot A not working

Microchip in-system programming solution: SAM-BA

Moderators: nferre, fab

dipen238
Posts: 7
Joined: Fri Oct 15, 2010 12:07 pm

at91sam9g20ek_2mmc_demo - mmc on Slot A not working

Mon Jan 10, 2011 11:13 am

Hi,
I am using at91sam9g20-ek with two MMC support,
I checked binary demo files provided on linux4sam for 2mmc demo but it is working fine with Slot-B mmc but fail to detect with Slot-A.
I tested linux-kernel-30 source for board at91sam9g20ek-2slot-mmc.c and modified this structure,

static struct at91_mmc_data __initdata ek_mmc_data = {
.slot_b = 0, /* Only one slot so use slot B */
.wire4 = 1,
.det_pin = AT91_PIN_PC2, /*PC9 (Slot-B)replaced PC2(Slot-A) */
};

But still the same error , i have added my bootmessage ,

Uncompressing Linux............................................................................................................. done, booting the kernel.
Linux version 2.6.30 (root@build-server) (gcc version 4.2.0 20070413 (prerelease) (CodeSourcery Sourcery G++ Lite 2007q1-10)) #30 Fri Jan 7 15:56:17 IST 2011
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine:Atmel AT91SAM9G20-EK 2 MMC Slot Mod
Memory policy: ECC disabled, Data cache writeback
Clocks: CPU 396 MHz, master 132 MHz, main 18.432 MHz
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
Kernel command line: mem=64M console=ttyS0,115200 root=/dev/mtdblock1 rw rootfstype=jffs2
NR_IRQS:192
AT91: 96 gpio irqs in 3 banks
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x30
console [ttyS0] enabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 61396KB available (3020K code, 233K data, 108K init, 0K highmem)
Calibrating delay loop... 197.83 BogoMIPS (lpj=989184)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 296 bytes
NET: Registered protocol family 16
AT91: Power Management
AT91: Starting after general reset
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
cfg80211: Calling CRDA to update world regulatory domain
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
NetWinder Floating Point Emulator V0.97 (double precision)
JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
msgmni has been set to 120
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler anticipatory registered (default)
atmel_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a ATMEL_SERIAL
brd: module loaded
loop: module loaded
ssc ssc.0: Atmel SSC device at 0xc4860000 (irq 14)
Driver 'sd' needs updating - please use bus_type methods
macb macb: invalid hw address, using random
MACB_mii_bus: probed
eth0: Atmel MACB at 0xfffc4000 irq 21 (92:24:db:ab:c2:65)
eth0: attached PHY driver [Davicom DM9161A] (mii_bus:phy_addr=ffffffff:00, irq=-1)
NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)
AT91 NAND: 8-bit, Software ECC
Scanning device for bad blocks
Creating 3 MTD partitions on "atmel_nand":
0x000000000000-0x000000400000 : "Bootstrap"
0x000000400000-0x000004000000 : "Partition 1"
0x000004000000-0x000010000000 : "Partition 2"
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
at91_ohci at91_ohci: AT91 OHCI
at91_ohci at91_ohci: new USB bus registered, assigned bus number 1
at91_ohci at91_ohci: irq 20, io mem 0x00500000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
udc: at91_udc version 3 May 2006
mice: PS/2 mouse device common for all mice
input: gpio-keys as /class/input/input0
rtc-at91sam9 at91_rtt.0: rtc core: registered at91_rtt as rtc0
IRQ 1/rtc0: IRQF_DISABLED is not guaranteed on shared IRQs
rtc-at91sam9 at91_rtt.0: rtc0: SET TIME!
MMC: Setting controller bus width to 1
: Sard detection =0
:Added MCI driver
:MMC: Setting controller bus width to 1
Registered led device: ds5
Registered led device: ds1
Advanced Linux Sound Architecture Driver Version 1.0.20.
No device for DAI atmel-ssc0
:clkdiv = 176. mcck = 373152
:MMC: Setting controller bus width to 1
ALSA device list:
No soundcards found.
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
lib80211: common routines for IEEE802.11 drivers
:clkdiv = 176. mcck = 373152
:MMC: Setting controller bus width to 1
:Sending command 0 as 00000800, arg = 00000000, blocks = 0, length = 0 (MR = 00009BB0)
:MCI irq: status = 0000C0E5, C07F0001, 00000001
:Command ready
:Completed command
:Status = 00000001/0000c0e5 [00000000 00000000 00000000 00000000]
:clkdiv = 176. mcck = 373152
:MMC: Setting controller bus width to 1
:Sending command 8 as 00001848, arg = 000001AA, blocks = 0, length = 0 (MR = 00001BB0)
:MCI irq: status = 0010C3E4, C07F0001, 00100000
:MMC: Response timeout
:Completed command
:Status = 00100000/0010c3e5 [00000000 00000000 00000000 00000000]
:Error detected and set to -110/0 (cmd = 8, retries = 0)
:Sending command 5 as 00001845, arg = 00000000, blocks = 0, length = 0 (MR = 00001BB0)
:MCI irq: status = 0010C3E4, C07F0001, 00100000
:MMC: Response timeout
:Completed command
:Status = 00100000/0010c3e5 [00000000 00000000 00000000 00000000]
:Error detected and set to -110/0 (cmd = 5, retries = 3)
:Sending command 5 as 00001845, arg = 00000000, blocks = 0, length = 0 (MR = 00001BB0)
:MCI irq: status = 0010C3E4, C07F0001, 00100000
:MMC: Response timeout
:Completed command
:Status = 00100000/0010c3e5 [00000000 00000000 00000000 00000000]
:Error detected and set to -110/0 (cmd = 5, retries = 2)
:Sending command 5 as 00001845, arg = 00000000, blocks = 0, length = 0 (MR = 00001BB0)
rtc-at91sam9 at91_rtt.0: hctosys: unable to read the hardware clock
:MCI irq: status = 0010C3E5, C07F0001, 00100001
:MMC: Response timeout
:Completed command
:Status = 00100001/0010c3e5 [00000000 00000000 00000000 00000000]
:Error detected and set to -110/0 (cmd = 5, retries = 1)
:Sending command 5 as 00001845, arg = 00000000, blocks = 0, length = 0 (MR = 00001BB0)
:MCI irq: status = 0010C3E4, C07F0001, 00100000
:MMC: Response timeout
:Completed command
:Status = 00100000/0010c3e5 [00000000 00000000 00000000 00000000]
:Error detected and set to -110/0 (cmd = 5, retries = 0)
Empty flash at 0x00c624b4 ends at 0x00c62800
:Sending command 55 as 00001877, arg = 00000000, blocks = 0, length = 0 (MR = 00001BB0)
VFS: Mounted root (jffs2 filesystem) on device 31:1.
:MCI irq: status = 0010C3E5, C07F0001, 00100001
:MMC: Response timeout
:Completed command
:Status = 00100001/0010c3e5 [00000000 00000000 00000000 00000000]
:Error detected and set to -110/0 (cmd = 55, retries = 0)
Freeing init memory: 108K
:Sending command 55 as 00001877, arg = 00000000, blocks = 0, length = 0 (MR = 00001BB0)
:MCI irq: status = 0010C3E4, C07F0001, 00100000
:MMC: Response timeout
:Completed command
:Status = 00100000/0010c3e5 [00000000 00000000 00000000 00000000]
:Error detected and set to -110/0 (cmd = 55, retries = 0)
:Sending command 55 as 00001877, arg = 00000000, blocks = 0, length = 0 (MR = 00001BB0)
:MCI irq: status = 0010C3E4, C07F0001, 00100000
:MMC: Response timeout
:Completed command
:Status = 00100000/0010c3e5 [00000000 00000000 00000000 00000000]
:Error detected and set to -110/0 (cmd = 55, retries = 0)
:Sending command 55 as 00001877, arg = 00000000, blocks = 0, length = 0 (MR = 00001BB0)
:MCI irq: status = 0010C3E4, C07F0001, 00100000
:MMC: Response timeout
:Completed command
:Status = 00100000/0010c3e5 [00000000 00000000 00000000 00000000]
:Error detected and set to -110/0 (cmd = 55, retries = 0)
:Sending command 1 as 00001841, arg = 00000000, blocks = 0, length = 0 (MR = 00001BB0)
:MCI irq: status = 0010C3E4, C07F0001, 00100000
:MMC: Response timeout
:Completed command
:Status = 00100000/0010c3e5 [00000000 00000000 00000000 00000000]
:Error detected and set to -110/0 (cmd = 1, retries = 0)
:MMC: Setting controller bus width to 1
Populating /dev using udev: cannot open /dev/null
done
Starting portmap: done
Initializing random number generator... done.
Starting network...

I have designed my own custom board , i have mmc connection with slot-A , so i am facing the same problem with mmc.

Is there any modification/configurations missed by me ?

Return to “SAM-BA”

Who is online

Users browsing this forum: No registered users and 1 guest