Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Using the Airport Extreme in Linux (via MOL)
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
echo6
Guru
Guru


Joined: 04 Jan 2003
Posts: 587

PostPosted: Fri Sep 02, 2005 6:51 pm    Post subject: Reply with quote

I take it the common theme here is OSX10.4?

I'm trying without success to locate a USB wireless device that has native drivers which compile successfully or having compiled load without producing kernel errors :evil:

Well within MOL the AirPort device is greyed out and unavailable for configuration, so I guess I've either missed a step or it isnt going to work with OSX10.4, yes I did patch the driver off the Install disk and place it in the correct location. When I go to connect the status is shown as no airport hardware found. I guess this means I'm going to have to re-install OSX again :-(

I'm desperate to get wireless working within Linux, so if anyone can offer any solutions I'm all ears??

I'm still unable to see AE from MOL, here are my AppleAirPort2 files I'm wondering if there is a difference with the files I have to others?

Code:
powerbook ~ # md5sum AppleAirPort2.*
b6f3d2437c40277c197f0afcf12208e9  AppleAirPort2.dvd
a62e35ee9956b286c46b145d35bd6e0c  AppleAirPort2.patched
Back to top
View user's profile Send private message
Giorgio
Tux's lil' helper
Tux's lil' helper


Joined: 18 Jan 2003
Posts: 77
Location: Milano, Italy

PostPosted: Sat Sep 03, 2005 5:02 pm    Post subject: Reply with quote

Does it work with 10.3.x?

I still get the 'incompatible driver error' by the patch. I tried with the 10.3.0 and 10.3.9 airport driver.
If someone can post a link of his already patched 10.3.x driver I will be very happy :)

thanks
_________________
app-portage/genlop
A nice emerge.log parser
Back to top
View user's profile Send private message
e-ipi
Apprentice
Apprentice


Joined: 23 Aug 2005
Posts: 192

PostPosted: Sat Sep 03, 2005 6:25 pm    Post subject: Reply with quote

echo6 wrote:


I'm still unable to see AE from MOL, here are my AppleAirPort2 files I'm wondering if there is a difference with the files I have to others?

Code:
powerbook ~ # md5sum AppleAirPort2.*
b6f3d2437c40277c197f0afcf12208e9  AppleAirPort2.dvd
a62e35ee9956b286c46b145d35bd6e0c  AppleAirPort2.patched


here's what I get:

Code:


b6f3d2437c40277c197f0afcf12208e9  ./AppleAirPort2-10.4
a62e35ee9956b286c46b145d35bd6e0c  ./AppleAirPort2-10.4.patched
dc3a69aac95c68fe8edc760e39bbb2c9  ./AppleAirPort2-10.4.2



Looks like we have the same driver. I guess it explains why we've had similar problems.
Back to top
View user's profile Send private message
qodsec
n00b
n00b


Joined: 23 Jan 2005
Posts: 43

PostPosted: Sat Sep 03, 2005 10:39 pm    Post subject: Reply with quote

I have a powerbook 12" 1.3GHz and on it is tiger server and I cannot seem to follow these two steps. I have mol running and I am able to access the wireless from there but how do I access it from linux. When I run /etc/init.d/net.tun1 start I get an error saying that it failed.
Quote:
6. You should be ready to start MOL and connect to a wireless network! Test it out. If you do quit MOL, make sure that you disable the AE first, otherwise the hardware is left in an unknown state and can cause problems.
7. To use this connection from Linux, use the internet connection sharing tool in OSX to share your AE over the TUN device (probably en2).
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sun Sep 04, 2005 4:30 am    Post subject: Reply with quote

Please DO NOT post links to patched drivers.

qodsec:
You shouldn't start another TUN device, the tunnel should already be created when MOL starts.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
echo6
Guru
Guru


Joined: 04 Jan 2003
Posts: 587

PostPosted: Sun Sep 04, 2005 9:29 am    Post subject: Reply with quote

I've tried several times to get this to work, I don't see the AE device in MOL. I'm not certain if it is going to work with Tiger!

JoseJX: Any ideas?...what system version are you using? On another note I notice the link to the Broadcom driver is for the 4301, this is the device I have in my PowerBook
Code:
0001:10:12.0 Network controller: Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 03)


Has anyone got this working with Tiger?
Back to top
View user's profile Send private message
qodsec
n00b
n00b


Joined: 23 Jan 2005
Posts: 43

PostPosted: Sun Sep 04, 2005 1:42 pm    Post subject: Reply with quote

ok how do I start the TUN device??

