Tuesday, March 8, 2016

Ubuntu with Linaro GUI Working

We have the linaro GUI downloaded on the SD Card and it is working with the ZedBoard.

To run Ubuntu on the ZedBoard make sure of the following:
-SD card is in the board
-MIO4 and MIO5 are HIGH (all other MIO's are LOW)
-JP2 and JP6 are shorted
-all other jumpers are untouched
-Monitor connected via HDMI port

Turn on the ZedBoard and connect to the GTKTerm terminal
-115200 baud rate, 8 bit, 1 stop bit, no parity, no flow control
-Port name is usually dev/ttyACM0 or dev/ttyACM1
 -After a few seconds, the blue LED should turn on and the connection process will begin
 
Once connected to the terminal, you should see
zed-boot>

Run the command: run sdboot_linaro

Give the board a few minutes to load the GUI

The link below is the svenblog link with the detailed instructions on getting Linaro on the SD card.
http://svenand.blogdrive.com/archive/199.html#.Vt9Cj0QRGlP

Thursday, December 3, 2015

Talking to ZedBoard/Secure Digital (SD) Card mounting and un-mounting

Setting Jumpers

MI05 and MI04 must be set to High (1) as shown in ZedBoard image (Image 1)



Image 1


Voltage Supply Pin or GND is indicated by VADJ and either select 2V5 or 1V8 (seen in Image 2)


Image 2



Now SD Card and the ZedBoard

Opening SDK and connecting the ZedBoard to the terminal properly will prompt: zynq> 

The ZedBoard will be lighten up accordingly to what Image 3 shows. 

Image 3


Mounting the SD Card command:

zynq> mount /dev/mmcb1k0p1 /mnt

Un-mounting the SD Card command:

zynq> unmount  /mnt

The image below shows the mounting process from terminal in SDK (Image 4)



Image 4

Proper command to poweroff the ZedBoard from the terminal:

zynq> poweroff

Image 5 shows this process in the terminal below.



Image 5


OPEN SOURCE LINUX

OPEN SOURCE LINUX

Our Command: opt/Xilinx/SDK/2013.4/gnu/arm/lin/bin

Steps:

1. Need to fetch source codes and then fetch linux kernel

in the terminal: git clone git://github.com/Xilinx/linux-xlnx.git
1.75GB

2. Now U-Boot: git clone git://github.com/Xilinx/U-boot-xlnx.gir

3. Device Tree Gen: git clone git://github.com/Xilinx/device-tree.git

Note: Need to add GPU core on PL


Fall Semester 2015 ZedBoard Research

Tuesday, October 20, 2015

General AXI Properties/About AXI (unfinished)

AXI
-AXI is a type of bus that connects modules on a chip
-two types: Slaves and Masters

AXI Masters
-initiate transactions between modules (transactions can be seen as read/write data being sent back and forth)

AXI Slaves
-respond to initiated transactions made by Masters
-addresses for slave modules can be defined by the user but no two slaves can have any address overlap

AXI Interconnect
-capable of a lot of actions
-connect master and slave modules
-can be hierarchical
-one AXI Interconnect can have up 16 slaves and 16 masters
-can convert 64 bit transactions to 32 bit transactions if needed





AXI Addressing
-Masters send read/write commands through the AXI Interconnect to slaves
-slaves have address ranges that commands from masters must fall into
Examples: UART: 0x40000000-0x40000FFF
                   GPIO: 0x40001000-0x40001FFF
                   RAM: 0x40010000-0x4001FFFF







**The AXI interconnect is a vital piece when assembling a block design in Xilinx Vivado.**


Monday, October 19, 2015

Video Series to understand Petalinux

The following link has a quite lengthy video series Sessions 1-13 that cover parts of the FPGA, what they do, and how they can be used together to ultimately load Petalinux using the ZedBoard.

(Some of the videos on this channel are unrelated, videos can be differentiated by looking at the titles)

Mohammadsadegh Sadri


Monday, July 27, 2015

Exporting Project to SDK for AD9467/Running Example Github Code

This blog follows up the Vivado Hardware design for the AD9467 created in Vivado 2014.2. I then tried to open up the Vivado project in 2014.4, which ran fine. Before exporting to SDK in 2014.4, I had to update some of the ip-blocks in the Block Design because they were designed for 2014.2. There were 13 blocks total that needed to be upgraded. Only 7 upgraded without manual intervention.  I was unable to update the last 6 with an error telling me that the blocks could not be found in the IP Catalog. From some research,  I found that I had to add another IP Repository with the 6 "locked" blocks. Since they were not upgraded, I was unable to customize them; therefore locked.

I am still working on this problem but I wanted to export the project and program the FPGA with the software from:

http://wiki.analog.com/resources/fpga/xilinx/fmc/ad9467#using_the_hdl_reference_design 

Select AD9467-FMC-EBZ Reference Design  the following menu:

You will be brought to a Github repository similar to the one found in the Hardware Design. Click the double arrow on the right-hand side of the page and download the ZIP file.  

1. Extract the files to your download directory and copy them to wherever you'd like.

2. Make sure the bitstream is written in Vivado (it should be done for you if you follow the directions in the hardware blog).

3. Export Hardware.

4. Launch SDK ensuring the workspace is the same as the one you've been saving your other projects too.

5. Create a new Empty Application

6. Import the following files to the "src" folder:
/home/zynquser/Downloads/no-OS-master/drivers/AD9467/AD9467.c
/home/zynquser/Downloads/no-OS-master/drivers/AD9467/AD9467.h
/home/zynquser/Downloads/no-OS-master/drivers/AD9517/AD9517.c
/home/zynquser/Downloads/no-OS-master/drivers/AD9517/AD9517.h
/home/zynquser/Downloads/no-OS-master/drivers/AD9517/AD9517_cfg.h
/home/zynquser/Downloads/no-OS-master/AD9467-FMC-EBZ/cf_ad9467.c
/home/zynquser/Downloads/no-OS-master/AD9467-FMC-EBZcf_ad9467.h
/home/zynquser/Downloads/no-OS-master/AD9467-FMC-EBZ/main.c
/home/zynquser/Downloads/no-OS-master/AD9467-FMC-EBZ/spi.c
/home/zynquser/Downloads/no-OS-master/AD9467-FMC-EBZ/spi.h

7. Program the FPGA - there should be no issues here

8. In order to see the output (if you check the main.c file you  will see that there are some initial tests the code runs to ensure proper connection and driver installation), open up gtkterm from the terminal.

9. Check to see which port the UART cable is connected to, usually ttyACM0. Change the permissions using sudo chmod 666 /dev/ttyACM0.

10. Run as -> Launch on Hardware (you should see the program output some print statements)

***Note: We have not connected the AD9467 to any function generator yet, this is just the instructions to load the software onto the Zedboard. Once we get the cables to connect to a function generator, we can practice with some example frequencies and take some data. Then move it to MATLAB, plot it, and see if we can get some meaningful graphs.***



Friday, July 24, 2015

Dr. McColgan's Lab Computer Setup

Workstation 1 (in the annex, shorter desk, closer to McColgan's office):

Hard Drive 1: WDC W10EZEX-75M2NA0    - CentOS 6
Hard Drive 2: ST500DM002-1BD142             - Windows (with Virtual Machine)



Workstation 2 (in the annex, taller desk, near the window):

Hard Drive 1: WDC W10EZEX-75M2NA0    - CentOS 6
Hard Drive 2: ST500DM002-1BD142             - Windows (with Virtual Machine)


During boot-up press F12  (Dell Logo Screen) and select which hard drive you plan to use.