Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Native Airport Extreme Drivers
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 6, 7, 8 ... 40, 41, 42  Next  
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Dec 26, 2005 4:25 am    Post subject: Reply with quote

blixel:
https://forums.gentoo.org/viewtopic-p-2936474.html#2936474 <- There was no need to reinstall OSX or use an Apple Airport driver.

It looks like you're using SoftMAC. Make sure you follow the order of the instructions to associate with your Open AP given on the first page, for instance, you'll need to ifconfig up the device before setting any wireless settings. What exactly are you doing to get to this point?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
blixel
Guru
Guru


Joined: 19 Jul 2004
Posts: 403
Location: Central, Florida

PostPosted: Mon Dec 26, 2005 4:44 am    Post subject: Reply with quote

JoseJX wrote:
blixel:
https://forums.gentoo.org/viewtopic-p-2936474.html#2936474 <- There was no need to reinstall OSX or use an Apple Airport driver.


Right, it's just a file. I realized ahead of time I could have simply copied it from someone else, had I known where to get it. And I certainly wouldn't have guessed that wl_apsta.o == AppleAirport2 even if I had seen that page.

Regardless, I made the decision to give up some space for OSX just so it would be there anyway.

JoseJX wrote:
It looks like you're using SoftMAC.


As opposed to what exactly? I'm going by the directions on the first page. I didn't see an alternative to SoftMAC.

JoseJX wrote:
Make sure you follow the order of the instructions to associate with your Open AP given on the first page, for instance, you'll need to ifconfig up the device before setting any wireless settings. What exactly are you doing to get to this point?


I have a fresh install of Gentoo using the 2005.1 minimal Live CD. I only have it installed up to the point of the reboot basically. Though as I'm working on this Airport Extreme issue, I'm slowly adding other things. Since I started, I now have xorg-x11, and I just finished configuring alsasound. No Gnome, no KDE, nothing like that. A very clean install at this point.

To keep everything organized, I created an AE2 directory (for Airport Extreme (2 = second attempt)) with /root. So ... /root/AE2

I then created a /root/AE2/softmac directory.

I then changed to the /root/AE2/softmac directory and completed step 1.

Code:
archangel softmac # hg clone http://softmac.sipsolutions.net/source
requesting all changes
adding changesets
adding manifests
adding file changes
added 213 changesets with 395 changes to 16 files
archangel softmac # cd source
archangel source # make
make -C /lib/modules/2.6.15-rc7/build M=/root/AE2/softmac/source modules
make[1]: Entering directory `/usr/src/linux-2.6.15-rc7'
  CC [M]  /root/AE2/softmac/source/ieee80211softmac_io.o
/root/AE2/softmac/source/ieee80211softmac_io.c:445: warning: 'ieee80211softmac_send_ctl_frame' defined but not used
  CC [M]  /root/AE2/softmac/source/ieee80211softmac_auth.o
  CC [M]  /root/AE2/softmac/source/ieee80211softmac_module.o
  CC [M]  /root/AE2/softmac/source/ieee80211softmac_scan.o
  CC [M]  /root/AE2/softmac/source/ieee80211softmac_wx.o
  CC [M]  /root/AE2/softmac/source/ieee80211softmac_assoc.o
/root/AE2/softmac/source/ieee80211softmac_assoc.c:62: warning: 'ieee80211softmac_reassoc' defined but not used
  CC [M]  /root/AE2/softmac/source/ieee80211softmac_event.o
  LD [M]  /root/AE2/softmac/source/ieee80211softmac.o
  Building modules, stage 2.
  MODPOST
  CC      /root/AE2/softmac/source/ieee80211softmac.mod.o
  LD [M]  /root/AE2/softmac/source/ieee80211softmac.ko
make[1]: Leaving directory `/usr/src/linux-2.6.15-rc7'


No problems there, so then I "insmod ieee80211softmac.ko" from within the /root/AE2/softmac/source directory. Command prompt comes right back, no complaints. "lsmod" shows it's loaded.

So I proceed to Step 2.

I create a /root/AE/bcm43xx directory to keep everything separate and clean.

hmmm.... I wonder. Perhaps that is the problem now that I think about it. I'll try again right now and run svn from within /root/AE/softmac/source
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Dec 26, 2005 4:53 am    Post subject: Reply with quote

As step 5 says and as is repeated elsewhere in this discussion and in the README, you do not need to use an AppleAirport2 file to fetch the firmware. It is the same on all arches and OSes. It does not matter which file you get the firmware from as long as the firmware was released after your card was produced. So I suggested the wl_apsta.o file in the post I linked to since it's an easy to get, relatively new file.

As for my SoftMAC remark, right at the top of the first post, there is a link to instructions on using the devicescape stack. Once you get SoftMAC working, it's worth your time to try to use devicescape instead since it supports WEP and WPA. I don't recommend it unless you're at least somewhat familiar with merging kernel patches, it's a bit of a pain to install, but the option is there.

I see nothing wrong with the steps you've posted so far.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
blixel
Guru
Guru


Joined: 19 Jul 2004
Posts: 403
Location: Central, Florida

PostPosted: Mon Dec 26, 2005 5:03 am    Post subject: Reply with quote

blixel wrote:
So I proceed to Step 2.

I create a /root/AE/bcm43xx directory to keep everything separate and clean.

hmmm.... I wonder. Perhaps that is the problem now that I think about it. I'll try again right now and run svn from within /root/AE/softmac/source


