我在用华恒的2410做,阿南哥哥笔记里的按键实验时出现一下情况,还请高手指点, 在下感激不尽
1.调试方式 我的程序在宿主机编译好后,然后将宿主机和目标板通过以太网连接,在宿主PC 机上运行minicom 作为目标板的显示终端,在目标板上通过NFS (网络文件系统) 来mount宿主机硬盘,让应用程序直接运行在目标板上进行调试。
2.没装载中断模块时用cat /proc/interrupts命令显示如下 0: 108 DM9000 device 13: 0 DMA timer 14: 10139 timer 18: 0 I2SSDI 19: 0 I2SSDO 21: 0 SDI 26: 0 usb-ohci 46: 0 SD CD 52: 249 serial_s3c2410_rx 53: 240 serial_s3c2410_tx 54: 0 serial_s3c2410_err Err: 0
3.用insmod 模块名 命令装载模块时,我监视requset_irq函数返回值是-22即-EINVAL,装载失败
4.再用cat /proc/interrupts命令显示如下 Unable to handle kernel paging request at virtual address c6a505d8 pgd = c0a50000 *pgd = 30a2e821, *pmd = 30a2e821, *pte = 00000000, *ppte = 00000000 Internal error: Oops: 0 CPU: 0 pc : [<c01ac1d0>] lr : [<c01ace50>] Not tainted sp : c341de68 ip : c341de78 fp : c341de74 r10: 00000000 r9 : c341deec r8 : ffffffff r7 : c3574032 r6 : 00000002 r5 : c6a505d8 r4 : c3574030 r3 : c01e6bb0 r2 : c6a505d8 r1 : fffffffe r0 : c6a505d8 Flags: Nzcv IRQs on FIQs on Mode SVC_32 Segment user Control: C000317F Table: 30A50000 DAC: 00000015 Process cat (pid: 53, stackpage=c341d000) Stack: (0xc341de58 to 0xc341e000) de40: c01ace50 c01ac1d0 de60: 80000013 ffffffff c341dec0 c341de78 c01ace50 c01ac1c4 0000000a 0000000a de80: 00000000 00000000 ffffffff 3ca8bfd0 c3574030 c01aeee7 c3574030 c3fe35a0 dea0: 00000002 c3574000 00000c00 bfffde4c 00002000 c341ded0 c341dec4 c01ad114 dec0: c01aca6c c341dee0 c341ded4 c01ad134 c01ad104 c341df0c c341def0 c001cf28 dee0: c01ad12c c01aeee4 c6a505d8 c3574020 c341df48 c3574000 c341df4c 00000000 df00: c341df38 c341df10 c006a5c0 c001cec4 c341df1c c0042bdc 00002000 00000c00 df20: 00000000 c3574000 c37d50c0 c341df78 c341df3c c0067e64 c006a5a8 c341df48 df40: 00000000 c037c4a0 00000000 00000000 00002000 c37d50a0 ffffffea 00000000 df60: bfffde4c c341c000 00000004 c341dfa4 c341df7c c0049804 c0067d60 00000004 df80: c341dfac 02051818 00002000 bfffde4c 00000003 c001c9a4 00000000 c341dfa8 dfa0: c001c820 c0049738 02051818 c0022b28 00000004 bfffde4c 00002000 00000001 dfc0: 02051818 00002000 bfffde4c 00000004 00000001 02003eb8 00000004 bffffea8 dfe0: 40092f20 bfffde38 0203a488 40092f24 60000010 00000004 00000000 00000000 Backtrace: Function entered at [<c01ac1b4>] from [<c01ace50>] Function entered at [<c01aca5c>] from [<c01ad114>] Function entered at [<c01ad0f4>] from [<c01ad134>] Function entered at [<c01ad11c>] from [<c001cf28>] Function entered at [<c001ceb4>] from [<c006a5c0>] r7 = 00000000 r6 = C341DF4C r5 = C3574000 r4 = C341DF48 Function entered at [<c006a598>] from [<c0067e64>] r8 = C37D50C0 r7 = C3574000 r6 = 00000000 r5 = 00000C00 r4 = 00002000 Function entered at [<c0067d50>] from [<c0049804>] Function entered at [<c0049728>] from [<c001c820>] r8 = C001C9A4 r7 = 00000003 r6 = BFFFDE4C r5 = 00002000 r4 = 02051818 Code: e1a02000 e2411001 e3710001 0a000009 (e5d23000) Segmentation fault
还请高手指点 |