Skip to content

Latest commit

 

History

History
90 lines (46 loc) · 3.9 KB

imagefrompetalinux.md

File metadata and controls

90 lines (46 loc) · 3.9 KB

Prepare boot image from PetaLinux

1. install PetaLinux

a. Download the petalinux installer 2019.1

b. Execute the installer

alt text

c. Export the petalinux setting

alt text

alt text

2. Generate board specific project from BSP

a. Download the zcu106 BSP 2019.1

b. genereate the project

alt text

3. Configure kernel

alt text

a. Disable "General setup -> Initial RAM filesystem and RAM disk"

alt text

b. Enable CPU govenors at "CPU Power Management -> CPU Frequency scaling"

alt text

c. Enable DVFS at "Device Drivers -> Adaptive Voltage Scaling class support" and "Device Drivers -> Generic Dynamic Voltage and Frequency Scaling (DVFS) support"

alt text

alt text

d. Save configuration

alt text

e. Import HDF and configure SD card booting

Using command "petalinux-config --get-hw-description=<*.hdf>" where *.hdf noramlly is in the vivado project sdk forder. Then select "Image Packaging Configuration->Root file system type->SD card".

alt text

4. Configure u-boot

alt text

a. Enable boot from SD

alt text

b. Add boot arguments: "earlycon clk_ignore_unused root=/dev/mmcblk0p2 rootfstype=ext4 rw rootwait"

alt text

alt text

5. Configure root file system (rootfs)

alt text

a. Enable ARM mali kernel library and user driver

alt text

b. Enable HDMI kernel module

alt text

c. Add boot arguments to "xilinx-zcu106-2019.1/project-spec/meta-user/recipes-bsp/device-tree/files/system-user.dtsi"

alt text

6. Build PetaLinux Project

alt text

7. Create "Boot.bin"

alt text

8. The bootable files are "BOOT.bin" and "Image.ub" at "image/linux/" folder.