Petalinux&zedboard (custom IP learning Note)

Source: Internet
Author: User

1, the establishment of Vivado project;

2. Generate. hdf files;

3. Start Petalinux

SOURCE Petalinux Installation Path/settings.sh

4. Establish Petalinux Project

Petalinux-create--type Project--template zynq--name test

5. Enter the Petalinux project folder to obtain HDF information (bit, DDR, MIO, PLL)

Petalinux-config--GET-HW-DESCRIPTION=.HDF File path/

6, establish modules

PETALINUX-CREATE-T Modules--name Blink--enable

7, enter the path to modify the corresponding file

CD Project-spec/meta-user/recipes-modules/blink

Modify the Blink.bb file

Continue into folder files

Modify BLINK.C

8. Build Petalinux Project

Petalinux-build

9, the compilation is completed, under the images/linux/path has

First-Class boot program: fsbl.elf

Mirroring bootloader: u-boot.elf

PL configuration program. bit

Mirror Program (kernel, device tree, file system): Image.ub

10. Package the top 3 of 9 into a boot.bin program

Petalinux-package--boot--format BIN--fsbl zynq_fsbl.elf--u-boot u-boot.elf--FPGA system_wrapper.bit

Will generate Boot.bin

11. Copy Boot.bin and Image.ub to SD card

12. Boot board subsystem, configure IP and host communication

Ifconfig eth0 IP (board IP, with own host in the same network segment) Netmask 255.255.0.0;route add default GW xxx.xxx.0.1

13. Drive into the kernel

The board enters the drive path: Cd/lib/modules/4.9.0-xilinx-v2017.2/extra

There are driver files Blink.ko

Run the modprobe command: Modprobe Blink.ko

Device number: Mknod/dev/blink_dev C 244 0

 

13. Remote System Explorer via the SDK

Run the should be shipped program on the board

chmod 777 Zed_test.elf

./zed_test.elf

Petalinux&zedboard (custom IP learning Note)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.