Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


Design Components

  • petalinux_bsp

Build Flow Tutorials

Petalinux BSP

This tutorial shows how to build the Linux image and boot image using the PetaLinux build tool.
  • Create and configure the PetaLinux project.

    Code Block
    % cd $TRD_HOME/petalinux
    % petalinux-create -t project -s zcu102-prod-base-dm10.bsp -n bsp
    % cd bsp
    % petalinux-config --silentconfig

  • Select the device-tree matching design module 1 and build all Linux image components

    Code Block
    % cd $TRD_HOME/petalinux/bsp/project-spec/meta-user/recipes-bsp/device-tree/files/
    % rm system-user.dtsi
    % cp zcu102-base-dm1.dtsi system-user.dtsi
    % petalinux-build

  • Create a boot image.

    Code Block
    % cd $TRD_HOME/petalinux/bsp/images/linux
    % petalinux-package --boot --bif=../../project-spec/boot/dm1.bif --force

  • Copy the generated boot image and Linux image to the dm1 SD card directory.

    Code Block
    % mkdir -p $TRD_HOME/sd_card/dm1
    % cp BOOT.BIN image.ub $TRD_HOME/sd_card/dm1

Run Flow Tutorial

  • See here for board setup instructions.     
  • Copy all the files from the $TRD_HOME/sd_card/dm1 SD card directory to a FAT formatted SD card.
  • Power on the board to boot the images; make sure all power rail LEDs are lit green (Note: DS1 / FPGA_INIT_B LED remains Red as there is no bit stream to configure the FPGA).
  • The user can now see Linux boot on the serial console:

    Code Block
    Starting internet superserver: inetd.
    Configuring packages on first boot....
     (This may take several minutes. Please do not power off the machine.)
    Running postinst /etc/rpm-postinsts/100-xserver-nodm-init...
    Running postinst /etc/rpm-postinsts/101-sysvinit-inittab...
    update-rc.d: /etc/init.d/run-postinsts exists during rc.d purge (continuing)
    INIT: Entering runlevel: 5
    Configuring network interfaces... 
    udhcpc (v1.24.1) started
    Sending select for
    Lease of obtained, lease time 1800
    /etc/udhcpc.d/50default: Adding DNS
    /etc/udhcpc.d/50default: Adding DNS
    /etc/udhcpc.d/50default: Adding DNS
    Starting system message bus: dbus.
    Starting Dropbear SSH server: dropbear.
    Starting bluetooth: bluetoothd.
    Starting syslogd/klogd: done
     * Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon                       [ ok ]
    Starting Telephony daemon
    Starting tcf-agent: OK
    Setting console loglevel to 0 ...