MikeMax
Apr 18 2008, 02:22 PM
QUOTE(mlazy @ Apr 18 2008, 04:07 PM)

Doctadre, thanks so much for the support. no need to paypal me, if you would like to donate, please send anythng to Jalavoui. Thanks!!fascinating, I wonder why you don't get these errors like I do:
Apr 18 09:12:26 Sony kernel[0]: error iwl3945: U iwl3945_pci_probe pci_resource_len = 0x00000008Apr 18 09:12:26 Sony kernel[0]: error iwl3945: U iwl3945_pci_probe pci_resource_base = 0x35d4c000
mlazy, i used your last provided iwi3965.kext ... and in system.log i see "cannot resolve dependencies for kernel extension iwi3965.kext" ... (i have previously repaired permissions)
(iatkos 10.5.2)
mlazy
Apr 18 2008, 02:34 PM
QUOTE(MikeMax @ Apr 18 2008, 10:22 AM)

mlazy, i used your last provided iwi3965.kext ... and in system.log i see "cannot resolve dependencies for kernel extension iwi3965.kext" ... (i have previously repaired permissions)
(iatkos 10.5.2)
Whart kernel are you using? (go to a new terminal and type "uname -a")
Chris_H
Apr 18 2008, 02:37 PM
QUOTE(mlazy @ Apr 18 2008, 01:08 PM)

Jalavoui,
I did some testing last night... Changed all of the OSbundle Library version numbers in the project plist file to match my versions. I compiled 755, and it's been running for almost an hour. This *could* have fixed some of the freezing issues? Or am I just getting lucky?
I downloaded iwi3945 r756 source, changed the plist values to match my OSbundles (based on what you did), and then built my kext.
I don't know if this made a difference ... but
If I don't put my kext in the extensions folder, unplug my ethernet cable, and boot normally then manually load the kext afterwards
some of the attempts (show in dmesg)
it finds my wireless LAN's SSID called 'CAH_WLAN' ... then a minute or so later I get a KP:
IOPCCard debug: iwl data: 0: 80 00 00 00 ff ff ff ff ff ff 00 14 6c a9 13 fc ............l...
IOPCCard debug: iwl data: 10: 00 14 6c a9 13 fc 50 d5 81 45 1b 2d 00 00 00 00 ..l...P..E.-....
IOPCCard debug: iwl data: 20: 64 00 21 04 00 08 43 41 48 5f 57 4c 41 4e 01 08 d.!...
CAH_WLAN..
IOPCCard debug: iwl data: 30: 82 84 8b 96 0c 12 18 24 03 01 04 05 04 00 01 00 .......$........
IOPCCard debug: iwl data: 40: 00 2a 01 00 32 04 30 48 60 6c dd 18 00 50 f2 02 .*..2.0H`l...P..
IOPCCard debug: iwl data: 50: 01 01 04 00 03 a4 00 00 27 a4 00 00 42 43 5e 00 ........'...BC^.
IOPCCard debug: iwl data: 60: 62 32 2f 00 dd 09 00 03 7f 01 01 00 24 ff 7f b2/.........$..
Logs attached.
mlazy
Apr 18 2008, 02:44 PM
QUOTE(Chris_H @ Apr 18 2008, 10:37 AM)

I downloaded iwi3945 r756 source, changed the plist values to match my OSbundles (based on what you did), and then built my kext.
I don't know if this made a difference ... but
If I don't put my kext in the extensions folder, unplug my ethernet cable, and boot normally then manually load the kext afterwards some of the attempts (show in dmesg) it finds my wireless LAN's SSID called 'CAH_WLAN' ... then a minute or so later I get a KP:
IOPCCard debug: iwl data: 0: 80 00 00 00 ff ff ff ff ff ff 00 14 6c a9 13 fc ............l...
IOPCCard debug: iwl data: 10: 00 14 6c a9 13 fc 50 d5 81 45 1b 2d 00 00 00 00 ..l...P..E.-....
IOPCCard debug: iwl data: 20: 64 00 21 04 00 08 43 41 48 5f 57 4c 41 4e 01 08 d.!...CAH_WLAN..
IOPCCard debug: iwl data: 30: 82 84 8b 96 0c 12 18 24 03 01 04 05 04 00 01 00 .......$........
IOPCCard debug: iwl data: 40: 00 2a 01 00 32 04 30 48 60 6c dd 18 00 50 f2 02 .*..2.0H`l...P..
IOPCCard debug: iwl data: 50: 01 01 04 00 03 a4 00 00 27 a4 00 00 42 43 5e 00 ........'...BC^.
IOPCCard debug: iwl data: 60: 62 32 2f 00 dd 09 00 03 7f 01 01 00 24 ff 7f b2/.........$..
Logs attached.
right. that's exactly how I'm testing right now as well. Try booting with -x and doing the same thing. see what your logs say then. and, try to fire up network selector and type 2 also, just for kicks.
MikeMax
Apr 18 2008, 02:51 PM
QUOTE(mlazy @ Apr 18 2008, 04:34 PM)

