Author Topic: I Will Pay Anyone $150 Us Just Compile Aspj Rt73 Module For Zaurus  (Read 36677 times)

laan

  • Newbie
  • *
  • Posts: 31
    • View Profile
    • http://www.freesoftwarebench.org
I Will Pay Anyone $150 Us Just Compile Aspj Rt73 Module For Zaurus
« Reply #15 on: October 15, 2008, 01:26:22 am »
Quote from: Capn_Fish
Code: [Select]
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 .
SL 3100
- removed due to low performance
- removed due to gpe-calendar problems
- removed due to lack of stability
- Currently happy Cacko-lite user (Japanized)
---------------------------------- Accesories -----------------------------------------------
Sandisk - Connectplus 128 Wifi (working)
Agere - Hermes II (working)
Belkin F8T020 Bluetooth + Samsung SGH-U700(working)              
Conceptronic CONCF100 (working)
Audiovox RTM-8000 (working)
Huawei e220 HSDPA USB Modem (working with powered USB)

Allelectrix

  • Jr. Member
  • **
  • Posts: 84
    • View Profile
    • http://
I Will Pay Anyone $150 Us Just Compile Aspj Rt73 Module For Zaurus
« Reply #16 on: October 15, 2008, 07:15:35 am »
Quote from: laan
Quote from: Capn_Fish
Code: [Select]
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.
SL-C1000 running PdaXii13
Edimax EW-7318USg rt73 Chipset USB 802.11 g/b Wifi
ASPj Source Code rt73.o 2.4.20 kernel module with monitor + packet injection capability
Aircrack-ng 0.9
Miniature USB 2.0 Hub that attaches to rear of screen comfortably using velcro
2 x 500mA 12v DC - 5v DC Converters powering the USB Hub, WiFi Card and the Computer
12v DC 7Ah Sealed Lead Acid Rechargeable Cell powering the DC to DC Convertors

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
I Will Pay Anyone $150 Us Just Compile Aspj Rt73 Module For Zaurus
« Reply #17 on: October 15, 2008, 10:46:23 am »
Quote from: laan
Quote from: Capn_Fish
Code: [Select]
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: [Select]
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...
« Last Edit: October 15, 2008, 10:50:28 am by Capn_Fish »
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

louigi600

  • Sr. Member
  • ****
  • Posts: 471
    • View Profile
I Will Pay Anyone $150 Us Just Compile Aspj Rt73 Module For Zaurus
« Reply #18 on: October 15, 2008, 02:27:23 pm »
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).
Regards
David

SL-c760*  pdaXrom latest
SL-c860    pdaXrom latest ;-)
SL-c1000  pdaXrom Latest
Acer Aspire One running slackware and Clash
Toshiba AC100 running ARMedslack and Clash

*with some hardware problems but good for testing

Allelectrix

  • Jr. Member
  • **
  • Posts: 84
    • View Profile
    • http://
I Will Pay Anyone $150 Us Just Compile Aspj Rt73 Module For Zaurus
« Reply #19 on: October 15, 2008, 02:49:21 pm »
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 !
SL-C1000 running PdaXii13
Edimax EW-7318USg rt73 Chipset USB 802.11 g/b Wifi
ASPj Source Code rt73.o 2.4.20 kernel module with monitor + packet injection capability
Aircrack-ng 0.9
Miniature USB 2.0 Hub that attaches to rear of screen comfortably using velcro
2 x 500mA 12v DC - 5v DC Converters powering the USB Hub, WiFi Card and the Computer
12v DC 7Ah Sealed Lead Acid Rechargeable Cell powering the DC to DC Convertors

eviLjazz

  • Full Member
  • ***
  • Posts: 116
    • View Profile
    • http://katastrophos.net/andre/blog
I Will Pay Anyone $150 Us Just Compile Aspj Rt73 Module For Zaurus
« Reply #20 on: October 15, 2008, 05:09:16 pm »
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.
« Last Edit: October 15, 2008, 05:09:57 pm by eviLjazz »
Sharp Zaurus SL-C3200/36GB running Cacko : Fujitsu LifeBook U2010/64GB SSD running Win7 : Nokia N900 (yes, flame me.) Blog : Twitter : Trac
Quasar Media Player : QScrobbler : Enhanced audio driver and mixer for C1000/C3x00 : Unified Sharp/Tetsu/Cacko/pdaXrom Kernel 2.4.20 branch : My packages : Sources

Allelectrix

  • Jr. Member
  • **
  • Posts: 84
    • View Profile
    • http://
I Will Pay Anyone $150 Us Just Compile Aspj Rt73 Module For Zaurus
« Reply #21 on: October 15, 2008, 07:18:36 pm »
Quote from: eviLjazz
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 !   I am completely ecstatic !

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 !  
SL-C1000 running PdaXii13
Edimax EW-7318USg rt73 Chipset USB 802.11 g/b Wifi
ASPj Source Code rt73.o 2.4.20 kernel module with monitor + packet injection capability
Aircrack-ng 0.9
Miniature USB 2.0 Hub that attaches to rear of screen comfortably using velcro
2 x 500mA 12v DC - 5v DC Converters powering the USB Hub, WiFi Card and the Computer
12v DC 7Ah Sealed Lead Acid Rechargeable Cell powering the DC to DC Convertors

Allelectrix

  • Jr. Member
  • **
  • Posts: 84
    • View Profile
    • http://
