From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from n12-vm0.bullet.mail.in.yahoo.com (n12-vm0.bullet.mail.in.yahoo.com [202.86.4.246]) by ozlabs.org (Postfix) with SMTP id 90781DE0A6 for ; Thu, 21 May 2009 12:01:49 +1000 (EST) Message-ID: <246420.44978.qm@web94801.mail.in2.yahoo.com> Date: Thu, 21 May 2009 07:18:01 +0530 (IST) From: patel rajendra Subject: problem in registering the device while inserting the kernel module To: linuxppc-dev@ozlabs.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1236608959-1242870481=:44978" List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --0-1236608959-1242870481=:44978 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi Members of linuxppc, =A0 I'm working on XUPV2P board with Virtex II Pro FPGA device. =A0 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 sourc= e code, because I don't feel any change is required. =A0 On XUP board when I run "insmod xilinx_led.ko" command on my target board, = I got following message. =A0 # insmod xilinx_led.ko Oops: kernel access of bad area, sig: 11 [#1] PREEMPT NIP: d1006190 LR: d1006188 CTR: 00000000 REGS: c0705db0 TRAP: 0300=A0=A0 Not tainted=A0 (2.6.23xlnx) MSR: 00029030 =A0 CR: 24000024=A0 XER: 00000000 DEAR: 0000004c, ESR: 00000000 TASK =3D c04c63d0[186] 'insmod' THREAD: c0704000 GPR00: d1006188 c0705e60 c04c63d0 00000000 000000d0 00000001 00000000 c0220= ae0 GPR08: c006c60c 00000000 00000001 c04553f0 026f4bac 100b4260 d1003288 d1007= 668 GPR16: d1003288 d1003238 0000fff1 0000fff2 0000004c 00000000 d100762c c003e= 94c GPR24: d1002e02 00000018 d1002000 00000019 d1000000 d1007598 d10077c8 00000= 000 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] (unre= liable) [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 =A0 Note: After above output when I execute "lsmod" command. I observed that le= d device is tainted. =A0 ~ # lsmod Module=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Size=A0 Used by= =A0=A0=A0 Tainted: G xilinx_led=A0=A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0=A0=A06172=A0 1 ~ # =A0 What I understood from above message is that there is a problem in register= ing the device in function xilinx_ml403_led_setup( ).=20 =A0 Anyone can help me out to solve this problem? =A0 Rajendra=0A=0A=0A Bollywood news, movie reviews, film trailers and mor= e! Go to http://in.movies.yahoo.com/ --0-1236608959-1242870481=:44978 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
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 succes= sfuly 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 bo= ard, I got following message.
 

# insmod xilinx_led.ko

Oops: kernel access of bad area, sig: 11 [#1]<= o:p>

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 =3D c04c63d0[186] 'insmod' THREAD: c0704000<= o:p>

GPR00: d1006188 c0705e60 c04c63d0 00000000 000000= d0 00000001 00000000 c0220ae0

GPR08: c006c60c 00000000 00000001 c04553f0 026f4b= ac 100b4260 d1003288 d1007668

GPR16: d1003288 d1003238 0000fff1 0000fff2 000000= 4c 00000000 d100762c c003e94c

GPR24: d1002e02 00000018 d1002000 00000019 d10000= 00 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_se= tup+0x16c/0x1dc [xilinx_led] (unreliable)=

[c0705e90] [c0040be0] sys_init_module+0x120c/0x12= f8

[c0705f40] [c0002c10] ret_from_syscall+0x0/0x3c

Instruction dump:

48000819 3d20d100 39297620 913f003c 93bf0040 3c80= 0fc0 60840001 7fe3fb78

38a00001 48000805 813e0014 7c7f1b78 <80e9004c&= gt; 3c60d100 3c80d100 80bc77c8

 

Note: After above output when I execute "lsmod" command. I observed tha= t led device is tainted.

 

~ # lsmod

Module &nb= sp;            =     Size  Used by    Taint= ed: G

xilinx_led = ;      &n= bsp;      6172  1

~ #

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

=0A=0A=0A
Cricket on your mind? Visit the ultimate cricket website. Enter now! --0-1236608959-1242870481=:44978--