Help - Search - Members - Calendar
Full Version: Intel Wireless 2100, 2200bg, 2915bg, 3945abg, 4965agn
InsanelyMac Forum > OSx86 Project > Hardware and Drivers > LAN and Wireless
Pages: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61
arob92
cmon 2200!!!
Beeve
Wow guys, great work. I've just started trying out the OSx86 project. I've been exicted to get it running, but without wireless, it's not very useful for me yet. I'm willing to help out however I can, but I'm very new to OS X, so I'll need a little guidance. I think I speak for everyone when I say your work is very much appreciated.

~Beeve
BlackCH
Tryed the kext from post 101. The card is still recognized as ethernet, no conectivity, networkSelector doesnt do much, just keep pressing '1'... The system freezed at some point, and there were some glitches on the GIU I didnt have before. here are the dmesg, ioreg, and sys log in a zip.
Good work anyway!

I just bought a dell 1390 (broadcom chip) mini pci e. so I will sale my 3945, but I'll help to test as long as I still have it.
TNW
iwi220 and iwi3945 for leo commited
Nikolaos
QUOTE(TNW @ Feb 8 2008, 12:43 PM) *
iwi220 and iwi3945 for leo commited


At the SVN? Is it a working one?
TNW
maybe iwi2200 but the 3945 is still in developement ...
I think I will start a new driver from the latest linux driver as the ipw2200
I don't know if I have the skills for :/
jalavoui : what should I do ?
Ethan021
jalavoi, the good job on these you guys are really doing good on it well I have a dv6000 and an 3945 and I can test for you guys if younwant I aslo have some knowledge in coding pm me if you need help. Peace and keep the work up guys!

-ethan
arob92
is 2200 working now?
jalavoui
QUOTE(Symuc @ Feb 8 2008, 12:55 AM) *
Right now they compile, but I'm coming up with compatability routines, for example a function called pci_free_consistent that actually calls IOFreeContiguous. So far, with the exception of replacing all instances like skb->data with a call to skb_data() (then writing a function skb_data()) and stripping the Linux-specific include files, it is working entirely without modification.

the IOFreeContiguous() gives me firmware errors in iwi2200 replace it from my last post
you can write the skb_xxx functions for mac os - this will make the linux code run with less modifications. in iwi2200.h you'll find more skb converted functions
you're going in the right direction - converting some linux functions makes the code much easier to work
what version of iwl3945 are you using?
TNW is working with iwl3945 1.0 and ioethernetcontroller
you're working with apple80211
i think you should commit your code to the svn trunk to a folder called "iwi3945-airport10.5

QUOTE(TNW @ Feb 8 2008, 12:50 PM) *
I think I will start a new driver from the latest linux driver as the ipw2200

i think symuc as started ported from latest linux source (with apple80211)
you should wait for him to commit is version of iwl3945
this will save you from having to convert all linux code again and will allow you to use the same linux source
i like your version with ioethernetcontroller - do you plan do keep it or move to apple80211?

at this time iwi3945 can scan for networks
but the hard part will be to write code for the rx/tx handle.
TNW, you can try to use the new mac80211 functions for rx/tx - this will be hard to do
or you can try to use the ieee80211 rx/tx functions from iwi2200 - they're stable

have you fixed the anoying iwl_send_cmd() bug?
you need to remove
if (rc==HOST_COMPLETE_TIMEOUT) priv->status &= ~STATUS_HCMD_ACTIVE;//hack
otherwise the commands will always be send
in iwl_rx_handle() you have
reclaim=0;
i think this can give a bug - remove it and check
check iwl_rx_queue_alloc() - remove IOMallocContiguous()
if you don't use IOMallocContiguous() remove all IOFreeContiguous()

can you commit iwi2200.dmg to iwi2200-osx10.5 ? we need to have people testing the driver
i think with some good logs you can make a few changes in the source code to make it work
you can check if iwi2200 loads in your computer by adding your card id to info.plist - just remove it before committing to svn

you should add in iwi3945-osx10.5 svn tree the property "svn:ignore build" this will prevent the build folders to be committed to the svn tree. i found strange files there - do you need stdio.h and _types.h?
if you move nsgui from iwi2200 take a look at the run script in xcode. you also need to add new folders (iwi3945) to allow it to build iwi3945.dmg