I Will Pay Anyone $150 Us Just Compile Aspj Rt73 Module For Zaurus
« Reply #22 on: October 15, 2008, 08:01:15 pm »
The Beautiful Sight

 [ Invalid Attachment ]
SL-C1000 running PdaXii13
Edimax EW-7318USg rt73 Chipset USB 802.11 g/b Wifi
ASPj Source Code rt73.o 2.4.20 kernel module with monitor + packet injection capability
Aircrack-ng 0.9
Miniature USB 2.0 Hub that attaches to rear of screen comfortably using velcro
2 x 500mA 12v DC - 5v DC Converters powering the USB Hub, WiFi Card and the Computer
12v DC 7Ah Sealed Lead Acid Rechargeable Cell powering the DC to DC Convertors

Frederic Bergeron

  • Full Member
  • ***
  • Posts: 150
    • View Profile
    • http://
I Will Pay Anyone $150 Us Just Compile Aspj Rt73 Module For Zaurus
« Reply #23 on: October 15, 2008, 08:46:00 pm »
Beautiful indeed!  You could almost hang the picture in an arts museum :-)

I enjoyed "watching" this nice community effort.

Good work!
toMOTko Flashcard Project
SL-C1000 Sharp ROM

eviLjazz

  • Full Member
  • ***
  • Posts: 116
    • View Profile
    • http://katastrophos.net/andre/blog
I Will Pay Anyone $150 Us Just Compile Aspj Rt73 Module For Zaurus
« Reply #24 on: October 16, 2008, 01:46:30 am »
Glad the module is working.

Quote from: Allelectrix
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/

Quote from: Allelectrix
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

Quote from: Allelectrix
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.
Sharp Zaurus SL-C3200/36GB running Cacko : Fujitsu LifeBook U2010/64GB SSD running Win7 : Nokia N900 (yes, flame me.) Blog : Twitter : Trac
Quasar Media Player : QScrobbler : Enhanced audio driver and mixer for C1000/C3x00 : Unified Sharp/Tetsu/Cacko/pdaXrom Kernel 2.4.20 branch : My packages : Sources

zmiq2

  • Sr. Member
  • ****
  • Posts: 383
    • View Profile
    • http://
I Will Pay Anyone $150 Us Just Compile Aspj Rt73 Module For Zaurus
« Reply #25 on: October 16, 2008, 03:57:53 am »
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!!!
sl-c750, archos av580, socket cf [bt, wifi, modem], noname cf lan, audiovox rtm800 gsm-gprs cf, rom: sharp -> oz3.5.3 -> cacko -> oz3.5.4.1

Allelectrix

  • Jr. Member
  • **
  • Posts: 84
    • View Profile
    • http://
I Will Pay Anyone $150 Us Just Compile Aspj Rt73 Module For Zaurus
« Reply #26 on: October 16, 2008, 07:44:08 am »
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 ?
SL-C1000 running PdaXii13
Edimax EW-7318USg rt73 Chipset USB 802.11 g/b Wifi
ASPj Source Code rt73.o 2.4.20 kernel module with monitor + packet injection capability
Aircrack-ng 0.9
Miniature USB 2.0 Hub that attaches to rear of screen comfortably using velcro
2 x 500mA 12v DC - 5v DC Converters powering the USB Hub, WiFi Card and the Computer
12v DC 7Ah Sealed Lead Acid Rechargeable Cell powering the DC to DC Convertors

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
I Will Pay Anyone $150 Us Just Compile Aspj Rt73 Module For Zaurus
« Reply #27 on: October 16, 2008, 08:36:12 am »
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: [Select]
ifconfig INTERFACE up
iwconfig INTERFACE mode managed essid YOURSSID key YOURKEY
dhclient INTERFACE
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

Allelectrix

  • Jr. Member
  • **
  • Posts: 84
    • View Profile
    • http://
I Will Pay Anyone $150 Us Just Compile Aspj Rt73 Module For Zaurus
« Reply #28 on: October 16, 2008, 11:49:01 am »
Quote from: Capn_Fish
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: [Select]
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 !
SL-C1000 running PdaXii13
Edimax EW-7318USg rt73 Chipset USB 802.11 g/b Wifi
ASPj Source Code rt73.o 2.4.20 kernel module with monitor + packet injection capability
Aircrack-ng 0.9
Miniature USB 2.0 Hub that attaches to rear of screen comfortably using velcro
2 x 500mA 12v DC - 5v DC Converters powering the USB Hub, WiFi Card and the Computer
12v DC 7Ah Sealed Lead Acid Rechargeable Cell powering the DC to DC Convertors

eviLjazz

  • Full Member
  • ***
  • Posts: 116
    • View Profile
    • http://katastrophos.net/andre/blog
I Will Pay Anyone $150 Us Just Compile Aspj Rt73 Module For Zaurus
« Reply #29 on: October 16, 2008, 01:54:03 pm »
Attached is the latest version 3.0.1 of the rt73 driver module from http://homepages.tu-darmstadt.de/~p_larbig/wlan/.
Enjoy.
« Last Edit: October 16, 2008, 01:55:17 pm by eviLjazz »
Sharp Zaurus SL-C3200/36GB running Cacko : Fujitsu LifeBook U2010/64GB SSD running Win7 : Nokia N900 (yes, flame me.) Blog : Twitter : Trac
Quasar Media Player : QScrobbler : Enhanced audio driver and mixer for C1000/C3x00 : Unified Sharp/Tetsu/Cacko/pdaXrom Kernel 2.4.20 branch : My packages : Sources