| 335 | |
| 336 | Start up the switch. Eventually you will be given three or four boot options, depending on your firmware. Choose the system shell. |
| 337 | |
| 338 | == 4.2 update the firmware. == |
| 339 | === 4.2.1. Getting the image === |
| 340 | Get the latest tarball from [http://www.openflowhub.org/display/Indigo/Indigo+-+Download+Page openflowhub.org]. Currently this is indigo-2012.03.19-pronto-3290.tgz, and it contains, along with some docs, three files that make up the image: |
| 341 | |
| 342 | 1. uImage-pronto-3290 |
| 343 | 1. uInitrd2m-indigo-2012.03.19-pronto-3290 |
| 344 | 1. device-tree.dtb-pronto-3290 |
| 345 | |
| 346 | The files must be renamed to uImage, uInitrd2m, and LB9A.dtb, respectively, before they can be used. |
| 347 | |
| 348 | === 4.2.2. Move the files === |
| 349 | Connect one of the switch's management ports, labeled ETH1 and ETH2, to the network. These two ports map to eth0 and eth1; configure them appropriately using `ifconfig` and `route`. |
| 350 | {{{ |
| 351 | ifconfig eth0 inet 192.168.203.156 netmask 0xfffffc00 |
| 352 | route add default gw 192.168.200.1 |
| 353 | }}} |
| 354 | |
| 355 | Next, copy the three files mentioned above to /cf_card . this can be done with either `tftp` or `scp`. If it hasn't been done already, rename the files appropriately. |
| 356 | |
| 357 | === 4.2.3. Final configs and reboot === |
| 358 | The switch is configured by a startup script that reads the contents of /cf_card/local/sysenv . If not there, create the file, adding one line for the management IP: |
| 359 | {{{ |
| 360 | mkdir /cf_card/local/ |
| 361 | cd /cf_card/local/ |
| 362 | cat > sysenv |
| 363 | export switch_ip=192.168.203.156 |
| 364 | ^D |
| 365 | }}} |
| 366 | And reboot the switch. If all is well, the switch will be running the new firmware. |
| 367 | |
| 368 | === 4.3. The Web GUI === |
| 369 | once the switch starts back up, pointing the browser to the management IP should bring up the management page: |
| 370 | {{{ |
| 371 | http://192.168.203.156 |
| 372 | }}} |
| 373 | |
| 374 | ---- |
| 375 | === U-Boot method (old) === #old |
| 376 | |
| 377 | This section provides example uses of the u-Boot facilities for manipulating the !OpenFlow properties of the LB9A. We will also introduce the ORBIT Grid Service facilities that can be used to configure the switch without dealing with the gory details of u-boot (given the switch has the proper firmware, that is). |