OK ... well, that wasn't it. Or at least, not entirely. I put my dmesg output here ... not sure if that tells you anything though.
Back to top
View user's profile Send private message
blixel
Guru
Guru


Joined: 19 Jul 2004
Posts: 403
Location: Central, Florida

PostPosted: Mon Dec 26, 2005 5:20 am    Post subject: Reply with quote

JoseJX wrote:
I see nothing wrong with the steps you've posted so far.


Here's the rest then:

Code:
archangel source # modprobe ieee1394
archangel source # modprobe ieee80211
archangel source # insmod ieee80211softmac.ko
archangel source # svn checkout svn://svn.berlios.de/bcm43xx/trunk
A    trunk/fwcutter
A    trunk/fwcutter/fwcutter.c
A    trunk/fwcutter/fwcutter_list.h
A    trunk/fwcutter/md5.c
A    trunk/fwcutter/md5.h
A    trunk/fwcutter/Makefile
A    trunk/fwcutter/README
A    trunk/lo_test
A    trunk/lo_test/reader.c
A    trunk/lo_test/bcm430x.h
A    trunk/lo_test/reader.h
A    trunk/lo_test/lo_test.c
A    trunk/driver
A    trunk/driver/bcm43xx_pio.c
A    trunk/driver/bcm43xx_ilt.c
A    trunk/driver/bcm43xx_main.h
A    trunk/driver/bcm43xx_pio.h
A    trunk/driver/bcm43xx_power.c
A    trunk/driver/bcm43xx_ilt.h
A    trunk/driver/bcm43xx_radio.c
A    trunk/driver/bcm43xx_wx.c
A    trunk/driver/bcm43xx_phy.c
A    trunk/driver/bcm43xx_dma.c
A    trunk/driver/bcm43xx_power.h
A    trunk/driver/bcm43xx_radio.h
A    trunk/driver/bcm43xx_wx.h
A    trunk/driver/README
A    trunk/driver/bcm43xx_phy.h
A    trunk/driver/bcm43xx_dma.h
A    trunk/driver/bcm43xx_debugfs.c
A    trunk/driver/COPYING
A    trunk/driver/bcm43xx_main.c
A    trunk/driver/bcm43xx_debugfs.h
A    trunk/driver/Makefile
A    trunk/driver/bcm43xx.h
Checked out revision 958.
archangel source # cd trunk/fwcutter/
archangel fwcutter # make
cc -std=c99 -O2 -fomit-frame-pointer -Wall -pedantic -D_BSD_SOURCE -DFWCUTTER_VERSION_=0.0.1   -c -o fwcutter.o fwcutter.c
cc -std=c99 -O2 -fomit-frame-pointer -Wall -pedantic -D_BSD_SOURCE -DFWCUTTER_VERSION_=0.0.1   -c -o md5.o md5.c
cc -std=c99 -O2 -fomit-frame-pointer -Wall -pedantic -D_BSD_SOURCE -DFWCUTTER_VERSION_=0.0.1 -o fwcutter fwcutter.o md5.o

archangel fwcutter # wget http://openwrt.inf.fh-brs.de/~nbd/wl_apsta.o
--23:45:07--  http://openwrt.inf.fh-brs.de/~nbd/wl_apsta.o
           => `wl_apsta.o'
Resolving openwrt.inf.fh-brs.de... 194.95.66.65
Connecting to openwrt.inf.fh-brs.de|194.95.66.65|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 652,866 (638K) [application/x-object]

100%[==============================================>] 652,866      116.96K/s    ETA 00:00

23:45:13 (121.23 KB/s) - `wl_apsta.o' saved [652866/652866]

archangel fwcutter # ./fwcutter wl_apsta.o
fwcutter can cut the firmware out of wl_apsta.o
  filename :  wl_apsta.o
  version  :  3.130.20.0
  MD5      :  e08665c5c5b66beb9c3b2dd54aa80cb3

