FlipHDK Posted March 3, 2007 Share Posted March 3, 2007 Ok, done some xcoding, got the mac address loaded on my machine correctly, same as in linux ! jalavoui, change the ifnet_setlladdress or whatever that was, i commented that then in ::start(), i uncommented the line ipw_sw_reset and ipw_nic_up. ipw_nic_up is the one which loads the eprom and associates the mac address if im not mistaking. Therefore the airport menu shows the correct mac address for the device. Now the problem is im still running under 10.4.8, due to my lazyness to downgrade to 10.4.7, and my desire to make this work under 10.4.8 if possible. As for SVN, ive never used before, but i think i could manage after some wiki exploration. So heres the kext for everyone who wants to test. Post your results! System.log and dmesg Could you upload the src? Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/40/#findComment-315580 Share on other sites More sharing options...
patatester Posted March 3, 2007 Share Posted March 3, 2007 (edited) Here you go, its the only file with modifications sorry , cant upload cpp files so i zipped it iwi3945.zip Edited March 3, 2007 by patatester Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/40/#findComment-315588 Share on other sites More sharing options...
FlipHDK Posted March 3, 2007 Share Posted March 3, 2007 (edited) patatester .kext allways gets the correct mac address, on the Network utility it is correct, and everywhere in the log's Here are the logs for his version. "Here you go, its the only file..." You didn't attach any file to that? system.txt dmesg.txt Edited March 3, 2007 by FlipHDK Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/40/#findComment-315589 Share on other sites More sharing options...
patatester Posted March 3, 2007 Share Posted March 3, 2007 patatester .kext allways gets the correct mac address, on the Network utility it is correct, and everywhere in the log's Nice, good news so far, any association with APs possible? Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/40/#findComment-315590 Share on other sites More sharing options...
FlipHDK Posted March 3, 2007 Share Posted March 3, 2007 (edited) Nope, won't connect to my unsecure 802.11-G AP. Stills some errors in the logs: Mar 3 15:51:08 FLIPHDK configd[62]: Error: WirelessGetInfo() = 88001003 Don't know what it means tho. ucode_raw->size still is 0, Theres a problem with the ucode? int darwin_iwi3945::ipw_read_ucode(struct ipw_priv *priv) { struct ipw_ucode *ucode; int rc = 0; const struct firmware *ucode_raw; const char *name = "iwlwifi-3945.ucode"; /* firmware file name */ u8 *src; size_t len; Edited March 3, 2007 by FlipHDK Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/40/#findComment-315595 Share on other sites More sharing options...
patatester Posted March 3, 2007 Share Posted March 3, 2007 ok so firmware still isnt loading, seems like it cannot find the file "iwlwifi-3945.ucode", which would explain a file size of 0 yeah well i cant find that file either, seems like were missing some firmware files... Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/40/#findComment-315598 Share on other sites More sharing options...
FlipHDK Posted March 3, 2007 Share Posted March 3, 2007 So there should be a file called that. Ive browsed throught the .kext folder and the src and all I can find to do with that is the variable *name = "iwlwifi-3945.ucode" Should this be the ipw3945.ucode.h in firmware/ ? Maybe jalavoui fogot to put the new ucode in from the intel driver. Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/40/#findComment-315601 Share on other sites More sharing options...
patatester Posted March 3, 2007 Share Posted March 3, 2007 Should this be the ipw3945.ucode.h in firmware/ ? Maybe jalavoui fogot to put the new ucode in from the intel driver. Also what im thinking. The firmware just doesnt exist... Is the ipw3945.ucode.h inside the kext file ?? Or just inside the sources Here this is what we need, if you can copy it where the old firmware file is inside the kext, then we can see if the ucode loads. iwlwifi_3945.zip Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/40/#findComment-315628 Share on other sites More sharing options...
FlipHDK Posted March 3, 2007 Share Posted March 3, 2007 Also what im thinking. The firmware just doesnt exist...Is the ipw3945.ucode.h inside the kext file ?? Or just inside the sources Here this is what we need, if you can copy it where the old firmware file is inside the kext, then we can see if the ucode loads. Just in the src, I will try moving it to various locations inside the kext and see if it loads in any of them. Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/40/#findComment-315651 Share on other sites More sharing options...
FlipHDK Posted March 3, 2007 Share Posted March 3, 2007 Ive placed that .ucode file in a few places. Didn't make any difference. In iwi3945.cpp is: #include "firmware/ipw3945.ucode.h" Is that where this file should be? with that name I think that is the old ucode. Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/40/#findComment-315684 Share on other sites More sharing options...
Pablo(2) Posted March 3, 2007 Share Posted March 3, 2007 Here is a small FAQ for iwi3945 since I have noticed people have a few questions: iwi3945 - FAQ Does the iwi3945 driver work? The current v3 of the driver doesn't work Do i need to update my version of os x to 10.4.8 to even try this driver? Nope, the iwi3945 driver requires Apple80211.framework and IO80211.kext from 10.4.7 or earlyer How do I create log's to help development of the drivers? Launch console and the following commands will create 3 log files to be uploaded the the forum. sudo -s dmesg > dmesg.txt cat /var/log/system.log > system.txt ioreg -w 0 > ioreg.txt Where can I get the required Apple80211.framework and IO80211.kext from 10.4.7? It is included in this post as a attachment How do I install the IO80211.kext? To install the kext you need to copy the IO802.11.kext to: /System/Library/Extensions/ Then in console you need to run: sudo -s chown -R root:wheel /System/Library/Extensions/IO802.11.kext chmod -R 755 /System/Library/Extensions/IO802.11.kext rm /System/Library/Extensions.* kextcache -k /System/Library/Extensions How do you install the driver? To install the kext you need to copy the iwi3945.kext to: /System/Library/Extensions/ Then in console you need to run: sudo -s chown -R root:wheel /System/Library/Extensions/iwi3945.kext chmod -R 755 /System/Library/Extensions/iwi3945.kext rm /System/Library/Extensions.* kextcache -k /System/Library/Extensions Here is a small FAQ for iwi3945 since I have noticed people have a few questions: iwi3945 - FAQ Does the iwi3945 driver work? The current v3 of the driver doesn't work Do i need to update my version of os x to 10.4.8 to even try this driver? Nope, the iwi3945 driver requires Apple80211.framework and IO80211.kext from 10.4.7 or earlyer How do I create log's to help development of the drivers? Launch console and the following commands will create 3 log files to be uploaded the the forum. sudo -s dmesg > dmesg.txt cat /var/log/system.log > system.txt ioreg -w 0 > ioreg.txt Where can I get the required Apple80211.framework and IO80211.kext from 10.4.7? It is included in this post as a attachment How do I install the IO80211.kext? To install the kext you need to copy the IO802.11.kext to: /System/Library/Extensions/ Then in console you need to run: sudo -s chown -R root:wheel /System/Library/Extensions/IO802.11.kext chmod -R 755 /System/Library/Extensions/IO802.11.kext rm /System/Library/Extensions.* kextcache -k /System/Library/Extensions How do you install the driver? To install the kext you need to copy the iwi3945.kext to: /System/Library/Extensions/ Then in console you need to run: sudo -s chown -R root:wheel /System/Library/Extensions/iwi3945.kext chmod -R 755 /System/Library/Extensions/iwi3945.kext rm /System/Library/Extensions.* kextcache -k /System/Library/Extensions Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/40/#findComment-315713 Share on other sites More sharing options...
Pablo(2) Posted March 3, 2007 Share Posted March 3, 2007 I have been trying to install the iwi3945.kext file (version 11) but the extension will not load. After restarting my laptop i get the following error messgae: "System extension cannot be used. The system extension '/system/library/extensions/iwi3945.kext' was installed improperly and cannot be used. Please try uninstalling it, or conctact the products vendor for an update.' I have been following this posting and I am a bit confused as to some of the additional files that are needed. 1) First, from what source is the apple80211.framework to be extracted ? I see that one should use version 10.4.7 or earlier but from what package ? Apples' Combo or Update ? Jas full build or update ? 2) Second, the same question for io80211family.kext. 3) Third, a file called io80211.kext is mentioned several times. Again, version 10.4.7 or earlier. However, I can not find this file in any of Apples' packages (10.4.5, 10.4.6, 10.4.7 or 10.4.8) Combo or updates. My laptop is a Toshiba Satellite A105, 2gb ddr2 sdram, 160gb hard drive, T5500 Intel Core 2 Duo. I have installed the Jas 10.4.8 build on one partition and Windows XP Media Center on a second partition. My wireless chip is Intel's 3945abg chip set. My screen looks great at 1280x800 resolution. The installed harmon/kardon speakers do not work. As per other posting I have included 3 text files that can be used for diagnoistics. Any recommendations would certainly be appreciated. Many thanks. dmesg.txt ioreg.txt system.txt Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/40/#findComment-315726 Share on other sites More sharing options...
FlipHDK Posted March 3, 2007 Share Posted March 3, 2007 I have been trying to install the iwi3945.kext file (version 11) but the extension will not load. After restarting my laptop i get the following error messgae: "System extension cannot be used. The system extension '/system/library/extensions/iwi3945.kext' was installed improperly and cannot be used. Please try uninstalling it, or conctact the products vendor for an update.' Try this: sudo -s chown -R root:wheel /System/Library/Extensions/iwi3945.kext chmod -R 755 /System/Library/Extensions/iwi3945.kext rm /System/Library/Extensions.* kextcache -k /System/Library/Extensions I have been following this posting and I am a bit confused as to some of the additional files that are needed. 1) First, from what source is the apple80211.framework to be extracted ? I see that one should use version 10.4.7 or earlier but from what package ? Apples' Combo or Update ? Jas full build or update ? 2) Second, the same question for io80211family.kext. 3) Third, a file called io80211.kext is mentioned several times. Again, version 10.4.7 or earlier. However, I can not find this file in any of Apples' packages (10.4.5, 10.4.6, 10.4.7 or 10.4.8) Combo or updates. Here: http://download.yousendit.com/C73C5187474C07BA Contains both Apple80211.framework and IO80211Family.kext from 10.4.7 Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/40/#findComment-315729 Share on other sites More sharing options...
Glauber Lobo Posted March 3, 2007 Share Posted March 3, 2007 (edited) Jalavoui, the new iwi2200 have better speed to me, about 240k/s. For my link the speed is ok (+ or - ). But, after limit of 170mb aprox of download, system, apps and dock are broken. System hang up and i cant to start any app. So, only way is restart the notebook. look like a memory problem... no release buffers, i dont know.... so close ... Edited March 3, 2007 by Glauber Lobo Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/40/#findComment-315770 Share on other sites More sharing options...
asstastic Posted March 3, 2007 Share Posted March 3, 2007 the new 3945 kext loads without crashing now however it doesn't seem to finish loading: iwi3945: disable 0 led 1 mode 0 iwi3945: darwin_iwi3945 map is zero iwi3945: todo: Freeing dmesg.txt ioreg.txt system.txt Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/40/#findComment-315777 Share on other sites More sharing options...
Glauber Lobo Posted March 4, 2007 Share Posted March 4, 2007 (edited) Jalavoui, xKazu, please, work in iwi2200.kext to leak memory (free buffer rxtx ?) fix !!!! regards Edited March 4, 2007 by Glauber Lobo Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/40/#findComment-315929 Share on other sites More sharing options...
kookaburra Posted March 4, 2007 Share Posted March 4, 2007 tried the new V6 on my T43 iwi2200,, it is loaded but the light is black... and I can't turn on or turn off. Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/40/#findComment-316011 Share on other sites More sharing options...
patatester Posted March 4, 2007 Share Posted March 4, 2007 Pablo, the 3945 driver is nowhere near ready for stable use. We're still debugging some errors. If you want to help, thats cool, otherwise you won't get this thing working right now, so don't bother... Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/40/#findComment-316029 Share on other sites More sharing options...
0&1 Posted March 4, 2007 Share Posted March 4, 2007 tried the latest iwi3945. no crash, recognised the right mac address and appeared on menubar airport icon BSSID not detected. wifi led lamp off but airport on status in network configuration of pref.panes. attached my ioreg, systemlog. Dell M1210 mifki kernel, 10.4.8(replaced io80211.kext and apple80211.framework) keep going cheers! ioreg.txt systemlog.txt Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/40/#findComment-316065 Share on other sites More sharing options...
jalavoui Posted March 4, 2007 Author Share Posted March 4, 2007 iwi3945 good to see some progress in here now that the driver has the right mac address it will be easier to fix other things the firmware i'm using is not the old ipw3945 wich requires a daemon to work - it's the latest from the intel wifi project this should work fine - i'll try to do some fixes with that to those who have the card - please try to fix it too anyone try to enable the rx qeues in nic_init()? after firmware loading the tx/rx qeues must be setup up - this will allow the driver to start receiving packets and do something usefull - i'll be looking at that i'll also need help to write missing functions (convert from linux)- i'll write an howto on that keep the good work Also what im thinking. The firmware just doesnt exist...Is the ipw3945.ucode.h inside the kext file ?? Or just inside the sources Here this is what we need, if you can copy it where the old firmware file is inside the kext, then we can see if the ucode loads. the file is inside the firmware folder you only need it in source code - it's compiled and added to the driver by code you should check the firmware loading functions - might have some bugs did you try to enable the rx in nic_init()? what happens? the driver isn't ready to do associate networks yet steps on this project will be: load and init firmware (can someone who uses this card and have a wireless button confirm if the button turns the driver on/off?) setup rx/x queues - some work on that - need to write tx queue code scanning - this will be easy associate the network - easy to do - for unsecure nets only code from iwi2200 will help a lot Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/40/#findComment-316180 Share on other sites More sharing options...
jalavoui Posted March 4, 2007 Author Share Posted March 4, 2007 i've added changes to svn for iwi3945 - add patatester mac address fix - changed ipw_read_ucode() http://iwidarwin.googlecode.com/svn/trunk/...945/iwi3945.dmg about svn i'm using a program called RapidSVN to browse/update svn for those using xcode this might help use your root account make a folder called svn in root setup RapidSVN to update the folder "svn" use address http://iwidarwin.googlecode.com/svn it's done in xcode - click on a file and use get info - svn - this allows to see the difs betwen releases Ive placed that .ucode file in a few places. Didn't make any difference. In iwi3945.cpp is: #include "firmware/ipw3945.ucode.h" Is that where this file should be? with that name I think that is the old ucode. check new version changes i've put the wrong name in the firmware file - it should be iwlwifi.fw.h because that's where i get the firmware sorry for the mess - but the code is taken from several souces about writting new iwi3945 code as you can see there are a lot of missing functions in iwi3945 i've comment the functions that need to be written from linux how this should be done: - always try to use code from base.c - it's the latest - but because of some functions use different headers - use ipw3945.c functions if base.c functions fails this is important because the whole iwi project uses common functions not present in base.c - basically try a copy/paste from linux functions into iwi3945.c / iwi3945.h and do small fixes will allow xcode to build without errors there's a lot of code to be written - who wants to help on this step? find out a bug in getSTATUS_DEV() ipw_sw_reset() is duplicated!! it's fixed and uploaded to svn Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/40/#findComment-316234 Share on other sites More sharing options...
Pablo(2) Posted March 4, 2007 Share Posted March 4, 2007 Try this: sudo -s chown -R root:wheel /System/Library/Extensions/iwi3945.kext chmod -R 755 /System/Library/Extensions/iwi3945.kext rm /System/Library/Extensions.* kextcache -k /System/Library/Extensions Many thanks for the the quick reply. I hope that I am using the right method to reply in this forum; if not, please excuse this newbie. I downloded the files that you so kindly provided. However, I noticed that the IO80211.kext file, that several folks have mentioned, was not present. I followed your instrtuctions, noting that the .framework file goes into a different directory, and still have the same problem. Have a great day. Pablo, the 3945 driver is nowhere near ready for stable use. We're still debugging some errors. If you want to help, thats cool, otherwise you won't get this thing working right now, so don't bother... Thanks for the update. I appreciate the time you took for your reply. Since I am new to this process I am a bit confused. It appears that there are some folks who have this driver working. Is there a group, or multiple groups, of system engineers that are working together on this driver and others ? I saw earlier in this posting where one person posted a set of files to try. Regards Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/40/#findComment-316279 Share on other sites More sharing options...
jalavoui Posted March 4, 2007 Author Share Posted March 4, 2007 about svn commit: to update changes to svn you'll need to setup rapidsvn to use https this is not to easy to do but comes in hande when writting new code after changing code all you need is to delete the old .dmg and to another build in xcode them commit to svn and post the link here for testing to commit to svn you'll need: - a gmail account - an account in the project - ask kazu to do that - setup rapidsvn to use https://iwidarwin.googlecode.com/svn you'll get a certificate from rapidsvn - accept it to prevent rapidsvn from keep asking the account paswsword open a console and type svn list https://iwidarwin.googlecode.com/svn --username jalavoui close and reopen rapidsvn if you don't have svn get the Subversion-1.4.3.pkg from the net and replace jalavoui for your account name Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/40/#findComment-316288 Share on other sites More sharing options...
patatester Posted March 4, 2007 Share Posted March 4, 2007 i'll also need help to write missing functions (convert from linux)- i'll write an howto on that That would be quite a good idea since im willing to help but am kind of lost in the mac world. jalavoui, im getting a kernel panic from your recent svn changes.... Ill try going through the logs, let me know if you happen to know what is causing this. Well, theres no information present in the system.log after my panics. I tried fiddling around in start() around the lines that i had uncommented, without any luck. Tried without an en0, no changes. This is most likely related to the new firmware file being present. Without the file present, there were no panics. So i remember you talking about firmware sizes... Could this be related? Maybe FlipHDK will have different results with the new dmg.. Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/40/#findComment-316292 Share on other sites More sharing options...
emymrin Posted March 4, 2007 Share Posted March 4, 2007 First of all thank you guys for your effort. Want to help you by testing iwi2200 driver but I can not get latest iwi2200.kext to work. I install it but OSX behaves as if there were no wifi device at all. I am running clean installation of 10.4.8 JAS on HP NC8230. Wireless device id is 4220, it is present in Info.plist. I have seen comments about current drivers' versions requiring IO80211Family.kext from 10.4.7. Does this mean I can not make them work on 10.4.8? Link to comment https://www.insanelymac.com/forum/topic/36976-intel-wireless-driver/page/40/#findComment-316335 Share on other sites More sharing options...
Recommended Posts