Airport Card + Kernel 2.4.4-1a = sucessful wireless!


Subject: Airport Card + Kernel 2.4.4-1a = sucessful wireless!
From: Craig Miller (cvmiller@linuxfreemail.com)
Date: Wed Jul 18 2001 - 08:15:22 MDT


All,

I like others have been waiting for YDL to produce a nice slick webpage on how to get
an airport card to work with the newer kernel (2.4.4-1a).
http://www.yellowdoglinux.com/support/solutions/airport24.shtml

However the YDL folks have been busy, and I couldn't wait. So I thought I would share
my sucess with the group in the event that it helps anyone else.

Some basic starting steps:

1) have the hardware (the airport card), make sure it connects under MacOS!

2) Install the 2.4.4-1a kernel (from the Tasty Morsel's CD) and boot into 2.4.4

3) Set up network for eth1 (the airport card)
        3a) cd /etc/sysconfig/network-scripts
        3b) cp ifcfg-eth0 ifcfg-eth1
        3c) Edit ifcfg-eth1 - change IP address to different IP address, and device to eth1

4) Use my airport script below (with root privilages)
        4a) edit the airport script with _your_ wireless LAN name [important!!]
        4b) Usage: airport <undock|dock|start|stop>
                Undock = change from wired to wireless interface
                Dock = change from wireless to wired interface
                stop = turn off wireless interface, but don't enable wired interface
                start = turn on wireless interface

5) This works on my Pismo PB, your milage may vary.
        5a) If you _don't_ stop the airport prior to sleeping the Pismo under 2.4.4-1a, the
Pismo will crash upon wake up!!

6) Caveats: WEP doesn't work in my case, since the airport card only support 40bit,
and my Access Point (an SMC) supports 64 & 128 bit. I am not sure if the airport
hardware is limited to 40bit, or if later, some magical Apple firmware upgrade will
permit it to do higher encryption levels (please let me know if you know this answer)

7) Enjoy being Wireless!!

8) Other Info: I have even got MOL to access the wireless interface by editing the
interface in /etc/molrc to use eth1

Craig...

Here's the script:
<cut & paste>

#!/bin/sh
#
#
# airport Airport control for Apple powerbooks
#
# description: airport is a script which starts & stops the airport on PB \
# with Kernel 2.4.4.1a, the airport must be stopped prior\
# to putting the powerbook to sleep.
#
# author Craig Miller cvmiller@linuxfreemail.com
# date 19 June 2001
#
# WLAN Name
WLANNAME="my_wlan"

# See how we were called.
case "$1" in
   undock)
        echo -n "Starting airport, disabling 100baseT: "
        # Load drivers for airport card
        #

        /sbin/insmod /lib/modules/2.4.4-1a/kernel/drivers/net/orinoco/hermes.o
        /sbin/insmod /lib/modules/2.4.4-1a/kernel/drivers/net/orinoco/orinoco.o

        /sbin/insmod /lib/modules/2.4.4-1a/kernel/drivers/net/orinoco/orinoco_airport.o $WLANNAME
        # enable the logical interface
        /sbin/service network start

        # disable wired interface
        echo "Disabling ethernet (eth0): "
        /sbin/ifconfig eth0 down

        ;;
   dock)
        echo -n "Stopping airport, enabling 100baseT: "

        # enable wired interface
        /sbin/service network start

        # diable the logical interface
        echo "Disabling airport (eth1): "
        /sbin/ifconfig eth1 down
        # remove extra default route to eth0
        /sbin/route delete default

        ;;
   stop)
        echo -n "Stopping airport: "
        /sbin/ifconfig eth1 down
        ;;
   start)
        echo -n "Starting airport: "
        /sbin/ifconfig eth1 up
        ;;

   status)
        echo "Status of airport (eth1): "
        /sbin/service network status
        ;;
   *)
        echo "Usage: airport {undock|dock|start|stop|status}"
        exit 1
esac

exit 0

<cut & paste>



This archive was generated by hypermail 2a24 : Wed Jul 18 2001 - 07:22:14 MDT