extracting bcm43xx_microcode2.fw ...
extracting bcm43xx_microcode4.fw ...
extracting bcm43xx_microcode5.fw ...
extracting bcm43xx_microcode11.fw ...
extracting bcm43xx_pcm4.fw ...
extracting bcm43xx_pcm5.fw ...
extracting bcm43xx_initval01.fw ...
extracting bcm43xx_initval02.fw ...
extracting bcm43xx_initval03.fw ...
extracting bcm43xx_initval04.fw ...
extracting bcm43xx_initval05.fw ...
extracting bcm43xx_initval06.fw ...
extracting bcm43xx_initval07.fw ...
extracting bcm43xx_initval08.fw ...
extracting bcm43xx_initval09.fw ...
extracting bcm43xx_initval10.fw ...
archangel fwcutter # ls /lib/firmware/
bcm43xx_initval01.fw  bcm43xx_initval05.fw  bcm43xx_initval09.fw   bcm43xx_microcode5.fw
bcm43xx_initval02.fw  bcm43xx_initval06.fw  bcm43xx_initval10.fw   bcm43xx_pcm4.fw
bcm43xx_initval03.fw  bcm43xx_initval07.fw  bcm43xx_microcode2.fw  bcm43xx_pcm5.fw
bcm43xx_initval04.fw  bcm43xx_initval08.fw  bcm43xx_microcode4.fw
archangel fwcutter # rm /lib/firmware/*
archangel fwcutter # make installfw
if ! [ -d /lib/firmware ]; then mkdir /lib/firmware; fi
install -o 0 -g 0 -m 600 bcm43xx_*.fw /lib/firmware
archangel fwcutter # ls /lib/firmware/
bcm43xx_initval01.fw  bcm43xx_initval05.fw  bcm43xx_initval09.fw    bcm43xx_microcode4.fw
bcm43xx_initval02.fw  bcm43xx_initval06.fw  bcm43xx_initval10.fw    bcm43xx_microcode5.fw
bcm43xx_initval03.fw  bcm43xx_initval07.fw  bcm43xx_microcode11.fw  bcm43xx_pcm4.fw
bcm43xx_initval04.fw  bcm43xx_initval08.fw  bcm43xx_microcode2.fw   bcm43xx_pcm5.fw
archangel fwcutter # ls   
Makefile              bcm43xx_initval06.fw    bcm43xx_microcode4.fw  fwcutter_list.h
README                bcm43xx_initval07.fw    bcm43xx_microcode5.fw  md5.c
bcm43xx_initval01.fw  bcm43xx_initval08.fw    bcm43xx_pcm4.fw        md5.h
bcm43xx_initval02.fw  bcm43xx_initval09.fw    bcm43xx_pcm5.fw        md5.o
bcm43xx_initval03.fw  bcm43xx_initval10.fw    fwcutter               wl_apsta.o
bcm43xx_initval04.fw  bcm43xx_microcode11.fw  fwcutter.c
bcm43xx_initval05.fw  bcm43xx_microcode2.fw   fwcutter.o
archangel fwcutter # cd ../..
archangel source # cd trunk/driver/
archangel driver # SOFTMAC_DIR=/root/AE2/softmac/source make
make -C /lib/modules/2.6.15-rc7/build M=/root/AE2/softmac/source/trunk/driver modules
make[1]: Entering directory `/usr/src/linux-2.6.15-rc7'
  CC [M]  /root/AE2/softmac/source/trunk/driver/bcm43xx_main.o
/root/AE2/softmac/source/trunk/driver/bcm43xx_main.c:644: warning: 'bcm43xx_disassociate' defined but not used
/root/AE2/softmac/source/trunk/driver/bcm43xx_main.c:673: warning: 'bcm43xx_associate' defined but not used
  CC [M]  /root/AE2/softmac/source/trunk/driver/bcm43xx_dma.o
  CC [M]  /root/AE2/softmac/source/trunk/driver/bcm43xx_debugfs.o
  CC [M]  /root/AE2/softmac/source/trunk/driver/bcm43xx_radio.o
  CC [M]  /root/AE2/softmac/source/trunk/driver/bcm43xx_phy.o
  CC [M]  /root/AE2/softmac/source/trunk/driver/bcm43xx_power.o
  CC [M]  /root/AE2/softmac/source/trunk/driver/bcm43xx_wx.o
/root/AE2/softmac/source/trunk/driver/bcm43xx_wx.c:221: warning: 'bcm43xx_wx_set_sensitivity' defined but not used
/root/AE2/softmac/source/trunk/driver/bcm43xx_wx.c:231: warning: 'bcm43xx_wx_get_sensitivity' defined but not used
/root/AE2/softmac/source/trunk/driver/bcm43xx_wx.c:335: warning: 'bcm43xx_wx_set_apmac' defined but not used
/root/AE2/softmac/source/trunk/driver/bcm43xx_wx.c:345: warning: 'bcm43xx_wx_get_apmac' defined but not used
/root/AE2/softmac/source/trunk/driver/bcm43xx_wx.c:539: warning: 'bcm43xx_wx_set_retry' defined but not used
/root/AE2/softmac/source/trunk/driver/bcm43xx_wx.c:549: warning: 'bcm43xx_wx_get_retry' defined but not used
/root/AE2/softmac/source/trunk/driver/bcm43xx_wx.c:589: warning: 'bcm43xx_wx_set_power' defined but not used
/root/AE2/softmac/source/trunk/driver/bcm43xx_wx.c:599: warning: 'bcm43xx_wx_get_power' defined but not used
  CC [M]  /root/AE2/softmac/source/trunk/driver/bcm43xx_pio.o
  CC [M]  /root/AE2/softmac/source/trunk/driver/bcm43xx_ilt.o
  LD [M]  /root/AE2/softmac/source/trunk/driver/bcm43xx.o
  Building modules, stage 2.
  MODPOST
*** Warning: "free_ieee80211softmac" [/root/AE2/softmac/source/trunk/driver/bcm43xx.ko] undefined!
*** Warning: "ieee80211softmac_stop" [/root/AE2/softmac/source/trunk/driver/bcm43xx.ko] undefined!
*** Warning: "ieee80211softmac_wx_get_essid" [/root/AE2/softmac/source/trunk/driver/bcm43xx.ko] undefined!
*** Warning: "ieee80211softmac_wx_get_rate" [/root/AE2/softmac/source/trunk/driver/bcm43xx.ko] undefined!
*** Warning: "ieee80211softmac_wx_set_essid" [/root/AE2/softmac/source/trunk/driver/bcm43xx.ko] undefined!
*** Warning: "ieee80211softmac_start" [/root/AE2/softmac/source/trunk/driver/bcm43xx.ko] undefined!
*** Warning: "ieee80211softmac_wx_get_scan_results" [/root/AE2/softmac/source/trunk/driver/bcm43xx.ko] undefined!
*** Warning: "ieee80211softmac_wx_trigger_scan" [/root/AE2/softmac/source/trunk/driver/bcm43xx.ko] undefined!
*** Warning: "alloc_ieee80211softmac" [/root/AE2/softmac/source/trunk/driver/bcm43xx.ko] undefined!
*** Warning: "ieee80211softmac_wx_set_rate" [/root/AE2/softmac/source/trunk/driver/bcm43xx.ko] undefined!
  CC      /root/AE2/softmac/source/trunk/driver/bcm43xx.mod.o
  LD [M]  /root/AE2/softmac/source/trunk/driver/bcm43xx.ko
make[1]: Leaving directory `/usr/src/linux-2.6.15-rc7'
archangel driver # modprobe firmware_class
archangel driver # insmod bcm43xx.ko
archangel driver # ifconfig eth1 up
archangel driver #: iwlist eth1 scan