the only problem I am currently having is that when I do
Code:
/etc/init.d/net.tun1 start
It failed at the DHCP part.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sun Sep 04, 2005 4:01 pm    Post subject: Reply with quote

echo6:
I have it working fine in Panther (I don't have an AE, I've only got access to a PCMCIA card) and I know it works fine in Tiger (the instructions were written with the help of a Tiger user with an AE). The Broadcom 43xx driver is the same for every 43xx chipset that Broadcom makes, and support for every one of their chipsets is in Apple's driver. If you're not seeing the AE device in MOL, can you check to make sure you've compiled MOL with the pci USE flag and that you've got the correct PCI address in your molrc.osx?

quodsec:
Are you sure that the TUN is active? Can you maybe research a little as to why DHCP is failing? Is a DHCP server running on OSX? Have you tried manually setting the IP and routing information?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
echo6
Guru
Guru


Joined: 04 Jan 2003
Posts: 587

PostPosted: Sun Sep 04, 2005 8:03 pm    Post subject: Reply with quote

JoseJX wrote:
can you check to make sure you've compiled MOL with the pci USE flag

8)

That was it...

Couple of things I would add to the guide from my experience:-
1) When you emerge MOL it does suggest that you have certain things compiled into the kernel, these should be included in the guide.
2) Bold the warning about disabling AE before quiting MOL...I think that is the issue that I and e-ipi have experienced when booting back into X and loosing AE
3) Defintely include reference to the USE variables, pci and fbcon :-)
4) Internet sharing has to be started each occassion you use MOL. Include instruction on adding a route gateway to the OS X en2 tun interface so that Linux routes IP correctly via X, e.g. route add default gw 192.168.41.2

JoseJX...brilliant :-) Thanks for the help :P
Back to top
View user's profile Send private message
qodsec
n00b
n00b


Joined: 23 Jan 2005
Posts: 43

PostPosted: Sun Sep 04, 2005 8:11 pm    Post subject: Reply with quote

Quote:
2) Bold the warning about disabling AE before quiting MOL...I think that is the issue that I and e-ipi have experienced when booting back into X and loosing AE

what issues?? I am getting frequent kernel panics in mol OSX. how do you disable AE before quiting mol??
Quote:
4) Internet sharing has to be started each occassion you use MOL. Include instruction on adding a route gateway to the OS X en2 tun interface so that Linux routes IP correctly via X, e.g. route add default gw 192.168.41.2


could you share with us the config, I assume that you have to have tunulling and forwarding built into the kernel (which I do not have).
Back to top
View user's profile Send private message
qodsec
n00b
n00b


Joined: 23 Jan 2005
Posts: 43

PostPosted: Sun Sep 04, 2005 9:57 pm    Post subject: Reply with quote

got it working. Thanks.
Back to top
View user's profile Send private message
echo6
Guru
Guru


Joined: 04 Jan 2003
Posts: 587

PostPosted: Sun Sep 04, 2005 10:13 pm    Post subject: Reply with quote

qodsec wrote:
what issues??
Where AE device becomes unavailable in OS X requiring a re-install.

Quote:
how do you disable AE before quiting mol??
Simply click on the AE icon on the taskbar at the top right and select disable/turn off.

Quote:
could you share with us the config
Kernel config?

Quote:
I assume that you have to have tunulling and forwarding built into the kernel (which I do not have)
Yes, take a look at the ebuild for MOL.

Code:
cat /usr/portage/app-emulation/mol/mol-0.9.71_pre1-r2.ebuild
It's at the end of the ebuild, it gives details of the kernel functions and drivers required. TBH I'm not sure how I came to emerge that build version!
Back to top
View user's profile Send private message
qodsec
n00b
n00b


Joined: 23 Jan 2005
Posts: 43

PostPosted: Mon Sep 05, 2005 12:17 am    Post subject: Reply with quote

thanks for the extra clarification. I got it fully working now, and I couldn't be happier. :oops:
Back to top
View user's profile Send private message
e-ipi
Apprentice
Apprentice


Joined: 23 Aug 2005
Posts: 192

PostPosted: Wed Sep 07, 2005 5:56 pm    Post subject: i can use ae in mol now Reply with quote

It appears that I didn't have the "pci" use flag set when I compiled MOL. I think it's set now.
Code:
#less /etc/portage/package.use
sys-libs/glibc userlocales
app-emulation/mol pci fbcon


