LINUX.ORG.RU

Странная шмяка с ядром.

 ,


0

1

Есть арм-железка на линуксе ядро 2.6.30.10 пропатченно Adeos, есть самописная прога реализующая токовую защиту, прога состоит из нескольких модулей, параметры для программы хранятся в неком ramfs в виде адресов и значений, один из них назовем его sloop постоянно считывает показания с АЦП, он же как я понимаю грузится первым, интерфейс реализован на javaMe, при изменении даты, не всегда но часто происходит перезапуск HMI. Что бы как то выловить ошибку я включил опции PIPE_DEBUG и printk. После чего ядро вообще перестало грузится и вывалило лог:

[    0.000000] Linux version 2.6.30.10 (root@LNM) (gcc version 4.3.4 (GCC) ) #5 Mon Jun 18 11:13:05 CEST 2012
[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Atmel AT91SAM9G45-EKES
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] Clocks: CPU 400 MHz, master 133 MHz, main 12.000 MHz
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: mem=64M console=ttyS0,115200 root=/dev/mtdblock1 rw rootfstype=yaffs lpj=98816
[    0.000000] NR_IRQS:192
[    0.000000] AT91: 160 gpio irqs in 5 banks
[    0.000000] PID hash table entries: 256 (order: 8, 1024 bytes)
[    0.000000] AT91 I-pipe timer: div: 128, freq: 1.041666 MHz, wrap: 62.914600 ms
[    0.000000] I-pipe 1.15-02: pipeline enabled.
[    0.000000] Console: colour dummy device 80x30
[    0.000000] console [ttyS0] enabled
[    0.001000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.002000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.009000] Memory: 64MB = 64MB total
[    0.012000] Memory: 62528KB available (1928K code, 186K data, 92K init, 0K highmem)
[    0.013000] Calibrating delay loop (skipped) preset value.. 197.63 BogoMIPS (lpj=98816)
[    0.016000] Mount-cache hash table entries: 512
[    0.018000] CPU: Testing write buffer coherency: ok
[    0.027000] net_namespace: 296 bytes
[    0.029000] NET: Registered protocol family 16
[    0.035000] AC97 open by<liuxin>
[    0.037000] AC97 in by<liuxin>
[    0.053000] ACS RAMFS: Loading modules
[    0.054000]   module ID=1, offset=336, name='/root/sys/wdtm.ko', args='timeout=2000 idle=0 '
[    0.058000]   module ID=2, offset=5396, name='/root/sys/rt_shm.ko', args=''
[    0.071000] Unable to handle kernel NULL pointer dereference at virtual address 00000298
[    0.072000] pgd = c0004000
[    0.073000] [00000298] *pgd=00000000
[    0.074000] Internal error: Oops: 5 [#1]
[    0.074000] Modules linked in: rt_shm(+) wdtm
[    0.074000] CPU: 0    Not tainted  (2.6.30.10 #5)
[    0.074000] PC is at rt_heap_create+0x20/0x29c
[    0.074000] LR is at init_module+0x24/0x268 [rt_shm]
[    0.074000] pc : [<c00798ec>]    lr : [<bf00d024>]    psr: 60000013
[    0.074000] sp : c3817ec8  ip : c3817ef0  fp : c3817eec
[    0.074000] r10: 00000e00  r9 : 00000000  r8 : bf0063ac
[    0.074000] r7 : bf009e6c  r6 : bf00d000  r5 : bf006e10  r4 : 00001a79
[    0.074000] r3 : 00000e00  r2 : 00008000  r1 : bf0063ac  r0 : 00000000
[    0.074000] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
[    0.074000] Control: 0005317f  Table: 20004000  DAC: 00000017
[    0.074000] Process swapper (pid: 1, stack limit = 0xc3816268)
[    0.074000] Stack: (0xc3817ec8 to 0xc3818000)
[    0.074000] 7ec0:                   00001a79 bf006e10 bf00d000 00000000 c2000000 00000000 
[    0.074000] 7ee0: c3817f14 c3817ef0 bf00d024 c00798dc 00000001 bf006494 00001a79 bf006e10 
[    0.074000] 7f00: bf00d000 00000000 c3817f44 c3817f18 c001f3cc bf00d010 00000000 c2000000 
[    0.074000] 7f20: c3817f44 c3817f30 00001a79 bf006e10 c2001514 00000000 c3817f6c c3817f48 
[    0.074000] 7f40: c005cb08 c001f378 c2000000 00000000 c20014fc c2001510 c2000018 00000002 
[    0.074000] 7f60: c3817fac c3817f70 c0010a04 c005ca7c c2001510 00000000 63617f9c 61722073 
[    0.074000] 7f80: 2073666d 00312e30 c001c534 c001c3c0 c001c534 c00108f4 00000000 00000000 
[    0.074000] 7fa0: c3817fdc c3817fb0 c001f3cc c0010904 c00615d4 c00d59ac c3817fdc c001c354 
[    0.074000] 7fc0: c001c3c0 c001c534 00000000 00000000 c3817ff4 c3817fe0 c000842c c001f378 
[    0.074000] 7fe0: 00000000 00000000 00000000 c3817ff8 c003a144 c00083c0 73c033cc 37c813cc 
[    0.074000] Backtrace: 
[    0.074000] [<c00798cc>] (rt_heap_create+0x0/0x29c) from [<bf00d024>] (init_module+0x24/0x268 [rt_shm])
[    0.074000] [<bf00d000>] (init_module+0x0/0x268 [rt_shm]) from [<c001f3cc>] (do_one_initcall+0x64/0x1cc)
[    0.074000]  r7:00000000 r6:bf00d000 r5:bf006e10 r4:00001a79
[    0.074000] [<c001f368>] (do_one_initcall+0x0/0x1cc) from [<c005cb08>] (init_module_from_kernel+0x9c/0x1a0)
[    0.074000]  r7:00000000 r6:c2001514 r5:bf006e10 r4:00001a79
[    0.074000] [<c005ca6c>] (init_module_from_kernel+0x0/0x1a0) from [<c0010a04>] (__acs_ramfs_load+0x110/0x180)
[    0.074000]  r7:00000002 r6:c2000018 r5:c2001510 r4:c20014fc
[    0.074000] [<c00108f4>] (__acs_ramfs_load+0x0/0x180) from [<c001f3cc>] (do_one_initcall+0x64/0x1cc)
[    0.074000]  r8:00000000 r7:00000000 r6:c00108f4 r5:c001c534 r4:c001c3c0
[    0.074000] [<c001f368>] (do_one_initcall+0x0/0x1cc) from [<c000842c>] (kernel_init+0x7c/0xec)
[    0.074000]  r7:00000000 r6:00000000 r5:c001c534 r4:c001c3c0
[    0.074000] [<c00083b0>] (kernel_init+0x0/0xec) from [<c003a144>] (do_exit+0x0/0x61c)
[    0.074000]  r5:00000000 r4:00000000
[    0.074000] Code: e59f0264 e1a08001 e5900010 e1a0a003 (e5901298) 
[    0.075000] ---[ end trace 1b75b31a2719ed1c ]---
[    0.076000] Kernel panic - not syncing: Attempted to kill init!
[    0.078000] Backtrace: 
[    0.079000] [<c0023e88>] (dump_backtrace+0x0/0x10c) from [<c019c138>] (dump_stack+0x18/0x1c)
[    0.083000]  r7:00000000 r6:c3812c40 r5:c3812c40 r4:c02097c8
[    0.087000] [<c019c120>] (dump_stack+0x0/0x1c) from [<c019c178>] (panic+0x3c/0x110)
[    0.091000] [<c019c13c>] (panic+0x0/0x110) from [<c003a1b0>] (do_exit+0x6c/0x61c)
[    0.095000]  r3:c02097c8 r2:00000000 r1:00000000 r0:c01dd3b5
[    0.100000] [<c003a144>] (do_exit+0x0/0x61c) from [<c0024194>] (die+0x200/0x238)
[    0.104000] [<c0023f94>] (die+0x0/0x238) from [<c0026ae4>] (__do_kernel_fault+0x6c/0x7c)
[    0.108000] [<c0026a78>] (__do_kernel_fault+0x0/0x7c) from [<c0026da0>] (do_page_fault+0x2ac/0x2d8)
[    0.112000]  r7:00000005 r6:c3812c40 r5:00000298 r4:c0205fa8
[    0.117000] [<c0026af4>] (do_page_fault+0x0/0x2d8) from [<c0026e7c>] (do_translation_fault+0x24/0x120)
[    0.121000] [<c0026e58>] (do_translation_fault+0x0/0x120) from [<c001f280>] (do_DataAbort+0x38/0x11c)
[    0.125000]  r7:c0205ff8 r6:00000005 r5:c3817eb4 r4:c0205fa8
[    0.130000] [<c001f248>] (do_DataAbort+0x0/0x11c) from [<c001fb2c>] (__dabt_svc+0x4c/0x60)
[    0.134000] Exception stack(0xc3817e80 to 0xc3817ec8)
[    0.135000] 7e80: 00000000 bf0063ac 00008000 00000e00 00001a79 bf006e10 bf00d000 bf009e6c 
[    0.142000] 7ea0: bf0063ac 00000000 00000e00 c3817eec c3817ef0 c3817ec8 bf00d024 c00798ec 
[    0.149000] 7ec0: 60000013 ffffffff                                                       
[    0.156000] [<c00798cc>] (rt_heap_create+0x0/0x29c) from [<bf00d024>] (init_module+0x24/0x268 [rt_shm])
[    0.160000] [<bf00d000>] (init_module+0x0/0x268 [rt_shm]) from [<c001f3cc>] (do_one_initcall+0x64/0x1cc)
[    0.164000]  r7:00000000 r6:bf00d000 r5:bf006e10 r4:00001a79
[    0.168000] [<c001f368>] (do_one_initcall+0x0/0x1cc) from [<c005cb08>] (init_module_from_kernel+0x9c/0x1a0)
[    0.172000]  r7:00000000 r6:c2001514 r5:bf006e10 r4:00001a79
[    0.176000] [<c005ca6c>] (init_module_from_kernel+0x0/0x1a0) from [<c0010a04>] (__acs_ramfs_load+0x110/0x180)
[    0.180000]  r7:00000002 r6:c2000018 r5:c2001510 r4:c20014fc
[    0.184000] [<c00108f4>] (__acs_ramfs_load+0x0/0x180) from [<c001f3cc>] (do_one_initcall+0x64/0x1cc)
[    0.188000]  r8:00000000 r7:00000000 r6:c00108f4 r5:c001c534 r4:c001c3c0
[    0.193000] [<c001f368>] (do_one_initcall+0x0/0x1cc) from [<c000842c>] (kernel_init+0x7c/0xec)
[    0.197000]  r7:00000000 r6:00000000 r5:c001c534 r4:c001c3c0
[    0.201000] [<c00083b0>] (kernel_init+0x0/0xec) from [<c003a144>] (do_exit+0x0/0x61c)
[    0.205000]  r5:00000000 r4:00000000

★★★★★

Попробуйте снова выключить PIPE_DEBUG. Патч от Adeos может косячить.

delete83 ★★
()
Ответ на: комментарий от ZuBB

нельзя его блэклистить, иначе железка не будет работать.

splinter ★★★★★
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.