This Instructable is part one of a six-part series of building the Zybot. In this Instructable we will be setting up the software side of the Zybot. The ZYBO (Zynq Board) is an embedded software and digital circuit development platform.
We are going to be setting up Ubuntu and other software that will set up the ZYBO to be used on the Zybot. For the easiest installation you will need:
Before you start, be sure to boot up your computer in a Linux system. (I'm using Fedora)
If you want to learn how to dual-boot, check out this Instructable!
Step 1: Preparing your Micro SD Card for partitioning
If you plug in your ZYBO now and turn it on, the only LED that will turn on is the red PGOOD light. This is good, because right now nothing is booting up on the ZYBO. For us to change this, we need to mount Ubuntu onto our Micro SD card.
Before we can put Ubuntu onto the Micro SD card, we have to partition the Micro SD into two parts. Right now, we are still using the computer, I'll mention when we switch over to the ZYBO.
Step 2: Partitioning your Micro SD Card
Now that everything is deleted, we can partition our Micro SD Card. We are going to create two partitions.
Step 3: Creating your File Systems
This is the final step of partitioning the Micro SD Card, so we can almost move onto installing Ubuntu!
Now your Micro SD Card is all partitioned!
We can test this out by unplugging and plugging the Micro SD back in and run lsblk again, then ZYBO_BOOT and ROOT_FS should be in sdb1 and sdb2.
Step 4: Setting up the Linux File System
In order for us to run Ubuntu on the ZYBO, we need to download Linaro Release of Ubuntu.
Go to this link and select the last link. (it should be 533.4M size)
After that is downloaded we need to copy it onto the Micro SD Card. This will take a few commands.
Now that your into Downloads enter the command sudo cp linaro-precise-ubuntu-desktop-20120923-436.tar.gz /tmp/linaro/fs.tar.gz
Now go into the the linaro folder we created, you can do this by using the command cd /tmp/linaro.
If everything went correctly, you can use the command ls and the only thing that should print out is fs.tar.gz
Finally, we want to enter the command sudo tar zxf fs.tar.gz to unpack the tar file. This will take a bit of time, and should produce a binary file.
Step 5: Moving the File System into the SD card
Before we can move anything over, we have to unmount the partitions like we did earlier.
Now that everything is unmounted, we can move the file system into the Micro SD card. For this, we need to be in /tmp/linaro folder. (We should be there already)
Follow these commands:
Now that everything is copied over, you should be able to check out ROOT_FS and there should be folders in it, ZYBO_BOOT should still be empty.
Step 6: Adding Boot Loader
The last step we need to do before the ZYBO board will work, is moving the attached files into the ZYBO_BOOT partition.
Download these files, then drag and drop into the ZYBO_BOOT usb mount, and that should be it! files.zip is a folder that has files that are going to be useful when we are setting the server software in the next Instructable.
Step 7: Setting up the ZYBO board
Now we can move over from computer to the the ZYBO! For us to use the ZYBO we have to set up a few things.
Turn on the ZYBO and (after a little time) the Desktop should be booted up.
Open up a terminal on the ZYBO and enter the command sudo apt-get install linux-firmware.
The linux-firmware allows us to connect to the wifi.
That finished up our software set-up of the ZYBOT, other instructables in this collection will focus on hardware and other relevant parts to setting up the ZYBOT.
Now you can move onto the next Instructable (Setting up the Zybot Server).