User Tools

Site Tools


hw:zynq:linux:petalinux:boot_kernel

This is an old revision of the document!


Boot and Kernel configure & build with PetaLinux without BSP (board support package)

  1. Create Vivado design and export the hardware with bitstream.
    Default bitstream location is:
    <project_directory>/<project_name>.runs/impl_1/

    Default hdf (hardware description file) location is:

    <project_directory>/<project_name>.sdk/
  2. Setup PetaLinux enviroment (see Install PetaLinux)
  3. Create PetaLinux project:
    petalinux-create --type project --template zynq --name <boot_project_name>
    cd <boot_project_name>
  4. Get hardware description from Vivado project:
    petalinux-config --get-hw-description=<absolute_path_to_vivado_project_directory>/<project_name>.sdk/
  5. Set booting from SD card by navigating through settings tree and choosing the proper options:
    Subsystem AUTO Hardware Settings -> Advanced bootable images storage Settings -> boot image settings  : set ‘image storage media’ option to ‘primary sd’
    Subsystem AUTO Hardware Settings -> Advanced bootable images storage Settings -> kernel image settings: set ‘image storage media’ option to ‘primary sd’
    Subsystem AUTO Hardware Settings -> Advanced bootable images storage Settings -> dtb image settings   : set ‘image storage media’ option to ‘primary sd’
    Image Packaging Configurations: set ‘Root filesystem type’ option to ‘SD card’

    Select Exit and write the configuration.
    In case you want to reconfigure boot settings, run:

    petalinux-config
  6. Build the boot and kernel files:
    petalinux-build
/services/www/http/wiki/data/attic/hw/zynq/linux/petalinux/boot_kernel.1553078454.txt.gz · Last modified: 2019/03/20 11:40 by jakub.moron