User Info
Добро пожаловать, Guest Пользователей: 1 Поисковых ботов: 3 Гостей: 1
Google Bot account Hudsonpa forum oBot forum Yandex Bot account
Две MMC карты - падает ядро
fogi
Пункты: 621
Регистрация: 06.02.2013
Падает ядро при подключении двух MMC карт. Прошу вашей помощи.
Код
Booting Linux on physical CPU 0
Linux version 3.6.9 (root@ubuntu) (gcc version 4.2.0 20070413 (prerelease) (CodeSourcery Sourcery G++ Lite 2007q1-10)) #68 Thu Apr 4 13:09:55 MSK 2013
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Atmel AT91SAM9260-EK
Memory policy: ECC disabled, Data cache writeback
AT91: Detected soc type: at91sam9260
AT91: Detected soc subtype: at91sam9xe
AT91: sram at 0x300000 of 0x8000 mapped at 0xfef70000
Clocks: CPU 198 MHz, master 99 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 mtdparts=atmel_nand:4M(bootstrap/uboot/kernel)ro,60M(rootfs),-(data) root=/dev/mtdblock1 rw rootfstype=jffs2
PID hash table entries: 256 (order: -2, 1024 bytes)
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: 61068k/61068k available, 4468k reserved, 0K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
vmalloc : 0xc4800000 - 0xff000000 ( 936 MB)
lowmem : 0xc0000000 - 0xc4000000 ( 64 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.text : 0xc0008000 - 0xc035f244 (3421 kB)
.init : 0xc0360000 - 0xc0383444 ( 142 kB)
.data : 0xc0384000 - 0xc03aa1e0 ( 153 kB)
.bss : 0xc03aa1e0 - 0xc03c4804 ( 106 kB)
NR_IRQS:16 nr_irqs:16 16
AT91: 96 gpio irqs in 3 banks
sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 4294967286ms
Console: colour dummy device 80x30
Calibrating delay loop... 98.71 BogoMIPS (lpj=493568)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0x20287e48 - 0x20287ea0
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
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
i2c-gpio i2c-gpio.0: using pins 23 (SDA) and 24 (SCL)
Switching to clocksource pit
NET: Registered protocol family 2
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
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
NetWinder Floating Point Emulator V0.97 (double precision)
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
jffs2: version 2.2. (NAND) б╘ 2001-2006 Red Hat, Inc.
msgmni has been set to 119
io scheduler noop registered (default)
atmel_usart.0: ttyS0 at MMIO 0xfffff200 (irq = 17) is a ATMEL_SERIAL
console [ttyS0] enabled
atmel_usart.1: ttyS1 at MMIO 0xfffb0000 (irq = 22) is a ATMEL_SERIAL
brd: module loaded
atmel_nand: Use On Flash BBT
atmel_nand atmel_nand: No DMA support for NAND access.
ONFI param page 0 valid
ONFI flash detected
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xf1 (Micron MT29F1G08ABADAWP), page size: 2048, OOB size: 64
Bad block table found at page 65472, version 0x01
Bad block table found at page 65408, version 0x01
nand_read_bbt: bad block at 0x000002d80000
nand_read_bbt: bad block at 0x0000031e0000
3 cmdlinepart partitions found on MTD device atmel_nand
Creating 3 MTD partitions on "atmel_nand":
0x000000000000-0x000000400000 : "bootstrap/uboot/kernel"
0x000000400000-0x000004000000 : "rootfs"
0x000004000000-0x000008000000 : "data"
libphy: MACB_mii_bus: probed
macb macb: eth0: Cadence MACB at 0xfffc4000 irq 37 (3a:1f:34:08:54:54)
macb macb: eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=macb-ffffffff:04, irq=-1)
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 36, io mem 0x00500000
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.
usbcore: registered new interface driver usbserial
usbcore: registered new interface driver usbserial_generic
USB Serial support registered for generic
usbserial: USB Serial Driver core
mousedev: PS/2 mouse device common for all mice
rtc-ds3232 0-0068: rtc core: registered ds3232 as rtc0
rtc-ds3232 0-0068: unable to request IRQ
rtc-ds3232: probe of 0-0068 failed with error -38
i2c /dev entries driver
TCP: cubic registered
NET: Registered protocol family 17
i2c 0-0068: setting system clock to 2013-04-04 13:37:40 UTC (1365082660)
atmel_mci atmel_mci: version: 0x210
atmel_mci atmel_mci: using PDC
atmel_mci atmel_mci: Atmel MCI controller at 0xfffa8000 irq 25, 2 slots
mmc0: host does not support reading read-only switch. assuming write-enable.
mmc0: new SDHC card at address 0007
mmcblk0: mmc0:0007 SD04G 3.67 GiB
mmcblk0: p1
mmc1: host does not support reading read-only switch. assuming write-enable.
mmc1: new SD card at address b368
mmcblk1: mmc1:b368 SDC 1.86 GiB
mmcblk1: p1
jffs2: Empty flash at 0x013ed8cc ends at 0x013ee000
jffs2: Empty flash at 0x01d29064 ends at 0x01d29800
jffs2: Empty flash at 0x0205824c ends at 0x02058800
VFS: Mounted root (jffs2 filesystem) on device 31:1.
Freeing init memory: 140K
INIT: version 2.86 booting
Please wait: booting...
Starting udev
udev: starting version 151
udevd (966): /proc/966/oom_adj is deprecated, please use /proc/966/oom_score_adj instead.
------------[ cut here ]------------
WARNING: at drivers/mmc/host/atmel-mci.c:627 atmci_send_command+0x44/0x50()
Modules linked in:
[<c0014a9c>] (unwind_backtrace+0x0/0xf4) from [<c001d5a8>] (warn_slowpath_common+0x4c/0x64)
[<c001d5a8>] (warn_slowpath_common+0x4c/0x64) from [<c001d5dc>] (warn_slowpath_null+0x1c/0x24)
[<c001d5dc>] (warn_slowpath_null+0x1c/0x24) from [<c01e5d94>] (atmci_send_command+0x44/0x50)
[<c01e5d94>] (atmci_send_command+0x44/0x50) from [<c01e600c>] (atmci_start_request+0x248/0x294)
[<c01e600c>] (atmci_start_request+0x248/0x294) from [<c01e6bfc>] (atmci_request+0xa4/0x110)
[<c01e6bfc>] (atmci_request+0xa4/0x110) from [<c01d7574>] (__mmc_start_req+0xfc/0x15c)
[<c01d7574>] (__mmc_start_req+0xfc/0x15c) from [<c01d765c>] (mmc_wait_for_req+0x14/0x28)
[<c01d765c>] (mmc_wait_for_req+0x14/0x28) from [<c01d76d8>] (mmc_wait_for_cmd+0x68/0x88)
[<c01d76d8>] (mmc_wait_for_cmd+0x68/0x88) from [<c01e365c>] (get_card_status+0x74/0x8c)
[<c01e365c>] (get_card_status+0x74/0x8c) from [<c01e3f48>] (mmc_blk_err_check+0x5c/0x3a0)
[<c01e3f48>] (mmc_blk_err_check+0x5c/0x3a0) from [<c01d8098>] (mmc_start_req+0x88/0x124)
[<c01d8098>] (mmc_start_req+0x88/0x124) from [<c01e3a70>] (mmc_blk_issue_rw_rq+0x84/0x500)
[<c01e3a70>] (mmc_blk_issue_rw_rq+0x84/0x500) from [<c01e4e44>] (mmc_blk_issue_rq+0x1a4/0x458)
[<c01e4e44>] (mmc_blk_issue_rq+0x1a4/0x458) from [<c01e54b8>] (mmc_queue_thread+0x50/0xfc)
[<c01e54b8>] (mmc_queue_thread+0x50/0xfc) from [<c0037004>] (kthread+0x84/0x90)
[<c0037004>] (kthread+0x84/0x90) from [<c00102a8>] (kernel_thread_exit+0x0/0x8)
---[ end trace b9aaab0c29a66e22 ]---
mmcblk1: error -115 sending stop command, original cmd response 0x900, card status 0xb00
mmcblk1: error -110 transferring data, sector 872, nr 8, cmd response 0x900, card status 0xb00
mmcblk1: retrying using single block read
Remounting root file system...
Далее можно залогинится, но если вынуть карту памяти то:
Код
root@at91sam9263ek:~# Unable to handle kernel paging request at virtual address 00200200
pgd = c0004000
[00200200] *pgd=00000000
Internal error: Oops: 805 [#1] ARM
Modules linked in:
CPU: 0 Tainted: G W (3.6.9 #68)
PC is at atmci_detect_change+0x94/0x1dc
LR is at __gpio_get_value+0x40/0x60
pc : [<c01e6a10>] lr : [<c0155848>] psr: 00000013
sp : c0385ed0 ip : 00000000 fp : 0000000a
r10: c0393198 r9 : c03af7a0 r8 : c01e697c
r7 : c0384000 r6 : 00000000 r5 : c3a51860 r4 : c3a58e40
r3 : 00100100 r2 : 00100100 r1 : 00200200 r0 : c3aa9c2c
Flags: nzcv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel
Control: 0005317f Table: 2301c000 DAC: 00000017
Process swapper (pid: 0, stack limit = 0xc0384270)
Stack: (0xc0385ed0 to 0xc0386000)
5ec0: c03af900 c0385ee8 00000100 c0029298
5ee0: c0010898 00000000 c0385ee8 c0385ee8 00000001 00000001 00000004 00000100
5f00: c03af7a0 c03af7a0 c0384000 c0024590 00000061 c005235c c3804920 00200000
5f20: 00000000 00000011 c0398860 00000000 c0385f94 c037e688 41069265 c038c000
5f40: 00000000 c0024a0c 00000011 c00101e0 c0010898 a0000013 ffffffff c000efc0
5f60: 00000000 0005317f 0005217f a0000013 c0384000 c03aa288 c038eb10 c03aa1e0
5f80: c037e688 41069265 c038c000 00000000 a00000d3 c0385fa8 c001088c c0010898
5fa0: a0000013 ffffffff c037e688 c0010a14 c038c0ac c03aa260 c037f4e4 c03608d0
5fc0: ffffffff ffffffff c0360210 00000000 00000000 c037f4e4 00000000 00053175
5fe0: c038c01c c037f4b4 c038eb04 20004000 2037e04c 20008040 00000000 00000000
[<c01e6a10>] (atmci_detect_change+0x94/0x1dc) from [<c0029298>] (run_timer_softirq+0x1b4/0x20c)
[<c0029298>] (run_timer_softirq+0x1b4/0x20c) from [<c0024590>] (__do_softirq+0x9c/0x150)
[<c0024590>] (__do_softirq+0x9c/0x150) from [<c0024a0c>] (irq_exit+0x4c/0x54)
[<c0024a0c>] (irq_exit+0x4c/0x54) from [<c00101e0>] (handle_IRQ+0x34/0x84)
[<c00101e0>] (handle_IRQ+0x34/0x84) from [<c000efc0>] (__irq_svc+0x40/0x4c)
[<c000efc0>] (__irq_svc+0x40/0x4c) from [<c0010898>] (default_idle+0x28/0x3c)
[<c0010898>] (default_idle+0x28/0x3c) from [<c0010a14>] (cpu_idle+0x80/0xb8)
[<c0010a14>] (cpu_idle+0x80/0xb8) from [<c03608d0>] (start_kernel+0x230/0x2ec)
Code: 0a00001f e5941018 e5942014 e59f313c (e5812000)
---[ end trace 4e33db4b5428f302 ]---
Kernel panic - not syncing: Fatal exception in interrupt
Jury093
Пункты: 54271
Регистрация: 25.05.2009
Пол: Мужчина
Из: Санкт-Петербург
вероятно у вас кастом-борд
попробуйте с простейшего - прописать один порт, потестить на стабильность, потом исправить на второй порт - аналогично..
смысл действий - проверить, что интерфейсы независимо исправны..
хорошо бы проверить чистоту питания, хоть карточки кушают мало, но мало ли источник уже на пределе..
как понимаю - подтяжки вверх стоят..
это по аппаратуре..
по софту - смотрите внимательно, как в драйвере проходит инициализация ресурсов - по симтоматике смахивает на обработку прерывания "не для того порта" или ее отсутствие..
беглое гугление показало, что 2 карточки для 9263 редкость, т.ч. драйвер может быть с ошибками..
содержимое борд-файла в части прописания sd/mmc и схему подключения не спрашиваю - на ваше усмотрение..
На любой вопрос есть любой ответ.