Hangs indefinitely at that point.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Dec 26, 2005 5:13 pm    Post subject: Reply with quote

Sounds like the same problem people were having earlier in the thread. It's some kind of locking issue I guess, but I can't reproduce it. Instead of scanning, try following the procedure listed on the first page in step 7.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
blixel
Guru
Guru


Joined: 19 Jul 2004
Posts: 403
Location: Central, Florida

PostPosted: Mon Dec 26, 2005 6:09 pm    Post subject: Reply with quote

JoseJX wrote:
Sounds like the same problem people were having earlier in the thread. It's some kind of locking issue I guess, but I can't reproduce it. Instead of scanning, try following the procedure listed on the first page in step 7.


This is interesting. I unload all the modules related to Airport Extreme.

Code:
# rmmod bcm43xx
# rmmod firmware_class
# rmmod ieee80211softmac
# rmmod ieee80211
# rmmod ieee80211_crypt
# rmmod ieee1394


Then I reload them all:

Code:
# modprobe ieee1394
# modprobe ieee80211
# insmod /root/ieee80211softmac.ko
# modprobe firmware_class
# insmod /root/bcm43xx


Then I run the commands in step 7 (skipping the scan):

Code:
# ifconfig eth1 up
# iwconfig eth1 channel 9
# iwconfig eth1 rate 11M
# iwconfig eth1 essid "FreeWIFI"