Whart kernel are you using? (go to a new terminal and type "uname -a")
$ uname -a
Darwin mikemaxs-macintosh.local 9.1.0 Darwin Kernel Version 9.1.0: Fri Nov 16 14:50:43 SCT 2007, made by ToH:xnu-1228.0.2~1/BUILD/obj/RELEASE_I386 i386
Aivarz
Apr 18 2008, 03:06 PM
Sorry for offtopic...
@FurmanSK, mlazy & arob92
You should disable Intel SpeedStep in BIOS to boot your laptops running on batteries. It's sure solution with T43, don't know about vaio.
haven
Apr 18 2008, 03:19 PM
omg. from what i have read teh 3945abg driver its almost done or am i wrong???
Chris_H
Apr 18 2008, 03:22 PM
QUOTE(mlazy @ Apr 18 2008, 03:44 PM)

right. that's exactly how I'm testing right now as well. Try booting with -x and doing the same thing. see what your logs say then. and, try to fire up network selector and type 2 also, just for kicks.
I tried iwi3945 r756 with safe mode (-x) boot but for me it seems I get the same results/logs as a normal boot (as described in my above post) when I do the manual load of kext. Anyway here are the logs from a safe mode boot where after I manually load the kext and it shows my SSID in dmesg, and then KP after a minute or two.
jalavoui
Apr 18 2008, 03:43 PM
good thing - mac os x 10.5 uses option -x to autoload iwi3945.kext
about iwi3945.dmg
try this:
build iwi3945.xcodproj
them
manually place iwi3945.kext in iwi3945/system/library/extensions
and networkselector in iwi3945/application
open iwi3945.pmproj - if this only works for os x 10.4 save to 10.5 format
choose project->build
if this creates iwi3945.pkg them it works for os x 10.5
double click to see if installer gets called
them
delete iwi3945.dmg
open iwi3945.xcodeproj
press build -> should create iwi3945.dmg
open it
check if the file inside works (installer should get called)
if this works send me iwi3945.pmproj so i can add it to svn tree
info.plist
the versions inside this file are meant to be compatible with mac os x 10.5 SDK
leave it as it is
iwi3945 rel 757
this is another way to call scan - might work better
mlazy
Apr 18 2008, 04:11 PM
r757 to test:
Click to view attachmentClick to view attachmentgoing to try and build dmg and test too.
grrantry
Apr 18 2008, 04:13 PM
Cool stuff!!! I can't load the kext

won't let me! hope this will be working soon
truongsg
Apr 18 2008, 04:31 PM
not kernel panic but nothing happend. Networkselector is not working anymore. Where I take log file?
Gahca
Apr 18 2008, 04:34 PM
"mlazy, i used your last provided iwi3965.kext ... and in system.log i see "cannot resolve dependencies for kernel extension iwi3965.kext" ... (i have previously repaired permissions)
(iatkos 10.5.2)"
I'm having this same problem. I also have the same kernel version as you. This is weird because I was able to load the 755 kext last night but now when I try and load the 756 or 757, I get that error messge. :S
I wonder whats wrong...
mlazy
Apr 18 2008, 04:40 PM
QUOTE(jalavoui @ Apr 18 2008, 11:43 AM)

