rt2x00.serialmonkey.com

Support forum for the rt2x00 project
It is currently Mon May 20, 2013 5:40 am

All times are UTC


Forum rules


Important: Read Project restructuring announcement regarding the pending removal of the legacy drivers from this project.



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 
Author Message
PostPosted: Thu Feb 19, 2009 2:41 am 
Offline

Joined: Thu Feb 19, 2009 2:16 am
Posts: 3
Hi, I'am using the rt73 driver. The complie and loading are ok.but when I pluge the usb,the kernel will crash. My kernel is "inux freescale 2.6.24.6 #72 PREEMPT Wed Feb 18 16:08:31 CST 2009 ppc unknown". Some wrong information are given:

[ 23.387817] rt73: init
[ 23.390569] usbcore: registered new interface driver rt73
[ 26.410408] usb 1-1: new high speed USB device using fsl-ehci and address 2
[ 26.690440] usb 1-1: configuration #1 chosen from 1 choice
[ 26.696600] rt73: idVendor = 0x148f, idProduct = 0x2573
[ 26.811505] <1>Unable to handle kernel paging request for instruction fetch
[ 26.850280] Faulting instruction address: 0x00000004
[ 26.855614] Oops: Kernel access of bad area, sig: 11 [#1]
[ 26.860940] PREEMPT MPC5121 ADS
[ 26.864069] Modules linked in: rt73
[ 26.867550] NIP: 00000004 LR: 00000007 CTR: c01d1828
[ 26.872507] REGS: df8c1bd0 TRAP: 0400 Not tainted (2.6.24.6)
[ 26.878415] MSR: 20009032 <EE,ME,IR,DR> CR: 42282084 XER: 20000000
[ 26.884764] TASK = df8bf3c0[91] 'khubd' THREAD: df8c0000
[ 26.889890] GPR00: 00000007 df8c1c80 df8bf3c0 00000004 c4df8220 dfb91100 00001c80 00000001
[ 26.898237] GPR08: 00000008 dfb91120 c4a01000 df8c1be0 48282084 01300008 c0400000 c0400000
[ 26.906583] GPR16: 00000000 c0380000 dfb73dc0 dfaa5804 00000001 c03f0000 c03f8330 dfba60a8
[ 26.914930] GPR24: df0d0000 c0420000 df8c1c68 df8c1c98 00000000 df0e0000 df0c0000 df0c0000
[ 26.923449] NIP [00000004] 0x4
[ 26.926492] LR [00000007] 0x7
[ 26.929449] Call Trace:
[ 26.931883] [df8c1c80] [00000007] 0x7 (unreliable)
[ 26.936664] Instruction dump:
[ 26.939621] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX
[ 26.947358] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX
[ 26.960215] ---[ end trace 0be86c8c4f33a8f5 ]---
Are the kernel options wrong? or any other reasons?


Top
 Profile  
 
PostPosted: Thu Feb 19, 2009 6:04 pm 
Offline

Joined: Sun Jun 26, 2005 10:26 am
Posts: 1685
Location: Marseille, France
Hello,
Since you're using a PPC, it may be an endianess problem. Vern, and other looked into this issue but I do not know if the driver is now 100% big endian proof (and that is only a supposition). How did you compile the driver? Did you use the very latest CVS tarball?

Regards,
Romain

_________________
RutilT developer


Top
 Profile  
 
PostPosted: Fri Feb 20, 2009 2:00 am 
Offline

Joined: Thu Feb 19, 2009 2:16 am
Posts: 3
Thanks for your replay!
I known that the PPC is big endia,so I add -D_BIG_ENDIAN option when I cross-complie. Also I set the ARCH=powerpc and CROSS_COMPLIE={ppc-gcc}path.Everything seems to be ok.
After that,I track the driver,and I find that the crash happens when the driver read or write the register!
The driver version is rt73-cvs-2009011306.


Top
 Profile  
 
PostPosted: Fri Feb 20, 2009 4:45 pm 
Offline
User avatar

Joined: Sat Jan 14, 2006 6:29 pm
Posts: 897
Location: Carlsbad, California
Cross compile? What happens if you compile *on* a PPC? If you do so, you should not need to provide anything special on the command line.
Quote:
Also I set the ARCH=powerpc and CROSS_COMPLIE={ppc-gcc}path
Hate to zap your English, but if you literally say "CROSS_COMPLIE", the definition will be provided, but nothing called "CROSS_COMPILE" will.

Thanks,

_________________
Yr Hmbl Obt Svt & c
Bryan - In favor of Big Oil. Big fan of General Grievous.


Top
 Profile  
 
PostPosted: Sat Feb 21, 2009 1:48 am 
Offline

Joined: Thu Feb 19, 2009 2:16 am
Posts: 3
I am sorry i didn't explain clearly.My PPC is an embeded system,so I must cross complie on a X86 system.
At the same time, I realize i should do more homework about english if i want my problem to be resolved successfully! :lol: :lol:


Top
 Profile  
 
PostPosted: Tue Feb 24, 2009 4:26 pm 
Offline
User avatar

Joined: Sat Jan 14, 2006 6:29 pm
Posts: 897
Location: Carlsbad, California
Hi rengzhe2005,

I'm afraid in my case better English won't help.

We have gotten the driver to the point where it does build and run on an iMac G3; so basic big-endian operaion on a PPC should be OK.

I'm not an expert on cross compiling, so hopefully someone with more knowledge of those requirements than I have can help.

Thanks,

_________________
Yr Hmbl Obt Svt & c
Bryan - In favor of Big Oil. Big fan of General Grievous.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group