![]() ![]() |
Oct 14 2008, 09:26 PM
Post
#16
|
|
|
Group: Members Posts: 31 Joined: 29-December 07 From: Spain Member No.: 21,128 |
CODE struct usb_device *dev = pAd->pUsb_Dev; ... //struct device *udevice = &dev->dev; struct device *udevice = dev; The third, commented out one is the original. The compiler claims that there's no such member "dev" in "&dev," so I hacked it together so it compiled The code is trying to assign udevice as a pointer to the dev member of dev struct and the compiler is complaining there is no member dev in dev struct so you need to find the definition of dev struct and find why there is no dev member. The change you made assigned udevice as a pointer to whole dev struct which will overflow as soon as the code tries to use that pointer, if you find and post the definition of dev struct may be we can give you a hand (or maybe no As a stupid example the code is pointing to a book on a shelf and the compiler can not find that book while your edition in code pointed to the bookshelf itself not a single book and once compiled it brokes its back trying to pick the bookshelf |
|
|
|
Oct 15 2008, 03:15 AM
Post
#17
|
|
|
Group: Members Posts: 85 Joined: 7-April 08 Member No.: 21,602 |
CODE struct usb_device *dev = pAd->pUsb_Dev; ... //struct device *udevice = &dev->dev; struct device *udevice = dev; The third, commented out one is the original. The compiler claims that there's no such member "dev" in "&dev," so I hacked it together so it compiled The code is trying to assign udevice as a pointer to the dev member of dev struct and the compiler is complaining there is no member dev in dev struct so you need to find the definition of dev struct and find why there is no dev member. The change you made assigned udevice as a pointer to whole dev struct which will overflow as soon as the code tries to use that pointer, if you find and post the definition of dev struct may be we can give you a hand (or maybe no As a stupid example the code is pointing to a book on a shelf and the compiler can not find that book while your edition in code pointed to the bookshelf itself not a single book and once compiled it brokes its back trying to pick the bookshelf Oh. Talk about doing a Rubiks Cube ! This riddle makes Rubiks Cube look like play dough. Some people in here are going to get seriously rewarded for solving it ! thats my personal promise ! Keep it coming. we want to know how to resolve this. Gracious thanks to everyone that's helped so far. |
|
|
|
Oct 15 2008, 06:46 AM
Post
#18
|
|
![]() Group: Members Posts: 2,350 Joined: 30-July 06 Member No.: 10,575 |
CODE struct usb_device *dev = pAd->pUsb_Dev; ... //struct device *udevice = &dev->dev; struct device *udevice = dev; The third, commented out one is the original. The compiler claims that there's no such member "dev" in "&dev," so I hacked it together so it compiled The code is trying to assign udevice as a pointer to the dev member of dev struct and the compiler is complaining there is no member dev in dev struct so you need to find the definition of dev struct and find why there is no dev member. The change you made assigned udevice as a pointer to whole dev struct which will overflow as soon as the code tries to use that pointer, if you find and post the definition of dev struct may be we can give you a hand (or maybe no As a stupid example the code is pointing to a book on a shelf and the compiler can not find that book while your edition in code pointed to the bookshelf itself not a single book and once compiled it brokes its back trying to pick the bookshelf I guess I knew that much already, but when I looked up the usd_device struct, I didn't find any lines with members in it. While I'm OK at coding, all of these structs are pushing my limits. I found a line CODE struct usb_device; in the kernel headers, but I don't know where it would be defined later, or what the best way to find the definition would be. EDIT: Does the module need to have an actual kernel to link against? That may account for it claiming there's no such member... |
|
|
|
Oct 15 2008, 10:27 AM
Post
#19
|
|
|
Group: Members Posts: 474 Joined: 21-May 06 Member No.: 9,928 |
I had similar problems building zd1211 for 2.6.16.
The problem in my case was that the newer versions of the driver were for newer version so kernel (2.6.20+). I solved my trial and error while going back with the driver releases till I found one that built for 2.6.16. This may not be applicable in this case but it may be worth while having a go (but don't count on me as I gave up on the Z platform). Another thing to keep in mind ... Cx000 devices have USB OTG output that cannot drive the usb wireless card directly (that will require the full 500mA or something close to that ... that is also related to the reception quality). You will need an externally powered hub to get anywhere. Alternatively you can try a hardware mod to the usb power circuitary (like I did) but the latter will can have trouble with some kernels that are aware of the OTG capabilities of the Z hardware (I had trouble while testing 2.6.2x kernels). |
|
|
|
Oct 15 2008, 10:49 AM
Post
#20
|
|
|
Group: Members Posts: 85 Joined: 7-April 08 Member No.: 21,602 |
Come on everybody ! Please help Capn_Fish solve this problem !!
Capn_Fish, I want you to know that you have my respect and brotherly love for undertaking this for me, thank you so very much again ! |
|
|
|
Oct 15 2008, 01:09 PM
Post
#21
|
|
|
Group: Members Posts: 116 Joined: 11-December 03 From: Oldenburg, Germany Member No.: 1,155 |
I compiled the module against my kernel branch (see sig). No changes required in the USB struct. Although I had to remove one union from a struct since the compiler was complaining.
Anyway, the compiled module + modified sourcecode is attached. Let me know if that works. If it does I'll try to integrate the module into my branch.
Attached File(s)
rt73_k2wrlz_2.0.1_katastrophos.tar.bz2 ( 241.91K )
Number of downloads: 5
rt73.o.gz ( 179.97K )
Number of downloads: 12 |
|
|
|
Oct 15 2008, 03:18 PM
Post
#22
|
|
|
Group: Members Posts: 85 Joined: 7-April 08 Member No.: 21,602 |
I compiled the module against my kernel branch (see sig). No changes required in the USB struct. Although I had to remove one union from a struct since the compiler was complaining. Anyway, the compiled module + modified sourcecode is attached. Let me know if that works. If it does I'll try to integrate the module into my branch. eviLjazz, Guess what ? YOU DID IT !! YOU DID IT !! YOU DID IT !! YOU DID IT !! YOU DID IT !! YOU DID IT !! YOU DID IT !! YOU DID IT !! YOU DID IT !! YOU DID IT !! YOU DID IT !! You and Capn_Fish have made not only my day, but I think my whole year too!! WOW! your both amazing ! But, you eviLjazz, your our inspiration ! your my inspiration ! I am absolutely blown away by it all ! WOW! WOW! WOW! I really didn't think that there was anyone out there that was going to fulfill my begging pleas ! but you have fulfilled all my Z dreams and more ! I have waited SO very long for this moment... Hey ! this is beginning to sound like a love rant !! LOL! But thats how happy you have made me feel today ! when I saw the interface come up: RT73 WLAN Seriously, my heart was beating so hard, it nearly jumped out of my chest ! LOL! I really don't think I have ever been so excited in all my life ! All Card functions are now fully enabled thanks to your kindness, and your awesome minds. So, what now ? Now that I am a little calmer ... After the excitement has abated somewhat.. I have a pot of 200 Pounds UK available for this special occasion, please don't tell me your not going to accept as I I WILL NOT accept that ! I would like to share this between yourself and Capn_Fish, could you both chat and agree to how much you would both like then let me know ? note that if one of you subsists from receiving the split, the full amount of 200 UK Pounds will go to the other one of you! so, its up to you both to decide who gets what. I just want this to be as fare as possible. Yes, I really want to do this, as I feel like rolling out the Champagne today, and this is the only way I can show you both how elated I feel, so, please accept my gift to you both I require 2 paypal accounts, thats 2 EMail addresses to deposit the payments. All that remains for me to do now is to thank the following persons for their kind assistance in arriving at this point: For giving directions on encouraging me to try to do this myself: Krasimir Kazakov David Louigi And my special thanks to : Capn_Fish Who started everybody on this game and gave it a good go, your an inspiration to us Capn_Fish And finally, to the man of the moment: eviLjazz you get the gold cup and the big big deep thank you from the bottom of my heart ! FINALLY --------- eviLjazz, can you please tell us all the following: 1) What is your compiler ? and can you post it here for us all to download ? are there any special library's or add on's that have to be added to the compiler to get this to work ? if so, can you allow us to download them too ? 2) Can you package up the kernel source code you used to compile the rt73-k2wrlz against, then allow us to download it ? I ask the questions because I and I am sure, we, would all like the ability to help someone else with a similar enquiry in the future. Certainly,I would love the opportunity myself if someone requested my services in this manner as I have of you both. I have eviLjazz's modified rt73-k2wrlz-2.0.1 source code if anyone wishes to compare it to the original, if thats OK with you eviLjazz to release this modification for others to see ? And once again, peace, love and most importantly, good health be with all of you who have helped me in any way with this, Bye for now and have a lot of fun with your beautiful Zaurus Computers ! |
|
|
|
Oct 15 2008, 04:01 PM
Post
#23
|
|
|
Group: Members Posts: 85 Joined: 7-April 08 Member No.: 21,602 |
|
|
|
|
Oct 15 2008, 04:46 PM
Post
#24
|
|
![]() Group: Members Posts: 149 Joined: 25-February 06 From: Nagoya, Japan Member No.: 9,232 |
Beautiful indeed! You could almost hang the picture in an arts museum :-)
I enjoyed "watching" this nice community effort. Good work! |
|
|
|
Oct 15 2008, 09:46 PM
Post
#25
|
|
|
Group: Members Posts: 116 Joined: 11-December 03 From: Oldenburg, Germany Member No.: 1,155 |
Glad the module is working.
1) What is your compiler ? and can you post it here for us all to download ? are there any special library's or add on's that have to be added to the compiler to get this to work ? if so, can you allow us to download them too ? Actually, it is all pretty simple. The compiler I used is the default compiler used to compile the Cacko and pdaXrom kernels. Since I did not compile the build environment myself, I can't state on what special patches or add ons have been added. My mirror copy is located here: http://katastrophos.net/zaurus/kernels/compiler/ 2) Can you package up the kernel source code you used to compile the rt73-k2wrlz against, then allow us to download it ? I ask the questions because I and I am sure, we, would all like the ability to help someone else with a similar enquiry in the future. Certainly,I would love the opportunity myself if someone requested my services in this manner as I have of you both. The kernel source code is available via my site: http://katastrophos.net/zaurus/kernels/ http://katastrophos.net/zaurus/kernels/v55....20-v55.tar.bz2 You'll find all instructions on how to build a kernel image inside the tar ball in the README file. I think it is pretty well documented. Actually everything is also available via a Subversion repository. That way it is a lot more comprehensible from the change log what actually has changed compared to the original Sharp source code. SVN repository: https://svn.katastrophos.net/zaurus-kernel-2.4.20/trunk/ README file: https://svn.katastrophos.net/zaurus-kernel-...20/trunk/README To build the module sourcecode, prepare and initialize the kernel sourcecode with either the makeall.sh script as described in the README file or manually be copying the config files to the kernel source directory and then doing make oldconfig && make dep. Also set KERNDIR envvar to whereever the kernel sourcecode is located, like so: export KERNDIR=/blah/blah/kernel/linux Finally make I have eviLjazz's modified rt73-k2wrlz-2.0.1 source code if anyone wishes to compare it to the original, if thats OK with you eviLjazz to release this modification for others to see ? Sure, it's GPL and open source. Like I said, I'll also try to put the sourcecode into my kernel branch perhaps along with some other drivers. Let me know what else you would like to try. It is nice to see the community work on stuff again even if it was quiet for quite a while. |
|
|
|
Oct 15 2008, 11:57 PM
Post
#26
|
|
|
Group: Members Posts: 385 Joined: 3-December 03 Member No.: 1,038 |
QUOTE I really don't think I have ever been so excited in all my life ! I won't say the obvious. Anyway, congratulations to all of you who had, not only the power but also the will!!! |
|
|
|
Oct 16 2008, 03:44 AM
Post
#27
|
|
|
Group: Members Posts: 85 Joined: 7-April 08 Member No.: 21,602 |
Thanks evilJazz for that information, I'll have a go at zd1211b.o myself now with this and let you all know how it goes.
Not that it matters evilJazz, but what was the Linux x86 OS you used ? I guess most x86 Linux Boxes will do ? A special thanks also to : Frederic Bergero Iaan sdjf for their contributions to this project. I was so over the moon the other day I nearly forgot to mention you all too. In fact, if there is anyone else that helped here I left out, well, thank you too ! You people rock my world ! Now for something a little different.. just continuing on with the rt73 theme, I think it would be really nice if we could get the rt73 Card to give us an Internet connection in pdaXii13 from using a BASH Shell and a few BASH commands, So, how do we do this ? has anyone tried it before ? - that is get a Wifi Card other than a CF to give them an Internet connection in PdaXii13 or PdaXrom ? |
|
|
|
Oct 16 2008, 04:36 AM
Post
#28
|
|
![]() Group: Members Posts: 2,350 Joined: 30-July 06 Member No.: 10,575 |
I've had an internet connection from a USB-Ethernet card (not Wi-Fi, though). I assume it would be a similar sort of process to get yours running:
CODE ifconfig INTERFACE up
iwconfig INTERFACE mode managed essid YOURSSID key YOURKEY dhclient INTERFACE |
|
|
|
Oct 16 2008, 07:49 AM
Post
#29
|
|
|
Group: Members Posts: 85 Joined: 7-April 08 Member No.: 21,602 |
I've had an internet connection from a USB-Ethernet card (not Wi-Fi, though). I assume it would be a similar sort of process to get yours running: CODE ifconfig INTERFACE up iwconfig INTERFACE mode managed essid YOURSSID key YOURKEY dhclient INTERFACE Allelectrix replies using the SL-C1000... Ah yes, I seem to remember issuing several iwconfig commands in BT3 then finally issuing: dhcpcd -h zaurus -G 192.168.1.254 rausb0 this command fetches the clients new IP Addr from the AP where the IP address = the address of the AP on the network. Thanks for the reminder Capn_Fish :-) getting back to the rt73 module, it seems to lack a lot of sensitivity on all AP's . I find that using my D-Link DWL G122 C1 while not at home is very difficult to get a connection, at the same time my DCF-650W sees networks with ease, and easily picks them up. I will see if we can get an update to rt73-k2wrlz . The source code that I gave evilJazz was not the most update. I only selected it because I thought it was the last version of this code available for kernel 2.4 . I guess were not out of the woods yet ! It appears there is a fresher version: http://homepages.tu-darmstadt.de/~p_larbig...z-3.0.0.tar.bz2 lets all have a go at compiling this for our 2.4.20 kernel this time ! I wonder if I can follow your advice evilJazz on setting up an xcompiler ? now were going to find out ! I take it you can step in again if we don't succeed ? thanks for eveything ! |
|
|
|
Oct 16 2008, 09:54 AM
Post
#30
|
|
|
Group: Members Posts: 116 Joined: 11-December 03 From: Oldenburg, Germany Member No.: 1,155 |
Attached is the latest version 3.0.1 of the rt73 driver module from http://homepages.tu-darmstadt.de/~p_larbig/wlan/.
Enjoy.
Attached File(s)
rt73.o.gz ( 135.28K )
Number of downloads: 6
rt73_k2wrlz_3.0.1_katastrophos.tar.bz2 ( 240.7K )
Number of downloads: 2
rt73_k2wrlz_3.0.1_katastrophos.patch.txt ( 2.13K )
Number of downloads: 5 |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 21st May 2013 - 11:34 PM |