問題タブ [petalinux]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
373 参照

yocto - petalinux のカスタム アプリケーションで axi dma カーネル モジュールを使用する方法を教えてください。

bperez77が提供する Xilinx-axidma ドライバー(Github リポジトリ)を使用して axidma-benchmark アプリケーションをビルドしようとしています。

Petalinux 20.2 を使用してカスタム プロジェクト用の Linux をビルドしています。カーネルの新しいバージョンでは、一部の機能が変更され、実行時にいくつかのエラーが発生しますpetalinux-buildここで説明したようにドライバー ファイルを変更し、カーネル モジュールを正常にビルドしました。

以下では、次のコマンドを実行してカスタム アプリケーションを作成します。

次に、アプリケーション ファイルをレシピ アプリ ディレクトリにコピーし、すべての C ファイルとヘッダー ファイルを axidma-benchmark.bb の SRC_URI リストに次のように追加します。

APP_OBJS += util.o次に、Makefileに追加し、次を実行してアプリケーションをビルドします。

しかし、これらのエラーが発生しました:

エラー: axidma-benchmark-1.0-r0 do_compile: oe_runmake に失敗しました エラー: axidma-benchmark-1.0-r0 do_compile: '/media/fpgaws/projects/DevelopmentLab/build/apu/ultrazed7ev/build/tmp/work/aarch64- の実行xilinx-linux/axidma-benchmark/1.0-r0/temp/run.do_compile.21635' が終了コード 1 で失敗しました: aarch64-xilinx-linux-gcc -march=armv8-a+crc -mtune=cortex-a72.cortex- a53 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/media/fpgaws/projects/DevelopmentLab/build/apu/ultrazed7ev/build/tmp/work/aarch64- xilinx-linux/axidma-benchmark/1.0-r0/recipe-sysroot -o axidma-benchmark axidma-benchmark.o util.o -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-必要 -fstack-protector-strong -Wl,-z,relro,-z,現在 /media/fpgaws/projects/DevelopmentLab/build/apu/ultrazed7ev/build/tmp/work/aarch64-xilinx-linux/axidma-benchmark/1.0-r0/recipe-sysroot-native/usr/bin/aarch64-xilinx- linux/../../libexec/aarch64-xilinx-linux/gcc/aarch64-xilinx-linux/9.2.0/ld: axidma-benchmark.o: 関数内main': /usr/src/debug/axidma-benchmark/1.0-r0/axidma-benchmark.c:491: undefined reference to axidma_init' /media/fpgaws/projects/DevelopmentLab/build/apu/ultrazed7ev/build/tmp/work/aarch64-xilinx-linux/axidma-benchmark/1.0-r0/recipe-sysroot-native/usr/bin/aarch64-xilinx -linux/../../libexec/aarch64-xilinx-linux/gcc/aarch64-xilinx-linux/9.2.0/ld: /usr/src/debug/axidma-benchmark/1.0-r0/axidma-benchmark. c:499: axidma_malloc への未定義の参照axidma_malloc' /media/fpgaws/projects/DevelopmentLab/build/apu/ultrazed7ev/build/tmp/work/aarch64-xilinx-linux/axidma-benchmark/1.0-r0/recipe-sysroot-native/usr/bin/aarch64-xilinx-linux/../../libexec/aarch64-xilinx-linux/gcc/aarch64-xilinx-linux/9.2.0/ld: /usr/src/debug/axidma-benchmark/1.0-r0/axidma-benchmark.c:505: undefined reference to ' /media/fpgaws/projects/DevelopmentLab/build/apu/ultrazed7ev/build/tmp/work/aarch64-xilinx-linux/axidma-benchmark/1.0-r0/recipe-sysroot-native/ usr/bin/aarch64-xilinx-linux/../../libexec/aarch64-xilinx-linux/gcc/aarch64-xilinx-linux/9.2.0/ld: /usr/src/debug/axidma-benchmark/1.0 -r0/axidma-benchmark.c:514: 未定義の参照axidma_get_vdma_tx' /media/fpgaws/projects/DevelopmentLab/build/apu/ultrazed7ev/build/tmp/work/aarch64-xilinx-linux/axidma-benchmark/1.0-r0/recipe-sysroot-native/usr/bin/aarch64-xilinx-linux/../../libexec/aarch64-xilinx-linux/gcc/aarch64-xilinx-linux/9.2.0/ld: /usr/src/debug/axidma-benchmark/1.0-r0/axidma-benchmark.c:515: undefined reference to axidma_get_vdma_rx' /media/fpgaws/projects/DevelopmentLab/build/apu/ultrazed7ev/build/tmp/work/aarch64-xilinx-linux/axidma-benchmark/1.0-r0/recipe-sysroot-native/usr/bin/aarch64-xilinx -linux/../../libexec/aarch64-xilinx-linux/gcc/aarch64-xilinx-linux/9.2.0/ld: axidma-benchmark.o: 関数single_transfer_test': /usr/src/debug/axidma-benchmark/1.0-r0/axidma-benchmark.c:396: undefined reference to 内 axidma_twoway_transfer' /media/fpgaws/projects/DevelopmentLab/ build/apu/ultrazed7ev/build/tmp/work/aarch64-xilinx-linux/axidma-benchmark/1.0-r0/recipe-sysroot-native/usr/bin/aarch64-xilinx-linux/../../libexec/ aarch64-xilinx-linux/gcc/aarch64-xilinx-linux/9.2.0/ld: axidma-benchmark.o: 関数内main': /usr/src/debug/axidma-benchmark/1.0-r0/axidma-benchmark.c:558: undefined reference to axidma_free' /media/fpgaws/projects/DevelopmentLab/build/apu/ultrazed7ev/build/tmp/work/aarch64-xilinx-linux/axidma-benchmark/1.0-r0/recipe-sysroot-native/usr/bin/aarch64-xilinx -linux/../../libexec/aarch64-xilinx-linux/gcc/aarch64-xilinx-linux/9.2.0/ld: /usr/src/debug/axidma-benchmark/1.0-r0/axidma-benchmark. c:560: axidma_destroy への未定義の参照axidma_free' /media/fpgaws/projects/DevelopmentLab/build/apu/ultrazed7ev/build/tmp/work/aarch64-xilinx-linux/axidma-benchmark/1.0-r0/recipe-sysroot-native/usr/bin/aarch64-xilinx-linux/../../libexec/aarch64-xilinx-linux/gcc/aarch64-xilinx-linux/9.2.0/ld: /usr/src/debug/axidma-benchmark/1.0-r0/axidma-benchmark.c:562: undefined reference to ' /media/fpgaws/projects/DevelopmentLab/build/apu/ultrazed7ev/build/tmp/work/aarch64-xilinx-linux/axidma-benchmark/1.0-r0/recipe-sysroot-native/ usr/bin/aarch64-xilinx-linux/../../libexec/aarch64-xilinx-linux/gcc/aarch64-xilinx-linux/9.2.0/ld: /usr/src/debug/axidma-benchmark/1.0 -r0/axidma-benchmark.c:519: への未定義の参照axidma_get_dma_tx' /media/fpgaws/projects/DevelopmentLab/build/apu/ultrazed7ev/build/tmp/work/aarch64-xilinx-linux/axidma-benchmark/1.0-r0/recipe-sysroot-native/usr/bin/aarch64-xilinx-linux/../../libexec/aarch64-xilinx-linux/gcc/aarch64-xilinx-linux/9.2.0/ld: /usr/src/debug/axidma-benchmark/1.0-r0/axidma-benchmark.c:520: undefined reference to axidma_get_dma_rx' /media/fpgaws/projects/DevelopmentLab/build/apu/ultrazed7ev/build/tmp/work/aarch64-xilinx-linux/axidma-benchmark/1.0-r0/recipe-sysroot-native/usr/bin/aarch64-xilinx -linux/../../libexec/aarch64-xilinx-linux/gcc/aarch64-xilinx-linux/9.2.0/ld: axidma-benchmark.o: 関数time_dma': /usr/src/debug/axidma-benchmark/1.0-r0/axidma-benchmark.c:426: undefined reference to 内 axidma_twoway_transfer' collect2: エラー: ld が 1 つの終了ステータスを返しましたmake: *** [Makefile:12: axidma-benchmark] エラー 1 警告: /media/fpgaws/projects/DevelopmentLab/build/apu/ultrazed7ev/build/tmp/work/aarch64-xilinx-linux/axidma-benchmark/1.0 -r0/temp/run.do_compile.21635:1 exit 1 from 'exit 1' エラー: 失敗のログファイルは次の場所に保存されています: /media/fpgaws/projects/DevelopmentLab/build/apu/ultrazed7ev/build/tmp/work/aarch64- xilinx-linux/axidma-benchmark/1.0-r0/temp/log.do_compile.21635

私の間違いは何ですか?

0 投票する
1 に答える
342 参照

embedded-linux - 起動時に Linux クラッシュをデバッグする方法 (PetaLinux 2020.1)

MicroZed ボード用に非常に一般的な PetaLinux 2020.1 プロジェクトを作成し、すべてを正常にビルドしました。SD カードが適切に構成され、RootFS が配置されていると思います。FSBL/U-Boot は正しく読み込まれて実行されますが、Linux を起動するとクラッシュし、コンソールに次のような出力が表示されます。

Google/StackOverflow が適切と思われる場所に私を導かなかったので、根本的な問題を追跡する方法についていくつかのアドバイスを使用できます。すぐに使用できるセットアップからほとんど変更を加えなかったことを考えると、これはよくある問題のようです。ありがとう!