we need people with 2100 and 4965 cards to join iwidarwin
i'd like to have all drivers working in mac os x 10.5 smile.gif

Ethan021,
if you have xcode and like to help please do it
we need more developers to make this work
TNW
OK,
I am at the point where the driver can load , but when i enable interupts there are lot of errors ...

and yesterday the driver worked(sometimes...) but I changed something and now ... KP or HW-errors .
If someone can explain me why I have HW-error or SW_error I tested everything you explain but that didn't work :/
TheMarine
QUOTE(TNW @ Feb 8 2008, 01:25 PM) *
OK,
I am at the point where the driver can load , but when i enable interupts there are lot of errors ...

and yesterday the driver worked(sometimes...) but I changed something and now ... KP or HW-errors .
If someone can explain me why I have HW-error or SW_error I tested everything you explain but that didn't work :/



Could you post the code you're using right now? And... "it worked"? What do you mean by that? I think you're making a backup of every modification you do to the driver, don't you? Well, i've just bought (finally) a laptop with the 3945. I can also help with development, i don't have any experience in driver dev, but i do on coding.

Thanks in advance ~

P.S: You're going waaaaaay fast. But don't hurry. Keep up the good work, TNW, Symuc and jalavoui.
TNW
not fully working but I had the geography scan ,...

you can dev with the svn code

now I have a KP on iwl_hw_tx_queue_init() so I don't have to touch this function
so the init isn't corect ..and I have only one MAC OS X so I can't debug what I do :/

If you want any help I can help you on jabber ,AIM , or msn just pm me..
niceppl
again... whole world is counting on u guys lol....P.S I worship u guys...
Joeandmat
but the card is recognized like an airport?
TNW
no the card isn't reconized as an aiport card is the last problem ...
if the driver works like an ethernet , 2 or 3 days are required to make it working as a airport !
arob92
i installed the 2200 svn and it gave me a kp so i booted into safe mode and deleted it thorugh terminal........but now when i boot into leo my wallpaper is changed to a light blue and there is a question mark instead of one of the applications in my dock....anyone know what the problem is?
jalavoui
TNW,
i'll look at svn code again
can you post system.log ?

nop - svn code is the same. have you commit your changes?

you still have lots if IOFreeContiguous() - this can give kp - just remove them
just remebered something important:
i've add to code lots of
memset(...)
this was because of some firmware errors. see, for example, the memset in iwl_send_cmd_pdu()
but i think you can remove some of them - maybe this causes some bugs in code

it's better to look at iwlwifi-1.0.0-1 souce and put the code like it was before
sorry - i should remeber this before

i also remeber that using diferrent firmware versions make the driver give some bugs - have you tryed all firmware versions? - this might help

you can try the symuc's method at start() - the code is in the other thread. but i think this is not the problem.

the problem in iwl_isr() should go away. you need to enable it so the driver can work
this will allow to find out where iwl_isr() is breaking
maybe after a scan it tries to associate to a network. but there's no code for association yet.
this will take some time to fix...

enable this line:
//IOLog("outputPacket\n");
if the driver tries to send packets it will fail because there's no code for it to work
this can give some firmware errors

iwi2200/iwi3945
we need people posting logs

Symuc, TNW
i've used code from mac80211-10.0.0
maybe it's better to find a good version to work with
the problem is that recent versions goes to deep into linux and need several changes in iwi3945 code
this will be the next step on developing iwi3945 and can be hard to fix
maybe we can use some of ieee80211 iwi2200 code
Symuc
I've checked in what code I've written (and accidentally checked in the build directory, too. Oops.)

Many of the functions are stubs, and there are about 50 more that need to be generated. Some of them actually work. I've incorporated code from the iwi2200 drivers, from the Linux tree, and from sample programs.

The compatibility.cpp file contains OS X adaptations to the Linux functions that can interact with the OS X side of things. It uses definitions provided in the define.h file, such as for the io80211 structs. Since the 3945 and 4965 drivers are so similar, once the 3945 is working it should be trivial to adapt the 4965 code to work as well. Tracking changes should be easier, too.
jalavoui
well smile.gif

i'm going to put iwi4965 on the svn "old" folder

good the see iwidarwin team here

just give me some time to look at the source code

Symuc, TNW
i'll update iwidarwin page and add link to new .dmg
is that ok?
TNW
hey hey good work
jalavoui
this will prevent the "build" folder to be uploaded to the svn tree
can you guys fix this in next release?

