We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

Showing results for 
Search instead for 
Did you mean: 

Adam Taylor’s MicroZed Chronicles Part 136: Getting the Snickerdoodle up, running, and connected to WiFi

Xilinx Employee
Xilinx Employee
0 1 93.1K


By Adam Taylor


Now that I’ve introduced the krtkl Snickerdoodle (see last week’s “Adam Taylor’s MicroZed Chronicles: krtkl’s Zynq Snickerdoodle arrives in the mail! First looks”), the next thing to do is get it running and connected to our WiFi LAN. To do this, we will need a microSD Card with at least 4Gbytes capacity.


The first step is to create a boot disc on the microSD card. There are different approaches depending upon which operating system you are using. I am using Microsoft Windows, but you can create a boot disc for your operating system. Instructions are here.


From the krtkl webpage we can also download the Ubuntu SD card image. We need to download the following programs to create the boot disc using Windows:



With the image downloaded, use the SD Formatter to format the microSD card. Ensure that Format Size Adjustment is enabled. Then use the Disk Imager to write the ISO file to the microSD card once formatting completes.


Now we are ready to insert the microSD card into the Snickerdoodle and apply power.


The Snickerdoodle uses UART over USB for communication and we may need to install the proper drivers for this on our computer to ensure that we can correctly communicate with the device. Drivers are available here.


When your Snickerdoodle boots, you will see the folllowing in your terminal window:






However we are not quite up and connected to our WIFI network. Not yet. 


Now we need to modify a file and update the wireless configuration as requried. We can use the built-in VI editor to perfom this modification (for those unfamiliar with VI you can find a command set here).


The two files we need to modify are:


  • /etc/udev/rules.d/70-persistent-net.rules – this file associates your NIC’s (Network Interface Controller) MAC with the name given to the NIC at start up.
  • /etc/wpa_supplicant.conf – this file is where we define the target network’s SSID and password.


We open the files in VI by entering the following on the command line:






The changes to the first file are pretty simple. We need to just clear out all of the contents and then perform a reboot:





Initial contents of the rules file shown in VI



Before we edit the second file, we need to run the following commands on the Snickerdoodle command line:


  • ifconfig wlan0 up – This will bring up the wireless LAN
  • iw wlan0 scan | grep SSID – This will scan and report on the available networks


With that complete, the next step is to open the configuration file in VI and enter your SSID and the password:





Configuring the Configuration file in VI



We are now ready to connect to our selected wireless network. To do this we issue the following commands:


  • wpa_supplicant -d -D nl80211 -c /etc/wpa_supplicant.conf -i wlan0 -B – This brings up the WLAN
  • dhclient wlan0 – This gets a DCHP address from our network


At this point you should be able to look at your chosen routers connections and see that the Snickerdoodle is present:






The Snickerdoodle attached to my network



We can then run commands to determine the parameters of our wireless network:







All told it was pretty simple to get it up and running and connected to my network.

Tags (2)
1 Comment