...
Steps for Enabling Power off Suspend feature
Create HDF with GPO2 polarity to High
Source petalinux settings.
Code Block theme Midnight source <plnx-settings.sh>
Create petalinux project using below command.
Code Block theme Midnight petalinux-create -t project -s <petalinux BSP path>
- Start Xilinx Vivado 2018.1
- Open existing petalinux project from Vivado. (Located at <plnx-proj-root-dir>/hardware/xilinx-zcu102-2018.1/xilinx-zcu102-2018.1.xpr)
- Open block design, customize block design using double click on "Zynq UltraScale+ MPSoC" block. (or right click and then click on "Customize Block" option)
- On the "Page Navigator" bar, click on I/O configuration.
- Go to Low Speed -> IO Peripherals -> PMU -> GPO2. Default polarity of GPO2 is low. Change GPO2 polarity to high as per below snapshot and click "OK".
- In the Flow Navigator → PROGRAM and DEBUG, click on "Generate Bitstream" option.
- Export HDF file
- Go to File → Export → Export Hardware
- Check "Include bitstream in HDF" option. Set export path if required or keep it default(<Local to Project>). Click "OK"
- In case of default path, HDF file will be generated at <workspace>/<project_name>/<project_name>.sdk/<block_name>.hdf.
Build images using Petalinux
Source petalinux settings:
Code Block theme Midnight source <plnx-settings.sh>
Create petalinux project using below command:
Code Block theme Midnight petalinux-create -t project -s <petalinux BSP path>
Configure petalinux using custom HDF (generated in previuos steps) using below command:
Code Block theme Midnight petalinux-config --get-hw-description=<HDF file root directory path> --oldconfig
- Enable ZynqMP firmware debugfs config in Linux kernel (ZYNQMP_FIRMWARE_DEBUG) using below steps:
- Run "petalinux-config -c kernel" command.
- Go to Firmware Drivers -> Zynq MPSoC Firmware Drivers and enable Xilinx Zynq MPSoC firmware debug APIs.
- Save configuration and exit from that.
- Enable POS related build flag in FSBL (ENABLE_POS) using below steps:
- Create project-spec/meta-user/recipes-bsp/fsbl/fsbl_%.bbappend file if not present.
Append below line in that file.
Code Block theme Midnight YAML_COMPILER_FLAGS_append = " -DENABLE_POS"
- Enable POS related build flag in PMUFW (ENABLE_POS) using below steps:
- Create project-spec/meta-user/recipes-bsp/pmu/pmu-firmware_%.bbappend file if not present.
Append below line in that file.
Code Block theme Midnight YAML_COMPILER_FLAGS_append = " -DENABLE_POS"
Build petalinux using below command:
Code Block theme Midnight petalinux-build
Run below command inside petalinux root directory to generate BOOT.BIN:
Code Block theme Midnight petalinux-package --boot --fsbl images/linux/zynqmp_fsbl.elf --u-boot images/linux/u-boot.elf --pmufw images/linux/pmufw.elf --atf images/linux/bl31.elf --fpga
- Built images (BOOT.BIN and image.ub) are present at <plnx_root_dir>/images/linux/
Sample Images:
- HDF generated from petalinux 2018.2 reference project.
zcu102_wrapper.hdf - Below is the images which is generated from petalinux 2018.2 using above HDF
- ATF bl31.elf
- PMUFW pmufw.elf
- U-Boot u-boot.elf
- Bitstream system.bit
- FSBL zynqmp_fsbl.elf
- BOOT.BIN boot.bin
- image.ub image.ub
MSP430
Please click on the link to read about MSP430 procedure -http://www.wiki.xilinx.com/Zynq+UltraScale%EF%BC%8B+MPSoC+Power+Advantage+Tool+part+7+-+Building+and+Running+the+MSP430+Design+from+SourceZynq UltraScale+ MPSoC Power Advantage Tool part 7 - Building and Running the MSP430 Design from Sources
For enabling power off suspend feature user needs to replace the current MSP430.txt file with the new MSP430.txt file.
Update MSP430 firmware with the image below:
View file | ||
---|---|---|
|
Steps to do Power off Suspend
To suspend, type this in the Linux console:...