Then I run "dhcpcd eth1" and it gets an IP address! (That's a first.) And it even updates /etc/resolv.conf and sets up the routing table ... but I can't ping my gateway. And I can't ping the iBook from the computer sitting right next to it (which is on the same subnet of course.)
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Dec 26, 2005 6:29 pm    Post subject: Reply with quote

Yeah, as said elsewhere in this thread, pinging is not very reliable. Does it work otherwise?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
bz31
Tux's lil' helper
Tux's lil' helper


Joined: 20 Apr 2005
Posts: 108

PostPosted: Mon Dec 26, 2005 6:38 pm    Post subject: Reply with quote

Don't load ieee1394, it's for firewire.
Back to top
View user's profile Send private message
blixel
Guru
Guru


Joined: 19 Jul 2004
Posts: 403
Location: Central, Florida

PostPosted: Mon Dec 26, 2005 6:56 pm    Post subject: Reply with quote

JoseJX wrote:
Does it work otherwise?


No, it doesn't work at all. It doesn't stay associated to the AP.

Update: Actually, I take that back. ping is now working and I can hit google.com from the web browser. Weird. Nothing changed, but it seems to be working. I have this gut feeling though that it's temporary. That it's going to drop from the AP after just a minute or two.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Dec 26, 2005 7:10 pm    Post subject: Reply with quote

Is there a disassociation reason?

You might want to give devicescape a try, it deals with problem APs a whole lot more gracefully than SoftMAC.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
blixel
Guru
Guru


Joined: 19 Jul 2004
Posts: 403
Location: Central, Florida

PostPosted: Mon Dec 26, 2005 7:18 pm    Post subject: Reply with quote

JoseJX wrote:
Is there a disassociation reason?


No ... before I just kept seeing this in the dmesg

Code:
SoftMAC: /root/AE2/softmac/source/ieee80211softmac_assoc.c:15:ieee80211softmac_assoc()
SoftMAC: sent association request!
SoftMAC: associated!
SoftMAC: got disassoc frame
SoftMAC: got disassoc frame
SoftMAC: got disassoc frame
SoftMAC: got disassoc frame
SoftMAC: got disassoc frame
SoftMAC: got disassoc frame


The "got dissasoc frame" would repeat about 25 times and then I would get "bcm43xx: Radio turned off"

It's staying connected at the moment though. Such a bizarre thing.

Update: geez ... I sent that message less than 1 minute ago and the connection is already gone.

Code:
SoftMAC: got disassoc frame
DEAUTH from AP


JoseJX wrote:
You might want to give devicescape a try, it deals with problem APs a whole lot more gracefully than SoftMAC.


Alright ... I think I will no matter what happens here with this current setup. I have kind of a custom firewall. A Soekris net4801 running m0n0wall. Has always been rock solid though.
Back to top
View user's profile Send private message
bz31
Tux's lil' helper
Tux's lil' helper


Joined: 20 Apr 2005
Posts: 108

PostPosted: Tue Dec 27, 2005 8:42 am    Post subject: Reply with quote

darklesi wrote:
fuoco wrote:
I tried to patch the kernel with dscape patches, but I had some problems. I was using 2.6.15-rc6 - is that OK ?
There are more than one patch in there - in what order should they be merged ?


Hi there

I'm using yhat kernel version to and when trying to patch i have also a lot of problems ... As this is still in develop i will keep an eye on this ;)

Sorry the english :D
Cheers

Try to patch in this order :
ftp://ftp.kernel.org/pub/linux/kernel/people/jbenc/ieee80211-devicescape-051222/series

The first and the second patches need some manual correction.
Back to top
View user's profile Send private message
Anarchy
Developer
Developer


Joined: 29 Jun 2005
Posts: 135

PostPosted: Tue Dec 27, 2005 5:13 pm    Post subject: Reply with quote

bz31 wrote:
darklesi wrote:
fuoco wrote:
I tried to patch the kernel with dscape patches, but I had some problems. I was using 2.6.15-rc6 - is that OK ?
There are more than one patch in there - in what order should they be merged ?


Hi there

I'm using yhat kernel version to and when trying to patch i have also a lot of problems ... As this is still in develop i will keep an eye on this ;)

Sorry the english :D
Cheers

Try to patch in this order :
ftp://ftp.kernel.org/pub/linux/kernel/people/jbenc/ieee80211-devicescape-051222/series

The first and the second patches need some manual correction.


You can find both patches at http://dev.gentoo.org/~anarchy/broadcom

they have been rediffed to apply cleanly.

I have a current problem with WEP at moment using dscape tho.

ta0: RX authentication from 00:0d:72:bf:98:f1 (alg=0 transaction=2 status=0)
sta0: authenticated
sta0: associate with AP 00:0d:72:bf:98:f1
sta0: authentication frame received from 00:0d:72:bf:98:f1, but not in authenticate state - ignored
sta0: associate with AP 00:0d:72:bf:98:f1
sta0: associate with AP 00:0d:72:bf:98:f1
sta0: association with AP 00:0d:72:bf:98:f1 timed out

if anyone has any ideals let me know I am willing to test whatever it takes to make it happen.
Back to top
View user's profile Send private message
mhershbe
n00b
n00b


Joined: 07 Oct 2004
Posts: 9
Location: Gainesville, FL

PostPosted: Wed Dec 28, 2005 5:47 pm    Post subject: Reply with quote

I am hoping someone will notice something I am not. I have followed the instructions to the tee. I have patched vanilla-sources 2.6.15-rc6 against the devicescape patches.

I assume the kernel config is correct...

Code:
mhershbe@tiger ~ $ grep -i config_fw /usr/src/linux/.config
CONFIG_FW_LOADER=y

Code:
mhershbe@tiger ~ $ grep -i hotplug /usr/src/linux/.config
CONFIG_HOTPLUG=y


hotplug is running...

Code:
mhershbe@tiger ~ $ rc-status -s | grep hotplug
 hotplug                                                             [ started ]


I have the modules loaded...

Code:
mhershbe@tiger ~ $ lsmod
Module                  Size  Used by
bcm43xx               416208  0
rate_control            5248  0
80211                 154700  2 bcm43xx,rate_control
i2c_keywest            11360  0
snd_powermac           51424  1
i2c_dev                10848  0
i2c_core               24208  3 i2c_keywest,snd_powermac,i2c_dev


When I attempt to bring wlan0 up I receive...

Code:
mhershbe@tiger ~ $ sudo ifconfig wlan0 up
SIOCSIFFLAGS: No such file or directory


dmesg is as follows...

Code:
bcm43xx: Chip ID 0x4306, rev 0x3
bcm43xx: Number of cores: 5
bcm43xx: Core 0: ID 0x800, rev 0x4, vendor 0x4243, enabled
bcm43xx: Core 1: ID 0x812, rev 0x5, vendor 0x4243, disabled
bcm43xx: Core 2: ID 0x80d, rev 0x2, vendor 0x4243, enabled
bcm43xx: Core 3: ID 0x807, rev 0x2, vendor 0x4243, disabled
bcm43xx: Core 4: ID 0x804, rev 0x9, vendor 0x4243, enabled
bcm43xx: PHY connected
bcm43xx: Detected PHY: Version: 2, Type 2, Revision 2
bcm43xx: Detected Radio:  ID: 2205017f (Manuf: 17f Ver: 2050 Rev: 2)
bcm43xx: Radio turned off
bcm43xx: Radio turned off
wlan0: Selected rate control algorithm 'simple'
bcm43xx: PHY connected
bcm43xx: Error: Microcode "bcm43xx_microcode5.fw" not available or load failed.
bcm43xx: PHY connected
bcm43xx: Error: Microcode "bcm43xx_microcode5.fw" not available or load failed.
mhershbe@tiger ~ $


the firmware files are in the correct location...

Code:
mhershbe@tiger ~ $ ls -l /lib/firmware/
total 132
-rw-------  1 root root  3504 Dec 27 15:06 bcm43xx_initval01.fw
-rw-------  1 root root    16 Dec 27 15:06 bcm43xx_initval02.fw
-rw-------  1 root root  3504 Dec 27 15:06 bcm43xx_initval03.fw
-rw-------  1 root root    16 Dec 27 15:06 bcm43xx_initval04.fw
-rw-------  1 root root  2536 Dec 27 15:06 bcm43xx_initval05.fw
-rw-------  1 root root   248 Dec 27 15:06 bcm43xx_initval06.fw
-rw-------  1 root root  2536 Dec 27 15:06 bcm43xx_initval07.fw
-rw-------  1 root root  2536 Dec 27 15:06 bcm43xx_initval08.fw
-rw-------  1 root root   248 Dec 27 15:06 bcm43xx_initval09.fw
-rw-------  1 root root   248 Dec 27 15:06 bcm43xx_initval10.fw
-rw-------  1 root root 21672 Dec 27 15:06 bcm43xx_microcode11.fw
-rw-------  1 root root 16352 Dec 27 15:06 bcm43xx_microcode2.fw
-rw-------  1 root root 20088 Dec 27 15:06 bcm43xx_microcode4.fw
-rw-------  1 root root 22272 Dec 27 15:06 bcm43xx_microcode5.fw
-rw-------  1 root root  1312 Dec 27 15:06 bcm43xx_pcm4.fw
-rw-------  1 root root  1312 Dec 27 15:06 bcm43xx_pcm5.fw


I extracted the firmware from wl_apsta.o . I really do not know where to go from here, any and all help will be greatly appreciated. Thanks!
Back to top
View user's profile Send private message
bz31
Tux's lil' helper
Tux's lil' helper


Joined: 20 Apr 2005
Posts: 108

PostPosted: Wed Dec 28, 2005 5:59 pm    Post subject: Reply with quote

mhershbe wrote:
When I attempt to bring wlan0 up I receive...
Code:
mhershbe@tiger ~ $ sudo ifconfig wlan0 up
SIOCSIFFLAGS: No such file or directory

You should use the script sta_up.sh to bring sta0 (and others) up. See step 6) of the HOWTO https://lists.berlios.de/pipermail/bcm43xx-dev/2005-December/000733.html
Back to top
View user's profile Send private message
mhershbe
n00b
n00b


