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!

We will be booting Linux into a filesystem residing on an EXT3 partition on the SD card.

Therefore, partition the SD card for FAT and EXT3 using a partitioning software tool.

In this case I used EaseUS Partition Master Free edition.

Create the filesystem on the SD card:

Copy "BOOT.BIN" and "image.ub" from the "Xilinx-ZC702-2014.4/pre-built/linux/images/" directory to the FAT filesystem within the Petalinux project and "rootfs.tar" from the Buildroot project "buildroot/output/images".

Insert the SD CARD in the windows machine and use Windows Explorer to copy the files to the SD card.

Put the SD card into the slot on the ZC702 board and boot from the SD-card.

To boot from an SD card, flip bit 3 and 4 to "1", the rest "0", on the SW16 switch on the ZC702 board.

When booted, log in with user and password "root" and install the filesystem onto the EXT3 partition.

See the following example:

#mount /dev/mmcblk0p1 /mnt/

# ls -l /mnt/

-rwxr-xr-x 1 root root 4403064 Oct 24 2014 BOOT.BIN

-rwxr-xr-x 1 root root 3587900 Dec 16 2014 image.ub

-rwxr-xr-x 1 root root 196515840 Dec 18 2014 rootfs.tar

# mkdir /ext3

# mount /dev/mmcblk0p2 /ext3/

# cd /ext3

# tar xvf /mnt/rootfs.tar

# ls -l /ext3

total 64b

b

lr

wxrwxrwx 1 root root 11 Jan 1 1970 linuxrc -> bin/busybox

pt

drwxr-xr-x 2 root root 4096 Dec 12 2014 proc

drwx------ 2 root root 4096 Apr 30 13:53 root

lrwxrwxrwx 1 root root 3 Jan 1 1970 run-> tmp

drwxr-xr-x 2 root root 4096 Jan 1 1970 sbin

drwxr-xr-x 2 root root 4096 Dec 12 2014 sys

drwxrwxrwt 3 root root 4096 Apr 30 13:40 tmp

drwxr-xr-x 7 root root 4096 Jan 1 1970 usr

drwxr-xr-x 5 root root 4096 Jan 1 1970 var

#

Boot into the EXT3 partition filesystem

Now we want to change out the image.ub from the SD card to the new one, which will be using the ext3 filesystem instead of the image.ub on the SD card.

Copy "image.ub" from the "Xilinx-ZC702-2014.4/images/linux" directory to the SD-card.

If there would be any problems with the new image, it would make sense to rename the old image so you can revert to it again.

Put the SD card back into the development board and boot from SD card.

You should now be able to boot Linux and Valgrind should be installed. You can test it on a binary file like this: