wiki:aWiMAX/cHardware/cUdev/eI6250
close Warning: Can't synchronize with repository "(default)" (/common/SVN/wimax does not appear to be a Subversion repository.). Look in the Trac log for more information.

Version 2 (modified by seskar, 9 years ago) ( diff )

Intel 6250

Table of Contents

    Driver Installation

    The firmware, tools , network service and the patch were downloaded from LinuxWimax

    1. Compile a Linux Kernel to Version greater than 2.6.35 and reboot into that kernel.
    1. Install the i2400m firmware
      Download the i2400 firmware 1.5.0 version.
      Untar the source , cd to the directory and
        install -o root -g root -m 0644 *.sbcf /lib/firmware
      
    2. Install the Wimax Tools

    First install libnl and libnl's development packages

       apt-get install libnl1 libnl-dev libglib2.0-0 libglib2.0-dev
       apt-get install build-essential pkg-config
       cd ~Download/wimax-tools-1.4.3 
       export I2400M=/lib/firmware/
       ./configure
       make
       make install
    
    1. Build the libeap library
      To do that first install openssl libraries.
      apt-get install libglobus-openssl-module0 libglobus-openssl-module-dev libssl-dev 
      

    Download the Supplicant from wpa-supplicant Untar and unzip the download

    cd ~Downloads/wpa_supplicant-0.7.3
    patch -p1 < ../wpa_supplicant-0.7.3-generate-libeap-peer.patch 
    make -C src/eap_peer
    make -C src/eap_peer install
    ldconfig 
    

    Please do not forget to run ldconfig otherwise you will not be able to build the Wimax-Tools from Intel.

    1. Build the Intel-Wimax-Tools Untar and unzip the downloaded source and

    cd ~Downloads/wimax-1.5.1

    Copy the NDnSAgentConfig_forDriver.xml file to ./InfraStack/OSAgnostic/WiMax/Agents/NDnS/XML_Files or modify NSP_ID 51 in the file to look like

       <geni>
                                    <NetworkParameters>
                                            <H_NSP>
                                                    <x0>
                                                            <H_NSP_ID>51</H_NSP_ID>
                                                    </x0>
                                            </H_NSP>
                                            <CAPL>
                                                    <Entries>
                                                            <x0>
                                                                    <NAP_ID>4451DB</NAP_ID>
                                                                    <Priority>1</Priority>
                                                                    <ChPlanRefIds>
                                                                            <x0>
                                                                                    <RefId>AB</RefId>
                                                                            </x0>
                                                                    </ChPlanRefIds>
                                                            </x0>
                                                    </Entries>
                                                    <Any>ListFirst</Any>
                                                    <SelectPolicy>Strict</SelectPolicy>
                                            </CAPL>
                                            <RAPL>
                                                    <Entries></Entries>
                                                    <Any>ListFirst</Any>
                                                    <SelectPolicy>Strict</SelectPolicy>
                                            </RAPL>
                                            <ChannelPlan>
                                                    <Entries>
                                                            <x0>
                                                                    <Id>AB</Id>
                                                                    <FirstFreq>2590000</FirstFreq>
                                                                    <LastFreq>2590000</LastFreq>
                                                                    <NextFreqStep>10000</NextFreqStep>
                                                                    <Preambles>ffffffffffffffffffffffffffffff</Preambles>
                                                                    <BW>10000</BW>
                                                                    <FFTSize>1024</FFTSize>
                                                                    <DuplexMode>1</DuplexMode>
                                                                    <TTL>0</TTL>
                                                            </x0>
                                                    </Entries>
                                                    <BW>-1</BW>
                                                    <FFTSize>-1</FFTSize>
                                                    <DuplexMode>1</DuplexMode>
                                            </ChannelPlan>
                                            <OperatorName>GENI</OperatorName>
                                            <PollingInterval>-1</PollingInterval>
                                            <PollingAttempts>10</PollingAttempts>
                                            <ServerID></ServerID>
                                    </NetworkParameters>
                                    <SubscriptionParameters>
                                            <Primary>
                                                    <Name></Name>
                                                    <Activated>False</Activated>
                                                    <EAP>
                                                            <x0>
                                                                    <METHOD_TYPE>EAP_TLS</METHOD_TYPE>
                                                                    <VENDOR_ID>13</VENDOR_ID>
                                                                    <VENDOR_TYPE>13</VENDOR_TYPE>
                                                                    <USER_IDENTITY></USER_IDENTITY>
                                                                    <PROVISIONED_PSEUDO_IDENTITY></PROVISIONED_PSEUDO_IDENTITY>
                                                                    <PASSWORD></PASSWORD>
                                                                    <REALM>www.geni.net</REALM>
                                                                    <USE_PRIVACY>False</USE_PRIVACY>
                                                                    <ENCAPS>-1</ENCAPS>
                                                                    <VFY_SERVER_REALM>False</VFY_SERVER_REALM>
                                                                    <SERVER_REALMS></SERVER_REALMS>
                                                                    <CERT>
                                                                            <x0>
                                                                                    <CERT_TYPE></CERT_TYPE>
                                                                                    <SER_NUM></SER_NUM>
                                                                                    <ISSUER></ISSUER>
                                                                            </x0>
                                                                            <x1>
                                                                                    <CERT_TYPE></CERT_TYPE>
                                                                                    <SER_NUM></SER_NUM>
                                                                                    <ISSUER></ISSUER>
                                                                            </x1>
                                                                    </CERT>
                                                            </x0>
                                                    </EAP>
                                            </Primary>
                                            <OtherSubscriptions></OtherSubscriptions>
                                    </SubscriptionParameters>
                                    <Contacts>
                                            <x0>
                                                    <Type>0</Type>
                                                    <URI>http://wimax.orbit-lab.org</URI>
                                                    <Text>GENI WiMAX Technical Support</Text>
                                            </x0>
                                            <x1>
                                                    <Type>1</Type>
                                                    <URI>http://www.geni.net</URI>
                                                    <Text>GENI Portal</Text>
                                            </x1>
                                    </Contacts>
                            </geni>
    
    

    Update the .bin files source files located at ./InfraStack/OSAgnostic/Product/AppSrvInfra/ with the GENI files

    GENI Definition File

    GENI Database File

    Now configure the wimax service and install the service.

    ./configure --with-linux=/usr --with-libwimaxll=/usr --sysconfdir=/etc --localstatedir=/var --prefix=/usr --enable-instrument --with-wimax-db-bin=/var --with-ver-info-bin=/var
    make
    make install
    

    This new configuration with the .bin enabled allows us now to modify the NDns parameters on the fly by modifying WiMAX_Def.bin and WiMAX_DB.bin files located in /var/lib/wimax directory.

    You can edit the file and restart the wimaxd service to see the changes.

    Connection and Scan Mode settings are set using the following commands

    wimaxcu connectmode connect manual
    wimaxcu connectmode scan semi
    

    Using the Service

    1. wimaxcu ron - Turn the Software Radio On
    2. wimaxcu plist - Check to See Geni Profile is Available
    3. wimaxcu scan wide - Scan all the available Base Stations
    4. wimaxcu connect network Geni - Connect to the GENI wimax station
    5. dhclient wmx0 - Obtain an IP address
    6. wimaxcu -i wmxX -b - Start the wimax service in background
    7. wimaxcu -i wmxX -k - Kill the wimax service

    Enable debugging on the client

    You can get enhanced debugging for the following parameters by increasing the verbosity level

    echo 3 > /sys/kernel/debug/wimax:wmx0/wimax_dl_stack
    echo 3 > /sys/kernel/debug/wimax:wmx0/wimax_dl_op_rfkill
    echo 3 > /sys/kernel/debug/wimax:wmx0/wimax_dl_op_reset
    echo 3 > /sys/kernel/debug/wimax:wmx0/wimax_dl_op_msg
    echo 3 > /sys/kernel/debug/wimax:wmx0/wimax_dl_id_table
    echo 3 > /sys/kernel/debug/wimax:wmx0/wimax_dl_debugfs 
    
    Note: See TracWiki for help on using the wiki.