プロジェクト コンポーネントの設定 - 2023.1 日本語

PetaLinux ツール資料: リファレンス ガイド (UG1144)

Document ID
UG1144
Release Date
2023-05-16
Version
2023.1 日本語

Linux カーネル オプションの有効化やフラッシュ パーティションの設定など、アドバンス PetaLinux プロジェクト設定を指定するには、petalinux-config ツールを適切な -c COMPONENT オプションを指定して実行する必要があります。

重要: AMD テクニカル サポートでは、Linux カーネル設定のAMD ドライバーまたは最適化のみがサポートされます。Linux 用のAMD ドライバーの詳細は、https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841873/Linux+Drivers を参照してください。

次の例に、petalinux-config を使用して PetaLinux プロジェクト設定を確認または変更する方法を示します。

  1. PetaLinux プロジェクトのルート ディレクトリに移動します。
    cd <plnx-proj-root>
  2. 最上位のシステム設定メニューを起動し、要件に応じて設定します。
    petalinux-config
  3. Linux カーネル設定メニューを起動し、要件に応じて設定します。
    petalinux-config -c kernel
  4. ルート ファイル システム設定メニューを起動し、要件に応じて設定します。
    petalinux-config -c rootfs
  5. --silentconfig は、Kconfig/menuconfig サポートがない場合、または設定メニューを起動しない場合に使用します
    petalinux-config -c <COMPONENT> --silentconfig

petalinux-config または petalinux-build コマンドの警告メッセージ

コンポーネントに対して petalinux-config または petalinux-build (例: petalinux-build -c u-boot) を実行すると、次の警告メッセージが表示されますが、無視しても問題ありません。

WARNING: SRC_URI is conditionally overridden in this recipe, thus several devtool-override-* branches have been created, one for each override that makes changes to SRC_URI. It is recommended that you make changes to the devtool branch first, then checkout and rebase each devtool-override-* branch and update any unique patches there (duplicates on those branches will be ignored by devtool finish/update-recipe).
ヒント: petalinux-config menuconfig で U-Boot ターゲットをカスタム ボードの要件に応じて設定します。必要に応じて、$ petalinux-config > U-Boot Configuration > u-boot config target を設定します。AMD の評価ボードで設定可能な値のデフォルト設定は次のとおりです。
  • Zynq 7000 デバイスの場合、xilinx_zynq_virt_defconfig
  • Zynq UltraScale+ MPSoC の場合、xilinx_zynqmp_virt_defconfig
  • MicroBlaze プロセッサの場合、microblaze-generic_defconfig
  • Versal デバイスの場合、xilinx_versal_virt_defconfig
注記: ボードおよびユーザー特定の dtsi エントリが project-spec/meta-user/recipes-bsp/device-tree/files/system-user.dtsi に追加されていることを確認してください。
テンプレート フローを使用している場合は、zcu102 および zcu106 ボードに対して、<plnx-proj-root>/project-spec/meta-user/recipes-bsp/embeddedsw/fsbl-firmware_%.bbappend に FSBL を初期化するための次の行を追加します。
YAML_COMPILER_FLAGS:append = " -DXPS_BOARD_ZCU102" #for zcu102
YAML_COMPILER_FLAGS:append = " -DXPS_BOARD_ZCU106" # for zcu106