Skip to content

Latest commit

 

History

History
61 lines (47 loc) · 1.92 KB

File metadata and controls

61 lines (47 loc) · 1.92 KB

An reference command flow:

  1. petalinux-create -t project -s webcam_zed.bsp
  2. cd avnet-digilent-zedboard-2019.1/
  3. petalinux-config --get-hw-description=pwd (please note the .hdf file is extraxted from ./Xilinx/SDx/2019.1/platforms/zed/sw/prebuilt/)

if you use webcam_zed.bsp, you don't need the step 4~8.

  1. petalinux-config -c kernel (refer to the suggestions in the main README.MD file in the root of this repo)

  2. petalinux-config -c rootfs (refer to the suggestions in the main README.MD file in the root of this repo)

  3. petalinux-build -c device-tree

  4. copy the following text to ./project-spec/meta-user/recipes-bsp/device-tree/files/system-user.dtsi:


/{
xlnk {
compatible = "xlnx,xlnk-1.0";
};
};

  1. copy the following text to ./components/plnx_workspace/device-tree/device-tree/system-top.dts:

&gem0 {
 phy-handle = <&phy0>;
 ps7_ethernet_0_mdio: mdio {
  #address-cells = <1>;
  #size-cells = <0>;
  phy0: phy@7 {
   device_type = "ethernet-phy";
   reg = <7>;
  };
 };
};/{
 usb_phy0: usb_phy@0 {
  compatible = "ulpi-phy";
  #phy-cells = <0>;
  reg = <0xe0002000 0x1000>;
  view-port = <0x0170>;
  drv-vbus;
 };
};&usb0 {
 dr_mode = "host";
 usb-phy = <&usb_phy0>;
};

  1. fix a bug in petalinux-2019.1: replace "booti" with "bootm" in /avnet-digilent-zedboard-2019.1/project-spec/meta-plnx-generated/recipes-bsp/u-boot/configs/platform-auto.h

  2. petalinux-build

  3. petalinux-package --boot --format BIN --fsbl ./images/linux/zynq_fsbl.elf --fpga ../../xfopencv-master/examples/lkdensepyrof_videoinput/_sds/p0/vivado/vpl/output/system.bit --u-boot ./images/linux/u-boot.elf

  4. copy the files in ./image/linux to the FAT32 partition on SD card

  5. copy the ./image/linux/rootfs.cpio to the EXT4 partition on SD card

  6. go to the EXT4 partition and execute: sudo pax -r -c -f rootfs.cpio & sync