Jump to content
3992 posts in this topic

Recommended Posts

yes, you can try to debug the driver - check the bg_alive_start() function

 

 

I am working on it. I am using Xcode version 2.4.1 . I have downloaded all of the files listed in the trunk/svn/ folder. I have some questions becuase I am experiencing problems when compiling... Is it possible that I am missing essential files? Which files or trees should I be downloading specifically, and which verision of Xcode should I obtain?

 

FYI I am getting a permission error during a release type build. "cp: /system/library/extensions/iwi3945.kext"

 

Also, I do not have the option to build and go. I apologize as I am not familiar with Xcode. All help is appreciated!

the permission error is due to xcode trying to install the driver when you build without super user capabilities, just ignore that and make sure you install the driver from the [project dir]\build\Release directory.

you don't have build and go since this is a driver, build and go means build and start the program, but with a driver there is no program to start.

i would replace it, but i don't remember what was there before :censored2:

do you have some old version of the driver let me know so i can compare and undo that change.

 

you can use xcode to see the diffs betwen releases (i've posted a picture of it some post ago)

 

 

iwi2100 rev 410

check if networlselector works

 

http://code.google.com/p/iwidarwin/

3. trying to implement disconnect...

 

if you do this the driver will have to restart scanning - better to use the power off to disconnect (more stable).

 

 

 

Is it possible that I am missing essential files?

 

if you mean the red linked files - they are the linux sources i use for reference

 

you only need this to look at linux sources - get if from intel linux site (the links are in iwidarwin)

 

the iwi's files have the ported code to mac os x

 

when you press "build" xcode calls a script that copy the .kext to extensions. reboot to test the driver

 

sorry for the wrong permissions - i always use the "root" account

if you do this the driver will have to restart scanning - better to use the power off to disconnect (more stable).

 

the power-cicly isn't stable either... it crashes after some time, but i will take your word on it, you are more experienced than i on the driver code.

 

anyways, another change to be implemented on the next version of nsGUI:

statusbar icon & menu. just like original airport menu. again, cosmetic changes to make you feel more "at home" or to be exact, make nsGUI more airport-y.

the program will load at login and will enable you to use the main interface if you wish, or do everything from the statusbar menu.

 

i will search for the older version of iwi2200 here to see if i can use it to backtrace the changes...

but now, some sleep...

Guys, really sheds some light on things! I appreciate it, I am working on debugging the bg_start_alive() function... You want me to see what causes the system to crash, right? If so, i'll do this by commenting/uncommenting bits of the code, etc... Also instead of booting to Aqua each time after moving kext to extensions, is there a way I can test all of this after booting with -s? So far I get the kext to load no problem, but I do not see en1 after running ifconfig. I always see en1 listed with correct MAC address when I load system to Aqua. I think I need to be restarting a service... Any ideas?

 

Forgive my lack of unix knowledge icon4.gif

iwi3945

for those who get mac address like ff:ff:ff:ff:ff:ff - try to add the mac address (from windows) to the NetworkInterfaces.plist - maybe this hack can help...

i have tryed this

but dont work

For this to work, it has to be edited in with Plist Editor because the MAC address is encrypted or compressed or something. Plist editor comes with xcode or you can google it and get a third-party program called Plist Editor Pro.

 

PincoPanco:

I think there are other issues preventing your card to work. I suggest you boot without your USB Wireless and then try this:

sudo -s
cd /Library/Preferences/SystemConfiguration
mv NetworkInterfaces.plist NetwrkInterfaces.plist.bak
touch /System/Library/Extensions/
reboot

When you reboot, hopefully a new NetworkInterfaces will have been created. If not go to System Preferences and setup your Interfaces.

Edit your NetworkInterfaces.plist (not the .bak) with Plist Editor to change your MAC address.

Reboot again and post your logs.

If this doesn't work, I am out of ideas. Maybe you have a weird version of the card that the iwi3945.kext can't detect.

 

what card do you have ? be sure to use latest versions of the driver/network selector

 

PincoPanco, you should do this too. New version 410 was posted at Google Code yesterday. Right now nsGUI doesn't do anything for 3945 (in my experience), so don't use it ntil we figure out these other problems.

Also, will you boot to Windows or look in your BIOS (if it is displayed there - My Dell does that) and verify that your card is 3945. I know that is a dumb question, but this just doesn't make sense. My card loads up fine with rev 409. (It doesn't run yet, but it is doing what it is supposed to.)

i will search for the older version of iwi2200 here to see if i can use it to backtrace the changes...

but now, some sleep...

 

you don't need to do that - you can see older versions on xcode in the svn tab - much easier this way

if you have time try to setup svn so you can commit - the svn tree is getting obsolete with networkselector, but i think we should keep it for non gui testing

 

JustJoe,

 

the hardware bug is tricky - i hope you find a solution for it

you can try some iopcidevice functions hack - maybe the problem is there

 

I always see en1 listed with correct MAC address when I load system to Aqua. I think I need to be restarting a service... Any ideas?

 

after you open system preferences - network, mac os should add the interface and configure it for you.

 

to debug reboot with -s

type sh etc/rc

kextload System/library/extensions/iwi3945.kext to load it

./networkselector to call the app - use option (1) to turn the card on

 