I re-emerge'd MOL and now I'm seeing (and using) the AE in MOL. tun1 is up and running on the linux side, but on the Mac side it's telling me the only port I can share the AE from is the AE itself. Here's what ifconfig says:
Code:
$ ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
        inet 127.0.0.1 netmask 0xff000000
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
en2: flags=8822<BROADCAST,SMART,SIMPLEX,MULTICAST> mtu 1500
        ether 00:00:0d:ea:db:ee
        media: autoselect (<unknown type>)
        supported media: none autoselect 100baseTX <full-duplex>
en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet6 fe80::211:24ff:fe9b:ce15%en1 prefixlen 64 scopeid 0x5
        inet 192.168.8.207 netmask 0xffffff00 broadcast 192.168.8.255
        ether 00:11:24:9b:ce:15
        media: autoselect status: active
        supported media: autoselect


What am I missing?
Back to top
View user's profile Send private message
e-ipi
Apprentice
Apprentice


Joined: 23 Aug 2005
Posts: 192

PostPosted: Wed Sep 07, 2005 8:10 pm    Post subject: Re: i can use ae in mol now Reply with quote

e-ipi wrote:


What am I missing?


I opened up the Network control panel app, and once I did that it found the new port. Everything's working now. Thanks. It would still be nice to have linux driver.
Back to top
View user's profile Send private message
qodsec
n00b
n00b


Joined: 23 Jan 2005
Posts: 43

PostPosted: Wed Sep 07, 2005 9:06 pm    Post subject: Reply with quote

does anyone have to do an
Code:
insmod /usr/lib/mol/0.9.71/modules/tun.ko


because I have to do that for /etc/init.d/net.tun1 start to work without errors.
Back to top
View user's profile Send private message
Sodki
Guru
Guru


Joined: 11 Aug 2003
Posts: 419
Location: London, U.K. & Lisbon, Portugal

PostPosted: Fri Sep 09, 2005 1:51 am    Post subject: Reply with quote

echo6 wrote:
4) Internet sharing has to be started each occassion you use MOL. Include instruction on adding a route gateway to the OS X en2 tun interface so that Linux routes IP correctly via X, e.g. route add default gw 192.168.41.2

I'm stuck. Gentoo can ping MacOSX and MacOSX can ping Gentoo, but Gentoo can't ping the Internet. It's not a DNS problem, because I can't ping IP addresses either. The MacOSX firewall is stopped and sharing Airport -> en2 is active. I've tried the "route add default ..." command, but I'm still stuck. I really don't know what else to try.

/etc/conf.d/net
Code:
config_tun1=( "192.168.41.1 netmask 255.255.255.0" )
If I try to get IP via DHCP, it gives a timeout.

In MacOSX, my en2 device is configured to use DHCP. It gets IP 192.168.41.2, subnet mask 255.255.255.0 and router 192.168.41.1.

Is there something wrong with my config? Have I missed something?
Back to top
View user's profile Send private message
echo6
Guru
Guru


Joined: 04 Jan 2003
Posts: 587

PostPosted: Fri Sep 09, 2005 9:21 am    Post subject: Reply with quote

Can your MAC ping outside your network, by IP and by domain name?

What is your router IP? What does /etc/resolv.conf contain?
Back to top
View user's profile Send private message
Cenrim
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2004
Posts: 142
Location: Germany

PostPosted: Fri Sep 09, 2005 3:48 pm    Post subject: Reply with quote

Quote:

so, I'm writing this from MOL on an public hotspot...
from gentoo I can ping out (ie google.com) but nothing else goes through MOL than pure dns-lookup, no IRC, no links2, both progs found the servers, but did not connect
thunderbird seems to be patient enough to use such an unstable/laggy(/?) connection, in MOL, IRC (xchat_aqua) works fine

... at this moment the connection was interupted, KisMAC still showed a signal but I couldn't get the connection back :roll:

internet connection is shared bei MOL, proxies are disabled...
hmm... firewall is enabled but does this matter?


----------

wow... I left this windows open for at least 2 days, rebootet several times (switching between gentoo and Panther) and this stuff is still here.. maybe I shoul post it ^
Back to top
View user's profile Send private message
mattdenner
n00b
n00b


Joined: 01 Feb 2005
Posts: 16

PostPosted: Sun Sep 11, 2005 9:50 am    Post subject: Order of AE and Ethernet important under MacOS X? Reply with quote

Sodki wrote:
I'm stuck. Gentoo can ping MacOSX and MacOSX can ping Gentoo, but Gentoo can't ping the Internet. It's not a DNS problem, because I can't ping IP addresses either.