TNW,

maybe you'd like to use iwl-1.2.23 source from symuc's?
i think it's quite easy to use this sources
Ethan021
orry to be a noob here but what is Xcode and how can I help?
TNW
Yes i will take a look
by the way fine source ,Symuc
jalavoui
QUOTE(Ethan021 @ Feb 8 2008, 09:16 PM) *
orry to be a noob here but what is Xcode and how can I help?

smile.gif

you need xcode to build the source code and test the drivers
get it from apple (i think it's about 1GB download)

we'll be posting new versions for testing
arob92
i just downloaded xcode....what can i do to help for 2200
jalavoui
http://code.google.com/p/iwidarwin/

i've updated iwidarwin with links to latest svn test versions

please note that some versions aren't available yet for downloading

symuc, tnw
can you commit a .dmg - we have lot's of people here for testing
there's some bugs related with the "build" folder that doesn't allow to update the "trunk" - please fix it
smile.gif

TNW, the only dmg for 10.5 at this time is your version. can you build a iwi2200.dmg and commit?

arob92, you can try to build it and find some bugs - post test versions/result here
TNW
I'm not sure but ipw2200 has a dmg and Symuc driver is the same as last for the moment ...
jalavoui
i've take a look at the mac80211 code - don't really like it

what do you think about it? Symuc, TNW
Symuc
I assume you're referring to the iwl3945-airport10.5 code I just checked in. The goal is to ultimately have a start() and probe() routine that simply calls the corresponding start() or probe() routine in iwl3945-base.c. Right now I'm working on getting the glue together. Do you not think it's a good approach, then? Or would you rather less emphasis be placed on keeping the number of patches to upstream drivers down to a minimum?
elpelas
whats up with the 4965 for leo?
Joeandmat
Hi symuc! i'm happy that you are here to do the iwi3945 driver with TNW and jalavoui! biggrin.gif
Entire world thanks you guys for your hard work!
Thank YOU!
Tereska
Hi, I've downloaded sources from SVN (iwi2200 Leo version)

I have 3 errors when XCode3 is compiling project (all from networkSelector):

(in structure sockaddr_ctl definition:)
/usr/include/sys/kern_control.h:138: error: 'u_char' does not name a type
/usr/include/sys/kern_control.h:139: error: 'u_char' does not name a type


/Users/tereska/Documents/iwi2200X/networkSelector/2200/net/ieee80211.h:1527: error: 'OSSwapLittleToHostInt16' was not declared in this scope
(which is defined in defines.h --> OSByteOrder.h)

There are some other errors but they are child of errors above.

I must change u_char to different data type? (which one?) and why is OSSwapLittleToHostInt16 not declared function (in which scope is defined)?

After compilation I have DMG file (only drivers without networkSelector and NSGui)

Tonight I will check these drivers. I could only check if LEO will hang after installation and after reboot. If that will be OK i try with networkSellector from other packages from iwiProjectSite.

PS I have KALY LEO 10.5.1
TNW
thank's ^^ I comited a correct build some includes werre missing wink.gif
LordNite
Today many ppl r here!!! LordNite, Jurek, Tereska, TNW, wonderboy2313, asimo, hendrix06, Emranit, arob92, jl7854, realityiswhere, Hugo91, Zi_Instigator, RatedR!, bidyut hehehe
WHat guys is waiting for iwi3945 that works ?
xghost
I tested the iwi2200.dmg posted by Tereska.
Since NetworkSelector and nsGUI are not included nothing really happened, but at least there was no kernel panic or something like that.
Leo booted smooth as ever and I couldn't recognize any other problems.

btw my version is kalyway leopard 10.5.1 efi
Tereska
Thanks. now build is fine.
arob92
i am waiting for the 2200 to work smile.gif does anyone know how far along it is???
OldSchool-c-
Tested TNW version of iwi2200.

No KP but when i try to switch on the device, nsGUI hang and don't switch on anything.

But i thing that the way is right..... smile.gif

Thanks for all yours work...
TNW
Can you post the log please ? thank's
Tereska
I've also tested TNW build but extension don't want to load message pops up after reboot.
I've cp kext file to System/Library/Extensions then diskutil repairPermissions / and delete extensions cache then reboot...

I've builded 592 repo from SVN and the results are the same.

What could be wrong?
austinsnyc
Is there anything that us that have the Intel 3495 can do to help this process go any faster? I am still offering to allow a dev to SSH or screen share into my system or I post any logs you might need. I of course have Xcode and all other Dev tools already installed on my laptop! Keep up the great work guys!!!
MrZeroo00
Kernel Panic using iwi3945 IOEthernet latest DMG.
TNW
Hi ,
I searched over the internet and found some good adresse and some fonction for the new version :
http://linuxwireless.org/en/developers/Doc.../net/mac80211.h

and for some functions in compatibility.cpp:

void spin_lock_irqsave(spinlock_t *lock, int fl) {
       //mask interupts
//local_irq_save(fl) on linux
/*
#define local_irq_save(x) ({ __save_flags(x); __cli(); })
#define __save_flags(x) asm volatile ("movew %%sr,%0":"=d" (x) : :
"memory")
#define __cli() asm volatile ("oriw #0x0700,%%sr": : : "memory")
*/
       spin_lock(lock);
   return;
}

void spin_unlock_irqrestore(spinlock_t *lock, int fl) {
       //unmask interups
/*#define __restore_flags(x) asm volatile ("movew %0,%%sr": :"d" (x) :
"memory")*/
       spin_unlock(lock);
   return;
}

void spin_lock_init(spinlock_t *lock) {
/*#define spin_lock_init(x) do { (x)->slock = 0; } while(0)*/
   return;
}


void spin_lock(spinlock_t *lock) {
       OSSpinLockLock(lock->lock);
   return;
}

void spin_unlock(spinlock_t *lock) {
       OSSpinLockUnlock(lock->lock);
   return;
}

void spin_lock_bh( spinlock_t *lock ) {
       //don't know
http://hira.main.jp/wiki/pukiwiki.php?spin...bh()%2Flinux2.6
   return;
}void spin_lock(spinlock_t *lock) {
       OSSpinLockLock(lock->lock);
   return;
}

void spin_unlock(spinlock_t *lock) {
       OSSpinLockUnlock(lock->lock);
   return;
}

void spin_lock_bh( spinlock_t *lock ) {
       //this one is very strange
http://hira.main.jp/wiki/pukiwiki.php?spin...bh()%2Flinux2.6
   return;
}

int init_timer(struct timer_list *timer) {
   return IOPCCardAddTimer(timer);;
}

I hope that will help you
OldSchool-c-
QUOTE(TNW @ Feb 9 2008, 05:47 PM) *
Can you post the log please ? thank's


I come in my house just now...... but strange...... i have try to reinstall the drive and now it works !!!!

Pheraps i have made some mistake before.... i don't know.

Now i'm connected to my Linksys router and all is ok, just a little long time to take the ip (DHCP Mode of course).

I continue to test with wep/wpa.....

Many thanks for now...
LordNite
I have been test last iwi3945 version, but not sucess. The .dmg installs, reboots ok, but network selector don´t find anything...
myself108
Hi, I just tried to test the iwi4965 with 10.5.1 and with no luck. I get a kernel panic right after I press the restart button on the installer.
arob92
QUOTE(OldSchool-c- @ Feb 10 2008, 03:17 AM) *
I come in my house just now...... but strange...... i have try to reinstall the drive and now it works !!!!

Pheraps i have made some mistake before.... i don't know.

Now i'm connected to my Linksys router and all is ok, just a little long time to take the ip (DHCP Mode of course).

I continue to test with wep/wpa.....

Many thanks for now...


2200 works?!?!?! what do i have to do to make it work??? i downloaded TNW's folder and it came with the nsGui, iwi2200.kext and networkselector......where do i have to put each one to make them work???
trix985
QUOTE(OldSchool-c- @ Feb 10 2008, 03:17 AM) *
I come in my house just now...... but strange...... i have try to reinstall the drive and now it works !!!!

Pheraps i have made some mistake before.... i don't know.

Now i'm connected to my Linksys router and all is ok, just a little long time to take the ip (DHCP Mode of course).

I continue to test with wep/wpa.....

Many thanks for now...


Hi OldSchool, I'm a newbie...I've downloaded the iwi2200.zip file, can you please tell me what i have to do now? Till now I have experience only with Linux, it's the first time with an Osx system. Thanx
LordNite
nsGUI works with iwi3945? Anybody can post it for download?
emrcan
Don't working 3945 mellow.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.