Joined: 07 Oct 2004
Posts: 9
Location: Gainesville, FL

PostPosted: Wed Dec 28, 2005 6:07 pm    Post subject: Reply with quote

bz31 wrote:
mhershbe wrote:
When I attempt to bring wlan0 up I receive...
Code:
mhershbe@tiger ~ $ sudo ifconfig wlan0 up
SIOCSIFFLAGS: No such file or directory

You should use the script sta_up.sh to bring sta0 (and others) up. See step 6) of the HOWTO https://lists.berlios.de/pipermail/bcm43xx-dev/2005-December/000733.html


Code:
tiger bcm43xx-dscape-20051227 # ./sta_up.sh
gcc -O0 -o ./.add_sta ./.add_sta.c
./.add_sta wlan0 sta0
iwconfig wlan0.11 mode managed
ifconfig wlan0.11 up
SIOCSIFFLAGS: No such file or directory
FAILED (255)

Code:

bcm43xx: Error: Microcode "bcm43xx_microcode5.fw" not available or load failed.


Same deal.
Back to top
View user's profile Send private message
bz31
Tux's lil' helper
Tux's lil' helper


Joined: 20 Apr 2005
Posts: 108

PostPosted: Wed Dec 28, 2005 6:16 pm    Post subject: Reply with quote

You use CONFIG_FW_LOADER=y.
Have you tested CONFIG_FW_LOADER=m ?
Back to top
View user's profile Send private message
mhershbe
n00b
n00b


Joined: 07 Oct 2004
Posts: 9
Location: Gainesville, FL

PostPosted: Wed Dec 28, 2005 7:55 pm    Post subject: Reply with quote

bz31 wrote:
You use CONFIG_FW_LOADER=y.
Have you tested CONFIG_FW_LOADER=m ?


With CONFIG_FW_LOADER=m :

Code:
mhershbe@tiger ~ $ lsmod
Module                  Size  Used by
bcm43xx               416208  0
rate_control            5248  0
80211                 154700  2 bcm43xx,rate_control
firmware_class         11936  1 bcm43xx
i2c_keywest            11360  0
snd_powermac           51424  1
i2c_dev                10848  0
i2c_core               24208  3 i2c_keywest,snd_powermac,i2c_dev


Code:
tiger bcm43xx-dscape-20051227 # ./sta_up.sh
gcc -O0 -o ./.add_sta ./.add_sta.c
./.add_sta wlan0 sta0
iwconfig wlan0.11 mode managed
ifconfig wlan0.11 up
SIOCSIFFLAGS: No such file or directory
FAILED (255)


Code:
bcm43xx: Error: Microcode "bcm43xx_microcode5.fw" not available or load failed.
Back to top
View user's profile Send private message
bz31
Tux's lil' helper
Tux's lil' helper


Joined: 20 Apr 2005
Posts: 108

PostPosted: Wed Dec 28, 2005 8:17 pm    Post subject: Reply with quote

Try to copy the firmware files from /lib/firmware to /lib/hotplug/firmware if you are using old version udev.
Back to top
View user's profile Send private message
blixel
Guru
Guru


Joined: 19 Jul 2004
Posts: 403
Location: Central, Florida

PostPosted: Wed Dec 28, 2005 11:18 pm    Post subject: question about devicescape patches Reply with quote

