nrrtv
Feb 27 2008, 02:44 PM
Juts passing by to congrats all the guys on working in the fix. Keep the good work!
Cheers from Brazil
CILLER
Feb 27 2008, 08:50 PM
Hey guys
great progress so far. I can't wait to see my 3945 go online.
For now I hope there has been some progress because I didn't see any news posts for the last few days.
Keep up the good work and I hope it will pay off.
balder
Feb 28 2008, 12:41 PM
Hey, yeah will be nice when 3945 is done, but any idea about IntelPro 1000 PL (cabled built one) for my Acer 9810 lappy ?rab

)again :)sorry wrong card have too many of them here, Marvel Yukon88E8055 PCI it was.
burndeep
Feb 28 2008, 03:00 PM
Can I ask a really stupid question today? Not that I am actually stupid, However dumb this question is. It seems to me that the code you seek first off, is not in linux. It is however a Bsd as in FreeBsd background. Second has anyone looked at the old kexts, or patches for FreeBsd (Unix), and tried to add them into the static list of the new kexts that have airport drivers, and add the line to the static area within the new format of the 10.5.1+ kext. Then rebuild the kexts (compile). I have been used to patching this way in FreeBsd since 94. And also did that for a few things i will not mention here in 10.4.4 on up. Just a thought. Probably a stupid thought, but nevertheless a thought to think about. Anyways
I have a xps m170 with intel pro 2915. I will give a hand in testing and rebuilding the kext from scratch if needed. But i will first try the patch method first. I just installed 10.5.2 (from intel combo update) today. I will try it out within a few days. Thanks for the time in reading this.
Best of luck to all, I will report back in a few. Until then If someone can get Get the FReebsd patch for 2915 or higher. If you can not find them let me know i will look for them. But i rather focus on testing on 10.5.2. I can devote 10 hours a day for the next few weeks on this. As i am on a holiday.
balder
Feb 28 2008, 03:52 PM

there is no such thing as stupid questions, only stupid answers
yeye
Feb 28 2008, 10:14 PM
hello,
I'm french and I've succeded to install mac os X on my dell vostro 1700 thanks to this forum!
Actually, I've a 4965agn on my laptop and I have any idea how to install the driver for it in mac os x.
Could you explain me step by step how to do please because I don't understand exactly what are kext etc...
Thank you
TNW
Feb 28 2008, 10:34 PM
Hi all!
It's for saying that the developement of the driver is NOT stopped at all ,
I corrected the error when the driver send a command, but it has a KP,
I will corrected that tomorow(I will have a day off and the week end is coming ;D ).
For proof I give you my current version ,
I you have time , can you post photo with the log of the driver (when you are lauching the driver , in an other terminal start a command "dmesg" ), that will help me .
Bye.
EDIT: Some explication about the 4965 for Yeye.
Salut Yeye ,
Alors bienvenue sur le topic , donc je vais essayer d'expliquer la situation , le driver pour 4965 n'existe pas encore dans
sa version stable .
Mais avec les avancements sur le driver 3945 ,normalement le driver pour ta carte devrait arrivait bientôt , je n'ai pas la date , ni l'heure biensur.
à bientôt
madmonkey
Feb 29 2008, 06:55 AM
that mean we might have a working 3945 wifi driver soon???
would be a kick a$$ weekend if thats the case
arob92
Feb 29 2008, 07:29 AM
will it ever be possible for the 2200 to be detected as an airport?? Or will we always have to use it as nsGUI??
balder
Feb 29 2008, 08:06 AM
Hey
Would have been very nice to know exactly how we newbies should test that last "Loadable iw3945 zip"
Keep up the good work
TNW
Feb 29 2008, 09:35 AM
QUOTE(arob92 @ Feb 29 2008, 08:29 AM)

will it ever be possible for the 2200 to be detected as an airport?? Or will we always have to use it as nsGUI??
Yes that's possible , but I can't do that because I don't have an 2200 card and at this moment we don't know how to
show the scan result.
But maybe when the 3945 will be finshed , I going to start this.
Masoud
Feb 29 2008, 09:47 AM
I got kernel panic when using iwi3945.kext IOEthernetController Version.
The following link is the panic log screenshot.
http://link.imgshare.us/2sj4L2
arob92
Feb 29 2008, 11:45 AM
QUOTE(TNW @ Feb 29 2008, 10:35 AM)

Yes that's possible , but I can't to that because I don't have an 2200 card and at this moment we don't know how to
show the scan result.
But maybe when the 3945 will be finshed , I going to start this.