good thing - mac os x 10.5 uses option -x to autoload iwi3945.kext
about iwi3945.dmg
try this:
build iwi3945.xcodproj
them
manually place iwi3945.kext in iwi3945/system/library/extensions
and networkselector in iwi3945/application
open iwi3945.pmproj - if this only works for os x 10.4 save to 10.5 format
choose project->build
if this creates iwi3945.pkg them it works for os x 10.5
double click to see if installer gets called
them
delete iwi3945.dmg
open iwi3945.xcodeproj
press build -> should create iwi3945.dmg
open it
check if the file inside works (installer should get called)
if this works send me iwi3945.pmproj so i can add it to svn tree
iwi3945 rel 757
this is another way to call scan - might work better
Jalavoui,
Still no luck on your instructions, got this:
Click to view attachmentBUT, I went into your interface editor within package maker and noticed the readme file pointed to /var/tmp/iwi3945/readme.rtf. I re-pointed it to the file in the 757 folder, and the .pkg built fine! still no dmg when I run the xcode project though.
MikeMax
Apr 18 2008, 04:41 PM
r756 (provided by mlazy .. thanks ! now kext loads

here is a summary

- KP on boot
- reboot in safe mode (-x)
- sudo kextload iwi3965.kext >>> loaded successfully
- then system mount the en0 interface (sigh!) with garbaged Mac Address
- And Now (even if interface is sucked) networkSelector can be launched (but doesn't work because my WLAN hardware is not found

)
It seems the driver mount a virtual interface (en0) without probing my WLAN hardware ... strange no ?
I read that WLAN must be detected as en1 to get a chance to make it working ... how can i do that ?
righteye
Apr 18 2008, 04:46 PM
Click to view attachmentThis revision crashes the system on load in normal mode.
On boot with -x then load the kext ... same thing.
On boot with -s then load the kext i could get this logs before KP.
Chris_H
Apr 18 2008, 05:03 PM
iwi3945 r757
Normal mode or safe mode (-x) boot, then manual load of kext, results in KP within 10 seconds.
My system.log is attached (r757 does still see the SSID).
mlazy
Apr 18 2008, 05:15 PM
Hello,
757 throws an immediate hard freeze for me. crappy iphone picture attached because it never wrote to the log file.
Click to view attachmentMy logs are essentially the same as Chris_H
FurmanSK
Apr 18 2008, 05:56 PM
Jalavoui did you not see my post with the image of the error? I posted last night. But what i ended up doing was using kext loader to load the kext it built and everything seems to work. Except for mode 1 Adhoc. Don't know about mode 3. Can i still get logs even if it freezes up when i change to mode to and turn on?
Alright just tried to go into mode 1. Ok it turns on fine but when you connect to a SSID it freezes. I'll try to reboot and get logs. Don't know if it will help.
jalavoui
Apr 18 2008, 06:22 PM
FurmanSK,
better use default mode - others are bogus
iwi3945 rel 758
to start scanning wait for the driver to load and use networkselector option 2 to scan
do this if the driver loads without errors
check if you can use this option several times (open system.log first)
previous logs show that scan starts - need to make scan call return
WAIT!
last log shows SCAN_COMPLETE_NOTIFICATION
do you get this without having a kp?
well - ok test this one and check if you get this line in log
next step is make the driver get this:
ieee80211_send_probe_req
this means that the scan is done and a request to associate to a network was made
iwi3945 rel 759
i think there's a bug in scan call
this might fix it
Hey! you need to post logs before i post new releases

iwi3945 driver status
once i figure out how this works the driver will start associating to networks
get ready
FurmanSK
Apr 18 2008, 06:28 PM
lol yeah i think i will. What do i need to enable to get hidden ssid's? And get this i run it in -s and load kext and run networkselector and works fine. Nothing KP's or crashes. Weird. Must be a graphical thing with network selector? don't know. Well couldn't be cause i ran it in terminal in desktop mode and still froze. Oh well i'll get some logs and up them and you let me know if anything happened k.
Thanks Man
Oh and did you figure out why i can't remove the old .dmg file in the iwi2200 folder to build a new one? It gives me that password error and doesn't build but if i leave the .dmg file in the folder it builds fine. Any thoughts? I posted a pic of it few post back check it out.
mlazy
Apr 18 2008, 06:49 PM
imwithalwood
Apr 18 2008, 06:57 PM
r578 testing:
Installed kext, it detected new internet. Moved Network selector into the network selector folder and it did not do anything, couldnt turn it on or off or start scanning
imwithalwood
Apr 18 2008, 07:01 PM
Still running kext and it hasn't kP'd, over 15 mins. However In network interface it is still saying it's unplugged. After reboot network selector still does not work.
mlazy
Apr 18 2008, 07:04 PM
758 logs:
Click to view attachmentNo KP, sees my card with enet2:
Click to view attachmentEn0 is my Ehernet, En1 is my usb stick; all disconnected.
It seems to be in a loop looking at my base station. FYI, there are 5 networks near me, one is wide open. It only sees one of my base stations.
I ran network selector at 14:57:40 in the log file.
This version is very stable so far. Machine is running hot though. still no freeze or KP after 20 mins.
FurmanSK
Apr 18 2008, 07:14 PM
Here's some logs.
YDTang
Apr 18 2008, 07:17 PM
I have tried Intel pro iwi3945 on T60(leopard) failed(iAs../Jas)
I tried these two leopard version both
the file I downloaded is release at 4/17(http://
iwidarwin.googlecode.com/files/iwi3945r748.dmg)
anyway many thanks to all the contributors to Intel pro iwi4965.
Is there any Candidate version else?
-
jasonet@gmail.com
imwithalwood
Apr 18 2008, 07:23 PM
scratch my previous post, after 5 mins after rebooting again got a kp. Unfortunetly logs did not work so I guess I'm no help.
Gahca
Apr 18 2008, 07:24 PM
I feel really stupid asking this but I have to...
Whats the reason I get this when I try and load a kext...
kextload: extension /System/Library/Extensions/iwi3945.kext is not authentic (check ownership and permissions ; run with -t for details)
I loaded the 755 kext fine doing the same thing I always do...
chown -R root:wheel iwi3945.kext
chmod -R a+rx,u+w iwi3945.kext
kextload iwi3945.kext
Either there is something wrong or I'm missing something thats really small and obvious. Please help. lol
mlazy
Apr 18 2008, 07:26 PM
QUOTE(Gahca @ Apr 18 2008, 03:24 PM)

I feel really stupid asking this but I have to...
Whats the reason I get this when I try and load a kext...
kextload: extension /System/Library/Extensions/iwi3945.kext is not authentic (check ownership and permissions ; run with -t for details)
I loaded the 755 kext fine doing the same thing I always do...
chown -R root:wheel iwi3945.kext
chmod -R a+rx,u+w iwi3945.kext
kextload iwi3945.kext
Either there is something wrong or I'm missing something thats really small and obvious. Please help. lol
Hey, I run these:
sudo chown -R root:wheel iwi3945.kext
sudo chmod -R 755 iwi3945.kext
sudo kextload -t iwi3945.kext
works every time.
Gahca
Apr 18 2008, 07:28 PM
QUOTE(mlazy @ Apr 18 2008, 02:26 PM)

Hey, I run these:
sudo chown -R root:wheel iwi3945.kext
sudo chmod -R 755 iwi3945.kext
works every time.
Thank you.
imwithalwood
Apr 18 2008, 07:32 PM
Im getting a problem now with my getlogs.command. When i double click on it i get this in terminal:
Last login: Fri Apr 18 15:30:43 on ttys001
benny-lavas-mac-pro:~ Benn$ /Users/Benn/Desktop/getlogs.command ; exit;
Creating log files in folder /
/Users/Benn/Desktop/getlogs.command: line 6: cd: /System/Library/Extensions/iwi3945.kext: No such file or directory
/Users/Benn/Desktop/getlogs.command: line 9: cd: /System/Library/Extensions/iwi2100.kext: No such file or directory
/Users/Benn/Desktop/getlogs.command: line 12: cd: /System/Library/Extensions/iwi2200.kext: No such file or directory
/Users/Benn/Desktop/getlogs.command: line 19: dmesg.txt: Permission denied
/Users/Benn/Desktop/getlogs.command: line 20: system.txt: Permission denied
/Users/Benn/Desktop/getlogs.command: line 21: ioreg.txt: Permission denied
logout
[Process completed]
Tin_man_0
Apr 18 2008, 07:37 PM
He's my logs ... it loaded no problems... I ran network selector and turned the card on and told it to scan about 1 min later it kp'd.
jalavoui
Apr 18 2008, 07:49 PM
about development
if you understand a bit how this code work please help
i take to much time posting 10 release to get 1 conclusion
if you need help discussing code/functions i'm here to help
iwi3945 rel 760
you can help by trying making this work
check for this functions:
//iwl_scan((struct iwl3945_priv*)get_my_priv());
ieee80211_sta_start_scan(dev, NULL, 0);
in this release they're called in networkselector code - try other ways to make this work
the driver need to call (search) SCAN_SEND_PROBE to associate to a network
use networkselector to start a scan -> check if you get scan results
mlazy
Apr 18 2008, 07:58 PM
More logs from 758:
Cold Boot with everyhing set to load=hard freeze (with logs!)
Click to view attachmentreboot with -x then manual load= runs fine, get a bunch of interesting errors.
Click to view attachment
jalavoui
Apr 18 2008, 08:02 PM
QUOTE(Tin_man_0 @ Apr 18 2008, 07:37 PM)

He's my logs ... it loaded no problems... I ran network selector and turned the card on and told it to scan about 1 min later it kp'd.
this is a good example on how to NOT do things
maybe you get a kp when the driver was trying to send a probe request
but i'm not there to see
you need to try to check where the panic fires up
either by booting with -x, -s
and posting a picture or quoting log lines so i can try to fix it
about offering $,cards,etc
as you all know i don't have the hardware to use any of the iwi cards
i'd like to get a laptop with a 3945/4965 card
that is very far from happen - so i just keep going write code until i make this driver work
don't worry i'm here to stay
mlazy
Apr 18 2008, 08:04 PM
jalavoui
Apr 18 2008, 08:12 PM
just remebered:
can you try to press the wireless switch to turn the card on/off
check what happens in system.log
mlazy
Apr 18 2008, 08:17 PM
Jalavoui,
I was down during your last msg. But, check thi out!!!
Full log:
Click to view attachmentApr 18 16:13:17 Sony kernel[0]: ieee80211_scan_completed
Apr 18 16:13:17 Sony kernel[0]: ieee80211_hw_config @ /Users/super/Desktop/iwi3945/760/compatibility.cpp:5116
Apr 18 16:13:17 Sony kernel[0]: error iwl3945: U iwl3945_mac_config enter to channel 1
Apr 18 16:13:17 Sony kernel[0]: error iwl3945: U iwl3945_mac_config leave - scanning
Apr 18 16:13:17 Sony kernel[0]: __ieee80211_if_config @ /Users/super/Desktop/iwi3945/760/compatibility.cpp:6248
Apr 18 16:13:17 Sony kernel[0]: error iwl3945: U iwl3945_mac_config_interface enter: interface id 609071136
Apr 18 16:13:17 Sony kernel[0]: error iwl3945: U iwl3945_mac_config_interface leave - scanning
Apr 18 16:13:17 Sony kernel[0]: error iwl3945: Failed to get channel info for channel 0 [3]
Apr 18 16:13:17 Sony kernel[0]: [Parallels] IPI stat: rescheduled 1 cpus out of 2.
Apr 18 16:13:17 Sony kernel[0]: request scan
Apr 18 16:13:17 Sony kernel[0]: ieee80211_sta_start_scan @ /Users/super/Desktop/iwi3945/760/compatibility.cpp:6610
Apr 18 16:13:17 Sony kernel[0]: error iwl3945: U iwl3945_mac_hw_scan enter
Apr 18 16:13:17 Sony kernel[0]: error iwl3945: U iwl3945_scan_initiate Scan already in progress.
Apr 18 16:13:17 Sony kernel[0]: error iwl3945: U iwl3945_mac_hw_scan leave
Apr 18 16:13:17 Sony kernel[0]: error iwl3945: U iwl3945_hw_reg_txpower_get_temperature Temperature: 54
TheMarine
Apr 18 2008, 08:21 PM
QUOTE(jalavoui @ Apr 18 2008, 04:12 PM)

just remebered:
can you try to press the wireless switch to turn the card on/off
check what happens in system.log
jalavoui... could you briefly describe what's the process for starting - scanning - grabbing the network names and associating?
mlazy
Apr 18 2008, 08:30 PM
Jalavoui,
Here are the physical switch on/off results while booted with -x:
Apr 18 16:24:19 Sony kernel[0]: error iwl3945: U iwl3945_rx_handle r = 162, i = 161, CARD_STATE_NOTIFICATION, 0xa1
Apr 18 16:24:19 Sony kernel[0]: error iwl3945: U iwl3945_rx_card_state_notif Card state received: HW:Kill SW:On
Apr 18 16:24:19 Sony kernel[0]: warning iwl3945: Radio Frequency Kill Switch is On:
Apr 18 16:24:19 Sony kernel[0]: Kill switch must be turned off for wireless networking to work.
Apr 18 16:24:19 Sony kernel[0]: error iwl3945: U iwl3945_rx_handle nothing sent from uCode r = 162, i = 162
Apr 18 16:24:35 Sony kernel[0]: error iwl3945: U iwl3945_rx_handle r = 163, i = 162, CARD_STATE_NOTIFICATION, 0xa1
Apr 18 16:24:35 Sony kernel[0]: error iwl3945: U iwl3945_rx_card_state_notif Card state received: HW:On SW:On
Apr 18 16:24:35 Sony kernel[0]: error iwl3945: U iwl3945_bg_rf_kill HW and/or SW RF Kill no longer active, restarting device
Apr 18 16:24:35 Sony kernel[0]: error iwl3945: U __iwl3945_down iwl3945 is going down
Apr 18 16:24:35 Sony kernel[0]: ieee80211_stop_queues @ /Users/super/Desktop/iwi3945/760/compatibility.cpp:2026
Apr 18 16:24:35 Sony kernel[0]: ieee80211_stop_queue @
jalavoui
Apr 18 2008, 08:31 PM
mlazy,
this is because i add a iosleep to ieee80211_open()
can you check this functions and try a few combinations of iosleep
looks like it can make the driver more/less stable
also try to enable the scan at the end of ieee80211_open() - maybe this is better tham using networkselector to scan (or not)
if you find a way to make the driver more stable doing this you'll save me posting 10 releases for trying to figure out
i'll come back later to check for results
anyone can try this - it's quite easy to test and will save me lot's of time
mlazy
Apr 18 2008, 08:46 PM
Jalavoui,
It seems pretty stable at the moment, and even completes a scan for me. (with errors of course)
Click to view attachmentOthers, please test!
Doctadre
Apr 18 2008, 09:44 PM
Alright boys, de doc is in, er out, just got off my shift. Going to start combing this thread, for how to's on helpin yall out with the latest version. At 7pm I got something I need to do, but I'll be back at 9pm
pere
Apr 18 2008, 09:48 PM
Booted with -x, logged in as root, manual load, then turn off the card with the external button, freeze, could get log.
Booted again, load again, but this time the card seemed to work worst, manually unload, freeze, no logs.
The first time, the card just scanned one ap (besides me there is alot).
Edit: R.760
jalavoui
Apr 18 2008, 09:56 PM
iwi3945 rel 672
add ieee80211_init_scan() - look for this is code to check
maybe it's a goodd idea to call this function on the networkselector call
Gahca
Apr 18 2008, 10:06 PM
I know its late but heres my log for 760.
Doctadre
Apr 18 2008, 10:59 PM
Alright, I downloaded the 760 kext and network selector. Still trying to figger out what to do with network selector. I did boot in -x, didnt get any kp's or a freeze, but I got into a loop sequence. Any pointers? Just trying to feel my way around this deal. Good logs?
I'll be on the laptop studyin the cases for tomorrow, on the constant refresh
mlazy
Apr 19 2008, 12:03 AM
Doctadre
Apr 19 2008, 12:11 AM
Hello mlazy, what do I do with that network selector? Going to try 762 now
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.