I had a similar problem and I found out that if you reorder the AE and the Ethernet connection under MacOS X, so that AE is first, then it suddenly all starts working. I went to the System Preferences > Network, set Show to "Network Port Configurations", and then dragged AirPort to the top of the list. This updated the /etc/resolv.conf file under MacOS X which, before I did this, had the Ethernet details which pointed DNS to Gentoo (kind of creating a circular loop I think).
Back to top
View user's profile Send private message
Giorgio
Tux's lil' helper
Tux's lil' helper


Joined: 18 Jan 2003
Posts: 77
Location: Milano, Italy

PostPosted: Sun Sep 11, 2005 11:04 pm    Post subject: Reply with quote

works great here too. (osx 10.3.9 airport software 4.1)

thanks folks!
_________________
app-portage/genlop
A nice emerge.log parser
Back to top
View user's profile Send private message
Sodki
Guru
Guru


Joined: 11 Aug 2003
Posts: 419
Location: London, U.K. & Lisbon, Portugal

PostPosted: Tue Sep 13, 2005 5:16 pm    Post subject: Reply with quote

echo6 wrote:
Can your MAC ping outside your network, by IP and by domain name?

What is your router IP? What does /etc/resolv.conf contain?

My MacOSX can ping outside the network, by IP and domain name, so it's not a DNS problem.

Can anyone please show me their routing tables under Gentoo and under MacOSX, while using the Airport Extreme under Linux? Here are mine:

MacOSX (192.168* is my Gentoo/MacOSX network, 10.3.* is my wireless network)
Code:
$ netstat -nr

Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            10.3.7.254         UGSc       20       17    en1
10.3/21            link#5             UCS         1        0    en1
10.3.6.244         127.0.0.1          UHS         0        0    lo0
10.3.7.254         0:30:48:12:66:81   UHLW       20       72    en1   1200
127                127.0.0.1          UCS         0        0    lo0
127.0.0.1          127.0.0.1          UH          7     5328    lo0
169.254            link#5             UCS         0        0    en1
192.168.41         link#4             UCS         0        0    en2
192.168.41.2       127.0.0.1          UHS         0        0    lo0


Gentoo
Code:

$route

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.41.0    *               255.255.255.0   U     0      0        0 tun1
loopback        *               255.0.0.0       U     0      0        0 lo
Back to top
View user's profile Send private message
echo6
Guru
Guru


Joined: 04 Jan 2003
Posts: 587

PostPosted: Wed Sep 14, 2005 10:35 pm    Post subject: Reply with quote

Make sure that you have added your gateway address from Linux to be that of the tun device of OSX, which on my Powerbook is 192.168.41.2
Code:
route add default gw 192.168.41.2
Code:
powerbook linux # route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.41.0    *               255.255.255.0   U     0      0        0 tun1
loopback        localhost.comfo 255.0.0.0       UG    0      0        0 lo
default         192.168.41.2    0.0.0.0         UG    0      0        0 tun1

Then in OSX check to make sure that you have Internet Sharing On: Sharing your Airport connection - Share your connection from AirPort - To computers using: Ethernet Adaptor (en2)
Back to top
View user's profile Send private message
Sodki
Guru
Guru


Joined: 11 Aug 2003
Posts: 419
Location: London, U.K. & Lisbon, Portugal

PostPosted: Thu Sep 15, 2005 12:43 am    Post subject: Reply with quote

Thanks, echo6, I've finally solved my problem, albeit not in the "normal" way. You were right about the gateway setting on Gentoo, but to create the NAT on MacOSX I couldn't simply use the "internet sharing" thing. I've asked advice to a lot of friends of mine who are MacOSX users, but noone could help me, except one, today. :D

The following solution worked for me:

Under MacOSX, as root, I have to issue the following commands:

Code:
sysctl -w net.inet.ip.forwarding=1
natd -dynamic -interface en1
ipfw -f flush
ipfw add divert natd all from any to any via en1
ipfw add pass all from any to any


Thank you all for making this possible!
Back to top
View user's profile Send private message
nokq
n00b
n00b


Joined: 22 Apr 2002
Posts: 6

PostPosted: Sat Sep 24, 2005 2:26 am    Post subject: Reply with quote

Polymira wrote:
Alright, now KisMac has a driver for the airport extreme that allows rfmon (passive mode). I took a peek, and i'm not sure if this is a full driver, a patch for the official. But it may be something to look at ....

Just go to http://kismac.binaervarianz.de/download.php and check out subversion access.


Starting with release 75, we can put kismac into passive mode.

KisMac mailing list post:
http://www.freelists.org/archives/k...5/msg00034.html

Download KisMAc r75:
http://binaervarianz.de/downloads.p...http&file_id=36
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6  Next
Page 2 of 6

 
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