I downloaded the rc7-git2 patch that was put out today. I patched my 2.6.15-rc7 kernel with using "patch -p0 < ../patch-2.6.15-rc7-git2" ... the patch complained. So I tried "patch -p1 < ../patch-2.6.15-rc7-git2" instead. That worked. (How do you know what -p# to use?)

Then I applied the devicescape patches. I'm wondering about this output though:

Code:
for i in `cat /home/david/AE/ieee80211-devicescape-051222/series` ; do patch -p1 < "/home/david/AE/ieee80211-devicescape-051222/$i" ; done
patching file drivers/net/wireless/ipw/ipw_ieee80211_crypt_ccmp.c
patching file net/ieee80211/ieee80211_crypt_wep.c
patching file net/ieee80211/ieee80211_crypt_ccmp.c
patching file net/ieee80211/ieee80211_tx.c
patching file drivers/net/wireless/ipw2200.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/net/wireless/ipw2200.c.rej
patching file drivers/net/wireless/ipw/ipw2100.h
patching file drivers/net/wireless/atmel.c
patching file drivers/net/wireless/ipw/ipw_ieee80211_wx.c
patching file include/net/ieee80211_crypt.h
patching file drivers/net/wireless/ipw2100.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.


There were several more warnings/errors like that. Not knowing what to do, I just hit enter. Now I'm running "make" ... it's going to be quite a while before this finishes. But I wanted to post this in the mean time to see if I should even bother. If I did something wrong, I'd rather know about it now and just cancel this compile and start over.

Update: Well, that answers that:
Code:
 CC      drivers/net/mii.o
  CC      drivers/net/Space.o
  CC      drivers/net/loopback.o
  LD      drivers/net/wireless/built-in.o
  CC [M]  drivers/net/wireless/orinoco.o
  CC [M]  drivers/net/wireless/hermes.o
  CC [M]  drivers/net/wireless/airport.o
  LD      drivers/net/wireless/hostap/built-in.o
  CC [M]  drivers/net/wireless/hostap/hostap.o
drivers/net/wireless/hostap/hostap.c:29:33: net/ieee80211_crypt.h: No such file or directory
In file included from drivers/net/wireless/hostap/hostap.c:34:
drivers/net/wireless/hostap/hostap_ap.h:236: warning: "struct ieee80211_hdr_4addr" declared inside parameter list

....pages and pages and pages later....


drivers/net/wireless/hostap/hostap.c:1104: error: `IEEE80211_FTYPE_MGMT' undeclared (first use in this function)
drivers/net/wireless/hostap/hostap.c: In function `prism2_sta_deauth':
drivers/net/wireless/hostap/hostap.c:1135: error: `IEEE80211_STYPE_DEAUTH' undeclared (first use in this function)
make[4]: *** [drivers/net/wireless/hostap/hostap.o] Error 1
make[3]: *** [drivers/net/wireless/hostap] Error 2
make[2]: *** [drivers/net/wireless] Error 2
make[1]: *** [drivers/net] Error 2
make: *** [drivers] Error 2
archangel linux-2.6.15-rc7-git2 #
Back to top
View user's profile Send private message
dreamdreams
n00b
n00b


Joined: 25 Nov 2002
Posts: 43

PostPosted: Thu Dec 29, 2005 12:10 am    Post subject: Reply with quote

Most likely your udevd is not started.

mhershbe wrote:
I am hoping someone will notice something I am not. I have followed the instructions to the tee. I have patched vanilla-sources 2.6.15-rc6 against the devicescape patches.

I assume the kernel config is correct...

Code:
mhershbe@tiger ~ $ grep -i config_fw /usr/src/linux/.config
CONFIG_FW_LOADER=y

Code:
mhershbe@tiger ~ $ grep -i hotplug /usr/src/linux/.config
CONFIG_HOTPLUG=y


hotplug is running...

Code:
mhershbe@tiger ~ $ rc-status -s | grep hotplug
 hotplug                                                             [ started ]


I have the modules loaded...

Code:
mhershbe@tiger ~ $ lsmod
Module                  Size  Used by
bcm43xx               416208  0
rate_control            5248  0
80211                 154700  2 bcm43xx,rate_control
i2c_keywest            11360  0
snd_powermac           51424  1
i2c_dev                10848  0
i2c_core               24208  3 i2c_keywest,snd_powermac,i2c_dev


When I attempt to bring wlan0 up I receive...

Code:
mhershbe@tiger ~ $ sudo ifconfig wlan0 up
SIOCSIFFLAGS: No such file or directory


dmesg is as follows...

Code:
bcm43xx: Chip ID 0x4306, rev 0x3
bcm43xx: Number of cores: 5
bcm43xx: Core 0: ID 0x800, rev 0x4, vendor 0x4243, enabled
bcm43xx: Core 1: ID 0x812, rev 0x5, vendor 0x4243, disabled
bcm43xx: Core 2: ID 0x80d, rev 0x2, vendor 0x4243, enabled
bcm43xx: Core 3: ID 0x807, rev 0x2, vendor 0x4243, disabled
bcm43xx: Core 4: ID 0x804, rev 0x9, vendor 0x4243, enabled
bcm43xx: PHY connected
bcm43xx: Detected PHY: Version: 2, Type 2, Revision 2
bcm43xx: Detected Radio:  ID: 2205017f (Manuf: 17f Ver: 2050 Rev: 2)
bcm43xx: Radio turned off
bcm43xx: Radio turned off
wlan0: Selected rate control algorithm 'simple'
bcm43xx: PHY connected
bcm43xx: Error: Microcode "bcm43xx_microcode5.fw" not available or load failed.
bcm43xx: PHY connected
bcm43xx: Error: Microcode "bcm43xx_microcode5.fw" not available or load failed.
mhershbe@tiger ~ $


the firmware files are in the correct location...

Code:
mhershbe@tiger ~ $ ls -l /lib/firmware/
total 132
-rw-------  1 root root  3504 Dec 27 15:06 bcm43xx_initval01.fw
-rw-------  1 root root    16 Dec 27 15:06 bcm43xx_initval02.fw
-rw-------  1 root root  3504 Dec 27 15:06 bcm43xx_initval03.fw
-rw-------  1 root root    16 Dec 27 15:06 bcm43xx_initval04.fw
-rw-------  1 root root  2536 Dec 27 15:06 bcm43xx_initval05.fw
-rw-------  1 root root   248 Dec 27 15:06 bcm43xx_initval06.fw
-rw-------  1 root root  2536 Dec 27 15:06 bcm43xx_initval07.fw
-rw-------  1 root root  2536 Dec 27 15:06 bcm43xx_initval08.fw
-rw-------  1 root root   248 Dec 27 15:06 bcm43xx_initval09.fw
-rw-------  1 root root   248 Dec 27 15:06 bcm43xx_initval10.fw
-rw-------  1 root root 21672 Dec 27 15:06 bcm43xx_microcode11.fw
-rw-------  1 root root 16352 Dec 27 15:06 bcm43xx_microcode2.fw
-rw-------  1 root root 20088 Dec 27 15:06 bcm43xx_microcode4.fw
-rw-------  1 root root 22272 Dec 27 15:06 bcm43xx_microcode5.fw
-rw-------  1 root root  1312 Dec 27 15:06 bcm43xx_pcm4.fw
-rw-------  1 root root  1312 Dec 27 15:06 bcm43xx_pcm5.fw


I extracted the firmware from wl_apsta.o . I really do not know where to go from here, any and all help will be greatly appreciated. Thanks!
Back to top
View user's profile Send private message
bz31
Tux's lil' helper
Tux's lil' helper


Joined: 20 Apr 2005
Posts: 108

PostPosted: Thu Dec 29, 2005 7:04 am    Post subject: Re: question about devicescape patches Reply with quote

blixel wrote:
(How do you know what -p# to use?)

Read the patch ?

blixel wrote:
Then I applied the devicescape patches. I'm wondering about this output though:

Code:
for i in `cat /home/david/AE/ieee80211-devicescape-051222/series` ; do patch -p1 < "/home/david/AE/ieee80211-devicescape-051222/$i" ; done
patching file drivers/net/wireless/ipw/ipw_ieee80211_crypt_ccmp.c
patching file net/ieee80211/ieee80211_crypt_wep.c
patching file net/ieee80211/ieee80211_crypt_ccmp.c
patching file net/ieee80211/ieee80211_tx.c
patching file drivers/net/wireless/ipw2200.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/net/wireless/ipw2200.c.rej
patching file drivers/net/wireless/ipw/ipw2100.h
patching file drivers/net/wireless/atmel.c
patching file drivers/net/wireless/ipw/ipw_ieee80211_wx.c
patching file include/net/ieee80211_crypt.h
patching file drivers/net/wireless/ipw2100.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.


There were several more warnings/errors like that. Not knowing what to do, I just hit enter.

See my message and Anarchy's message : https://forums.gentoo.org/viewtopic-p-2985711-highlight-.html#2985711
Back to top
View user's profile Send private message
blixel
Guru
Guru


Joined: 19 Jul 2004
Posts: 403
Location: Central, Florida

PostPosted: Thu Dec 29, 2005 7:10 am    Post subject: Re: question about devicescape patches Reply with quote

bz31 wrote:
blixel wrote:
(How do you know what -p# to use?)

Read the patch ?


And look for what exactly? I don't see anything in these driverscape patch files that indicate what -p# to use.
Back to top
View user's profile Send private message
bz31
Tux's lil' helper
Tux's lil' helper


Joined: 20 Apr 2005
Posts: 108

PostPosted: Thu Dec 29, 2005 7:40 am    Post subject: Re: question about devicescape patches Reply with quote

blixel wrote:
bz31 wrote:
blixel wrote:
(How do you know what -p# to use?)

Read the patch ?


And look for what exactly? I don't see anything in these driverscape patch files that indicate what -p# to use.

Look for number of leading slashes. For example, in add-devicescape-ieee80211.patch
Quote:
--- netdev.orig/include/net/ieee80211.h 2005-12-21 19:52:06.000000000 +0100
+++ netdev/include/net/ieee80211.h 2005-12-21 19:52:36.000000000 +0100

From man patch:
Quote:
-pnum or --strip=num
Strip the smallest prefix containing num leading slashes from each
file name found in the patch file. A sequence of one or more adjacent
slashes is counted as a single slash. This controls how file
names found in the patch file are treated, in case you keep your
files in a different directory than the person who sent out the
patch. For example, supposing the file name in the patch file was

/u/howard/src/blurfl/blurfl.c

setting -p0 gives the entire file name unmodified, -p1 gives

u/howard/src/blurfl/blurfl.c

without the leading slash, -p4 gives

blurfl/blurfl.c

and not specifying -p at all just gives you blurfl.c. Whatever you
end up with is looked for either in the current directory, or the
directory specified by the -d option.
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Goto page Previous  1, 2, 3 ... 6, 7, 8 ... 40, 41, 42  Next
Page 7 of 42

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum