| 4 | |
| 5 | |
| 6 | ==== Driver Installation ==== |
| 7 | The firmware, tools , network service and the patch were downloaded from [http://linuxwimax.org/Download LinuxWimax] |
| 8 | 1. Compile a Linux Kernel to Version greater than 2.6.35 and reboot into that kernel.[[BR]] |
| 9 | |
| 10 | 2. Install the i2400m firmware[[BR]] |
| 11 | Download the i2400 firmware 1.5.0 version.[[BR]] |
| 12 | Untar the source , cd to the directory and [[BR]] |
| 13 | {{{ |
| 14 | install -o root -g root -m 0644 *.sbcf /lib/firmware |
| 15 | }}} |
| 16 | 3. Install the Wimax Tools[[BR]] |
| 17 | |
| 18 | First install libnl and libnl's development packages[[BR]] |
| 19 | {{{ |
| 20 | apt-get install libnl1 libnl-dev libglib2.0-0 libglib2.0-dev |
| 21 | apt-get install build-essential pkg-config |
| 22 | cd ~Download/wimax-tools-1.4.3 |
| 23 | export I2400M=/lib/firmware/ |
| 24 | ./configure |
| 25 | make |
| 26 | make install |
| 27 | }}} |
| 28 | 4. Build the libeap library[[BR]] |
| 29 | To do that first install openssl libraries. [[BR]] |
| 30 | {{{ |
| 31 | apt-get install libglobus-openssl-module0 libglobus-openssl-module-dev libssl-dev |
| 32 | }}} |
| 33 | Download the Supplicant from [http://hostap.epitest.fi wpa-supplicant] |
| 34 | Untar and unzip the download |
| 35 | {{{ |
| 36 | cd ~Downloads/wpa_supplicant-0.7.3 |
| 37 | patch -p1 < ../wpa_supplicant-0.7.3-generate-libeap-peer.patch |
| 38 | make -C src/eap_peer |
| 39 | make -C src/eap_peer install |
| 40 | ldconfig |
| 41 | }}} |
| 42 | Please do not forget to run '''ldconfig''' otherwise you will not be able to build the Wimax-Tools from Intel. |
| 43 | 5. Build the Intel-Wimax-Tools |
| 44 | Untar and unzip the downloaded source and |
| 45 | |
| 46 | cd ~Downloads/wimax-1.5.1[[BR]] |
| 47 | |
| 48 | Copy the [http://wimax.orbit-lab.org/downloads/NDnSAgentConfig_forDriver.xml NDnSAgentConfig_forDriver.xml] file to ./InfraStack/OSAgnostic/WiMax/Agents/NDnS/XML_Files or modify |
| 49 | NSP_ID 51 in the file to look like [[BR]] |
| 50 | |
| 51 | {{{ |
| 52 | <geni> |
| 53 | <NetworkParameters> |
| 54 | <H_NSP> |
| 55 | <x0> |
| 56 | <H_NSP_ID>51</H_NSP_ID> |
| 57 | </x0> |
| 58 | </H_NSP> |
| 59 | <CAPL> |
| 60 | <Entries> |
| 61 | <x0> |
| 62 | <NAP_ID>4451DB</NAP_ID> |
| 63 | <Priority>1</Priority> |
| 64 | <ChPlanRefIds> |
| 65 | <x0> |
| 66 | <RefId>AB</RefId> |
| 67 | </x0> |
| 68 | </ChPlanRefIds> |
| 69 | </x0> |
| 70 | </Entries> |
| 71 | <Any>ListFirst</Any> |
| 72 | <SelectPolicy>Strict</SelectPolicy> |
| 73 | </CAPL> |
| 74 | <RAPL> |
| 75 | <Entries></Entries> |
| 76 | <Any>ListFirst</Any> |
| 77 | <SelectPolicy>Strict</SelectPolicy> |
| 78 | </RAPL> |
| 79 | <ChannelPlan> |
| 80 | <Entries> |
| 81 | <x0> |
| 82 | <Id>AB</Id> |
| 83 | <FirstFreq>2590000</FirstFreq> |
| 84 | <LastFreq>2590000</LastFreq> |
| 85 | <NextFreqStep>10000</NextFreqStep> |
| 86 | <Preambles>ffffffffffffffffffffffffffffff</Preambles> |
| 87 | <BW>10000</BW> |
| 88 | <FFTSize>1024</FFTSize> |
| 89 | <DuplexMode>1</DuplexMode> |
| 90 | <TTL>0</TTL> |
| 91 | </x0> |
| 92 | </Entries> |
| 93 | <BW>-1</BW> |
| 94 | <FFTSize>-1</FFTSize> |
| 95 | <DuplexMode>1</DuplexMode> |
| 96 | </ChannelPlan> |
| 97 | <OperatorName>GENI</OperatorName> |
| 98 | <PollingInterval>-1</PollingInterval> |
| 99 | <PollingAttempts>10</PollingAttempts> |
| 100 | <ServerID></ServerID> |
| 101 | </NetworkParameters> |
| 102 | <SubscriptionParameters> |
| 103 | <Primary> |
| 104 | <Name></Name> |
| 105 | <Activated>False</Activated> |
| 106 | <EAP> |
| 107 | <x0> |
| 108 | <METHOD_TYPE>EAP_TLS</METHOD_TYPE> |
| 109 | <VENDOR_ID>13</VENDOR_ID> |
| 110 | <VENDOR_TYPE>13</VENDOR_TYPE> |
| 111 | <USER_IDENTITY></USER_IDENTITY> |
| 112 | <PROVISIONED_PSEUDO_IDENTITY></PROVISIONED_PSEUDO_IDENTITY> |
| 113 | <PASSWORD></PASSWORD> |
| 114 | <REALM>www.geni.net</REALM> |
| 115 | <USE_PRIVACY>False</USE_PRIVACY> |
| 116 | <ENCAPS>-1</ENCAPS> |
| 117 | <VFY_SERVER_REALM>False</VFY_SERVER_REALM> |
| 118 | <SERVER_REALMS></SERVER_REALMS> |
| 119 | <CERT> |
| 120 | <x0> |
| 121 | <CERT_TYPE></CERT_TYPE> |
| 122 | <SER_NUM></SER_NUM> |
| 123 | <ISSUER></ISSUER> |
| 124 | </x0> |
| 125 | <x1> |
| 126 | <CERT_TYPE></CERT_TYPE> |
| 127 | <SER_NUM></SER_NUM> |
| 128 | <ISSUER></ISSUER> |
| 129 | </x1> |
| 130 | </CERT> |
| 131 | </x0> |
| 132 | </EAP> |
| 133 | </Primary> |
| 134 | <OtherSubscriptions></OtherSubscriptions> |
| 135 | </SubscriptionParameters> |
| 136 | <Contacts> |
| 137 | <x0> |
| 138 | <Type>0</Type> |
| 139 | <URI>http://wimax.orbit-lab.org</URI> |
| 140 | <Text>GENI WiMAX Technical Support</Text> |
| 141 | </x0> |
| 142 | <x1> |
| 143 | <Type>1</Type> |
| 144 | <URI>http://www.geni.net</URI> |
| 145 | <Text>GENI Portal</Text> |
| 146 | </x1> |
| 147 | </Contacts> |
| 148 | </geni> |
| 149 | |
| 150 | }}} |
| 151 | |
| 152 | Update the .bin files source files located at ./InfraStack/OSAgnostic/Product/AppSrvInfra/ with the GENI files[[BR]] |
| 153 | |
| 154 | [http://wimax.orbit-lab.org/downloads/WiMAX_Def.bin GENI Definition File] [[BR]] |
| 155 | |
| 156 | [http://wimax.orbit-lab.org/downloads/WiMAX_DB.bin GENI Database File] |
| 157 | |
| 158 | Now configure the wimax service and install the service. |
| 159 | |
| 160 | {{{ |
| 161 | ./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 |
| 162 | make |
| 163 | make install |
| 164 | }}} |
| 165 | |
| 166 | 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. |
| 167 | |
| 168 | You can edit the file and restart the wimaxd service to see the changes. |
| 169 | |
| 170 | Connection and Scan Mode settings are set using the following commands |
| 171 | {{{ |
| 172 | wimaxcu connectmode connect manual |
| 173 | wimaxcu connectmode scan semi |
| 174 | }}} |
| 175 | |
| 176 | ==== Using the Service ==== |
| 177 | |
| 178 | 1. wimaxcu ron - Turn the Software Radio On |
| 179 | 2. wimaxcu plist - Check to See Geni Profile is Available |
| 180 | 3. wimaxcu scan wide - Scan all the available Base Stations |
| 181 | 4. wimaxcu connect network Geni - Connect to the GENI wimax station |
| 182 | 5. dhclient wmx0 - Obtain an IP address |
| 183 | 6. wimaxcu -i wmxX -b - Start the wimax service in background |
| 184 | 7. wimaxcu -i wmxX -k - Kill the wimax service |
| 185 | |
| 186 | ==== Enable debugging on the client ==== |
| 187 | |
| 188 | You can get enhanced debugging for the following parameters by increasing the verbosity level |
| 189 | {{{ |
| 190 | echo 3 > /sys/kernel/debug/wimax:wmx0/wimax_dl_stack |
| 191 | echo 3 > /sys/kernel/debug/wimax:wmx0/wimax_dl_op_rfkill |
| 192 | echo 3 > /sys/kernel/debug/wimax:wmx0/wimax_dl_op_reset |
| 193 | echo 3 > /sys/kernel/debug/wimax:wmx0/wimax_dl_op_msg |
| 194 | echo 3 > /sys/kernel/debug/wimax:wmx0/wimax_dl_id_table |
| 195 | echo 3 > /sys/kernel/debug/wimax:wmx0/wimax_dl_debugfs |
| 196 | }}} |