problem in registering the device while inserting the kernel module

patel rajendra rdpatel55 at yahoo.co.in
Thu May 21 11:48:01 EST 2009


Hi Members of linuxppc,
 
I'm working on XUPV2P board with Virtex II Pro FPGA device.
 
I written a kernel module for LED device. I got that module run successfuly on ML403 board having Virtex 4 FPGA.I have not make any change in my source code, because I don't feel any change is required.
 
On XUP board when I run "insmod xilinx_led.ko" command on my target board, I got following message.
 
# insmod xilinx_led.ko
Oops: kernel access of bad area, sig: 11 [#1]
PREEMPT
NIP: d1006190 LR: d1006188 CTR: 00000000
REGS: c0705db0 TRAP: 0300   Not tainted  (2.6.23xlnx)
MSR: 00029030 <EE,ME,IR,DR>  CR: 24000024  XER: 00000000
DEAR: 0000004c, ESR: 00000000
TASK = c04c63d0[186] 'insmod' THREAD: c0704000
GPR00: d1006188 c0705e60 c04c63d0 00000000 000000d0 00000001 00000000 c0220ae0
GPR08: c006c60c 00000000 00000001 c04553f0 026f4bac 100b4260 d1003288 d1007668
GPR16: d1003288 d1003238 0000fff1 0000fff2 0000004c 00000000 d100762c c003e94c
GPR24: d1002e02 00000018 d1002000 00000019 d1000000 d1007598 d10077c8 00000000
NIP [d1006190] xilinx_ml403_led_setup+0x174/0x1dc [xilinx_led]
LR [d1006188] xilinx_ml403_led_setup+0x16c/0x1dc [xilinx_led]
Call Trace:
[c0705e60] [d1006188] xilinx_ml403_led_setup+0x16c/0x1dc [xilinx_led] (unreliable)
[c0705e90] [c0040be0] sys_init_module+0x120c/0x12f8
[c0705f40] [c0002c10] ret_from_syscall+0x0/0x3c
Instruction dump:
48000819 3d20d100 39297620 913f003c 93bf0040 3c800fc0 60840001 7fe3fb78
38a00001 48000805 813e0014 7c7f1b78 <80e9004c> 3c60d100 3c80d100 80bc77c8
 
Note: After above output when I execute "lsmod" command. I observed that led device is tainted.
 
~ # lsmod
Module                  Size  Used by    Tainted: G
xilinx_led              6172  1
~ #

 
What I understood from above message is that there is a problem in registering the device in function xilinx_ml403_led_setup( ). 
 
Anyone can help me out to solve this problem?
 
Rajendra


      Bollywood news, movie reviews, film trailers and more! Go to http://in.movies.yahoo.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20090521/3797ec55/attachment.htm>


More information about the Linuxppc-dev mailing list