Quantcast
Channel: Xilinx Wiki : Xilinx Wiki - all changes
Viewing all 11776 articles
Browse latest View live

Install Xilinx Tools

$
0
0
...
Zynq
arm-xilinx-linux-gnueabi-
ZynqMP
aarch64-linux-gnu-

Microblaze little endian
microblazeel-xilinx-linux-gnu-

Zynq-7000 AP SoC - Installing the Ubuntu Desktop on PetaLinux and Demo Tech Tip

$
0
0
...
Chandramohan pujari
Source Formatting Done
2015-Dec-04
1.2
Nathalie Chan King Choy
Added an Appendix B for 2015.2 TRD with newer Ubuntu version

1. Summary
The Ubuntu Desktop provides a rich graphical environment upon which developers may develop their custom applications requiring graphical user interfaces.This Tech Tip is Intended to enable user to run complex operating system like Ubuntu on Zynq peta-Linux platform. This also demonstrates the capability of Zynq to act as a general purpose CPU.
...
To install only part of LibreOffice, you can install the appropriate meta-package by executing
sudo apt-get install <meta-package>
6. Appendix B - using 2015.2 TRD and newer Ubuntu rootfs
If you want to use the 2015.2 Zynq Base TRD with a newer Ubuntu rootfs, there are a few extra things you'll need to do because Linaro's newer releases don't include a Ubuntu Desktop rootfs image any more, and there are some kernel options to set so that the X-windowing doesn't fail with the newer Ubuntu rootfs. These instructions assume you are working with a Linux workstation where you have your SD card plugged into a card reader.
Get the 2015.2 Base TRD files: http://www.wiki.xilinx.com/Zynq+Base+TRD+2015.2
Get the Linaro 2014.10 release developer build, which is based on Ubuntu 14.04 (an LTS version): Go to page http://releases.linaro.org/14.10/ubuntu/trusty-images/developer/ and get linaro-trusty-developer-20141024-684.tar.gz
If you have a Windows machine, you can prepare your SD card according to steps 4.1.1 and 4.1.2 above to partition & set them to the correct type (fat32 for boot and ext4 for rootfs). On a Linux workstation, you can use the tool "gparted" to partition & set the type.
Untar the rootfs image into the rootfs partition:
sudo tar --strip-components=1 -C /media/nathalie/rootfs -xzpf linaro-trusty-developer-20141024-684.tar.gz binary
If you build the design yourself with the Xylon IP, you'll have your display timing out after about an hour, due to the evaluation version of the IP being used. Since we want to add stuff to the rootfs that will take longer than an hour to install everything, we will start off by using the pre-built BOOT.BIN that is included in the 2015.2 base TRD files "ready_to_test" folder, which has the non-evaluation version compiled in. For the moment, we don't need to modify the FSBL ELF, U-Boot ELF, nor HW bitstream, so we can use the pre-built BOOT.BIN. Copy <TRD directory>/ready_to_test/BOOT.BIN to the boot partition of your SD card.
We do need to modify the kernel because some kernel options are needed so that the X-windowing doesn't fail with the newer Ubuntu rootfs. Follow the instructions in section 5 of this page http://www.wiki.xilinx.com/Zynq+Base+TRD+2015.2 for PetaLinux up to
ln -sf zc702-base-trd.dts system-top.dts
in 5.2.1 (b). When you get to the part "ln -sf zc702-base-trd.dts system-top.dts", modify system-top.dts to use the rootfs that you will put on the rootfs partition: change so that root=/dev/mmcblk0p2 in the bootargs instead of using /dev/ram. Then do
petalinux-config -c kernel
and do these 2 steps:
(1) Disable PCI (CONFIG_PCI=n) because otherwise Xorg will segfault
(2) Set CMA_SIZE_MBYTES to 128 so that Xorg doesn't throw an error: Device Drivers > Generic Driver Options > DMA Contiguous Memory Allocator > Size in Mega Bytes.
Build & package the kernel with the modified options:
petalinux-build
petalinux-package --image -c kernel --format uImage
Copy $ZYNQ_TRD_HOME/software/petalinux/images/linux/system.dtb to the boot partition of your SD card with the filename devicetree.dtb. $ZYNQ_TRD_HOME is defined on page http://www.wiki.xilinx.com/Zynq+Base+TRD+2015.2
Copy $ZYNQ_TRD_HOME/software/petalinux/images/linux/uImage to the boot partition of your SD card
In the boot partition of your SD card, create a file uEnv.txt with the contents:
uenvcmd=run ubuntu_sdboot
ubuntu_sdboot=echo Copying Linux from SD to RAM in uEnv... && fatload mmc 0 0x3000000 ${kernel_image} && fatload mmc 0 0x2A00000 ${devicetree_image} && if fatload mmc 0 0x2000000 ${ramdisk_image}; then bootm 0x3000000 0x2000000 0x2A00000; else bootm 0x3000000 - 0x2A00000; fi && echo Done uEnv
bootargs=console=ttyPS0,115200 root=/dev/mmcblk0p2 rw earlyprintk rootfstype=ext4 rootwait
In the rootfs partition of your SD card, create a file etc/init/ttyPS0.conf with the contents (you probably will need to use "sudo" for creating/modifying files on the rootfs partition of your SD card):
start on runlevel [23]
stop on runlevel [!23]
respawn
exec /sbin/getty -8 115200 ttyPS0
In the rootfs partition of your SD card, open up etc/securetty for editing. If ttyPS0 isn't there, add it. If tty1 isn't there, add it.
In the rootfs partition of your SD card, open up etc/apt/apt.conf for editing. If you need to use a proxy server, then add lines that look like:
Acquire::http::proxy "<your proxy server>:<port #>/";
Acquire::https::proxy "<your proxy server>:<port #>/";
To get started, let’s set apt up to just get the minimal required packages:
APT::Install-Recommends "0";
APT::Install-Suggests "0";
In the rootfs partition of your SD card, open up etc/network/interfaces. If missing, add this line:
iface eth0 inet dhcp
Execute the "sync" command to flush everything that needs to be written. When it completes, eject the SD card and but do not put it in your ZC702 board yet.
Make sure you have the console connected to the UART on your ZC702 board. Cutecom can be used on a Linux workstation. Power on the board with no SD card so that it can get detected & then power it off.
dmesg | grep ttyUSB -> look for which /dev/ttyUSBn has the USB UART
for the "n" you found above, sudo chmod 666 /dev/ttyUSBn (otherwise you won't be able to make a connection). Connect to /dev/ttyUSBn in your console program
Put the SD card into the ZC702, make sure you are in SD boot mode, and turn it on. You should come up at tty1
Log in as root (password: linaro)
Disable console sleep: setterm -blank 0 -powerdown 0 > /dev/tty1
Make sure the ZC702 is plugged in to Ethernet. Then execute
/usr/lib/klibc/bin/ipconfig eth0
Then you can start to get packages. Lubuntu-desktop is a lightweight desktop. Other options could be lubuntu-core, xubuntu-desktop, etc. Getting lubuntu-desktop installed takes a few hours. (This is why we don't want the Xylon IP timing out on us while installation is happening).
apt-get update
apt-get lubuntu-desktop
After the installation is complete, use the "reboot" command to reboot. You should come back up to the login prompt. You can log in as user linaro (password linaro).
http://releases.linaro.org/14.10/ubuntu/trusty-images/developer/

Zynq-7000 AP SoC - Installing the Ubuntu Desktop on PetaLinux and Demo Tech Tip

$
0
0
...
Put the SD card into the ZC702, make sure you are in SD boot mode, and turn it on. You should come up at tty1
Log in as root (password: linaro)
...
console sleep: setterm
setterm
-blank 0
Make sure the ZC702 is plugged in to Ethernet. Then execute
/usr/lib/klibc/bin/ipconfig eth0

Ubuntu on Zynq

$
0
0
...
Zynq platforms. Currently theThe Ubuntu system described on this page is pretty
...
feature any graphical user interface. There is a Ubuntu Tech tip on our wiki as well with a graphical user
Required Files
To boot the system we need the usual set of files. Pre-built images can be downloaded here.

Zynq Ethernet Performance 2015.3

$
0
0
XAPP1082 v3.0 2015.3
...
PL Ethernet (with/without)with CSO and jumbo frame support.
Build:
Vivado 2015.3
Kernel version 4.0 (2015.3)
...
obtained against Fedora-20u-buntu high performance
(GSO, TSO) enabled. Performance is expected to differ when a different peer OS is used and peer NIC offload options are disabled.
Socket size in netperf (-s) is configured to 65536 for inbound tests.

Zynq Ethernet Performance 2015.4

$
0
0
XAPP1082 v4.0 2015.4
This wiki page summarizes the performance of PS-EMIO (MACB diver) and PL Ethernet with CSO support.
Build:
Vivado 2015.4
Kernel version 4.0 (2015.4)
These measurements are obtained against u-buntu high performance peer machine. The NIC on motherboard has been used with default offload options
(GSO, TSO) enabled. Performance is expected to differ when a different peer OS is used and peer NIC offload options are disabled.
Socket size in netperf (-s) is configured to 65536 for inbound tests.
PS EMIO Ethernet
Outbound: 848.96 Mbps
Inbound: 769.7 Mbps
PL Ethernet with CSO offload
Outbound: 640.56 Mbps
Inbound: 744.84 Mbps

Zynq Ethernet Performance 2015.4

$
0
0
XAPP1082 v4.0 2015.4
...
with CSO support.support for 1000BaseX and SGMII.
Build:
Vivado 2015.4
...
(GSO, TSO) enabled. Performance is expected to differ when a different peer OS is used and peer NIC offload options are disabled.
Socket size in netperf (-s) is configured to 65536 for inbound tests.
...
EMIO Ethernet
Outbound: 848.96
for 1000BaseX
Outbound: 850.72
Mbps
Inbound: 769.7 Mbps
PLPS EMIO Ethernet for SGMII
Outbound: 842.96 Mbps
Inbound: 760.97 Mbps
PL Ethernet for 1000BaseX with CSO offload
Outbound: 641.56 Mbps
Inbound: 727.63 Mbps
PL Ethernet for SGMII
with CSO offload
Outbound: 640.56642.73 Mbps
Inbound: 744.84722.70 Mbps

Zynq Ethernet Performance 2015.4

$
0
0

Zynq Ethernet Performance

$
0
0

Zynq PL Ethernet

$
0
0
...
{directory_structure_wiki_v4.jpg}
2.3 PS-EMIO Ethernet
...
for 1000Base-X or SGMII
PS-EMIO Ethernet project provides installable BSP which includes all necessary design sources and configuration files, including pre-built and tested hardware and software images, ready for download to your board or for booting in the QEMU system simulation environment.
PHY can be 1000Base-X or SGMII.
Run petalinux-create command on the command console:
petalinux-create -t project -s <path-to-bsp>
Create2.3.1.1 Create PS Ethernet
...
petalinux bsp of particular PHY
bash> cd $PETALINUX
...
-s $XAPP_HOME/software/petalinux/bsp/xapp1082_ps_emio_eth_1000x.bsp (1000Base-X)
bash> petalinux-create -t project -s $XAPP_HOME/software/petalinux/bsp/xapp1082_ps_emio_eth_sgmii.bsp (SGMII)
2.3.2

2.3.1.2
Configure Petalinux
bash> cd xapp1082_ps_emio_eth
bash> petalinux-config
Save the changes and exit. It will download the remote kernel and checkout xilinx-v2015.4 tag.
NOTE: Above step may take a longer time depending on the network bandwidth.
2.3.32.3.1.3 Configure the
bash> petalinux-config -c kernel
Device Drivers> Network device support > PHY Device support and infrastructure >
<*> Drivers for xilinx PHYs
Save the changes and exit.
2.3.42.3.1.4 Apply FSBL
...
the AR 66006 for configuring
...
I2C in FSBLFSBL.
Also user can copy the files present in fsbl_patch_files folder to configure the clock and SFP.

bash> cd components/bootloader/zynq_fsbl
bash> cp -f $XAPP_HOME/software/petalinux/fsbl_patch_files/* .
bash> cd -
2.3.52.3.1.5 Build
bash> petalinux-build -v
2.3.62.3.1.6 Create Zynq
bash> cd images/linux
...
--boot --fsbl=zynq_fsbl.elf --fpga=$PETALINUX/xapp1082_ps_emio_eth/subsystems/linux/hw-description/ps_emio_sfp.bit--fpga=$PETALINUX/xapp1082_ps_emio_eth_1000x/subsystems/linux/hw-description/ps_emio_sfp.bit --u-boot
SD Deployable binaries:-
a) BOOT.BIN
b) image.ub
...
from $PETALINUX/ xapp1082_ps_emio_eth/images/linuxxapp1082_ps_emio_eth_1000x/images/linux to SD partition and run the setup.
2.3.2 PS-EMIO BSP installation for SGMII
PS-EMIO Ethernet project provides installable BSP which includes all necessary design sources and configuration files, including pre-built and tested hardware and software images, ready for download to your board or for booting in the QEMU system simulation environment.
Run petalinux-create command on the command console:
petalinux-create -t project -s <path-to-bsp>
2.3.2.1 Create PS Ethernet EMIO project from petalinux bsp
bash> cd $PETALINUX
bash> petalinux-create -t project -s $XAPP_HOME/software/petalinux/bsp/xapp1082_ps_emio_eth_sgmii.bsp
2.3.2.2 Configure Petalinux
bash> cd xapp1082_ps_emio_eth
bash> petalinux-config
Save the changes and exit. It will download the remote kernel and checkout xilinx-v2015.4 tag.
NOTE: Above step may take a longer time depending on the network bandwidth.
2.3.2.3 Configure the kernel
bash> petalinux-config -c kernel
Device Drivers> Network device support > PHY Device support and infrastructure >
<*> Drivers for xilinx PHYs
Save the changes and exit.
2.3.2.4 Apply FSBL patch
Refer to the AR 66006 for configuring the SFP and SI5324 using I2C in FSBL.
Also user can copy the files present in fsbl_patch_files folder to configure the clock and SFP.
bash> cd components/bootloader/zynq_fsbl
bash> cp -f $XAPP_HOME/software/petalinux/fsbl_patch_files/* .
bash> cd -
2.3.2.5 Build
bash> petalinux-build -v
2.3.2.6 Create Zynq Boot image
bash> cd images/linux
bash> petalinux-package --boot --fsbl=zynq_fsbl.elf --fpga=$PETALINUX/xapp1082_ps_emio_eth_sgmii/subsystems/linux/hw-description/ps_emio_sfp.bit --u-boot (sgmii)
SD Deployable binaries:-
a) BOOT.BIN
b) image.ub
Copy BOOT.BIN and image.ub from $PETALINUX/ xapp1082_ps_emio_eth_sgmii/images/linux
to SD
2.4 PL Ethernet
...
for 1000Base-X or SGMII
PL Ethernet project provides installable BSP which includes all necessary design sources and configuration files, including pre-built and tested hardware and software images, ready for download to your board or for booting in the QEMU system simulation environment.
PHY can be 1000Base-X or SGMII.
NOTE : Check-sum offload in enabled in the default configuration.
Run petalinux-create command on the command console:
petalinux-create -t project -s <path-to-bsp>
Create2.4.1.1 Create PL ethernet
...
petalinux installable bspBSP
Select the following command based on the PHY

bash> cd $PETALINUX
...
-s $XAPP_HOME/software/petalinux/bsp/xapp1082_pl_eth_1000x.bsp (1000Base-X)
bash> petalinux-create -t project -s $XAPP_HOME/software/petalinux/bsp/xapp1082_pl_eth_sgmii.bsp (SGMII)
2.4.2

2.4.1.2
Configure petalinux
bash> cd xapp1082_pl_eth
bash> petalinux-config
Save the changes and exit. It will download the remote kernel and checkout xilinx-v2015.4 tag.
NOTE: Above step may take a longer time depending on the network bandwidth.
2.4.32.4.1.3 Configure the
bash> petalinux-config -c kernel
Enable the Xilinx PHY driver and Disable the AXI DMA driver
...
<*> Xilinx AXI DMA support
Save the changes and exit.
2.4.42.4.1.4 Apply FSBL
...
the AR 66006 for configuring
...
in FSBL
Also user can copy the files present in fsbl_patch_files folder to configure the clock and SFP for SGMII.

bash> cd components/bootloader/zynq_fsbl
bash> cp -f $XAPP_HOME/software/petalinux/fsbl_patch_files/* .
bash> cd -
2.4.52.4.1.5 Build
bash> petalinux-build -v
2.4.62.4.1.6 Create Zynq
bash> cd images/linux
...
--boot --fsbl=zynq_fsbl.elf --fpga=$PETALINUX/xapp1082_pl_eth/subsystems/linux/hw-description/pl_eth_sfp.bit--fpga=$PETALINUX/xapp1082_pl_eth_1000x/subsystems/linux/hw-description/pl_eth_sfp.bit --u-boot
SD Deployable binaries:-
a) BOOT.BIN
b) image.ub
Copy BOOT.BIN and image.ub from $PETALINUX/ xapp1082_pl_eth_1000x/images/linux to SD partition and run the setup.
Note: Instructions on Petalinux BSP creation (rather Petalinux flow from scratch) is provided in Appendix1 below.
2.4.2 PL Ethernet BSP installation for SGMII
PL Ethernet project provides installable BSP which includes all necessary design sources and configuration files, including pre-built and tested hardware and software images, ready for download to your board or for booting in the QEMU system simulation environment.
NOTE : Check-sum offload in enabled in the default configuration.
Run petalinux-create command on the command console:
petalinux-create -t project -s <path-to-bsp>
2.4.2.1 Create PL ethernet project from Petalinux installable bsp
Select the following command based on the PHY
bash> cd $PETALINUX
bash> petalinux-create -t project -s $XAPP_HOME/software/petalinux/bsp/xapp1082_pl_eth_sgmii.bsp
2.4.2.2 Configure petalinux
bash> cd xapp1082_pl_eth
bash> petalinux-config
Save the changes and exit. It will download the remote kernel and checkout xilinx-v2015.4 tag.
NOTE: Above step may take a longer time depending on the network bandwidth.
2.4.2.3 Configure the kernel
bash> petalinux-config -c kernel
Enable the Xilinx PHY driver and Disable the AXI DMA driver
Device Drivers> Network device support > PHY Device support and infrastructure >
<*> Drivers for xilinx PHYs
Device Drivers> DMA Engine Support> Xilinx DMA Engines >
<*> Xilinx AXI DMA support
Save the changes and exit.
2.4.2.4 Apply FSBL patch
Refer to the AR 66006 for configuring the SFP and SI5324 using I2C in FSBL
Also user can copy the files present in fsbl_patch_files folder to configure the clock and SFP.
bash> cd components/bootloader/zynq_fsbl
bash> cp -f $XAPP_HOME/software/petalinux/fsbl_patch_files/* .
bash> cd -
2.4.2.5 Build
bash> petalinux-build -v
2.4.2.6 Create Zynq Boot image
bash> cd images/linux
bash> petalinux-package --boot --fsbl=zynq_fsbl.elf --fpga=$PETALINUX/xapp0182_pl_eth_sgmii/subsystems/linux/hw-description/pl_eth_sfp.bit
--u-boot
SD Deployable binaries:-
a) BOOT.BIN
b) image.ub
...
from $PETALINUX/ xapp1082_pl_eth/images/linuxxapp1082_pl_eth_sgmii/images/linux to SD
...
provided in AppendixAppendix1 below.
2.5 Test Instructions
In this version, kernel builds required drivers statically.So, drivers are already inserted as part of the kernel booting.
...
bash> cd $PETALINUX/xapp1082_pl_eth
bash> petalinux-build -v
...
provided in AppendixAppendix2 below.
3.7 Test Instructions
Setup the ZC706 jumpers and SFP module as mentioned in XAPP1082 PDF.
...
UG585, Zynq 7000 All Programmable SoC Technical Reference Manual
Netperf , Netperf page
6 AppendixAppendix1
Create Petalinux bsp for PS-EMIO and PL ethernet project
<These instructions are only valid for XAPP1082 v4.0 release>
This section describe how to create petalinux bsp from scratch. It is assumed that petalinux environment is set properly. Please refer Petalinux installation section for further details.
NOTE : The instructions remain the same for both PL Ethernet and PS-GEM EMIO designs.
Recommended convention for project names:-
a. 1000BaseX
PS-EMIO ethernet : xapp1082_ps_emio_eth_1000x
PL ethernet : xapp1082_pl_eth_1000x
b. SGMII
PS-EMIO ethernet : xapp1082_ps_emio_eth_sgmii
PL ethernet : xapp1082_pl_eth_sgmii
1 Create ethernet project
bash> petalinux-create -t project -n <project-name>
bash> cd <project-name>
2 Sync HW description
petalinux-config --get-hw-description=<path-to-hw-description-hdf>
Point to SDK Export directory for the relevant design.
3 Petalinux Configuration
a. Ethernet Setting
-- Subsystem AUTO Hardware Settings --->
Ethernet Settings --->
[ ] Obtain IP address automatically
b. Disabling copy to tftpboot
Image Packaging Configuration --->
[ ] Copy final images to tftpboot
Uncheck copy final images to tftpboot
4 Configure default kernel to remote kernel, if required to change the kernel source code
bash> cd $PETALINUX/<project-name>
bash> petalinux-config
linux Components Selection ---> kernel (xlnx-4.0) ---> (X) remote
Remote linux-kernel settings --->
Remote linux-kernel git URL ->git:github.com/Xilinx/linux-xlnx.git
Remote git TAG/Commit ID -> xilinx-v2015.4
Save the changes and exit.

5 Configure kernel defconfig
bash> petalinux-config -c kernel
Device Drivers> Network device support > PHY Device support and infrastructure >
<*> Drivers for xilinx PHYs
Save the changes and exit.
6 Update DTS
Appropriate DTS should be copied for PL Ethernet or PS-GEM EMIO design for 1000BaseX and SGMII
bash> cd subsystems/linux/configs/device-tree
bash> rm system-top.dts
bash> cp -rf $XAPP_HOME/software/devicetree/<project-name>.dts system-top.dts
Copy dts from $XAPP_HOME/software/devicetree and delete default system-top.dts
PS EMIO Ethernet DTS changes
a. Identify as 1000BaseX PHY
Refer to the file (xapp1082_ps_emio_eth_1000x.dts) for gem1 node
Configure the xilinx phy-type with value 5 in the phy handler.
b. Identify as SGMII PHY
Refer to the file (xapp1082_ps_emio_eth_sgmii.dts) for gem1 node
Configure xilinx phy-type with value 4 in the phy handler.
Note: Xilinx phy type configuration is optional in case of SGMII in PS GEM case
PL Ethernet DTS changes
a. Identify as 1000BaseX PHY
Refer to the file (xapp1082_pl_eth_cso_1000x.dts) for axi_ethernet_0 node
Configure the xilinx phy-type with value 5.
b. Identify as SGMII PHY
Refer to the file (xapp1082_pl_eth_cso_sgmii.dts) for axi_ethernet_0 node
Configure the xilinx phy-type// with value 4.
NOTE: In case of PL ethernet CSO is enabled by default.
Both device tree source should be kept in subsystems/linux/configs/device-tree directory.
system-top.dts -> xapp1082_pl_eth_cso_1000x.dts (1000BaseX)
system-top.dts -> xapp1082_pl_eth_cso_sgmii.dts (sgmii)
bash> ln -s xapp1082_pl_eth_cso_1000x.dts system-top.dts
For no-CSO support system-top.dts should point to xapp1082_pl_eth_nocso.dts.
7 Add support for network utilities (taskset and netperf)
bash> petalinux-create -t apps --enable -n xapp_utils --template install
bash> cd components/apps/xapp_utils/
bash> rm data/xapp_utils
Copy utils from XAPP package to xapp_utils app.
bash> cp -rf $XAPP_HOME/software/apps/xapp_utils/* .
8 Build the Petalinux project
bash> petalinux-build -v
9
Create Zynq Boot image
bash> cd images/linux
bash> petalinux-package --boot --fsbl=zynq_fsbl.elf --fpga=$PETALINUX/<project-name>/subsystems/linux/hw-description/<bitfile-name> --u-boot
10 Sync pre-built images
Point to appropriate bitfile
bash> petalinux-package --prebuilt --fpga=$PETALINUX/<project-name>/subsystems/linux/hw-description/<bitfile-name>
11 Package BSP
bash> petalinux-package --bsp -p <project-name> -o <project-name>.bsp
7 Appendix2
Create
Petalinux bsp
<These instructions are only valid for XAPP1082 v3.0 release>
This section describe how to create petalinux bsp from scratch. It is assumed that petalinux environment is set properly. Please refer Petalinux installation section for further details.

Zynq PL Ethernet

$
0
0
...
Run petalinux-create command on the command console:
petalinux-create -t project -s <path-to-bsp>
...
project from petalinux bspPetaLinux BSP
bash> cd $PETALINUX
bash> petalinux-create -t project -s $XAPP_HOME/software/petalinux/bsp/xapp1082_ps_emio_eth_1000x.bsp
2.3.1.2 Configure PetalinuxPetaLinux
bash> cd xapp1082_ps_emio_eth
bash> petalinux-config
...
bash> cd -
2.3.1.5 Build
Build all images using PetaLinux
bash> petalinux-build -v
2.3.1.6 Create Zynq Boot image
...
bash> cd -
2.3.2.5 Build
Build all the images using PetaLinux
bash> petalinux-build -v
2.3.2.6 Create Zynq Boot image
...
<*> Drivers for xilinx PHYs
Device Drivers> DMA Engine Support> Xilinx DMA Engines >
<*><> Xilinx AXI
Save the changes and exit.
2.4.1.4 Apply FSBL patch
...
bash> cd -
2.4.1.5 Build
Build all images using PetaLinux
bash> petalinux-build -v
2.4.1.6 Create Zynq Boot image
...
<*> Drivers for xilinx PHYs
Device Drivers> DMA Engine Support> Xilinx DMA Engines >
<*><> Xilinx AXI
Save the changes and exit.
2.4.2.4 Apply FSBL patch
...
bash> cd -
2.4.2.5 Build
Build all images using PetaLinux
bash> petalinux-build -v
2.4.2.6 Create Zynq Boot image
...
On teraterm wait till Petalinux login screen appears. Enter username as root and password as root.
To test PL Ethernet design,
# insmod /lib/modules/3.17.0-xilinx-ga1bba3d/kernel/drivers/net/ethernet/xilinx/xilinx_axienet_main.ko/lib/modules/3.17.0-xilinx-<kernel_build_version>/kernel/drivers/net/ethernet/xilinx/xilinx_axienet_main.ko
To test PS-EMIO design,
# insmod /lib/modules/3.17.0-xilinx-ga1bba3d/kernel/drivers/net/ethernet/xilinx/xilinx_emacps_emio.ko/lib/modules/3.17.0-xilinx-<kernel_build_version>/kernel/drivers/net/ethernet/xilinx/xilinx_emacps_emio.ko
Note: Default kernel module path contains Git commit reference and hence the above path changes once images are rebuilt.
The above command inserts the driver in kernel.

Zynq PL Ethernet

$
0
0
...
Note: Instructions on Petalinux BSP creation (rather Petalinux flow from scratch) is provided in Appendix1 below.
2.5 Test Instructions
In this version,the version 4.0, kernel builds the required drivers
Refer the section 3.7 to use the ifconfig utility for configuring the interface eth1 for PS EMIO and PL Ethernet.
3. XAPP1082 v3.0

Zynq PL Ethernet

$
0
0

Zynq PL Ethernet

$
0
0
...
2.3.2 PS-EMIO BSP installation for SGMII
PS-EMIO Ethernet project provides installable BSP which includes all necessary design sources and configuration files, including pre-built and tested hardware and software images, ready for download to your board or for booting in the QEMU system simulation environment.
The design supports with the auto-negotiation for speeds of 10/100/1000 Mbps and full duplex mode.
Run petalinux-create command on the command console:
petalinux-create -t project -s <path-to-bsp>
...
2.4.2 PL Ethernet BSP installation for SGMII
PL Ethernet project provides installable BSP which includes all necessary design sources and configuration files, including pre-built and tested hardware and software images, ready for download to your board or for booting in the QEMU system simulation environment.
The design supports with the auto-negotiation for speeds of 10/100/1000 Mbps and full duplex mode.
NOTE : Check-sum offload in enabled in the default configuration.
Run petalinux-create command on the command console:
...
Save the changes and exit.
6 Update DTS
...
for 1000BaseX andor SGMII
bash> cd subsystems/linux/configs/device-tree
bash> rm system-top.dts
bash> cp -rf $XAPP_HOME/software/devicetree/<project-name>.dts system-top.dts
Copy dts from $XAPP_HOME/software/devicetree and delete default system-top.dts
PS EMIO Ethernet DTSDTS parameters required to change according to the design changes as follows
a. Identify as 1000BaseX PHY
Refer
Phy mode (phy-mode)
This parameter used
to configure the file (xapp1082_ps_emio_eth_1000x.dts) for gem1 node
Configure
interface according to the xilinx phy-type with value 5string passed in the phy handler.DTS.
b. Identify as SGMII PHY
Refer
Xilinx Phy type (xlnx,phy-type)
This parameter used
to set the file (xapp1082_ps_emio_eth_sgmii.dts)1000BaseX flag, in case of 1000BaseX PHY selection for gem1 node
Configure xilinx phy-type
PS GEM with value 4 in the phy handler.
Note: Xilinx phy type configuration
5.
It
is optionaloptional, in case of SGMII inPHY selection for PS GEMGEM, but value is 4 in case
PL Ethernet DTS changes
a. Identify as 1000BaseX PHY
Refer
of PL Ethernet.
c. Phy address in Phy handle (reg)
This parameter is used
to hold the file (xapp1082_pl_eth_cso_1000x.dts)phy address used for axi_ethernet_0 node
Configure
the xilinx phy-type with value 5.
b. Identify
phy handler in the design.
PS GEM example dts node
as follows
&gem1 {
.....
phy-mode = "rgmii-id"; /*SGMII value is "sgmii" */
phy-handle = <&phy1>;
phy1: phy@6 {
compatible = "Xilinx PCS/PMA Phy";
device_type = "ethernet-phy";
xlnx,phy-type = <5>; /*
SGMII PHY
Refer to the file (xapp1082_pl_eth_cso_sgmii.dts) for axi_ethernet_0
value is optional */
reg = <6>; /* Phy address value */
};
};
PL Ethernet example dts
node
Configure the xilinx phy-type// with
as follows
&axi_ethernet_0 {
.....
xlnx, phy-type = <0x4> /* 1000BaseX value is 5 */
phy-mode = "sgmii"; /*SGMII value is "sgmii" */
phy-handle = <&phy1>;
mdio {
------
phy1: phy@3 {
compatible = "Xilinx PCS/PMA Phy";
device_type = "ethernet-phy";
reg = <3>; /* Phy address
value 4.*/
};
};
};

NOTE: In case of PL ethernet CSO is enabled by default.
Both device tree source should be kept in subsystems/linux/configs/device-tree directory.

java14.JPG


javainstall.JPG

java4.JPG

java5.JPG

java6.JPG

ARTY Power Demo

$
0
0
...
A35T_Power_Demo.zip
Downloading, Installing Demos & Java Application Files
Verify that Java JDK 7 (64bit) is installed
To run this Arty power demo, you will need the Java JDK 7. Verify if you have Java JDK 7 installed. In the Windows Start “run” type “cmd”
{cmd.jpg}
This will open a command prompt window. In that command window type: java -version
{java14a.JPG}
If you have the correct version of java, it should display: java version “1.7.0.79”
{java14.JPG}
Installing Java JDK 7 (64bit)
If Java is not installed, Install JDK 7 (64 bit) from: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
Scroll down to the table for the Java SE Development Kit 7u79. Check the “Accept License Agreement” and select the jdk-7u79-windows-x64.exe
{javainstall.JPG}
This will prompt you to save the download
{java4.JPG}
When your browser has finished downloading the jdk-7u79-windows-x64.exe, double click and run this exe.
{java5.JPG}
This will start the java install. Follow the instructions as you are prompted.
{java6.JPG}
When java has been installed you can verify by opening a cmd window from the windows start menu and type: java –versio
{java14.JPG}

This Artix-7 35T Power Demo is found in the Archive A35T_Power_Demo_v1.0.zip. This archive can be download and unzipped. It will have the following directories and files:
A35T_Power_Demo_v1.0.zip
Viewing all 11776 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>