Galileo goes Wireless

The Galileo is a great single board computer. However one thing that makes the board even more attractive is the simple support for WiFi. This blog outlines the steps necessary to get Galileo with WiFi working.

According to post in the Intel forum Galileo will work with the Intel Centrino N135 and N6205. However after reading the great post from Sergy I could not resist the temptation and got a Intel® Centrino® Advanced-N 6235 card from a local computer store. I then also had to get a pair of antennas and the half mPCI card extender.

Here are a few things you need before you start:

  1. A computer with the Arduino IDE for Galileo installed
  2. A network router with a DHCP server running
  3. An Ethernet cable to connect the Galileo board to your network
  4. An empty SD card or USB thumb drive

As my WiFi card is not supported out of the box I had to add the driver and firmware support. Here are the steps to do this:

(Note: instead of booting from a microSD card, you can also use a USB thumb drive and a USB-to-microUSB OTG-adapter cable). This is  not advertised widely, but see Galileo forum post for details

    1. Head over to Wireless Linux site and download the Linux diver for the Intel Centrino Advanced-N 6235. The file name is iwlwifi-6000g2b-ucode-18.168.6.1.tgz
    2. Attach your Galileo to your network router with a standard Ethernet cable
    3. Download the sketch source code below. Modify the MAC address in the sketch to match you Galileo board's MAC address printed on the label on the Ethernet plug.
    4. Compile and upload the sketch.
    5. Open the Serial Console in the Arduino IDE. You should see a Message that reports the IP address assigned by your DHCP server "Attempting to start Ethernet" "Your IP address: 192.168. 1. 49"
    6. Do a full format  of a microSD Card (no Quickformat)
    7. Copy all the files from Prepare the microSD Card
    8. Plug the micro SD card into the SD card slot on the Galileo Board
    9. Boot your Gallileo board by pushing the REBOOT switch and wait until you see the board dectected by your computers USB port.
    10. Use SSH (mindterm or scp) to copy the file iwlwifi-6000g2b-6.ucode WiFI firmware  to the /lib/firmware/ folder of you Galileo
    11. Generate the WPA credentials:
    12. Start the network with:
    13. Shut down the WiFi with:
    14. Start up the WiFi

Using the IP address that the Galileo reported in the Serial Terminal you should be able to telnet into the board. This will give you a Galileo Linux terminal prompt.

3 thoughts on “Galileo goes Wireless

  1. Pingback: RedBear BLE Module | Bentuino - Blog

  2. Brian

    I followed this and just can't get wlan0 to seem to initialize. I get to the step where I am bringing up the interface and it tells me that it doesn't see the device. Do I need to remove the other drivers in the /lib/firmware directory?

    This is what I get on the ifup

    root@clanton:~# ifup wlan0
    Successfully initialized wpa_supplicant
    Could not read interface wlan0 flags: No such device
    WEXT: Could not set interface 'wlan0' UP
    wlan0: Failed to initialize driver interface
    ifconfig: SIOCGIFFLAGS: No such device

  3. kkaiser Post author

    Dear Brian, I don't think removing drivers will help. Did you check that the card is correctly visible by the OS? Try "lspci | less". Do you see your card? What do you get if you do a "ifconfig"?

    Here is a link "How can I find out if my Ethernet card (NIC) is being recognized or not" http://www.cyberciti.biz/faq/how-can-i-find-out-if-my-ethernet-card-nic-is-being-recognized-or-not/ that explains how you can debug this. It is related to an Ethernet NIC but perfectly relevant for WLAN.

Comments are closed.