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)