after this you should check the iwi3945.cpp code that does the (1) option [this is configureConnection()]and the bg_alive_Start()

 

my guess is that the radio on (1) is the cause of the problem

 

the driver is expected to start scanning when (1) is used...

 

i hope you can fix this

 

 

iwi2100

this is the best driver to start debuging - it's almost ready

anyone can help with xcode?

- Running 10.4.9 with 8.9.1 SSE3 Only Kernel from May 11th

- iwi3945 rev 410

- nsGUI 0.2

 

Results:

 

- No more kernel panic when pressing Power Off in nsGUI. Nothing significant seems to happen though.

Correction: Button doesn't change, but logs indicate card status change

- MAC address not detected by nsGUI. It is however detected by prefPanes, and listed by ifconfig -a. Checked NetworkInterfaces.plist, and it is listed there as well (en3).

dmesg.txt

system.txt

ioreg.txt

- nsGUI 0.2

 

this is for iwi2200 only - please use networkselector

 

moses,

 

do you get this in you xcode?

 

if so you only need to press "compare" to see the previous releases

 

maybe you need to setup https svn access (use you gmail account and passoword) for rapidSVN

 

you'll need to open the terminal and type

 

svn list https://iwidarwin.googlecode.com/svn to get the certificiate and add it to svn prefereces

 

this is tricky - if you manage to setup this can you write a howto in iwidarwin?

 

JustJoe,

thanks for the svn book :rolleyes:

post-53253-1179765322_thumb.png

post-53253-1179765715_thumb.png

svn ...

this is tricky - if you manage to setup this can you write a howto in iwidarwin?

Or update the one that is there (wiki/usingSVN.wiki - in repository) :) It really needs it.

 

JustJoe,

thanks for the svn book :)

Yeah I think with so many people working on it right now, we should really pay attention to commit/merge, etc.

Does your rapidSVN do merges automatically?

 

When I set mine up, I did command-line svn, accepted the certificate, Update'd local copy, then just put the https://.. into my gui SVN and xcode.

 

A reorganization could be a good thing too - deprecated branches (Apple80211), moving linux code to its own directory, etc. Developers should discuss this sometime.

A reorganization could be a good thing too - deprecated branches (Apple80211), moving linux code to its own directory, etc. Developers should discuss this sometime.

 

i'd like to keep Apple80211, because maybe one day apple might open they framework ;)

Every time I log into InsanelyMac I click this bookmark I have.

 

Since the site knows when I made my last click in this topic, it can take me to the first post made after my last click.

It is so great. I don't have to wonder if there is a new version. I don't have to wonder if any progress is being made. I don't have to worry about bothering the developers. I just read, and it is all there.

 

http://forum.insanelymac.com/index.php?sho...view=getnewpost

Every time I log into InsanelyMac I click this bookmark I have. http://forum.insanelymac.com/index.php?sho...view=getnewpost

 

 

I use this as well, it is very useful!

 

Quick question about downloading the sources, is there fast way to download everything in the /trunk/iwi3945 folder recursively? Answered my own question, found SmartSVN, can be downloaded from here. Ok, RapidSVN is better in my opinion... can be downloaded here.

i think one of the problems that cause this is the radio switch.

if you can, check the code that turns the card on (in iwi3945.cpp) for networkselector - it needs some hacking as i did for iwi2200 (0x30 hack)

 

0x30 hack means configureConnection() in iwi2200.cpp?

 

networkSelector/main.cpp

-> setsockopt opt=1

-> iwi3945.cpp

-> configureConnection opt=1

-> ipw_up :: "HACK:"

 

I copy code from iwi2200 to iwi3945, and then from networkselecter turn on card,

it go into infinit loop.

 

I noticed with normal rev 409. one cpu got 100% usage.

 

--

some time I got rx interrupt, but I don't know what does it mean..

 

iwi3945: interrupt recieved 0x82000009 masked 0xc531f832 card mask 0xaa000003

iwi3945: Rx interrupt

iwi3945: iwi3945: Received ERROR (#10)

iwi3945: Error Reply type 0x00000000 cmd (0x3276F1AC) seq 0x00C3 ser 0x0000F000

 

iwi3945: interrupt recieved 0x82000009 masked 0xc531f832 card mask 0xaa000003

iwi3945: Rx interrupt

iwi3945: iwi3945: Received ERROR (#10)

iwi3945: Error Reply type 0x00000000 cmd (0x3276F948) seq 0x0066 ser 0x00000010

iwi2200 rev 413

 

moses, this version as gt_fragment removed

i haven't test it yet

i just remebered that svn might be disabled in xcode - this is because i use the "root" account

 

I copy code from iwi2200 to iwi3945, and then from networkselecter turn on card,

it go into infinit loop.

 

the 0x30 hack is for 2200 - you need to find something else for 3945 (try to check 2100 code)

this hack turns the radio on/off - i don't know how to do this for 3945

 

the hack is similiar to press the "wireless button" - some of the 3945 cards as this button

so the driver should change the radio on/off when pressed - you can check this if your card as it

the problem i have in 2200 is that i get different values (0x40001/0x50001 instead of 0x40000/0x50000). this works for now but it's not a very good solution

Guest
This topic is now closed to further replies.
×
×
  • Create New...