Thx for a fast and straight answer!!
TNW
Feb 29 2008, 01:44 PM
Hi ,
This new version has no more KP , and seems to be fine .
Now the card is waiting for scan , associating ,... I will start this now.
The Powersave seems to work ( that fine ).
I need your help :
I have a problem with IOMallocContiguous (DMAallocMemory doesn't work too), so the driver is working 50% of the time .
It's a surprise , surprise XD.
For instance (Bad lauch):
CODE
error iwl3945: U iwl3945_enqueue_hcmd Sending command POWER_TABLE_CMD (#77), seq: 0x0400, 36 bytes at 0[0]:4
Wait POWER_TABLE_CMD Condition: 0ms left
error iwl3945: Error sending POWER_TABLE_CMD: time out after 50ms.
Can you post your log of the new driver ?
Thank's and Bye !
NecronoiD
Feb 29 2008, 02:08 PM
Test under 10.4.11
Greyjuice:/ root# kextload iwi3945-loadable.kext/
kextload: cannot resolve dependencies for kernel extension iwi3945-loadable.kext/
Greyjuice:/ root# uname -a
Darwin Greyjuice.local 8.10.1 Darwin Kernel Version 8.10.1: Thu Nov 1 16:59:12 SCT 2007; Made by ToH:xnu-792.22.5/BUILD/obj/RELEASE_I386 i386 i386
Greyjuice:/ root#
It looks like Tiger users will have to migrate to 10.5...
blackentangled
Feb 29 2008, 02:59 PM
log from new iwi3945 -- test system: leopard 10.5.2
CODE
U iwl3945_irq_tasklet TASKLET : inta 0x80000008, enabled 0x00000000, fh 0x00010000
error iwl3945: U iwl3945_rx_reply_alive Alive ucode status 0x00000001 revision 0x1 0x0
error iwl3945: U iwl3945_rx_reply_alive Runtime Alive received.
error iwl3945: U iwl3945_irq_tasklet TASKLET : inta 0x00000001, enabled 0x00000000, fh 0x00000000
error iwl3945: U iwl3945_irq_tasklet Alive interrupt
__ IN iwl3945_alive_start __
error iwl3945: U iwl3945_alive_start Runtime Alive received.
error iwl3945: U iwl3945_verify_inst_sparse ucode inst image size is 900
error iwl3945: U iwl3945_verify_inst_sparse ucode inst image size is 2668
error iwl3945: U iwl3945_verify_inst_sparse ucode inst image size is 80524
error iwl3945: U iwl3945_verify_ucode Runtime uCode is good in inst SRAM
error iwl3945: U iwl3945_alive_start RFKILL status: 0x1
error iwl3945: U iwl3945_init_channel_map Initializing regulatory info from EEPROM
error iwl3945: U iwl3945_init_channel_map Parsing data for 56 channels.
IOPCCard info: iwl3945: Tunable channels: 11 802.11bg, 13 802.11a channels
error iwl3945: U iwl3945_update_power_cmd Flags value = 0x00000008
error iwl3945: U iwl3945_update_power_cmd Tx timeout = 0
error iwl3945: U iwl3945_update_power_cmd Rx timeout = 0
error iwl3945: U iwl3945_update_power_cmd Sleep interval vector = { 0 , 0 , 0 , 0 , 0 }
error iwl3945: U iwl3945_enqueue_hcmd Sending command POWER_TABLE_CMD (#77), seq: 0x0400, 36 bytes at 0[0]:4
error iwl3945: U iwl3945_irq_tasklet TASKLET : inta 0x82000008, enabled 0x00000000, fh 0x00010000
error iwl3945: Microcode SW error detected. Restarting 0x82000008.
error iwl3945: Start IWL Error Log Dump:
error iwl3945: Status: 0x00010132, Config: 00000000 count: 1
error iwl3945: Desc Time asrtPC blink2 ilink1 nmiPC Line
error iwl3945: SYSASSERT (#5) 0000013316 0x0089A 0x00FE0 0x00304 0x00000 57
error iwl3945: Start IWL Event Log Dump: display count 8, wraps 0
error iwl3945: 0000000000 0x000000d5 0117
error iwl3945: 0000000000 0x000000be 0118
error iwl3945: 0000002108 0x00000000 0651
error iwl3945: 0000002129 0xffffff23 0454
error iwl3945: 0000002130 0x00000000 0472
error iwl3945: 0000002151 0x000000c5 0104
error iwl3945: 0000013315 0x00003ffd 0401
error iwl3945: 0000013318 0x00000100 0125
error iwl3945: U iwl3945_print_rx_config_cmd RX CONFIG:
error iwl3945: U iwl3945_print_rx_config_cmd u16 channel: 0x0
error iwl3945: U iwl3945_print_rx_config_cmd u32 flags: 0x00000000
error iwl3945: U iwl3945_print_rx_config_cmd u32 filter_flags: 0x00000000
error iwl3945: U iwl3945_print_rx_config_cmd u8 dev_type: 0x0
error iwl3945: U iwl3945_print_rx_config_cmd u8 ofdm_basic_rates: 0x00
error iwl3945: U iwl3945_print_rx_config_cmd u8 cck_basic_rates: 0x00
error iwl3945: U iwl3945_print_rx_config_cmd u8[6] node_addr: 00:00:00:00:00:00
error iwl3945: U iwl3945_print_rx_config_cmd u8[6] bssid_addr: 00:00:00:00:00:00
error iwl3945: U iwl3945_print_rx_config_cmd u16 assoc_id: 0x0
error iwl3945: U iwl3945_irq_handle_error Restarting adapter due to uCode error.
error iwl3945: Error Reply type 0xerror iwl3945: 00000000 cmd UNKNOWN (0xFD) seq 0x0000 ser 0x000000FD
U __iwl3945_down iwl3945 is going down
Wait POWER_TABLE_CMD Condition: 49ms left
error iwl3945: U iwl3945_send_cmd_sync Command POWER_TABLE_CMD failed: FW Error
error iwl3945: U iwl3945_enqueue_hcmd Sending command REPLY_BT_CONFIG (#9b), seq: 0x0401, 16 bytes at 1[1]:4
Wait REPLY_BT_CONFIG Condition: 0ms left
error iwl3945: Error sending REPLY_BT_CONFIG: time out after 50ms.
error iwl3945: U iwl3945_alive_start ALIVE processing complete.
__ OUT iwl3945_alive_start __
Wait START_ALIVE Condition: 118ms left
error iwl3945: U iwl3945_mac_open leave
error iwl3945: U iwl3945_mac_add_interface enter: id 3, type 2
error iwl3945: U iwl3945_mac_add_interface Set: 31:32:31:32:31:32
error iwl3945: U iwl3945_mac_add_interface leave
IOPCCard debug: : Does not support passive scan, disabled
error iwl3945: Can't stop Rx DMA.
error iwl3945: U iwl3945_clear_free_frames 0 frames on pre-allocated heap on clear.
error iwl3945: Failed to get channel info for channel 0 [3]
TNW
Feb 29 2008, 03:23 PM
It's an error about IOMallocContiguous , and I think therre is no hope to use this (IOMallocContiguous)...
We need two 2 segments of memory contiguous with a page-size of 16K but OSX have trouble to alloc a page-size over 4k.
JasMac
Feb 29 2008, 03:57 PM
Hello guys!
I have installed the iwi2200 and now the wireless seems to be detected, but when i "set the power on" on the nsGUY the OS hangs and it's not responding....yuo have experienced this problem?
I have an Acer 5504WXMi laptop.
Thnx!!
dong
Feb 29 2008, 05:35 PM
QUOTE(TNW @ Feb 29 2008, 10:23 AM)

It's an error about IOMallocContiguous , and I think therre is no hope to use this (IOMallocContiguous)...
We need two 2 segments of memory contiguous with a page-size of 16K but OSX have trouble to alloc a page-size over 4k.
I assume you already read
the source for IOMallocContiguous and it may not help much. But it seems page-size is a pre-defined const, what do you mean 16k and 4k here for page-size? Sorry if it's a newbie question.
jalavoui
Feb 29 2008, 06:58 PM
QUOTE(TNW @ Feb 29 2008, 03:23 PM)

It's an error about IOMallocContiguous , and I think therre is no hope to use this (IOMallocContiguous)...
We need two 2 segments of memory contiguous with a page-size of 16K but OSX have trouble to alloc a page-size over 4k.
i don't know if you changed pci_alloc_consistent() but you should changed it to:
void *pci_alloc_consistent(struct pci_dev *hwdev, size_t size, int pagesize,
dma_addr_t *dma_handle) {
return IOMallocContiguous(size, pagesize, dma_handle);
}
and need to change all calls to this function with the right pagesize value otherwise it will never work
in iwi2200 i use MemoryDmaAlloc() for firmware memory allocations and IOMallocContiguous() for tx init
take a look and try it in iwi3945
maybe this work fine in 10.5 - you need to test it:
//gOSMallocTag = OSMalloc_Tagalloc("insanelymac.iwidarwin.control", OSMT_DEFAULT);// OSMT_PAGEABLE
if the iwl3945_send_power_mode() is giving fw errors - remove it. i was unable to use this in iwi2200
About posting logs
please use this
http://iwidarwin.googlecode.com/files/getlogs3.command.zipto post logs
we need logs for iwi2200 and iwi3945
i'd like to help more writing code but my imac just won't let me
TNW
Feb 29 2008, 09:30 PM
QUOTE(dong @ Feb 29 2008, 06:35 PM)

I assume you already read
the source for IOMallocContiguous and it may not help much. But it seems page-size is a pre-defined const, what do you mean 16k and 4k here for page-size? Sorry if it's a newbie question.
In the source , look at the parameter "aligment" , it isn't pre-defined.
MemoryDmaAlloc uses kIOMemoryPhysicallyContiguous and the method member inTaskWithOptions of IOBufferMemoryDescriptor uses IOMallocContiguous.
I'll take a look at OSMalloc_Tagalloc.
The question is how can I have 16k of memory with contiguous physical adresse ?
Maybe with DART?
Many thank's !!!
Herre the log of the new driver when it loads
abidin
Feb 29 2008, 10:07 PM
This is my log, iwi3945 on 10.5.2:
CODE
error detected. Restarting 0x82000008.
error iwl3945: Start IWL Error Log Dump:
error iwl3945: Status: 0x00010132, Config: 00000000 count: 1
error iwl3945: Desc Time asrtPC blink2 ilink1 nmiPC Line
error iwl3945: SYSASSERT (#5) 0000013230 0x0089A 0x00FE0 0x00304 0x00000 57
error iwl3945: Start IWL Event Log Dump: display count 8, wraps 0
error iwl3945: 0000000000 0x000000d5 0117
error iwl3945: 0000000000 0x000000be 0118
error iwl3945: 0000002107 0x00000000 0651
error iwl3945: 0000002128 0xffffff5a 0454
error iwl3945: 0000002129 0x00000000 0472
error iwl3945: 0000002150 0x000000c5 0104
error iwl3945: 0000013228 0x00000000 0401
error iwl3945: 0000013231 0x00000100 0125
error iwl3945: U iwl3945_print_rx_config_cmd RX CONFIG:
error iwl3945: U iwl3945_print_rx_config_cmd u16 channel: 0x0
error iwl3945: U iwl3945_print_rx_config_cmd u32 flags: 0x00000000
error iwl3945: U iwl3945_print_rx_config_cmd u32 filter_flags: 0x00000000
error iwl3945: U iwl3945_print_rx_config_cmd u8 dev_type: 0x0
error iwl3945: U iwl3945_print_rx_config_cmd u8 ofdm_basic_rates: 0x00
error iwl3945: U iwl3945_print_rx_config_cmd u8 cck_basic_rates: 0x00
error iwl3945: U iwl3945_print_rx_config_cmd u8[6] node_addr: 00:00:00:00:00:00
error iwl3945: U iwl3945_print_rx_config_cmd u8[6] bssid_addr: 00:00:00:00:00:00
error iwl3945: U iwl3945_print_rx_config_cmd u16 assoc_id: 0x0
error iwl3945: U iwl3945_irq_handle_error Restarting adapter due to uCode error.
error iwl3945: Error Reply teyrror iwl3945: pe 0U x_0000000_iwl3940 cm5_dd owUn NKiwNOWl394N (0x500 is) goseq 0xin0g down
000 ser 0x00000000
Wait POWER_TABLE_CMD Condition: 49ms left
error iwl3945: U iwl3945_send_cmd_sync Command POWER_TABLE_CMD failed: FW Error
error iwl3945: No space for Tx
error iwl3945: Error sending REPLY_BT_CONFIG: iwl3945_enqueue_hcmd failed: -28
error iwl3945: U iwl3945_alive_start ALIVE processing complete.
__ OUT iwl3945_alive_start __
Wait START_ALIVE Condition: 170ms left
error iwl3945: U iwl3945_mac_open leave
error iwl3945: U iwl3945_mac_add_interface enter: id 3, type 2
error iwl3945: U iwl3945_mac_add_interface Set: 31:32:31:32:31:32
error iwl3945: U iwl3945_mac_add_interface leave
hope can be useful
English Haze
Mar 1 2008, 12:52 AM
My logs from a Samsung Q45 laptop. Hope I've done this right. I'm a complete newcomer to OS X.
Thanks for all the hard work

Incidentally, my hangs on the first occurrence of the line containing mDNSResponder in the console log unless I boot with the -x safe mode flag. Is this because of the network drivers or some other reason?
arob92
Mar 1 2008, 07:53 AM
i Have never made logs before... after i do this:
open Terminal
% sudo -s
% cd ~/Desktop
% dmesg > dmesg.txt
% cat /var/log/system.log > system.txt
% ioreg -w 0 > ioreg.txt
Now you have 3 log files; dmesg.txt, system.txt and ioreg.txt you can find them on the desktop
and i have the 3 log files on my desktop, do i just post them or do i have to do something else??
hypnotic
Mar 1 2008, 09:49 AM
please post them here like others.
arob92
Mar 1 2008, 09:54 AM
These are logs from iwi2200:
I cant upload the sytem.txt one because it says its too large....what should i do??
Symuc
Mar 1 2008, 10:26 AM
TNW wanted me to share with everyone some rather big news. He has been hard at work, delving into the innards of the Darwin kernel, finding strange and obscure misfeatures involving, among other things, non-aligned IOMallocContiguous() calls.
In addition to fixing the initialization problems, the card now properly starts up, initializes, receives data, and enters ieee80211_rx_irqsafe(). Ladies and gentlemen, I present to you the first packet received by this driver:
CODE
A80000001B026B87000006000000000001002300000
A830080000000FFFFFFFFFFFF001E4C427849001E4C
427849C04F8691AC642700000064001104000C4C69
7665626F782D44454430010882848B962430486C030
1010504010300002A01002F010032040C121860DD16
0050F20101000050F20201000050F20201000050F20
2DD180050F2020101800003A4000027A4000042435E
0062322F00
Which looks an awful lot like an ESSID broadcast. Specifically, of the AP named "Livebox", which I'm told belongs to TNW himself.
There is much more work to do, but now the hardware is at least starting to behave.
arob92
Mar 1 2008, 10:56 AM
QUOTE(Symuc @ Mar 1 2008, 11:26 AM)

TNW wanted me to share with everyone some rather big news. He has been hard at work, delving into the innards of the Darwin kernel, finding strange and obscure misfeatures involving, among other things, non-aligned IOMallocContiguous() calls.
In addition to fixing the initialization problems, the card now properly starts up, initializes, receives data, and enters ieee80211_rx_irqsafe(). Ladies and gentlemen, I present to you the first packet received by this driver:
CODE
A80000001B026B87000006000000000001002300000
A830080000000FFFFFFFFFFFF001E4C427849001E4C
427849C04F8691AC642700000064001104000C4C69
7665626F782D44454430010882848B962430486C030
1010504010300002A01002F010032040C121860DD16
0050F20101000050F20201000050F20201000050F20
2DD180050F2020101800003A4000027A4000042435E
0062322F00
Which looks an awful lot like an ESSID broadcast. Specifically, of the AP named "Livebox", which I'm told belongs to TNW himself.
There is much more work to do, but now the hardware is at least starting to behave.
can u explain to me what this is?? and what card it is for??
And also i uploaded to logs bu when i try to upload system.txt it tells me that it is too large to upload. What should i do?? or are those 2 enough??
cabalccb
Mar 1 2008, 11:12 AM
Frankie
I have a p1610 with iAtkos,
Everything works less audio, touchscreen and wifi. I tried to install tabletmagic, iwi3945 and don't work.
Please help
jalavoui
Mar 1 2008, 12:07 PM
the utility for making logs was wrong
please download getlogs4.command.zip from
http://code.google.com/p/iwidarwin/and post logs again
if system.log is large just zip it
need logs for iwi3945, iwi2200
TNW, Symuc
have you tried the getPhysicalSegmentsWithCoalesce() for the memory problem?
mac os as strange behaviors when dealing with memory allocation...
just remebered that the driver is using mac80211 code - can be hard to make it work
the ieee80211 code from iwi2200 is stable but it will probably fail for "a" and "g" mode
at this time i guess the driver need to do this:
1) handle beacons, probe responses,etc (ieeerx_mgmt)
2) rx data (ieee_rx)
3) tx data (outputpacket and ieee_xmit)
if you're using the mac80211 code try to follow this order - it will help to make things work
arob92
Mar 1 2008, 12:21 PM
QUOTE(jalavoui @ Mar 1 2008, 01:07 PM)

the utility for making logs was wrong
please download getlogs4.command.zip from
http://code.google.com/p/iwidarwin/and post logs again
if system.log is large just zip it
need logs for iwi3945, iwi2200
TNW, Symuc
have you tried the getPhysicalSegmentsWithCoalesce() for the memory problem?
mac os as strange behaviors when dealing with memory allocation...
jalavoui, i downloaded getlogs4.command.zip but now what do i do with it??
i really want to help!
For the moment we can't start the macIEEE80211 layer because , the driver starts correctly 1/5 of the times , and I can't make tests with this conditions .
CowboyMiller
Mar 1 2008, 05:00 PM
Ok so ive been tweaking alittle bit not knowing what im really doing and after a few kernel panics and so on....here is my latest log, can anyone tell me what some of it means? i can pretty much tell that all the "errors" mean "error, i aint working" lol:
Mar 1 09:07:22 M-6816 kernel[0]: iwi3945: Starting
Mar 1 09:07:22 M-6816 kernel[0]: settCurController [OK]
Mar 1 09:07:22 M-6816 kernel[0]: IOPCCard info: iwl3945: Intel® PRO/Wireless 3945ABG/BG Network Connection driver for Linux, 1.2.23
Mar 1 09:07:22 M-6816 kernel[0]: IOPCCard info: iwl3945: Copyright© 2003-2007 Intel Corporation
Mar 1 09:07:22 M-6816 kernel[0]: error iwl3945: U iwl3945_pci_probe *** LOAD DRIVER ***
Mar 1 09:07:22 M-6816 kernel[0]: error iwl3945: U iwl3945_pci_probe pci_resource_len = 0x00000008
Mar 1 09:07:22 M-6816 kernel[0]: error iwl3945: U iwl3945_pci_probe pci_resource_base = 0x2dfc9000
Mar 1 09:07:22 M-6816 kernel[0]: IOPCCard info: iwl3945: Detected Intel PRO/Wireless 3945ABG Network Connection
Mar 1 09:07:22 M-6816 kernel[0]: error iwl3945: U iwl3945_set_rxon_channel Staging channel set to 6 [3]
Mar 1 09:07:22 M-6816 com.apple.kextd[10]: kld(): Undefined symbols:
Mar 1 09:07:22 M-6816 kernel[0]: init_waitqueue_head stubbed out!
Mar 1 09:07:22 M-6816 kextd[32]: kld_load_from_memory() failed for module /System/Library/Extensions/IOPlatformPluginFamily.kext/Contents/PlugIns/ACPI_SMC_PlatformPlugin.kext/Contents/MacOS/ACPI_SMC_PlatformPlugin
Mar 1 09:07:22 M-6816 com.apple.kextd[10]: __ZN14IOPMrootDomain24systemPowerEventOccurredEPK8OSSymbolP8OSObject
Mar 1 09:07:22 M-6816 kernel[0]: cmd Rx timeout = 0
Mar 1 09:07:22 M-6816 kextd[32]: a link/load error occured for kernel extension /System/Library/Extensions/IOPlatformPluginFamily.kext/Contents/PlugIns/ACPI_SMC_PlatformPlugin.kext
Mar 1 09:07:22 M-6816 kernel[0]: error iwl3945: U iwl3945_update_power_cmd Sleep interval vector = { 0 , 0 , 0 , 0 , 0 }
Mar 1 09:07:22 M-6816 kernel[0]: error iwl3945: U iwl3945_enqueue_hcmd Sending command POWER_TABLE_CMD (#77), seq: 0x0400, 36 bytes at 0[0]:4
Mar 1 09:07:23 M-6816 kernel[0]: Wait POWER_TABLE_CMD Condition: 0ms left
Mar 1 09:07:23 M-6816 kernel[0]: error iwl3945: Error sending POWER_TABLE_CMD: time out after 50ms.
Mar 1 09:07:23 M-6816 kernel[0]: error iwl3945: U iwl3945_enqueue_hcmd Sending command REPLY_BT_CONFIG (#9b), seq: 0x0401, 16 bytes at 1[1]:4
Mar 1 09:07:23 M-6816 kernel[0]: GFX0: family specific matching failsWait START_ALIVE Condition: 0ms left
Mar 1 09:07:23 M-6816 kernel[0]: Wait for START_ALIVE timeout after 200ms.
Mar 1 09:07:23 M-6816 kernel[0]: error iwl3945: U iwl3945_mac_open leave - failed
Mar 1 09:07:23 M-6816 kernel[0]: Wait REPLY_BT_CONFIG Condition: 0ms left
Mar 1 09:07:23 M-6816 kernel[0]: error iwl3945: Error sending REPLY_BT_CONFIG: time out after 50ms.
Mar 1 09:07:23 M-6816 kernel[0]: error iwl3945: U iwl3945_commit_rxon Sending RXON
Mar 1 09:07:23 M-6816 kernel[0]: * without RXON_FILTER_ASSOC_MSK
Mar 1 09:07:23 M-6816 kernel[0]: * channel = 1
Mar 1 09:07:23 M-6816 kernel[0]: * bssid = 00:00:00:00:00:00
Mar 1 09:07:23 M-6816 kernel[0]: error iwl3945: U iwl3945_enqueue_hcmd Sending command REPLY_RXON (#10), seq: 0x0402, 48 bytes at 2[2]:4
Mar 1 09:07:23 M-6816 kernel[0]: Wait REPLY_RXON Condition: 0ms left
Mar 1 09:07:23 M-6816 kernel[0]: error iwl3945: Error sending REPLY_RXON: time out after 50ms.
Mar 1 09:07:23 M-6816 kernel[0]: error iwl3945: Error setting new configuration (-60).
Mar 1 09:07:23 M-6816 kernel[0]: error iwl3945: U iwl3945_alive_start ALIVE processing complete.
Mar 1 09:07:23 M-6816 kernel[0]: __ OUT iwl3945_alive_start __
NoSTaBoNN
Mar 1 2008, 10:00 PM
Is there any version of the 4965 AGN driver for Leopard available...
Even if its just for testing.
I tried the 10.4 but that gave me a kernel panic
Keep up the good work
hypnotic
Mar 1 2008, 10:55 PM
That would be great to test drivers for 4965 and post results here.
They say both intel 3945 and 4965 are very similar to each other.
If so , is it possible to make , what we have so far for 3945 , for 4965 ?
So as we are Intel 4965 users could join the club and help for building this driver together.
QUOTE(hypnotic @ Mar 1 2008, 11:55 PM)

That would be great to test drivers for 4965 and post results here.
They say both intel 3945 and 4965 are very similar to each other.
If so , is it possible to make , what we have so far for 3945 , for 4965 ?
So as we are Intel 4965 users could join the club and help for building this driver together.
Oh , yeah that would be nice , if you want you can work with me ,
As Jalavoui said , we can make the two cards working , with one driver , by using preprocessor instructions ,
you can take the 4965 driver from linux , and you have just 2 or 3 lines to change :
All function called by a tasklet,
For instance :
static void iwl3945_bg_restart(struct work_struct *data)
{
struct iwl3945_priv *priv = container_of(data, struct iwl3945_priv, restart);
must be replaced by
static void iwl3945_bg_restart(struct iwl3945_priv *priv)
{
//struct iwl3945_priv *priv = container_of(data, struct iwl3945_priv, restart);
And the INIT_WORK by adding a number for the task(not used at this moment), maybe the pci_alloc_consistent by adding a parameter at the end of the call, but it isn't used ( it is a relica of test )
Bye.
tivimac
Mar 2 2008, 02:13 AM
Im very thankful for the work that people like TNW, jalavoui, and Symic are doing for the Intel Wireless plattforn, right now Im on INTEL 2200 on Tiger and is working well with free/wep AP.
Im have a question. It's possible to use NSGUI or other to SAVE the passwords....? the stable version .2 cannot .. and others SVN neither...
Thanks for you time.
froewis
Mar 2 2008, 06:50 AM
if it will be helpfull i have a notebook with Intel 4965AGN wifi card for
testing drivers for MAC OS X 10.5 or MAC OS X 10.4.
NoSTaBoNN
Mar 2 2008, 11:34 AM
I was looking for the source of the 4965 linux driver...
But i don't seem to really find it
Anybody found it? I would really like to help!
Zi_Instigator
Mar 2 2008, 11:55 AM
Maybe
here
Hi ,
it seems that our problem of IOMallocContiguous doesn't exist I added Debug to pci_alloc_consistent:
CODE
void *pci_alloc_consistent(struct pci_dev *hwdev, size_t size,dma_addr_t *dma_handle,int count) {
size = RT_ALIGN_Z(size, PAGE_SIZE);
//return IOMallocContiguous(size,PAGE_SIZE, dma_handle);
void *pv = IOMallocContiguous(size, PAGE_SIZE, NULL);
if (pv)
{
IOMemoryDescriptor *pMemDesc = IOMemoryDescriptor::withAddress((vm_address_t)pv, size, kIODirectionOutIn, kernel_task);
if (pMemDesc)
{
pMemDesc->prepare( kIODirectionOutIn );
addr64_t PhysAddr = pMemDesc->getPhysicalSegment64(0, NULL);
IOByteCount length;
IOPhysicalAddress pp = pMemDesc->getPhysicalSegment(0,&length);
//bzero(pv,size);
memset(pv, 1, size);
IOLog("CHECK CONTIGUOUS VIRT@: 0x%08x PHYS@: 0x%08x VIRT_SIZE:%d PHYS_SIZE:%d \n",pv,pp,size,length);
for(int i=0;i<=size-10;i++){
UInt8 tmp = IOMappedRead8(pp+i);
if(tmp != 1 ){
IOLog("NON CONTIGUOUS @ 0x%08x\n",pp+i);
break;
}
}
//IOSleep(1000);
if ( PhysAddr > 0 && PhysAddr <= _4G && PhysAddr + size <= _4G)
{
//OK
//pMemDesc->release();
*dma_handle = pp;
bzero(pv,size);
memset(pv, 0, size);
return pv;
}
else
{
IOLog("Phy addr not good\n");
}
pMemDesc->release();
}
IOFreeContiguous(pv, size);
}
IOLog("Error\n");
*dma_handle = NULL;
return NULL;
}
And my log of the Driver is during the alloc of the Rx,Tx,etc:
CODE
Bad start :
CHECK CONTIGUOUS VIRT@: 0x1aca9000 PHYS@: 0x10190000 VIRT_SIZE:4096 PHYS_SIZE:4096
CHECK CONTIGUOUS VIRT@: 0x22031000 PHYS@: 0x02de2000 VIRT_SIZE:98304 PHYS_SIZE:98304
CHECK CONTIGUOUS VIRT@: 0x1acd9000 PHYS@: 0x020d6000 VIRT_SIZE:16384 PHYS_SIZE:16384
CHECK CONTIGUOUS VIRT@: 0x22049000 PHYS@: 0x02e14000 VIRT_SIZE:98304 PHYS_SIZE:98304
CHECK CONTIGUOUS VIRT@: 0x1ae5d000 PHYS@: 0x020e4000 VIRT_SIZE:16384 PHYS_SIZE:16384
CHECK CONTIGUOUS VIRT@: 0x22061000 PHYS@: 0x02e5f000 VIRT_SIZE:98304 PHYS_SIZE:98304
CHECK CONTIGUOUS VIRT@: 0x1ae89000 PHYS@: 0x0218b000 VIRT_SIZE:16384 PHYS_SIZE:16384
CHECK CONTIGUOUS VIRT@: 0x22079000 PHYS@: 0x02e95000 VIRT_SIZE:98304 PHYS_SIZE:98304
CHECK CONTIGUOUS VIRT@: 0x20bd7000 PHYS@: 0x02190000 VIRT_SIZE:16384 PHYS_SIZE:16384
CHECK CONTIGUOUS VIRT@: 0x20f9b000 PHYS@: 0x021d9000 VIRT_SIZE:16384 PHYS_SIZE:16384
CHECK CONTIGUOUS VIRT@: 0x21199000 PHYS@: 0x021e2000 VIRT_SIZE:16384 PHYS_SIZE:16384
CHECK CONTIGUOUS VIRT@: 0x22091000 PHYS@: 0x032d3000 VIRT_SIZE:98304 PHYS_SIZE:98304
CHECK CONTIGUOUS VIRT@: 0x21839000 PHYS@: 0x02208000 VIRT_SIZE:16384 PHYS_SIZE:16384
CODE
Good start :
CHECK CONTIGUOUS VIRT@: 0x1aca5000 PHYS@: 0x1a2ef000 VIRT_SIZE:4096 PHYS_SIZE:4096
CHECK CONTIGUOUS VIRT@: 0x21fbc000 PHYS@: 0x02a5c000 VIRT_SIZE:98304 PHYS_SIZE:98304
CHECK CONTIGUOUS VIRT@: 0x1ad49000 PHYS@: 0x0214c000 VIRT_SIZE:16384 PHYS_SIZE:16384
CHECK CONTIGUOUS VIRT@: 0x21fd4000 PHYS@: 0x040dd000 VIRT_SIZE:98304 PHYS_SIZE:98304
CHECK CONTIGUOUS VIRT@: 0x20aed000 PHYS@: 0x0218b000 VIRT_SIZE:16384 PHYS_SIZE:16384
CHECK CONTIGUOUS VIRT@: 0x21fec000 PHYS@: 0x04124000 VIRT_SIZE:98304 PHYS_SIZE:98304
CHECK CONTIGUOUS VIRT@: 0x20c52000 PHYS@: 0x02190000 VIRT_SIZE:16384 PHYS_SIZE:16384
CHECK CONTIGUOUS VIRT@: 0x22004000 PHYS@: 0x0429f000 VIRT_SIZE:98304 PHYS_SIZE:98304
CHECK CONTIGUOUS VIRT@: 0x21c76000 PHYS@: 0x0219a000 VIRT_SIZE:16384 PHYS_SIZE:16384
CHECK CONTIGUOUS VIRT@: 0x21c7c000 PHYS@: 0x021cc000 VIRT_SIZE:16384 PHYS_SIZE:16384
CHECK CONTIGUOUS VIRT@: 0x21db3000 PHYS@: 0x021d8000 VIRT_SIZE:16384 PHYS_SIZE:16384
CHECK CONTIGUOUS VIRT@: 0x2201c000 PHYS@: 0x04316000 VIRT_SIZE:98304 PHYS_SIZE:98304
CHECK CONTIGUOUS VIRT@: 0x21dbf000 PHYS@: 0x021ee000 VIRT_SIZE:16384 PHYS_SIZE:16384
It's seems that it isn't a problem of contiguousity(?) of the memory.
Maybe a problem of position of the queue in the physical space ?
NoSTaBoNN
Mar 2 2008, 04:21 PM
Zi_Instigator I found that page... but i'm not finding any sourcecode

If i download it, its a uCode file... With what i don't know what to do
Sorry if this sounds stupid, but i'm new to MacOS.
jalavoui
Mar 2 2008, 04:32 PM
TNW,
you need to setup fTransmitQueue to work (i think this also afects the iwl3945_send_cmd)
this is related to outputPacket()
you also need to handle the interface up/down see enable()/disable(). this is important after the driver gets associated to a network but it's better to write this code now.
all this code is in iwi2200
for IO80211Controller you can take a look at old iwi2200 IO80211Controller version - the code for enable()/disable() is not the same as for a IOEthernetController
if you want to get less bugs you should use IOEthernetController code and when the driver is stable you can move to the IO80211Controller version.
check some code in iwi3945 - you might want to try this:
desc->v_addr = pci_alloc_consistent(pci_dev, desc->len, &desc->p_addr,desc->len); (last desc->len could be a wrong value - try sizeof(__le32*)
priv->hw_setting.shared_virt =
pci_alloc_consistent(priv->pci_dev,
sizeof(struct iwl3945_shared*),
&priv->hw_setting.shared_phys,sizeof(struct iwl3945_shared*)); (just add struct *)
txq->bd = pci_alloc_consistent(dev,
sizeof(txq->bd[0]) * TFD_QUEUE_SIZE_MAX,
&txq->q.dma_addr,sizeof(struct iwl3945_tfd_frame*)); (sizeof iwl3945_tfd_frame)
txq->cmd = pci_alloc_consistent(dev, len, &txq->dma_addr_cmd, sizeof(struct iwl3945_cmd*)); (just add struct *)
rxq->bd = pci_alloc_consistent(dev, 4 * RX_QUEUE_SIZE, &rxq->dma_addr,sizeof(__le32*));
and maybe change this function to:
void *pci_alloc_consistent(struct pci_dev *hwdev, size_t size,dma_addr_t *dma_handle,int count) {
//size = RT_ALIGN_Z(size, PAGE_SIZE);
return IOMallocContiguous(size,count, dma_handle);
you might have a problem with getPacketBufferConstraints(). looks like the driver need to have the packects aligned in a certain way- i don't know how to deal with this...
you also need getMaxPacketSize(), getMinPacketSize()
check darwin_iwi2200::ipw_link_up(). you'll need this when the driver associates to a network
iw iwi3945 you should not use CONFIG_IWL3945_QOS. this is not important to make the driver works i've disabled it in iwi2200
you'll need to make iwl3945_xxx_station functions to work (mac80211 code). this code starts at ieee80211_register_hw(). looks like stations are the same as ieee->networks in ieee80211 iwi2200 code.
you might have some bugs related with skb functions:
skb_reserve() - copy from iwi2200.h
__alloc_skb() set mbuf_len() and mbuf_pkthdr_len() to zero after allocatePacket()
you need to debug this functions - they're very important
let me know if any of this help the driver to be more stable
Hi,
I already test to change the page size , but it didn't change anything :/
Thank's for your help
Neo Os
Mar 2 2008, 08:19 PM
when i type
sh /etc/rc on single user it says
command not found....
why is that?
i wanted to start testing the 3945 wifi driver

thx for the help.
balder
Mar 2 2008, 08:34 PM
Hy
Would have loved if you you told me how you got Marvell Yukon 88E8055 working, cause my dont work.
thx
PAGmind
Mar 2 2008, 10:07 PM
May be RAlink drivers can help to develop intel drivers?
Contact to ralink: ralink@rapla.net
Web:
http://ralink.rapla.net/
shpitz461
Mar 3 2008, 06:16 AM
I've finally got the iwi2200 to work with my 2915 on a Dell Inspiron 600m.
I have 10.5.2 kalyway installed (10.5.1 with patch to .2) and everything works as far as I can tell (i haven't tried the NIC).
nsGUI doesn't work, I run it but nothing happens. but networkselector works fine.
nothing worked automatically: after installing iwi2200 10.5 driver it didn't work. I ran the command 'sudo dmesg' which showed that the driver wasn't even loaded. I ran it manually using 'kextload -t /System/Library/Extensions/iwi2200.kext'.
once this was done I went to the network configuration screen in control panel and installed (+) the adapter (it finally showed as an option).
lastly, networkselector worked to configure the wireless manually.
Awesome job and many thanks to all people involved in getting this to work! greatly appreciated.
is there a way I can use 802.11a radio? what about 128-bit key? key id has to be 1 or can i use others (1-4 usually)?
thanks
Hi ,
I've a mission for you ! XD ( That IS a colaborative project =p )
I join with this post a version of the driver to test .
Your mission , if you accept it , is to test the driver 3 times ,
and you have to give me the result of those 3 tests( dmesg only the last 10 lines ) in a file .
Some times the driver is very long to loads (30 sec)
Thank's that will help me.
[EDIT]: It's a 3945 version.
shpitz461
Mar 3 2008, 09:40 PM
QUOTE(TNW @ Mar 3 2008, 04:17 PM)

Hi ,
I've a mission for you ! XD ( That IS a colaborative project =p )
I join with this post a version of the driver to test .
Your mission , if you accept it , is to test the driver 3 times ,
and you have to give me the result of those 3 tests( dmesg only the last 10 lines ) in a file .
Some times the driver is very long to loads (30 sec)
Thank's that will help me.
is it for 2200/2915 or the other cards?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.