VVViy / VVViy.github.io

This is Max's blog, something interesting in it.
MIT License
13 stars 4 forks source link

nv_small FPGA Mapping Workflow - Max's Blog #3

Open VVViy opened 5 years ago

VVViy commented 5 years ago

https://vvviy.github.io/2018/09/17/nv_small-FPGA-Mapping-Workflow-II/

Keep self busy.

Jwy-jump commented 5 years ago
$ petalinux-build会报错: make[1]: *** [Makefile:25: xuartps_sinit.o] Error 1 In file included from ../../../include/xil_printf.h:12:0, from ../../../include/xil_io.h:65, from xuartps_hw.h:73, from xuartps.h:188, from xuartps.c:60: ../../../include/xparameters.h:1:0: error: unterminated #ifndef #ifndef XPARAMETERS_H / prevent circular inclusions /
make[1]: *** [Makefile:25: xuartps.o] Error 1
In file included from ../../../include/xil_printf.h:12:0,
from ../../../include/xil_io.h:65,
from xuartps_hw.h:73,
from xuartps_hw.c:53:
../../../include/xparameters.h:1:0: error: unterminated #ifndef
#ifndef XPARAMETERS_H / prevent circular inclusions /
make[1]: *** [Makefile:25: xuartps_hw.o] Error 1
In file included from ../../../include/xil_printf.h:12:0,
from ../../../include/xil_io.h:65,
from xuartps_hw.h:73,
from xuartps.h:188,
from xuartps_options.c:58:
../../../include/xparameters.h:1:0: error: unterminated #ifndef
#ifndef XPARAMETERS_H / prevent circular inclusions /
make[1]: *** [Makefile:25: xuartps_options.o] Error 1
In file included from ../../../include/xil_printf.h:12:0,
from ../../../include/xil_io.h:65,
from xuartps_hw.h:73,
from xuartps.h:188,
from xuartps_intr.c:55:
../../../include/xparameters.h:1:0: error: unterminated #ifndef
#ifndef XPARAMETERS_H / prevent circular inclusions /
make[1]: *** [Makefile:25: xuartps_intr.o] Error 1
make[1]: Target 'libs' not remade because of errors.
make: *** [Makefile:30: psu_pmu_0/libsrc/uartps_v3_5/src/make.libs] Error 2
make: Target 'all' not remade because of errors.
16:47:13 Build Finished (took 2s.877ms)
Building '/pmu-firmware'
16:47:13 Build of configuration Release for project pmu-firmware
make all
Building file: ../src/idle_hooks.c
Invoking: MicroBlaze gcc compiler
mb-gcc -Wall -O2 -c -fmessage-length=0 -MT"src/idle_hooks.o" -Os -flto -ffat-lto-objects -I../../pmu-firmware_bsp/psu_pmu_0/include -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare -mcpu=v9.2 -mxl-soft-mul -Wl,--no-relax -ffunction-sections -fdata-sections -MMD -MP -MF"src/idle_hooks.d" -MT"src/idle_hooks.o" -o "src/idle_hooks.o" "../src/idle_hooks.c"
In file included from ../../pmu-firmware_bsp/psu_pmu_0/include/xil_printf.h:12:0,
from ../../pmu-firmware_bsp/psu_pmu_0/include/xil_io.h:65,
from ../../pmu-firmware_bsp/psu_pmu_0/include/sleep.h:37,
from ../src/idle_hooks.c:35:
../../pmu-firmware_bsp/psu_pmu_0/include/xparameters.h:1:0: error: unterminated #ifndef
#ifndef XPARAMETERS_H / prevent circular inclusions /
In file included from ../src/pm_node_idle.h:39:0,
from ../src/idle_hooks.c:36:
../../pmu-firmware_bsp/psu_pmu_0/include/xparameters.h:1:0: error: unterminated #ifndef
#ifndef XPARAMETERS_H / prevent circular inclusions /
In file included from ../../pmu-firmware_bsp/psu_pmu_0/include/xipipsu.h:104:0,
from ../src/xpfw_ipi_manager.h:37,
from ../src/pm_common.h:43,
from ../src/idle_hooks.c:37:
../../pmu-firmware_bsp/psu_pmu_0/include/xipipsu_hw.h:66:29: error: 'XPAR_XIPIPSU_NUM_TARGETS' undeclared here (not in a function)
#define XIPIPSU_MAX_TARGETS XPAR_XIPIPSU_NUM_TARGETS
^
../../pmu-firmware_bsp/psu_pmu_0/include/xipipsu.h:129:28: note: in expansion of macro 'XIPIPSU_MAX_TARGETS'
XIpiPsu_Target TargetList[XIPIPSU_MAX_TARGETS] ; /* < List of IPI Targets /
^~~~~~~
In file included from ../src/xpfw_ipi_manager.h:39:0,
from ../src/pm_common.h:43,
from ../src/idle_hooks.c:37:
../../pmu-firmware_bsp/psu_pmu_0/include/xparameters.h:1:0: error: unterminated #ifndef
#ifndef XPARAMETERS_H / prevent circular inclusions /
ERROR: pmu-firmware compile failed.
make: *** [src/subdir.mk:183: src/idle_hooks.o] Error 1
16:47:14 Build Finished (took 180ms)
Invoking scanner config builder on project
WARNING: /home/jwy/dlaproject/dla/build/tmp/work/plnx_aarch64-xilinx-linux/pmu-firmware/2017.4+gitAUTOINC+77448ae629-r0/temp/run.do_compile.30714:1 exit 1 from 'exit 1'
ERROR: Function failed: do_compile (log file is located at /home/jwy/dlaproject/dla/build/tmp/work/plnx_aarch64-xilinx-linux/pmu-firmware/2017.4+gitAUTOINC+77448ae629-r0/temp/log.do_compile.30714)

ERROR: Task (/home/jwy/opt/pkg/petalinux/components/yocto/source/aarch64/layers/meta-xilinx-tools/recipes-bsp/pmu/pmu-firmware_git.bb:do_compile) failed with exit code '1' NOTE: Tasks Summary: Attempted 2605 tasks of which 2377 didn't need to be rerun and 1 failed.

Summary: 1 task failed: /home/jwy/opt/pkg/petalinux/components/yocto/source/aarch64/layers/meta-xilinx-tools/recipes-bsp/pmu/pmu-firmware_git.bb:do_compile Summary: There were 2 ERROR messages shown, returning a non-zero exit code. ERROR: Failed to build project

VVViy commented 5 years ago

@JIAWENYANG 用的什么开发板?BD里uart选了0,1还是both?使用SDK环境生成bsp了吗?

qinzhiy commented 5 years ago

@VVViy @JIAWENYANG 用的什么开发板?BD里uart选了0,1还是both?使用SDK环境生成bsp了吗?

用的zcu102,BD里uart选的both,SDK环境下生成bsp,hello world工程正确输出

VVViy commented 5 years ago

@open2mind @JIAWENYANG 您二位不是同一人吧? 如果是SDK生成的bsp,且能正常输出,那就要根据检查一下SDK里的驱动声明文件.h,因为我是使用hdf文件直接编译的,相关bsp文件会自动download,所以不太了解SDK生成bsp后,petalinux是否需要额外设置,看错误信息应该是SDK那边的声明有点问题,您得自己debug了。

qinzhiy commented 5 years ago

@VVViy @open2mind @JIAWENYANG 您二位不是同一人吧? 如果是SDK生成的bsp,且能正常输出,那就要根据检查一下SDK里的驱动声明文件.h,因为我是使用hdf文件直接编译的,相关bsp文件会自动download,所以不太了解SDK生成bsp后,petalinux是否需要额外设置,看错误信息应该是SDK那边的声明有点问题,您得自己debug了。 我俩是一起做的小伙伴:P 我们不是用SDK生成的bsp,也是直接使用hdf编译的,SDK只是佐证一下硬件连接

VVViy commented 5 years ago

@open2mind

@VVViy @open2mind @JIAWENYANG 您二位不是同一人吧? 如果是SDK生成的bsp,且能正常输出,那就要根据检查一下SDK里的驱动声明文件.h,因为我是使用hdf文件直接编译的,相关bsp文件会自动download,所以不太了解SDK生成bsp后,petalinux是否需要额外设置,看错误信息应该是SDK那边的声明有点问题,您得自己debug了。 我俩是一起做的小伙伴:P 我们不是用SDK生成的bsp,也是直接使用hdf编译的,SDK只是佐证一下硬件连接

哦,那了解了,这个错误是在第一次build时就存在?

Jwy-jump commented 5 years ago

@@VVViy是第一次Build出现的,您说这个错误和什么有关,版本都用的和你的一样的?不知道为啥?

Jwy-jump commented 5 years ago

@VVViy

VVViy commented 5 years ago

@JIAWENYANG 是第一次Build出现的,您说这个错误和什么有关,版本都用的和你的一样的?不知道为啥?

看错误信息,都是报的SDK 驱动文件那边错误,我以为你们是用SDK做的bsp。一个师弟也走过上面流程是没出现过这种错误的,你看看这个链接里面设置有没有帮助https://forums.xilinx.com/t5/Embedded-Linux/Petalinux-2018-2-build-crash-xparameters-h-cut-off/td-p/881843

Jwy-jump commented 5 years ago

谢谢,这个链接我找到过,仍然没解决?您可不可以将您的工程共享出来或者hdf共享出来,我排除一下问题。我的qq:1565519979@VVViy

VVViy commented 5 years ago

@JIAWENYANG 谢谢,这个链接我找到过,仍然没解决?您可不可以将您的工程共享出来或者hdf共享出来,我排除一下问题。我的qq:1565519979

共享工程这个事情,确实是没办法,如果是我个人项目,我写blog时就share了,NVDLA本来就是开源项目。但是这活是公司项目的一块,里边还有其他东西,我要是share出去,那就违规了,所以见谅了。

Jwy-jump commented 5 years ago

@VVViy

@JIAWENYANG 谢谢,这个链接我找到过,仍然没解决?您可不可以将您的工程共享出来或者hdf共享出来,我排除一下问题。我的qq:1565519979

共享工程这个事情,确实是没办法,如果是我个人项目,我写blog时就share了,NVDLA本来就是开源项目。但是这活是公司项目的一块,里边还有其他东西,我要是share出去,那就违规了,所以见谅了。

好吧,ok,可以理解。我在查查怎么解决吧,thanks !

VVViy commented 5 years ago

@JIAWENYANG

@VVViy

@JIAWENYANG 谢谢,这个链接我找到过,仍然没解决?您可不可以将您的工程共享出来或者hdf共享出来,我排除一下问题。我的qq:1565519979

共享工程这个事情,确实是没办法,如果是我个人项目,我写blog时就share了,NVDLA本来就是开源项目。但是这活是公司项目的一块,里边还有其他东西,我要是share出去,那就违规了,所以见谅了。

好吧,ok,可以理解。我在查查怎么解决吧,thanks !

我在前一篇vivado project博客里刚更新了一幅BD的结构图,你可以参考一下。

Jwy-jump commented 5 years ago

@VVViy 对了,我还想问您个问题,linux里面还需要装vivado吗? 目前是在win10的vivado建立好hdf,然后拷贝到ubuntu16.04的petalinux里。

Jwy-jump commented 5 years ago

部分错误log如下: DEBUG: Executing python function xsct_externalsrc_compile_prefunc NOTE: pmu-firmware: compiling from external source tree /home/jwy/opt/pkg/petalinux/tools/hsm/data/embeddedsw DEBUG: Python function xsct_externalsrc_compile_prefunc finished DEBUG: Executing shell function do_compile Starting xsdk. This could take few seconds... Picked up _JAVA_OPTIONS: -Duser.home=/home/jwy/dlaproject/1229/build/tmp/xsctenv done 'pmu-firmware_hwproj' will not be imported... [ALREADY EXIST] 'pmu-firmware' will not be imported... [ALREADY EXIST] 'pmu-firmware_bsp' will not be imported... [ALREADY EXIST] Building '/pmu-firmware_bsp'

VVViy commented 5 years ago

@JIAWENYANG

@VVViy 对了,我还想问您个问题,linux里面还需要装vivado吗? 目前是在win10的vivado建立好hdf,然后拷贝到ubuntu16.04的petalinux里。

这个无所谓的,我也是Windows+Linux联合开发。

VVViy commented 5 years ago

@JIAWENYANG 部分错误log如下: DEBUG: Executing python function xsct_externalsrc_compile_prefunc NOTE: pmu-firmware: compiling from external source tree /home/jwy/opt/pkg/petalinux/tools/hsm/data/embeddedsw DEBUG: Python function xsct_externalsrc_compile_prefunc finished DEBUG: Executing shell function do_compile Starting xsdk. This could take few seconds... Picked up _JAVA_OPTIONS: -Duser.home=/home/jwy/dlaproject/1229/build/tmp/xsctenv done 'pmu-firmware_hwproj' will not be imported... [ALREADY EXIST] 'pmu-firmware' will not be imported... [ALREADY EXIST] 'pmu-firmware_bsp' will not be imported... [ALREADY EXIST] Building '/pmu-firmware_bsp'

您这问题太诡异了,怎么还有python和Java,装的petalinux 2018?

ghost commented 5 years ago

why? petalinux-build failed like this? make: *** No rule to make target 'modules_install'. Stop. ERROR: oe_runmake failed

VVViy commented 5 years ago

@peterzh2018888 why? petalinux-build failed like this? make: *** No rule to make target 'modules_install'. Stop. ERROR: oe_runmake failed

按照blog里的流程,环境安装正确性你验证通过了吗?

ghost commented 5 years ago

@VVViy

@peterzh2018888 why? petalinux-build failed like this? make: *** No rule to make target 'modules_install'. Stop. ERROR: oe_runmake failed

按照blog里的流程,环境安装正确性你验证通过了吗 pass. but, still, make: *** No rule to make target 'modules_install'. Stop.

VVViy commented 5 years ago

@peterzh2018888 [INFO] building opendla [INFO] sourcing bitbake INFO: bitbake opendla Loading cache: 100% |########################################################################################################################################################################| Time: 0:00:00 Loaded 3438 entries from dependency cache. Parsing recipes: 100% |######################################################################################################################################################################| Time: 0:00:04 Parsing of 2553 .bb files complete (2513 cached, 40 parsed). 3442 targets, 139 skipped, 0 masked, 0 errors. NOTE: Resolving any missing task queue dependencies Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:00 Checking sstate mirror object availability: 100% |###########################################################################################################################################| Time: 0:00:05 NOTE: Executing SetScene Tasks NOTE: Executing RunQueue Tasks ERROR: opendla-1.0-r0 do_install: oe_runmake failed ERROR: opendla-1.0-r0 do_install: Function failed: do_install (log file is located at /home/zhpt/aidla/aidla/build/tmp/work/plnx_zynqmp-xilinx-linux/opendla/1.0-r0/temp/log.do_install.22653) ERROR: Logfile of failure stored in: /home/zhpt/aidla/aidla/build/tmp/work/plnx_zynqmp-xilinx-linux/opendla/1.0-r0/temp/log.do_install.22653 Log data follows: | DEBUG: Executing python function extend_recipe_sysroot | NOTE: Direct dependencies are ['virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-kernel/dtc/dtc_1.4.4.bb:do_populate_sysroot', 'virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/pseudo/pseudo_1.8.2.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/gcc/gcc-runtime_7.2.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/gcc/gcc-cross_7.2.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/binutils/binutils-cross_2.29.bb:do_populate_sysroot', 'virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/quilt/quilt-native_0.65.bb:do_populate_sysroot', 'virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-extended/bc/bc_1.06.bb:do_populate_sysroot', 'virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-support/lzop/lzop_1.03.bb:do_populate_sysroot', 'virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-extended/xz/xz_5.2.3.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-kernel/kmod/kmod-native_git.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/gcc/libgcc_7.2.bb:do_populate_sysroot', 'virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-bsp/u-boot/u-boot-mkimage_2017.09.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-core/glibc/glibc_2.26.bb:do_populate_sysroot'] | NOTE: Installed into sysroot: [] | NOTE: Skipping as already exists in sysroot: ['dtc-native', 'pseudo-native', 'kern-tools-native', 'gcc-runtime', 'gcc-cross-aarch64', 'binutils-cross-aarch64', 'pkgconfig-native', 'quilt-native', 'bc-native', 'lzop-native', 'xz-native', 'kmod-native', 'libgcc', 'u-boot-mkimage-native', 'glibc', 'flex-native', 'bison-native', 'linux-libc-headers', 'autoconf-native', 'gnu-config-native', 'automake-native', 'mpfr-native', 'libtool-native', 'texinfo-dummy-native', 'gmp-native', 'zlib-native', 'libmpc-native', 'lzo-native', 'gettext-minimal-native', 'gtk-doc-native', 'openssl-native', 'm4-native', 'makedepend-native', 'cryptodev-linux-native', 'xproto-native', 'util-macros-native'] | DEBUG: Python function extend_recipe_sysroot finished | DEBUG: Executing shell function do_install | NOTE: make -j 2 KERNEL_SRC=/home/zhpt/aidla/aidla/build/tmp/work-shared/plnx-zynqmp/kernel-source DEPMOD=echo MODLIB=/home/zhpt/aidla/aidla/build/tmp/work/plnx_zynqmp-xilinx-linux/opendla/1.0-r0/image/lib/modules/4.14.0-xilinx-v2018.2 CC=aarch64-xilinx-linux-gcc -fuse-ld=bfd LD=aarch64-xilinx-linux-ld.bfd O=/home/zhpt/aidla/aidla/build/tmp/work-shared/plnx-zynqmp/kernel-build-artifacts modules_install | make: *** No rule to make target 'modules_install'. Stop. | ERROR: oe_runmake failed | WARNING: /home/zhpt/aidla/aidla/build/tmp/work/plnx_zynqmp-xilinx-linux/opendla/1.0-r0/temp/run.do_install.22653:1 exit 1 from 'exit 1' | ERROR: Function failed: do_install (log file is located at /home/zhpt/aidla/aidla/build/tmp/work/plnx_zynqmp-xilinx-linux/opendla/1.0-r0/temp/log.do_install.22653) ERROR: Task (/home/zhpt/aidla/aidla/project-spec/meta-user/recipes-modules/opendla/opendla.bb:do_install) failed with exit code '1' NOTE: Tasks Summary: Attempted 728 tasks of which 723 didn't need to be rerun and 1 failed.

Summary: 1 task failed: /home/zhpt/aidla/aidla/project-spec/meta-user/recipes-modules/opendla/opendla.bb:do_install Summary: There were 2 ERROR messages shown, returning a non-zero exit code. ERROR: Failed to build opendla

Apparently,u need to check opendla.bb recipe(intutionly,i think u write wrong SRC_URI). I did not encounter such problem,u have to google it and debug it.

honorpeter commented 5 years ago

@VVViy 我的opendla.bb是这样写的 : SUMMARY = "Recipe for build an external opendla Linux kernel module" SECTION = "PETALINUX/modules" LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e" SRC_URI = "file://Makefile \ file://cdp.c \ file://bdma.c \ file://cache.c \ file://engine_isr.c \ file://common.c \ file://nvdla_core_callbacks.c \ file://pdp.c \ file://conv.c \ file://engine.c \ file://nvdla_gem.c \ file://rubik.c \ file://engine_data.c \ file://scheduler.c \ file://engine_debug.c \ file://sdp.c \ file://dla_engine_internal.h \ file://opendla_initial.h \ file://dla_interface.h \ file://opendla_small.h \ file://common.h \ file://dla_sched.h \ file://dla_debug.h \ file://dla_engine.h \ file://engine_debug.h \ file://nvdla_linux.h \ file://opendla.h \ " inherit module S = "${WORKDIR}"

The inherit of module.bbclass will automatically name module packages with

@VVViy 仔细检查了,还是这个错误。 make: *** No rule to make target 'modules_install'. Stop. 我用的2018.2,但是还是可以借鉴下,看Xilinx UG1144上写的,需要添加do install()...,但是不知道针对咱们这个opendla这样的用法该怎么写才好。能把您的opendla.bb写的全部内容分享下吗。谢谢

honorpeter commented 5 years ago

@VVViy

@peterzh2018888 [INFO] building opendla [INFO] sourcing bitbake INFO: bitbake opendla Loading cache: 100% |########################################################################################################################################################################| Time: 0:00:00 Loaded 3438 entries from dependency cache. Parsing recipes: 100% |######################################################################################################################################################################| Time: 0:00:04 Parsing of 2553 .bb files complete (2513 cached, 40 parsed). 3442 targets, 139 skipped, 0 masked, 0 errors. NOTE: Resolving any missing task queue dependencies Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:00 Checking sstate mirror object availability: 100% |###########################################################################################################################################| Time: 0:00:05 NOTE: Executing SetScene Tasks NOTE: Executing RunQueue Tasks ERROR: opendla-1.0-r0 do_install: oe_runmake failed ERROR: opendla-1.0-r0 do_install: Function failed: do_install (log file is located at /home/zhpt/aidla/aidla/build/tmp/work/plnx_zynqmp-xilinx-linux/opendla/1.0-r0/temp/log.do_install.22653) ERROR: Logfile of failure stored in: /home/zhpt/aidla/aidla/build/tmp/work/plnx_zynqmp-xilinx-linux/opendla/1.0-r0/temp/log.do_install.22653 Log data follows: | DEBUG: Executing python function extend_recipe_sysroot | NOTE: Direct dependencies are ['virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-kernel/dtc/dtc_1.4.4.bb:do_populate_sysroot', 'virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/pseudo/pseudo_1.8.2.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/gcc/gcc-runtime_7.2.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/gcc/gcc-cross_7.2.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/binutils/binutils-cross_2.29.bb:do_populate_sysroot', 'virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/quilt/quilt-native_0.65.bb:do_populate_sysroot', 'virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-extended/bc/bc_1.06.bb:do_populate_sysroot', 'virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-support/lzop/lzop_1.03.bb:do_populate_sysroot', 'virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-extended/xz/xz_5.2.3.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-kernel/kmod/kmod-native_git.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/gcc/libgcc_7.2.bb:do_populate_sysroot', 'virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-bsp/u-boot/u-boot-mkimage_2017.09.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-core/glibc/glibc_2.26.bb:do_populate_sysroot'] | NOTE: Installed into sysroot: [] | NOTE: Skipping as already exists in sysroot: ['dtc-native', 'pseudo-native', 'kern-tools-native', 'gcc-runtime', 'gcc-cross-aarch64', 'binutils-cross-aarch64', 'pkgconfig-native', 'quilt-native', 'bc-native', 'lzop-native', 'xz-native', 'kmod-native', 'libgcc', 'u-boot-mkimage-native', 'glibc', 'flex-native', 'bison-native', 'linux-libc-headers', 'autoconf-native', 'gnu-config-native', 'automake-native', 'mpfr-native', 'libtool-native', 'texinfo-dummy-native', 'gmp-native', 'zlib-native', 'libmpc-native', 'lzo-native', 'gettext-minimal-native', 'gtk-doc-native', 'openssl-native', 'm4-native', 'makedepend-native', 'cryptodev-linux-native', 'xproto-native', 'util-macros-native'] | DEBUG: Python function extend_recipe_sysroot finished | DEBUG: Executing shell function do_install | NOTE: make -j 2 KERNEL_SRC=/home/zhpt/aidla/aidla/build/tmp/work-shared/plnx-zynqmp/kernel-source DEPMOD=echo MODLIB=/home/zhpt/aidla/aidla/build/tmp/work/plnx_zynqmp-xilinx-linux/opendla/1.0-r0/image/lib/modules/4.14.0-xilinx-v2018.2 CC=aarch64-xilinx-linux-gcc -fuse-ld=bfd LD=aarch64-xilinx-linux-ld.bfd O=/home/zhpt/aidla/aidla/build/tmp/work-shared/plnx-zynqmp/kernel-build-artifacts modules_install | make: *** No rule to make target 'modules_install'. Stop. | ERROR: oe_runmake failed | WARNING: /home/zhpt/aidla/aidla/build/tmp/work/plnx_zynqmp-xilinx-linux/opendla/1.0-r0/temp/run.do_install.22653:1 exit 1 from 'exit 1' | ERROR: Function failed: do_install (log file is located at /home/zhpt/aidla/aidla/build/tmp/work/plnx_zynqmp-xilinx-linux/opendla/1.0-r0/temp/log.do_install.22653) ERROR: Task (/home/zhpt/aidla/aidla/project-spec/meta-user/recipes-modules/opendla/opendla.bb:do_install) failed with exit code '1' NOTE: Tasks Summary: Attempted 728 tasks of which 723 didn't need to be rerun and 1 failed.

Summary: 1 task failed: /home/zhpt/aidla/aidla/project-spec/meta-user/recipes-modules/opendla/opendla.bb:do_install Summary: There were 2 ERROR messages shown, returning a non-zero exit code. ERROR: Failed to build opendla

Apparently,u need to check opendla.bb recipe(intutionly,i think u write wrong SRC_URI). I did not encounter such problem,u have to google it and debug it.

@VVViy 我的opendla.bb是这样写的 : SUMMARY = "Recipe for build an external opendla Linux kernel module" SECTION = "PETALINUX/modules" LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e" SRC_URI = "file://Makefile \ file://cdp.c \ file://bdma.c \ file://cache.c \ file://engine_isr.c \ file://common.c \ file://nvdla_core_callbacks.c \ file://pdp.c \ file://conv.c \ file://engine.c \ file://nvdla_gem.c \ file://rubik.c \ file://engine_data.c \ file://scheduler.c \ file://engine_debug.c \ file://sdp.c \ file://dla_engine_internal.h \ file://opendla_initial.h \ file://dla_interface.h \ file://opendla_small.h \ file://common.h \ file://dla_sched.h \ file://dla_debug.h \ file://dla_engine.h \ file://engine_debug.h \ file://nvdla_linux.h \ file://opendla.h \ " inherit module S = "${WORKDIR}"

The inherit of module.bbclass will automatically name module packages with

@VVViy 仔细检查了,还是这个错误。 make: *** No rule to make target 'modules_install'. Stop. 我用的2018.2,但是还是可以借鉴下,看Xilinx UG1144上写的,需要添加do install()...,但是不知道针对咱们这个opendla这样的用法该怎么写才好。能把您的opendla.bb写的全部内容分享下吗。谢谢

honorpeter commented 5 years ago

SUMMARY = "Recipe for build an external opendla Linux kernel module" SECTION = "PETALINUX/modules" LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e" SRC_URI = "file://Makefile \ file://cdp.c \ file://bdma.c \ file://cache.c \ file://engine_isr.c \ file://common.c \ file://nvdla_core_callbacks.c \ file://pdp.c \ file://conv.c \ file://engine.c \ file://nvdla_gem.c \ file://rubik.c \ file://engine_data.c \ file://scheduler.c \ file://engine_debug.c \ file://sdp.c \ file://dla_engine_internal.h \ file://opendla_initial.h \ file://dla_interface.h \ file://opendla_small.h \ file://common.h \ file://dla_sched.h \ file://dla_debug.h \ file://dla_engine.h \ file://engine_debug.h \ file://nvdla_linux.h \ file://opendla.h \ " inherit module S = "${WORKDIR}"

VVViy commented 5 years ago

@peterzh2018 如果你po出的内容和你.bb文件里的内容一致,那确实是错了,记得按照bitbake的要求,SRC_URI字符串实际上是一行,多行表示要在每行后面加分行符“\”,如下

SRC_URI = "file://Makefile \ file://nvdla_core_callbacks.c \ file://nvdla_gem.c \ file://scheduler.c \ file://engine.c \ file://bdma.c \ file://conv.c \ file://sdp.c \ file://cdp.c \ file://pdp.c \ file://rubik.c \ file://cache.c \ file://common.c \ file://engine_data.c \ file://engine_isr.c \ file://engine_debug.c \ file://common.h \ file://dla_debug.h \ file://dla_engine.h \ file://dla_engine_internal.h \ file://dla_err.h \ file://dla_interface.h \ file://dla_sched.h \ file://engine_debug.h \ file://nvdla_interface.h \ file://nvdla_linux.h \ file://opendla.h \ file://opendla_initial.h \ file://opendla_small.h \ file://nvdla_ioctl.h \ file://COPYING \ "

honorpeter commented 5 years ago

@peterzh2018 如果你po出的内容和你.bb文件里的内容一致,那确实是错了,记得按照bitbake的要求,SRC_URI字符串实际上是一行,多行表示要在每行后面加分行符“\”,如下

SRC_URI = "file://Makefile file://nvdla_core_callbacks.c file://nvdla_gem.c file://scheduler.c file://engine.c file://bdma.c file://conv.c file://sdp.c file://cdp.c file://pdp.c file://rubik.c file://cache.c file://common.c file://engine_data.c file://engine_isr.c file://engine_debug.c file://common.h file://dla_debug.h file://dla_engine.h file://dla_engine_internal.h file://dla_err.h file://dla_interface.h file://dla_sched.h file://engine_debug.h file://nvdla_interface.h file://nvdla_linux.h file://opendla.h file://opendla_initial.h file://opendla_small.h file://nvdla_ioctl.h file://COPYING " 不好意思复制贴错了,我是有斜杠的。 SUMMARY = "Recipe for build an external opendla Linux kernel module" SECTION = "PETALINUX/modules" LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e" SRC_URI = "file://Makefile \ file://cdp \ file://bdma.c \ file://cache.c \ file://engine_isr.c \ file://common.c \ file://nvdla_core_callbacks.c \ file://pdp.c \ file://conv.c \ file://engine.c \ file://nvdla_gem.c \ file://rubik.c \ file://engine_data.c \ file://scheduler.c \ file://engine_debug.c \ file://sdp.c \ file://dla_engine_internal.h \ file://opendla_initial.h \ file://dla_interface.h \ file://opendla_small.h \ file://common.h \ file://dla_sched.h \ file://dla_debug.h \ file://dla_engine.h \ file://engine_debug.h \ file://nvdla_linux.h \ file://opendla.h \ " inherit module S = "${WORKDIR}" 这没错吧?用不用写do install();按UG1144上是需要写的呀。是不是因为没写造成的,您的.bb能全部贴出来我看下吗,谢谢

honorpeter commented 5 years ago

@peterzh2018 如果你po出的内容和你.bb文件里的内容一致,那确实是错了,记得按照bitbake的要求,SRC_URI字符串实际上是一行,多行表示要在每行后面加分行符“\”,如下

SRC_URI = "file://Makefile file://nvdla_core_callbacks.c file://nvdla_gem.c file://scheduler.c file://engine.c file://bdma.c file://conv.c file://sdp.c file://cdp.c file://pdp.c file://rubik.c file://cache.c file://common.c file://engine_data.c file://engine_isr.c file://engine_debug.c file://common.h file://dla_debug.h file://dla_engine.h file://dla_engine_internal.h file://dla_err.h file://dla_interface.h file://dla_sched.h file://engine_debug.h file://nvdla_interface.h file://nvdla_linux.h file://opendla.h file://opendla_initial.h file://opendla_small.h file://nvdla_ioctl.h file://COPYING " 贴出来就不显示斜杠了,您贴的那个也是。

VVViy commented 5 years ago

哦,忘了转义字符这茬了,下面是我的完整opendla.bb内容,你可以核实一下,UG1144我看时好像没加过命令类的处理脚本,可能2018版有变化吧。

SUMMARY = "Recipe for  build an external opendla Linux kernel module"
SECTION = "PETALINUX/modules"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e"

inherit module

SRC_URI = "file://Makefile \
           file://nvdla_core_callbacks.c \
           file://nvdla_gem.c \
           file://scheduler.c \
           file://engine.c \
           file://bdma.c \
           file://conv.c \
           file://sdp.c \
           file://cdp.c \
           file://pdp.c \
           file://rubik.c \
           file://cache.c \
           file://common.c \
           file://engine_data.c \
           file://engine_isr.c \
           file://engine_debug.c \
           file://common.h \
           file://dla_debug.h \
           file://dla_engine.h \
           file://dla_engine_internal.h \
           file://dla_err.h \
           file://dla_interface.h \
           file://dla_sched.h \
           file://engine_debug.h \
           file://nvdla_interface.h \
           file://nvdla_linux.h \
           file://opendla.h \
           file://opendla_initial.h \
           file://opendla_small.h \
           file://nvdla_ioctl.h \
           file://COPYING \
          "

S = "${WORKDIR}"

# The inherit of module.bbclass will automatically name module packages with
# "kernel-module-" prefix as required by the oe-core build environment.
honorpeter commented 5 years ago

转义字符

您这个和我的一模一样的,而且我完全把您这个.bb替过来也还是不对.可能确实还有其他问题,需要.O文件吗,需不需要把.o文件拷贝过来,应该是自动生成的才对。

honorpeter commented 5 years ago

哦,忘了转义字符这茬了,下面是我的完整opendla.bb内容,你可以核实一下,UG1144我看时好像没加过命令类的处理脚本,可能2018版有变化吧。

SUMMARY = "Recipe for  build an external opendla Linux kernel module"
SECTION = "PETALINUX/modules"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e"

inherit module

SRC_URI = "file://Makefile \
           file://nvdla_core_callbacks.c \
         file://nvdla_gem.c \
         file://scheduler.c \
         file://engine.c \
         file://bdma.c \
         file://conv.c \
         file://sdp.c \
         file://cdp.c \
         file://pdp.c \
         file://rubik.c \
         file://cache.c \
         file://common.c \
         file://engine_data.c \
         file://engine_isr.c \
         file://engine_debug.c \
         file://common.h \
         file://dla_debug.h \
         file://dla_engine.h \
         file://dla_engine_internal.h \
         file://dla_err.h \
         file://dla_interface.h \
         file://dla_sched.h \
         file://engine_debug.h \
         file://nvdla_interface.h \
         file://nvdla_linux.h \
         file://opendla.h \
         file://opendla_initial.h \
         file://opendla_small.h \
         file://nvdla_ioctl.h \
         file://COPYING \
          "

S = "${WORKDIR}"

# The inherit of module.bbclass will automatically name module packages with
# "kernel-module-" prefix as required by the oe-core build environment.

您这个和我的一模一样的,而且我完全把您这个.bb替过来也还是不对.可能确实还有其他问题,需要.O文件吗,需不需要把.o文件拷贝过来,应该是自动生成的才对。

honorpeter commented 5 years ago

哦,忘了转义字符这茬了,下面是我的完整opendla.bb内容,你可以核实一下,UG1144我看时好像没加过命令类的处理脚本,可能2018版有变化吧。

SUMMARY = "Recipe for  build an external opendla Linux kernel module"
SECTION = "PETALINUX/modules"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e"

inherit module

SRC_URI = "file://Makefile \
           file://nvdla_core_callbacks.c \
         file://nvdla_gem.c \
         file://scheduler.c \
         file://engine.c \
         file://bdma.c \
         file://conv.c \
         file://sdp.c \
         file://cdp.c \
         file://pdp.c \
         file://rubik.c \
         file://cache.c \
         file://common.c \
         file://engine_data.c \
         file://engine_isr.c \
         file://engine_debug.c \
         file://common.h \
         file://dla_debug.h \
         file://dla_engine.h \
         file://dla_engine_internal.h \
         file://dla_err.h \
         file://dla_interface.h \
         file://dla_sched.h \
         file://engine_debug.h \
         file://nvdla_interface.h \
         file://nvdla_linux.h \
         file://opendla.h \
         file://opendla_initial.h \
         file://opendla_small.h \
         file://nvdla_ioctl.h \
         file://COPYING \
          "

S = "${WORKDIR}"

# The inherit of module.bbclass will automatically name module packages with
# "kernel-module-" prefix as required by the oe-core build environment.

[INFO] building project [INFO] sourcing bitbake INFO: bitbake petalinux-user-image Loading cache: 100% |##############################################################################################################################| Time: 0:00:00 Loaded 3438 entries from dependency cache. Parsing recipes: 100% |############################################################################################################################| Time: 0:00:04 Parsing of 2553 .bb files complete (2513 cached, 40 parsed). 3442 targets, 139 skipped, 0 masked, 0 errors. NOTE: Resolving any missing task queue dependencies Initialising tasks: 100% |#########################################################################################################################| Time: 0:00:06 Checking sstate mirror object availability: 100% |#################################################################################################| Time: 0:00:53 NOTE: Executing SetScene Tasks NOTE: Executing RunQueue Tasks ERROR: opendla-1.0-r0 do_install: oe_runmake failed ERROR: opendla-1.0-r0 do_install: Function failed: do_install (log file is located at /home/zhpt/aidla/aidla/build/tmp/work/plnx_zynqmp-xilinx-linux/opendla/1.0-r0/temp/log.do_install.4346) ERROR: Logfile of failure stored in: /home/zhpt/aidla/aidla/build/tmp/work/plnx_zynqmp-xilinx-linux/opendla/1.0-r0/temp/log.do_install.4346 Log data follows: | DEBUG: Executing python function extend_recipe_sysroot | NOTE: Direct dependencies are ['/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-core/glibc/glibc_2.26.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/gcc/gcc-cross_7.2.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/gcc/libgcc_7.2.bb:do_populate_sysroot', 'virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-extended/bc/bc_1.06.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/gcc/gcc-runtime_7.2.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-kernel/kmod/kmod-native_git.bb:do_populate_sysroot', 'virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-bsp/u-boot/u-boot-mkimage_2017.09.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/binutils/binutils-cross_2.29.bb:do_populate_sysroot', 'virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb:do_populate_sysroot', 'virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/pseudo/pseudo_1.8.2.bb:do_populate_sysroot', 'virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-support/lzop/lzop_1.03.bb:do_populate_sysroot', 'virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-extended/xz/xz_5.2.3.bb:do_populate_sysroot', 'virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-kernel/dtc/dtc_1.4.4.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/quilt/quilt-native_0.65.bb:do_populate_sysroot'] | NOTE: Installed into sysroot: ['bc-native', 'kmod-native', 'u-boot-mkimage-native', 'pseudo-native', 'lzop-native', 'dtc-native', 'kern-tools-native', 'gtk-doc-native', 'openssl-native', 'lzo-native', 'makedepend-native', 'cryptodev-linux-native', 'xproto-native', 'util-macros-native'] | NOTE: Skipping as already exists in sysroot: ['glibc', 'gcc-cross-aarch64', 'libgcc', 'gcc-runtime', 'binutils-cross-aarch64', 'pkgconfig-native', 'xz-native', 'quilt-native', 'zlib-native', 'automake-native', 'libtool-native', 'libmpc-native', 'autoconf-native', 'gnu-config-native', 'gmp-native', 'texinfo-dummy-native', 'mpfr-native', 'linux-libc-headers', 'bison-native', 'flex-native', 'gettext-minimal-native', 'm4-native'] | DEBUG: sed -e 's:^[^/]*/:/home/zhpt/aidla/aidla/build/tmp/work/plnx_zynqmp-xilinx-linux/opendla/1.0-r0/recipe-sysroot-native/:g' /home/zhpt/aidla/aidla/build/tmp/sysroots-components/x86_64/gtk-doc-native/fixmepath /home/zhpt/aidla/aidla/build/tmp/sysroots-components/x86_64/openssl-native/fixmepath | xargs sed -i -e 's:FIXMESTAGINGDIRTARGET:/home/zhpt/aidla/aidla/build/tmp/work/plnx_zynqmp-xilinx-linux/opendla/1.0-r0/recipe-sysroot:g; s:FIXMESTAGINGDIRHOST:/home/zhpt/aidla/aidla/build/tmp/work/plnx_zynqmp-xilinx-linux/opendla/1.0-r0/recipe-sysroot-native:g' -e 's:FIXME_COMPONENTS_DIR:/home/zhpt/aidla/aidla/build/tmp/sysroots-components:g' -e 's:FIXME_HOSTTOOLS_DIR:/home/zhpt/aidla/aidla/build/tmp/hosttools:g' -e 's:FIXME_PKGDATA_DIR:/home/zhpt/aidla/aidla/build/tmp/pkgdata/plnx-zynqmp:g' -e 's:FIXME_PSEUDO_LOCALSTATEDIR:/home/zhpt/aidla/aidla/build/tmp/work/plnx_zynqmp-xilinx-linux/opendla/1.0-r0/pseudo/:g' -e 's:FIXME_LOGFIFO:/home/zhpt/aidla/aidla/build/tmp/work/plnx_zynqmp-xilinx-linux/opendla/1.0-r0/temp/fifo.4346:g' | DEBUG: Python function extend_recipe_sysroot finished | DEBUG: Executing shell function do_install | NOTE: make -j 2 KERNEL_SRC=/home/zhpt/aidla/aidla/build/tmp/work-shared/plnx-zynqmp/kernel-source DEPMOD=echo MODLIB=/home/zhpt/aidla/aidla/build/tmp/work/plnx_zynqmp-xilinx-linux/opendla/1.0-r0/image/lib/modules/4.14.0-xilinx-v2018.2 CC=aarch64-xilinx-linux-gcc -fuse-ld=bfd LD=aarch64-xilinx-linux-ld.bfd O=/home/zhpt/aidla/aidla/build/tmp/work-shared/plnx-zynqmp/kernel-build-artifacts modules_install | make: *** No rule to make target 'modules_install'. Stop. | ERROR: oe_runmake failed | WARNING: /home/zhpt/aidla/aidla/build/tmp/work/plnx_zynqmp-xilinx-linux/opendla/1.0-r0/temp/run.do_install.4346:1 exit 1 from 'exit 1' | ERROR: Function failed: do_install (log file is located at /home/zhpt/aidla/aidla/build/tmp/work/plnx_zynqmp-xilinx-linux/opendla/1.0-r0/temp/log.do_install.4346) ERROR: Task (/home/zhpt/aidla/aidla/project-spec/meta-user/recipes-modules/opendla/opendla.bb:do_install) failed with exit code '1' NOTE: Tasks Summary: Attempted 3290 tasks of which 3281 didn't need to be rerun and 1 failed.

Summary: 1 task failed: /home/zhpt/aidla/aidla/project-spec/meta-user/recipes-modules/opendla/opendla.bb:do_install Summary: There were 2 ERROR messages shown, returning a non-zero exit code. ERROR: Failed to build project

VVViy commented 5 years ago

这个只能按照编译信息里的提示,查查log,google排查了,我没遇到过这些问题。

VVViy commented 5 years ago

@peterzh2018 你先自己debug,如果还不行,我看看找个时间配置下环境,做个18版工程试试。

honorpeter commented 5 years ago

@VVViy

@peterzh2018888 [INFO] building opendla [INFO] sourcing bitbake INFO: bitbake opendla Loading cache: 100% |########################################################################################################################################################################| Time: 0:00:00 Loaded 3438 entries from dependency cache. Parsing recipes: 100% |######################################################################################################################################################################| Time: 0:00:04 Parsing of 2553 .bb files complete (2513 cached, 40 parsed). 3442 targets, 139 skipped, 0 masked, 0 errors. NOTE: Resolving any missing task queue dependencies Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:00 Checking sstate mirror object availability: 100% |###########################################################################################################################################| Time: 0:00:05 NOTE: Executing SetScene Tasks NOTE: Executing RunQueue Tasks ERROR: opendla-1.0-r0 do_install: oe_runmake failed ERROR: opendla-1.0-r0 do_install: Function failed: do_install (log file is located at /home/zhpt/aidla/aidla/build/tmp/work/plnx_zynqmp-xilinx-linux/opendla/1.0-r0/temp/log.do_install.22653) ERROR: Logfile of failure stored in: /home/zhpt/aidla/aidla/build/tmp/work/plnx_zynqmp-xilinx-linux/opendla/1.0-r0/temp/log.do_install.22653 Log data follows: | DEBUG: Executing python function extend_recipe_sysroot | NOTE: Direct dependencies are ['virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-kernel/dtc/dtc_1.4.4.bb:do_populate_sysroot', 'virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/pseudo/pseudo_1.8.2.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/gcc/gcc-runtime_7.2.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/gcc/gcc-cross_7.2.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/binutils/binutils-cross_2.29.bb:do_populate_sysroot', 'virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/quilt/quilt-native_0.65.bb:do_populate_sysroot', 'virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-extended/bc/bc_1.06.bb:do_populate_sysroot', 'virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-support/lzop/lzop_1.03.bb:do_populate_sysroot', 'virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-extended/xz/xz_5.2.3.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-kernel/kmod/kmod-native_git.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/gcc/libgcc_7.2.bb:do_populate_sysroot', 'virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-bsp/u-boot/u-boot-mkimage_2017.09.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-core/glibc/glibc_2.26.bb:do_populate_sysroot'] | NOTE: Installed into sysroot: [] | NOTE: Skipping as already exists in sysroot: ['dtc-native', 'pseudo-native', 'kern-tools-native', 'gcc-runtime', 'gcc-cross-aarch64', 'binutils-cross-aarch64', 'pkgconfig-native', 'quilt-native', 'bc-native', 'lzop-native', 'xz-native', 'kmod-native', 'libgcc', 'u-boot-mkimage-native', 'glibc', 'flex-native', 'bison-native', 'linux-libc-headers', 'autoconf-native', 'gnu-config-native', 'automake-native', 'mpfr-native', 'libtool-native', 'texinfo-dummy-native', 'gmp-native', 'zlib-native', 'libmpc-native', 'lzo-native', 'gettext-minimal-native', 'gtk-doc-native', 'openssl-native', 'm4-native', 'makedepend-native', 'cryptodev-linux-native', 'xproto-native', 'util-macros-native'] | DEBUG: Python function extend_recipe_sysroot finished | DEBUG: Executing shell function do_install | NOTE: make -j 2 KERNEL_SRC=/home/zhpt/aidla/aidla/build/tmp/work-shared/plnx-zynqmp/kernel-source DEPMOD=echo MODLIB=/home/zhpt/aidla/aidla/build/tmp/work/plnx_zynqmp-xilinx-linux/opendla/1.0-r0/image/lib/modules/4.14.0-xilinx-v2018.2 CC=aarch64-xilinx-linux-gcc -fuse-ld=bfd LD=aarch64-xilinx-linux-ld.bfd O=/home/zhpt/aidla/aidla/build/tmp/work-shared/plnx-zynqmp/kernel-build-artifacts modules_install | make: *** No rule to make target 'modules_install'. Stop. | ERROR: oe_runmake failed | WARNING: /home/zhpt/aidla/aidla/build/tmp/work/plnx_zynqmp-xilinx-linux/opendla/1.0-r0/temp/run.do_install.22653:1 exit 1 from 'exit 1' | ERROR: Function failed: do_install (log file is located at /home/zhpt/aidla/aidla/build/tmp/work/plnx_zynqmp-xilinx-linux/opendla/1.0-r0/temp/log.do_install.22653) ERROR: Task (/home/zhpt/aidla/aidla/project-spec/meta-user/recipes-modules/opendla/opendla.bb:do_install) failed with exit code '1' NOTE: Tasks Summary: Attempted 728 tasks of which 723 didn't need to be rerun and 1 failed.

Summary: 1 task failed: /home/zhpt/aidla/aidla/project-spec/meta-user/recipes-modules/opendla/opendla.bb:do_install Summary: There were 2 ERROR messages shown, returning a non-zero exit code. ERROR: Failed to build opendla

Apparently,u need to check opendla.bb recipe(intutionly,i think u write wrong SRC_URI). I did not encounter such problem,u have to google it and debug it. 还有可能是我的files里面的Makefile写的有问题,您没有再在里面添加其他内容吗。比如module installation?

VVViy commented 5 years ago

@peterzh2018

@VVViy

@peterzh2018888 [INFO] building opendla [INFO] sourcing bitbake INFO: bitbake opendla Loading cache: 100% |########################################################################################################################################################################| Time: 0:00:00 Loaded 3438 entries from dependency cache. Parsing recipes: 100% |######################################################################################################################################################################| Time: 0:00:04 Parsing of 2553 .bb files complete (2513 cached, 40 parsed). 3442 targets, 139 skipped, 0 masked, 0 errors. NOTE: Resolving any missing task queue dependencies Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:00 Checking sstate mirror object availability: 100% |###########################################################################################################################################| Time: 0:00:05 NOTE: Executing SetScene Tasks NOTE: Executing RunQueue Tasks ERROR: opendla-1.0-r0 do_install: oe_runmake failed ERROR: opendla-1.0-r0 do_install: Function failed: do_install (log file is located at /home/zhpt/aidla/aidla/build/tmp/work/plnx_zynqmp-xilinx-linux/opendla/1.0-r0/temp/log.do_install.22653) ERROR: Logfile of failure stored in: /home/zhpt/aidla/aidla/build/tmp/work/plnx_zynqmp-xilinx-linux/opendla/1.0-r0/temp/log.do_install.22653 Log data follows: | DEBUG: Executing python function extend_recipe_sysroot | NOTE: Direct dependencies are ['virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-kernel/dtc/dtc_1.4.4.bb:do_populate_sysroot', 'virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/pseudo/pseudo_1.8.2.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/gcc/gcc-runtime_7.2.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/gcc/gcc-cross_7.2.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/binutils/binutils-cross_2.29.bb:do_populate_sysroot', 'virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/quilt/quilt-native_0.65.bb:do_populate_sysroot', 'virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-extended/bc/bc_1.06.bb:do_populate_sysroot', 'virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-support/lzop/lzop_1.03.bb:do_populate_sysroot', 'virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-extended/xz/xz_5.2.3.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-kernel/kmod/kmod-native_git.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/gcc/libgcc_7.2.bb:do_populate_sysroot', 'virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-bsp/u-boot/u-boot-mkimage_2017.09.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-core/glibc/glibc_2.26.bb:do_populate_sysroot'] | NOTE: Installed into sysroot: [] | NOTE: Skipping as already exists in sysroot: ['dtc-native', 'pseudo-native', 'kern-tools-native', 'gcc-runtime', 'gcc-cross-aarch64', 'binutils-cross-aarch64', 'pkgconfig-native', 'quilt-native', 'bc-native', 'lzop-native', 'xz-native', 'kmod-native', 'libgcc', 'u-boot-mkimage-native', 'glibc', 'flex-native', 'bison-native', 'linux-libc-headers', 'autoconf-native', 'gnu-config-native', 'automake-native', 'mpfr-native', 'libtool-native', 'texinfo-dummy-native', 'gmp-native', 'zlib-native', 'libmpc-native', 'lzo-native', 'gettext-minimal-native', 'gtk-doc-native', 'openssl-native', 'm4-native', 'makedepend-native', 'cryptodev-linux-native', 'xproto-native', 'util-macros-native'] | DEBUG: Python function extend_recipe_sysroot finished | DEBUG: Executing shell function do_install | NOTE: make -j 2 KERNEL_SRC=/home/zhpt/aidla/aidla/build/tmp/work-shared/plnx-zynqmp/kernel-source DEPMOD=echo MODLIB=/home/zhpt/aidla/aidla/build/tmp/work/plnx_zynqmp-xilinx-linux/opendla/1.0-r0/image/lib/modules/4.14.0-xilinx-v2018.2 CC=aarch64-xilinx-linux-gcc -fuse-ld=bfd LD=aarch64-xilinx-linux-ld.bfd O=/home/zhpt/aidla/aidla/build/tmp/work-shared/plnx-zynqmp/kernel-build-artifacts modules_install | make: *** No rule to make target 'modules_install'. Stop. | ERROR: oe_runmake failed | WARNING: /home/zhpt/aidla/aidla/build/tmp/work/plnx_zynqmp-xilinx-linux/opendla/1.0-r0/temp/run.do_install.22653:1 exit 1 from 'exit 1' | ERROR: Function failed: do_install (log file is located at /home/zhpt/aidla/aidla/build/tmp/work/plnx_zynqmp-xilinx-linux/opendla/1.0-r0/temp/log.do_install.22653) ERROR: Task (/home/zhpt/aidla/aidla/project-spec/meta-user/recipes-modules/opendla/opendla.bb:do_install) failed with exit code '1' NOTE: Tasks Summary: Attempted 728 tasks of which 723 didn't need to be rerun and 1 failed.

Summary: 1 task failed: /home/zhpt/aidla/aidla/project-spec/meta-user/recipes-modules/opendla/opendla.bb:do_install Summary: There were 2 ERROR messages shown, returning a non-zero exit code. ERROR: Failed to build opendla

Apparently,u need to check opendla.bb recipe(intutionly,i think u write wrong SRC_URI). I did not encounter such problem,u have to google it and debug it. 还有可能是我的files里面的Makefile写的有问题,您没有再在里面添加其他内容吗。比如module installation?

没有啊,只有blog里面提到的module编译的信息,不需要其他的。

honorpeter commented 5 years ago

@VVViy

@peterzh2018

@VVViy

@peterzh2018888 [INFO] building opendla [INFO] sourcing bitbake INFO: bitbake opendla Loading cache: 100% |########################################################################################################################################################################| Time: 0:00:00 Loaded 3438 entries from dependency cache. Parsing recipes: 100% |######################################################################################################################################################################| Time: 0:00:04 Parsing of 2553 .bb files complete (2513 cached, 40 parsed). 3442 targets, 139 skipped, 0 masked, 0 errors. NOTE: Resolving any missing task queue dependencies Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:00 Checking sstate mirror object availability: 100% |###########################################################################################################################################| Time: 0:00:05 NOTE: Executing SetScene Tasks NOTE: Executing RunQueue Tasks ERROR: opendla-1.0-r0 do_install: oe_runmake failed ERROR: opendla-1.0-r0 do_install: Function failed: do_install (log file is located at /home/zhpt/aidla/aidla/build/tmp/work/plnx_zynqmp-xilinx-linux/opendla/1.0-r0/temp/log.do_install.22653) ERROR: Logfile of failure stored in: /home/zhpt/aidla/aidla/build/tmp/work/plnx_zynqmp-xilinx-linux/opendla/1.0-r0/temp/log.do_install.22653 Log data follows: | DEBUG: Executing python function extend_recipe_sysroot | NOTE: Direct dependencies are ['virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-kernel/dtc/dtc_1.4.4.bb:do_populate_sysroot', 'virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/pseudo/pseudo_1.8.2.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/gcc/gcc-runtime_7.2.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/gcc/gcc-cross_7.2.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/binutils/binutils-cross_2.29.bb:do_populate_sysroot', 'virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/quilt/quilt-native_0.65.bb:do_populate_sysroot', 'virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-extended/bc/bc_1.06.bb:do_populate_sysroot', 'virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-support/lzop/lzop_1.03.bb:do_populate_sysroot', 'virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-extended/xz/xz_5.2.3.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-kernel/kmod/kmod-native_git.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/gcc/libgcc_7.2.bb:do_populate_sysroot', 'virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-bsp/u-boot/u-boot-mkimage_2017.09.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-core/glibc/glibc_2.26.bb:do_populate_sysroot'] | NOTE: Installed into sysroot: [] | NOTE: Skipping as already exists in sysroot: ['dtc-native', 'pseudo-native', 'kern-tools-native', 'gcc-runtime', 'gcc-cross-aarch64', 'binutils-cross-aarch64', 'pkgconfig-native', 'quilt-native', 'bc-native', 'lzop-native', 'xz-native', 'kmod-native', 'libgcc', 'u-boot-mkimage-native', 'glibc', 'flex-native', 'bison-native', 'linux-libc-headers', 'autoconf-native', 'gnu-config-native', 'automake-native', 'mpfr-native', 'libtool-native', 'texinfo-dummy-native', 'gmp-native', 'zlib-native', 'libmpc-native', 'lzo-native', 'gettext-minimal-native', 'gtk-doc-native', 'openssl-native', 'm4-native', 'makedepend-native', 'cryptodev-linux-native', 'xproto-native', 'util-macros-native'] | DEBUG: Python function extend_recipe_sysroot finished | DEBUG: Executing shell function do_install | NOTE: make -j 2 KERNEL_SRC=/home/zhpt/aidla/aidla/build/tmp/work-shared/plnx-zynqmp/kernel-source DEPMOD=echo MODLIB=/home/zhpt/aidla/aidla/build/tmp/work/plnx_zynqmp-xilinx-linux/opendla/1.0-r0/image/lib/modules/4.14.0-xilinx-v2018.2 CC=aarch64-xilinx-linux-gcc -fuse-ld=bfd LD=aarch64-xilinx-linux-ld.bfd O=/home/zhpt/aidla/aidla/build/tmp/work-shared/plnx-zynqmp/kernel-build-artifacts modules_install | make: *** No rule to make target 'modules_install'. Stop. | ERROR: oe_runmake failed | WARNING: /home/zhpt/aidla/aidla/build/tmp/work/plnx_zynqmp-xilinx-linux/opendla/1.0-r0/temp/run.do_install.22653:1 exit 1 from 'exit 1' | ERROR: Function failed: do_install (log file is located at /home/zhpt/aidla/aidla/build/tmp/work/plnx_zynqmp-xilinx-linux/opendla/1.0-r0/temp/log.do_install.22653) ERROR: Task (/home/zhpt/aidla/aidla/project-spec/meta-user/recipes-modules/opendla/opendla.bb:do_install) failed with exit code '1' NOTE: Tasks Summary: Attempted 728 tasks of which 723 didn't need to be rerun and 1 failed.

Summary: 1 task failed: /home/zhpt/aidla/aidla/project-spec/meta-user/recipes-modules/opendla/opendla.bb:do_install Summary: There were 2 ERROR messages shown, returning a non-zero exit code. ERROR: Failed to build opendla

Apparently,u need to check opendla.bb recipe(intutionly,i think u write wrong SRC_URI). I did not encounter such problem,u have to google it and debug it. 还有可能是我的files里面的Makefile写的有问题,您没有再在里面添加其他内容吗。比如module installation?

没有啊,只有blog里面提到的module编译的信息,不需要其他的。 确实是我的Makefile有问题。现在可以build成功了。非常感谢 另外我想问下: 在Step6的制作bootloader 时 fsbl用的是在vivado SDK里生成的还是直接写zynqmp_fsbl? 还有--fpga [your *.bit file] 里面的bitfile也是用vivado生成的那个,还是在/image/linux/下面有的那个system.bit?

VVViy commented 5 years ago

@peterzh2018

@VVViy

@peterzh2018

@VVViy

@peterzh2018888 [INFO] building opendla [INFO] sourcing bitbake INFO: bitbake opendla Loading cache: 100% |########################################################################################################################################################################| Time: 0:00:00 Loaded 3438 entries from dependency cache. Parsing recipes: 100% |######################################################################################################################################################################| Time: 0:00:04 Parsing of 2553 .bb files complete (2513 cached, 40 parsed). 3442 targets, 139 skipped, 0 masked, 0 errors. NOTE: Resolving any missing task queue dependencies Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:00 Checking sstate mirror object availability: 100% |###########################################################################################################################################| Time: 0:00:05 NOTE: Executing SetScene Tasks NOTE: Executing RunQueue Tasks ERROR: opendla-1.0-r0 do_install: oe_runmake failed ERROR: opendla-1.0-r0 do_install: Function failed: do_install (log file is located at /home/zhpt/aidla/aidla/build/tmp/work/plnx_zynqmp-xilinx-linux/opendla/1.0-r0/temp/log.do_install.22653) ERROR: Logfile of failure stored in: /home/zhpt/aidla/aidla/build/tmp/work/plnx_zynqmp-xilinx-linux/opendla/1.0-r0/temp/log.do_install.22653 Log data follows: | DEBUG: Executing python function extend_recipe_sysroot | NOTE: Direct dependencies are ['virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-kernel/dtc/dtc_1.4.4.bb:do_populate_sysroot', 'virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/pseudo/pseudo_1.8.2.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/gcc/gcc-runtime_7.2.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/gcc/gcc-cross_7.2.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/binutils/binutils-cross_2.29.bb:do_populate_sysroot', 'virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/quilt/quilt-native_0.65.bb:do_populate_sysroot', 'virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-extended/bc/bc_1.06.bb:do_populate_sysroot', 'virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-support/lzop/lzop_1.03.bb:do_populate_sysroot', 'virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-extended/xz/xz_5.2.3.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-kernel/kmod/kmod-native_git.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/gcc/libgcc_7.2.bb:do_populate_sysroot', 'virtual:native:/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-bsp/u-boot/u-boot-mkimage_2017.09.bb:do_populate_sysroot', '/home/zhpt/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-core/glibc/glibc_2.26.bb:do_populate_sysroot'] | NOTE: Installed into sysroot: [] | NOTE: Skipping as already exists in sysroot: ['dtc-native', 'pseudo-native', 'kern-tools-native', 'gcc-runtime', 'gcc-cross-aarch64', 'binutils-cross-aarch64', 'pkgconfig-native', 'quilt-native', 'bc-native', 'lzop-native', 'xz-native', 'kmod-native', 'libgcc', 'u-boot-mkimage-native', 'glibc', 'flex-native', 'bison-native', 'linux-libc-headers', 'autoconf-native', 'gnu-config-native', 'automake-native', 'mpfr-native', 'libtool-native', 'texinfo-dummy-native', 'gmp-native', 'zlib-native', 'libmpc-native', 'lzo-native', 'gettext-minimal-native', 'gtk-doc-native', 'openssl-native', 'm4-native', 'makedepend-native', 'cryptodev-linux-native', 'xproto-native', 'util-macros-native'] | DEBUG: Python function extend_recipe_sysroot finished | DEBUG: Executing shell function do_install | NOTE: make -j 2 KERNEL_SRC=/home/zhpt/aidla/aidla/build/tmp/work-shared/plnx-zynqmp/kernel-source DEPMOD=echo MODLIB=/home/zhpt/aidla/aidla/build/tmp/work/plnx_zynqmp-xilinx-linux/opendla/1.0-r0/image/lib/modules/4.14.0-xilinx-v2018.2 CC=aarch64-xilinx-linux-gcc -fuse-ld=bfd LD=aarch64-xilinx-linux-ld.bfd O=/home/zhpt/aidla/aidla/build/tmp/work-shared/plnx-zynqmp/kernel-build-artifacts modules_install | make: *** No rule to make target 'modules_install'. Stop. | ERROR: oe_runmake failed | WARNING: /home/zhpt/aidla/aidla/build/tmp/work/plnx_zynqmp-xilinx-linux/opendla/1.0-r0/temp/run.do_install.22653:1 exit 1 from 'exit 1' | ERROR: Function failed: do_install (log file is located at /home/zhpt/aidla/aidla/build/tmp/work/plnx_zynqmp-xilinx-linux/opendla/1.0-r0/temp/log.do_install.22653) ERROR: Task (/home/zhpt/aidla/aidla/project-spec/meta-user/recipes-modules/opendla/opendla.bb:do_install) failed with exit code '1' NOTE: Tasks Summary: Attempted 728 tasks of which 723 didn't need to be rerun and 1 failed.

Summary: 1 task failed: /home/zhpt/aidla/aidla/project-spec/meta-user/recipes-modules/opendla/opendla.bb:do_install Summary: There were 2 ERROR messages shown, returning a non-zero exit code. ERROR: Failed to build opendla

Apparently,u need to check opendla.bb recipe(intutionly,i think u write wrong SRC_URI). I did not encounter such problem,u have to google it and debug it. 还有可能是我的files里面的Makefile写的有问题,您没有再在里面添加其他内容吗。比如module installation?

没有啊,只有blog里面提到的module编译的信息,不需要其他的。 确实是我的Makefile有问题。现在可以build成功了。非常感谢 另外我想问下: 在Step6的制作bootloader 时 fsbl用的是在vivado SDK里生成的还是直接写zynqmp_fsbl? 还有--fpga [your *.bit file] 里面的bitfile也是用vivado生成的那个,还是在/image/linux/下面有的那个system.bit?

1)petalinux工具会根据在创建项目的时--template选项去下载相应的fsbl,所以就用images/linux文件下的zynqmp_fsbl就好。 2)bit文件需要使用images/linux/your_hdf_name.bit,与导入的hdf同名,这个bit文件就是在step2 petalinux-config --get-hw-description=.....从导入的hdf文件中解析出来的。

honorpeter commented 5 years ago

@VVViy 好的,谢谢。

VVViy commented 5 years ago

@peterzh2018 @VVViy 好的,谢谢。

:ok_hand:

honorpeter commented 5 years ago

由于目前官方发布的compiler不支持nv_small nvdla core。但是怎么用nv_small来跑比较小的的网络如 Alexnet in Caffe、ResNet50?

VVViy commented 5 years ago

@peterzh2018 由于目前官方发布的compiler不支持nv_small nvdla core。但是怎么用nv_small来跑比较小的的网络如 Alexnet in Caffe、ResNet50?

目前,除非自己手动编译,否则没有办法去跑特定类型网络,好像暂时也没有其他开源的nvdla编译器支持small,官方好像Q1发布吧,应该也快了。

ghost commented 5 years ago

NOTICE: ATF running on XCZU9EG/silicon v4/RTL5.1 at 0xfffea000 NOTICE: BL31: Secure code at 0x0 NOTICE: BL31: Non secure code at 0x8000000 NOTICE: BL31: v1.4(release):xilinx-v2018.1-4-g93a69a5a NOTICE: BL31: Built : 03:18:19, Feb 2 2019 PMUFW: v1.0

U-Boot 2018.01 (Feb 02 2019 - 11:17:14 +0800) Xilinx ZynqMP ZCU102 rev1.0

I2C: ready DRAM: 4 GiB EL Level: EL2 Chip ID: zu9eg MMC: sdhci@ff170000: 0 (SD) SF: Detected n25q512a with page size 512 Bytes, erase size 128 KiB, total 128 MiB *** Warning - bad CRC, using default environment

In: serial@ff000000 Out: serial@ff000000 Err: serial@ff000000 Model: ZynqMP ZCU102 Rev1.0 Board: Xilinx ZynqMP Bootmode: LVL_SHFT_SD_MODE1 Net: ZYNQ GEM: ff0e0000, phyaddr c, interface rgmii-id eth0: ethernet@ff0e0000 U-BOOT for aidla

ethernet@ff0e0000 Waiting for PHY auto negotiation to complete......................................... TIMEOUT ! Hit any key to stop autoboot: 0 Device: sdhci@ff170000 Manufacturer ID: 3 OEM: 5344 Name: SB16G Tran Speed: 50000000 Rd Block Len: 512 SD version 3.0 High Capacity: Yes Capacity: 14.8 GiB Bus Width: 4-bit Erase Group Size: 512 Bytes reading image.ub 6977736 bytes read in 474 ms (14 MiB/s)

Loading kernel from FIT Image at 10000000 ...

Using 'conf@system-top.dtb' configuration Trying 'kernel@1' kernel subimage Description: Linux kernel Type: Kernel Image Compression: gzip compressed Data Start: 0x10000104 Data Size: 6933488 Bytes = 6.6 MiB Architecture: AArch64 OS: Linux Load Address: 0x00080000 Entry Point: 0x00080000 Hash algo: sha1 Hash value: d7a0aecaaa59b60bb59580d7bd915848984df726 Verifying Hash Integrity ... sha1+ OK

Loading fdt from FIT Image at 10000000 ...

Using 'conf@system-top.dtb' configuration Trying 'fdt@system-top.dtb' fdt subimage Description: Flattened Device Tree blob Type: Flat Device Tree Compression: uncompressed Data Start: 0x1069cdf8 Data Size: 42331 Bytes = 41.3 KiB Architecture: AArch64 Hash algo: sha1 Hash value: 09e12ce5bb280be552b761ef88b87a99e9fe53a3 Verifying Hash Integrity ... sha1+ OK Booting using the fdt blob at 0x1069cdf8 Uncompressing Kernel Image ... OK Loading Device Tree to 0000000007ff2000, end 0000000007fff55a ... OK

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.14.0-xilinx-v2018.2 (oe-user@oe-host) (gcc version 7.2.0 (GCC)) #1 SMP Sat Feb 2 11:26:15 CST 2019 [ 0.000000] Boot CPU: AArch64 Processor [410fd034] [ 0.000000] Machine model: ZynqMP ZCU102 Rev1.0 [ 0.000000] earlycon: cdns0 at MMIO 0x00000000ff000000 (options '115200n8') [ 0.000000] bootconsole [cdns0] enabled [ 0.000000] efi: Getting EFI parameters from FDT: [ 0.000000] efi: UEFI not found. [ 0.000000] cma: Reserved 256 MiB at 0x0000000030000000 [ 0.000000] psci: probing for conduit method from DT. [ 0.000000] psci: PSCIv1.1 detected in firmware. [ 0.000000] psci: Using standard PSCI v0.2 function IDs [ 0.000000] psci: MIGRATE_INFO_TYPE not supported. [ 0.000000] percpu: Embedded 21 pages/cpu @ffffffc87ff66000 s46488 r8192 d31336 u86016 [ 0.000000] Detected VIPT I-cache on CPU0 [ 0.000000] CPU features: enabling workaround for ARM erratum 845719 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 775680 [ 0.000000] Kernel command line: earlycon clk_ignore_unused root=/dev/mmcblk0p2 rw rootwait [ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes) [ 0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes) [ 0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes) [ 0.000000] software IO TLB [mem 0x2bfff000-0x2ffff000] (64MB) mapped at [ffffffc02bfff000-ffffffc02fffefff] [ 0.000000] Memory: 2751388K/3145728K available (9916K kernel code, 644K rwdata, 3124K rodata, 512K init, 2168K bss, 132196K reserved, 262144K cma-reserved) [ 0.000000] Virtual kernel memory layout: [ 0.000000] modules : 0xffffff8000000000 - 0xffffff8008000000 ( 128 MB) [ 0.000000] vmalloc : 0xffffff8008000000 - 0xffffffbebfff0000 ( 250 GB) [ 0.000000] .text : 0xffffff8008080000 - 0xffffff8008a30000 ( 9920 KB) [ 0.000000] .rodata : 0xffffff8008a30000 - 0xffffff8008d40000 ( 3136 KB) [ 0.000000] .init : 0xffffff8008d40000 - 0xffffff8008dc0000 ( 512 KB) [ 0.000000] .data : 0xffffff8008dc0000 - 0xffffff8008e61200 ( 645 KB) [ 0.000000] .bss : 0xffffff8008e61200 - 0xffffff800907f2b0 ( 2169 KB) [ 0.000000] fixed : 0xffffffbefe7fd000 - 0xffffffbefec00000 ( 4108 KB) [ 0.000000] PCI I/O : 0xffffffbefee00000 - 0xffffffbeffe00000 ( 16 MB) [ 0.000000] vmemmap : 0xffffffbf00000000 - 0xffffffc000000000 ( 4 GB maximum) [ 0.000000] 0xffffffbf00000000 - 0xffffffbf1dc00000 ( 476 MB actual) [ 0.000000] memory : 0xffffffc000000000 - 0xffffffc880000000 ( 34816 MB) [ 0.000000] Hierarchical RCU implementation. [ 0.000000] RCU event tracing is enabled. [ 0.000000] RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4. [ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4 [ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0 [ 0.000000] GIC: Adjusting CPU interface base to 0x00000000f902f000 [ 0.000000] GIC: Using split EOI/Deactivate mode [ 0.000000] arch_timer: cp15 timer(s) running at 99.99MHz (phys). [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x170f8dc196, max_idle_ns: 440795203664 ns [ 0.000003] sched_clock: 56 bits at 99MHz, resolution 10ns, wraps every 4398046511099ns [ 0.008305] Console: colour dummy device 80x25 [ 0.012560] console [tty0] enabled [ 0.015926] bootconsole [cdns0] disabled [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.14.0-xilinx-v2018.2 (oe-user@oe-host) (gcc version 7.2.0 (GCC)) #1 SMP Sat Feb 2 11:26:15 CST 2019 [ 0.000000] Boot CPU: AArch64 Processor [410fd034] [ 0.000000] Machine model: ZynqMP ZCU102 Rev1.0 [ 0.000000] earlycon: cdns0 at MMIO 0x00000000ff000000 (options '115200n8') [ 0.000000] bootconsole [cdns0] enabled [ 0.000000] efi: Getting EFI parameters from FDT: [ 0.000000] efi: UEFI not found. [ 0.000000] cma: Reserved 256 MiB at 0x0000000030000000 [ 0.000000] psci: probing for conduit method from DT. [ 0.000000] psci: PSCIv1.1 detected in firmware. [ 0.000000] psci: Using standard PSCI v0.2 function IDs [ 0.000000] psci: MIGRATE_INFO_TYPE not supported. [ 0.000000] percpu: Embedded 21 pages/cpu @ffffffc87ff66000 s46488 r8192 d31336 u86016 [ 0.000000] Detected VIPT I-cache on CPU0 [ 0.000000] CPU features: enabling workaround for ARM erratum 845719 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 775680 [ 0.000000] Kernel command line: earlycon clk_ignore_unused root=/dev/mmcblk0p2 rw rootwait [ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes) [ 0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes) [ 0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes) [ 0.000000] software IO TLB [mem 0x2bfff000-0x2ffff000] (64MB) mapped at [ffffffc02bfff000-ffffffc02fffefff] [ 0.000000] Memory: 2751388K/3145728K available (9916K kernel code, 644K rwdata, 3124K rodata, 512K init, 2168K bss, 132196K reserved, 262144K cma-reserved) [ 0.000000] Virtual kernel memory layout: [ 0.000000] modules : 0xffffff8000000000 - 0xffffff8008000000 ( 128 MB) [ 0.000000] vmalloc : 0xffffff8008000000 - 0xffffffbebfff0000 ( 250 GB) [ 0.000000] .text : 0xffffff8008080000 - 0xffffff8008a30000 ( 9920 KB) [ 0.000000] .rodata : 0xffffff8008a30000 - 0xffffff8008d40000 ( 3136 KB) [ 0.000000] .init : 0xffffff8008d40000 - 0xffffff8008dc0000 ( 512 KB) [ 0.000000] .data : 0xffffff8008dc0000 - 0xffffff8008e61200 ( 645 KB) [ 0.000000] .bss : 0xffffff8008e61200 - 0xffffff800907f2b0 ( 2169 KB) [ 0.000000] fixed : 0xffffffbefe7fd000 - 0xffffffbefec00000 ( 4108 KB) [ 0.000000] PCI I/O : 0xffffffbefee00000 - 0xffffffbeffe00000 ( 16 MB) [ 0.000000] vmemmap : 0xffffffbf00000000 - 0xffffffc000000000 ( 4 GB maximum) [ 0.000000] 0xffffffbf00000000 - 0xffffffbf1dc00000 ( 476 MB actual) [ 0.000000] memory : 0xffffffc000000000 - 0xffffffc880000000 ( 34816 MB) [ 0.000000] Hierarchical RCU implementation. [ 0.000000] RCU event tracing is enabled. [ 0.000000] RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4. [ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4 [ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0 [ 0.000000] GIC: Adjusting CPU interface base to 0x00000000f902f000 [ 0.000000] GIC: Using split EOI/Deactivate mode [ 0.000000] arch_timer: cp15 timer(s) running at 99.99MHz (phys). [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x170f8dc196, max_idle_ns: 440795203664 ns [ 0.000003] sched_clock: 56 bits at 99MHz, resolution 10ns, wraps every 4398046511099ns [ 0.008305] Console: colour dummy device 80x25 [ 0.012560] console [tty0] enabled [ 0.015926] bootconsole [cdns0] disabled [ 0.019836] Calibrating delay loop (skipped), value calculated using timer frequency.. 199.98 BogoMIPS (lpj=399960) [ 0.019850] pid_max: default: 32768 minimum: 301 [ 0.019951] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes) [ 0.019968] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes) [ 0.020525] ASID allocator initialised with 65536 entries [ 0.020573] Hierarchical SRCU implementation. [ 0.020903] EFI services will not be available. [ 0.020927] zynqmp_plat_init Platform Management API v1.0 [ 0.020936] zynqmp_plat_init Trustzone version v1.0 [ 0.021030] smp: Bringing up secondary CPUs ... [ 0.021282] Detected VIPT I-cache on CPU1 [ 0.021310] CPU1: Booted secondary processor [410fd034] [ 0.021583] Detected VIPT I-cache on CPU2 [ 0.021600] CPU2: Booted secondary processor [410fd034] [ 0.021863] Detected VIPT I-cache on CPU3 [ 0.021881] CPU3: Booted secondary processor [410fd034] [ 0.021922] smp: Brought up 1 node, 4 CPUs [ 0.021954] SMP: Total of 4 processors activated. [ 0.021963] CPU features: detected feature: 32-bit EL0 Support [ 0.021973] CPU: All CPU(s) started at EL2 [ 0.021989] alternatives: patching kernel code [ 0.022492] devtmpfs: initialized [ 0.026955] random: get_random_u32 called from bucket_table_alloc+0x108/0x260 with crng_init=0 [ 0.027158] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns [ 0.027180] futex hash table entries: 1024 (order: 5, 131072 bytes) [ 0.027314] random: fast init done [ 0.032577] xor: measuring software checksum speed [ 0.071906] 8regs : 2302.000 MB/sec [ 0.111936] 8regs_prefetch: 2052.000 MB/sec [ 0.151967] 32regs : 2830.000 MB/sec [ 0.191998] 32regs_prefetch: 2379.000 MB/sec [ 0.192006] xor: using function: 32regs (2830.000 MB/sec) [ 0.192072] pinctrl core: initialized pinctrl subsystem [ 0.192562] NET: Registered protocol family 16 [ 0.193189] cpuidle: using governor menu [ 0.193713] vdso: 2 pages (1 code @ ffffff8008a36000, 1 data @ ffffff8008dc4000) [ 0.193730] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers. [ 0.194181] DMA: preallocated 256 KiB pool for atomic allocations [ 0.223516] reset_zynqmp reset-controller: Xilinx zynqmp reset driver probed [ 0.224074] ARM CCI_400_r1 PMU driver probed [ 0.228873] zynqmp-pinctrl ff180000.pinctrl: zynqmp pinctrl initialized [ 0.236705] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages [ 0.304216] raid6: int64x1 gen() 402 MB/s [ 0.372188] raid6: int64x1 xor() 446 MB/s [ 0.440234] raid6: int64x2 gen() 687 MB/s [ 0.508299] raid6: int64x2 xor() 603 MB/s [ 0.576335] raid6: int64x4 gen() 1042 MB/s [ 0.644360] raid6: int64x4 xor() 742 MB/s [ 0.712443] raid6: int64x8 gen() 980 MB/s [ 0.780456] raid6: int64x8 xor() 745 MB/s [ 0.848507] raid6: neonx1 gen() 726 MB/s [ 0.916553] raid6: neonx1 xor() 853 MB/s [ 0.984607] raid6: neonx2 gen() 1168 MB/s [ 1.052621] raid6: neonx2 xor() 1207 MB/s [ 1.120690] raid6: neonx4 gen() 1505 MB/s [ 1.188731] raid6: neonx4 xor() 1441 MB/s [ 1.256782] raid6: neonx8 gen() 1651 MB/s [ 1.324809] raid6: neonx8 xor() 1532 MB/s [ 1.324817] raid6: using algorithm neonx8 gen() 1651 MB/s [ 1.324825] raid6: .... xor() 1532 MB/s, rmw enabled [ 1.324832] raid6: using neon recovery algorithm [ 1.325409] XGpio: /amba_pl@0/gpio@a0010000: registered, base is 504 [ 1.326675] SCSI subsystem initialized [ 1.326843] usbcore: registered new interface driver usbfs [ 1.326879] usbcore: registered new interface driver hub [ 1.326918] usbcore: registered new device driver usb [ 1.326980] media: Linux media interface: v0.10 [ 1.327008] Linux video capture interface: v2.00 [ 1.327047] pps_core: LinuxPPS API ver. 1 registered [ 1.327055] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it [ 1.327084] PTP clock support registered [ 1.327110] EDAC MC: Ver: 3.0.0 [ 1.327413] zynqmp-ipi ff9905c0.mailbox: Probed ZynqMP IPI Mailbox driver. [ 1.327564] FPGA manager framework [ 1.327664] fpga-region fpga-full: FPGA Region probed [ 1.327753] Advanced Linux Sound Architecture Driver Initialized. [ 1.327985] Bluetooth: Core ver 2.22 [ 1.328013] NET: Registered protocol family 31 [ 1.328021] Bluetooth: HCI device and connection manager initialized [ 1.328033] Bluetooth: HCI socket layer initialized [ 1.328043] Bluetooth: L2CAP socket layer initialized [ 1.328061] Bluetooth: SCO socket layer initialized [ 1.328594] clocksource: Switched to clocksource arch_sys_counter [ 1.328664] VFS: Disk quotas dquot_6.6.0 [ 1.328708] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes) [ 1.332576] NET: Registered protocol family 2 [ 1.332878] TCP established hash table entries: 32768 (order: 6, 262144 bytes) [ 1.333088] TCP bind hash table entries: 32768 (order: 7, 524288 bytes) [ 1.333472] TCP: Hash tables configured (established 32768 bind 32768) [ 1.333542] UDP hash table entries: 2048 (order: 4, 65536 bytes) [ 1.333619] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes) [ 1.333770] NET: Registered protocol family 1 [ 1.333955] RPC: Registered named UNIX socket transport module. [ 1.333965] RPC: Registered udp transport module. [ 1.333972] RPC: Registered tcp transport module. [ 1.333979] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 1.334331] hw perfevents: no interrupt-affinity property for /pmu, guessing. [ 1.334476] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available [ 1.335104] audit: initializing netlink subsys (disabled) [ 1.335182] audit: type=2000 audit(1.316:1): state=initialized audit_enabled=0 res=1 [ 1.335500] workingset: timestamp_bits=62 max_order=20 bucket_order=0 [ 1.336135] NFS: Registering the id_resolver key type [ 1.336155] Key type id_resolver registered [ 1.336163] Key type id_legacy registered [ 1.336176] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 1.336196] jffs2: version 2.2. (NAND) (SUMMARY) ? 2001-2006 Red Hat, Inc. [ 1.359811] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246) [ 1.359828] io scheduler noop registered [ 1.359836] io scheduler deadline registered [ 1.359856] io scheduler cfq registered (default) [ 1.359865] io scheduler mq-deadline registered [ 1.359873] io scheduler kyber registered [ 1.360472] nwl-pcie fd0e0000.pcie: Link is DOWN [ 1.360513] OF: PCI: host bridge /amba/pcie@fd0e0000 ranges: [ 1.360535] OF: PCI: MEM 0xe0000000..0xefffffff -> 0xe0000000 [ 1.360547] OF: PCI: MEM 0x600000000..0x7ffffffff -> 0x600000000 [ 1.360682] nwl-pcie fd0e0000.pcie: PCI host bridge to bus 0000:00 [ 1.360696] pci_bus 0000:00: root bus resource [bus 00-ff] [ 1.360707] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff] [ 1.360718] pci_bus 0000:00: root bus resource [mem 0x600000000-0x7ffffffff pref] [ 1.360971] pci 0000:00:00.0: PCI bridge to [bus 01-0c] [ 1.361768] xilinx-dpdma fd4c0000.dma: Xilinx DPDMA engine is probed [ 1.362151] xilinx-zynqmp-dma fd500000.dma: ZynqMP DMA driver Probe success [ 1.362311] xilinx-zynqmp-dma fd510000.dma: ZynqMP DMA driver Probe success [ 1.362469] xilinx-zynqmp-dma fd520000.dma: ZynqMP DMA driver Probe success [ 1.362627] xilinx-zynqmp-dma fd530000.dma: ZynqMP DMA driver Probe success [ 1.362783] xilinx-zynqmp-dma fd540000.dma: ZynqMP DMA driver Probe success [ 1.362943] xilinx-zynqmp-dma fd550000.dma: ZynqMP DMA driver Probe success [ 1.363098] xilinx-zynqmp-dma fd560000.dma: ZynqMP DMA driver Probe success [ 1.363258] xilinx-zynqmp-dma fd570000.dma: ZynqMP DMA driver Probe success [ 1.363477] xilinx-zynqmp-dma ffa80000.dma: ZynqMP DMA driver Probe success [ 1.363627] xilinx-zynqmp-dma ffa90000.dma: ZynqMP DMA driver Probe success [ 1.363776] xilinx-zynqmp-dma ffaa0000.dma: ZynqMP DMA driver Probe success [ 1.363927] xilinx-zynqmp-dma ffab0000.dma: ZynqMP DMA driver Probe success [ 1.364074] xilinx-zynqmp-dma ffac0000.dma: ZynqMP DMA driver Probe success [ 1.364226] xilinx-zynqmp-dma ffad0000.dma: ZynqMP DMA driver Probe success [ 1.364379] xilinx-zynqmp-dma ffae0000.dma: ZynqMP DMA driver Probe success [ 1.364531] xilinx-zynqmp-dma ffaf0000.dma: ZynqMP DMA driver Probe success [ 1.388996] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled [ 1.391877] cacheinfo: Unable to detect cache hierarchy for CPU 0 [ 1.395795] brd: module loaded [ 1.399095] loop: module loaded [ 1.399904] ahci-ceva fd0c0000.ahci: couldn't get PHY in node ahci: -517 [ 1.400056] mtdoops: mtd device (mtddev=name/number) must be supplied [ 1.401093] m25p80 spi0.0: n25q512a (131072 Kbytes) [ 1.401115] 3 ofpart partitions found on MTD device spi0.0 [ 1.401124] Creating 3 MTD partitions on "spi0.0": [ 1.401136] 0x000000000000-0x000000100000 : "boot" [ 1.401544] 0x000000100000-0x000000140000 : "bootenv" [ 1.401907] 0x000000140000-0x000001740000 : "kernel" [ 1.403112] libphy: Fixed MDIO Bus: probed [ 1.404082] tun: Universal TUN/TAP device driver, 1.6 [ 1.404205] CAN device driver interface [ 1.406245] macb ff0e0000.ethernet: Not enabling partial store and forward [ 1.406626] libphy: MACB_mii_bus: probed [ 1.408246] macb ff0e0000.ethernet eth0: Cadence GEM rev 0x50070106 at 0xff0e0000 irq 31 (00:0a:35:00:22:01) [ 1.408262] TI DP83867 ff0e0000.ethernet-ffffffff:0c: attached PHY driver [TI DP83867] (mii_bus:phy_addr=ff0e0000.ethernet-ffffffff:0c, irq=POLL) [ 1.408801] usbcore: registered new interface driver asix [ 1.408850] usbcore: registered new interface driver ax88179_178a [ 1.408879] usbcore: registered new interface driver cdc_ether [ 1.408907] usbcore: registered new interface driver net1080 [ 1.408937] usbcore: registered new interface driver cdc_subset [ 1.408968] usbcore: registered new interface driver zaurus [ 1.409006] usbcore: registered new interface driver cdc_ncm [ 1.409259] xilinx-axipmon ffa00000.perf-monitor: Probed Xilinx APM [ 1.410302] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 1.410313] ehci-pci: EHCI PCI platform driver [ 1.410562] usbcore: registered new interface driver uas [ 1.410600] usbcore: registered new interface driver usb-storage [ 1.411061] rtc_zynqmp ffa60000.rtc: rtc core: registered ffa60000.rtc as rtc0 [ 1.411113] i2c /dev entries driver [ 1.412097] IR NEC protocol handler initialized [ 1.412105] IR RC5(x/sz) protocol handler initialized [ 1.412113] IR RC6 protocol handler initialized [ 1.412120] IR JVC protocol handler initialized [ 1.412127] IR Sony protocol handler initialized [ 1.412134] IR SANYO protocol handler initialized [ 1.412141] IR Sharp protocol handler initialized [ 1.412148] IR MCE Keyboard/mouse protocol handler initialized [ 1.412156] IR XMP protocol handler initialized [ 1.413148] usbcore: registered new interface driver uvcvideo [ 1.413157] USB Video Class driver (1.1.1) [ 1.413632] cdns-wdt fd4d0000.watchdog: Xilinx Watchdog Timer at ffffff8009125000 with timeout 10s [ 1.413806] Bluetooth: HCI UART driver ver 2.3 [ 1.413817] Bluetooth: HCI UART protocol H4 registered [ 1.413825] Bluetooth: HCI UART protocol BCSP registered [ 1.413851] Bluetooth: HCI UART protocol LL registered [ 1.413859] Bluetooth: HCI UART protocol ATH3K registered [ 1.413867] Bluetooth: HCI UART protocol Three-wire (H5) registered [ 1.413909] Bluetooth: HCI UART protocol Intel registered [ 1.413917] Bluetooth: HCI UART protocol QCA registered [ 1.413951] usbcore: registered new interface driver bcm203x [ 1.413984] usbcore: registered new interface driver bpa10x [ 1.414020] usbcore: registered new interface driver bfusb [ 1.414051] usbcore: registered new interface driver btusb [ 1.414060] Bluetooth: Generic Bluetooth SDIO driver ver 0.1 [ 1.414108] usbcore: registered new interface driver ath3k [ 1.414229] EDAC MC: ECC not enabled [ 1.414374] EDAC DEVICE0: Giving out device to module zynqmp-ocm-edac controller zynqmp_ocm: DEV ff960000.memory-controller (INTERRUPT) [ 1.414845] cpufreq: cpufreq_online: CPU0: Running at unlisted freq: 1199880 KHz [ 1.414898] cpufreq: cpufreq_online: CPU0: Unlisted initial frequency changed to: 1199999 KHz [ 1.415259] sdhci: Secure Digital Host Controller Interface driver [ 1.415268] sdhci: Copyright(c) Pierre Ossman [ 1.415275] sdhci-pltfm: SDHCI platform and OF driver helper [ 1.460606] mmc0: SDHCI controller on ff170000.sdhci [ff170000.sdhci] using ADMA 64-bit [ 1.466631] ledtrig-cpu: registered to indicate activity on CPUs [ 1.466773] usbcore: registered new interface driver usbhid [ 1.466782] usbhid: USB HID core driver [ 1.468544] fpga_manager fpga0: Xilinx ZynqMP FPGA Manager registered [ 1.470302] pktgen: Packet Generator for packet performance testing. Version: 2.75 [ 1.472516] Netfilter messages via NETLINK v0.30. [ 1.472639] ip_tables: (C) 2000-2006 Netfilter Core Team [ 1.472779] Initializing XFRM netlink socket [ 1.472836] NET: Registered protocol family 10 [ 1.473237] Segment Routing with IPv6 [ 1.473280] ip6_tables: (C) 2000-2006 Netfilter Core Team [ 1.473402] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver [ 1.473708] NET: Registered protocol family 17 [ 1.473724] NET: Registered protocol family 15 [ 1.473743] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this. [ 1.473757] Ebtables v2.0 registered [ 1.473848] can: controller area network core (rev 20170425 abi 9) [ 1.473881] NET: Registered protocol family 29 [ 1.473896] can: raw protocol (rev 20170425) [ 1.473905] can: broadcast manager protocol (rev 20170425 t) [ 1.473916] can: netlink gateway (rev 20170425) max_hops=1 [ 1.474093] Bluetooth: RFCOMM TTY layer initialized [ 1.474108] Bluetooth: RFCOMM socket layer initialized [ 1.474126] Bluetooth: RFCOMM ver 1.11 [ 1.474137] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [ 1.474144] Bluetooth: BNEP filters: protocol multicast [ 1.474157] Bluetooth: BNEP socket layer initialized [ 1.474166] Bluetooth: HIDP (Human Interface Emulation) ver 1.2 [ 1.474176] Bluetooth: HIDP socket layer initialized [ 1.474283] 9pnet: Installing 9P2000 support [ 1.474303] Key type dns_resolver registered [ 1.474672] registered taskstats version 1 [ 1.474985] Btrfs loaded, crc32c=crc32c-generic [ 1.480185] ff000000.serial: ttyPS0 at MMIO 0xff000000 (irq = 47, base_baud = 6249375) is a xuartps [ 1.633492] mmc0: new high speed SDHC card at address aaaa [ 1.641040] mmcblk0: mmc0:aaaa SB16G 14.8 GiB [ 1.648542] mmcblk0: p1 p2 p3 [ 3.126607] console [ttyPS0] enabled [ 3.130753] ff010000.serial: ttyPS1 at MMIO 0xff010000 (irq = 48, base_baud = 6249375) is a xuartps [ 3.141308] xilinx-psgtr fd400000.zynqmp_phy: Lane:1 type:8 protocol:4 pll_locked:yes [ 3.149516] PLL: shutdown [ 3.152181] PLL: shutdown [ 3.155093] PLL: enable [ 3.157589] PLL: shutdown [ 3.160949] PLL: enable [ 3.163407] xilinx-dp-snd-codec fd4a0000.zynqmp-display:zynqmp_dp_snd_codec0: Xilinx DisplayPort Sound Codec probed [ 3.173990] xilinx-dp-snd-pcm zynqmp_dp_snd_pcm0: Xilinx DisplayPort Sound PCM probed [ 3.181945] xilinx-dp-snd-pcm zynqmp_dp_snd_pcm1: Xilinx DisplayPort Sound PCM probed [ 3.190144] xilinx-dp-snd-card fd4a0000.zynqmp-display:zynqmp_dp_snd_card: xilinx-dp-snd-codec-dai <-> xilinx-dp-snd-codec-dai mapping ok [ 3.202499] xilinx-dp-snd-card fd4a0000.zynqmp-display:zynqmp_dp_snd_card: xilinx-dp-snd-codec-dai <-> xilinx-dp-snd-codec-dai mapping ok [ 3.215121] xilinx-dp-snd-card fd4a0000.zynqmp-display:zynqmp_dp_snd_card: Xilinx DisplayPort Sound Card probed [ 3.225225] OF: graph: no port node found in /amba/zynqmp-display@fd4a0000 [ 3.232128] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). [ 3.238664] [drm] No driver support for vblank timestamp query. [ 3.244630] xlnx-drm xlnx-drm.0: bound fd4a0000.zynqmp-display (ops 0xffffff8008ae7128) [ 4.328606] [drm] Cannot find any crtc or sizes [ 4.333226] [drm] Initialized xlnx 1.0.0 20130509 for fd4a0000.zynqmp-display on minor 0 [ 4.341259] zynqmp-display fd4a0000.zynqmp-display: ZynqMP DisplayPort Subsystem driver probed [ 4.350190] xilinx-psgtr fd400000.zynqmp_phy: Lane:3 type:3 protocol:2 pll_locked:yes [ 4.368058] ahci-ceva fd0c0000.ahci: AHCI 0001.0301 32 slots 2 ports 6 Gbps 0x3 impl platform mode [ 4.376944] ahci-ceva fd0c0000.ahci: flags: 64bit ncq sntf pm clo only pmp fbs pio slum part ccc sds apst [ 4.387192] scsi host0: ahci-ceva [ 4.390614] scsi host1: ahci-ceva [ 4.393951] ata1: SATA max UDMA/133 mmio [mem 0xfd0c0000-0xfd0c1fff] port 0x100 irq 45 [ 4.401790] ata2: SATA max UDMA/133 mmio [mem 0xfd0c0000-0xfd0c1fff] port 0x180 irq 45 [ 4.411370] xilinx-psgtr fd400000.zynqmp_phy: Lane:2 type:0 protocol:3 pll_locked:yes [ 4.421372] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller [ 4.426790] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1 [ 4.434630] xhci-hcd xhci-hcd.0.auto: hcc params 0x0238f625 hci version 0x100 quirks 0x22010010 [ 4.443280] xhci-hcd xhci-hcd.0.auto: irq 62, io mem 0xfe200000 [ 4.449266] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [ 4.455978] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 4.463180] usb usb1: Product: xHCI Host Controller [ 4.468041] usb usb1: Manufacturer: Linux 4.14.0-xilinx-v2018.2 xhci-hcd [ 4.474724] usb usb1: SerialNumber: xhci-hcd.0.auto [ 4.479858] hub 1-0:1.0: USB hub found [ 4.483546] hub 1-0:1.0: 1 port detected [ 4.487603] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller [ 4.493016] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2 [ 4.500692] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM. [ 4.508797] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003 [ 4.515510] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 4.522713] usb usb2: Product: xHCI Host Controller [ 4.527571] usb usb2: Manufacturer: Linux 4.14.0-xilinx-v2018.2 xhci-hcd [ 4.534256] usb usb2: SerialNumber: xhci-hcd.0.auto [ 4.539338] hub 2-0:1.0: USB hub found [ 4.543025] hub 2-0:1.0: 1 port detected [ 4.547955] pca953x 0-0020: 0-0020 supply vcc not found, using dummy regulator [ 4.557862] pca953x 0-0020: interrupt support not compiled in [ 4.563622] pca953x 0-0021: 0-0021 supply vcc not found, using dummy regulator [ 4.573534] pca953x 0-0021: interrupt support not compiled in [ 4.579982] ina2xx 3-0040: power monitor ina226 (Rshunt = 5000 uOhm) [ 4.586677] ina2xx 3-0041: power monitor ina226 (Rshunt = 5000 uOhm) [ 4.593363] ina2xx 3-0042: power monitor ina226 (Rshunt = 5000 uOhm) [ 4.600048] ina2xx 3-0043: power monitor ina226 (Rshunt = 5000 uOhm) [ 4.606743] ina2xx 3-0044: power monitor ina226 (Rshunt = 5000 uOhm) [ 4.613433] ina2xx 3-0045: power monitor ina226 (Rshunt = 5000 uOhm) [ 4.620122] ina2xx 3-0046: power monitor ina226 (Rshunt = 5000 uOhm) [ 4.626813] ina2xx 3-0047: power monitor ina226 (Rshunt = 5000 uOhm) [ 4.633516] ina2xx 3-004a: power monitor ina226 (Rshunt = 5000 uOhm) [ 4.640209] ina2xx 3-004b: power monitor ina226 (Rshunt = 5000 uOhm) [ 4.646514] i2c i2c-0: Added multiplexed i2c bus 3 [ 4.651861] ina2xx 4-0040: power monitor ina226 (Rshunt = 2000 uOhm) [ 4.658557] ina2xx 4-0041: power monitor ina226 (Rshunt = 5000 uOhm) [ 4.665241] ina2xx 4-0042: power monitor ina226 (Rshunt = 5000 uOhm) [ 4.671932] ina2xx 4-0043: power monitor ina226 (Rshunt = 5000 uOhm) [ 4.678623] ina2xx 4-0044: power monitor ina226 (Rshunt = 5000 uOhm) [ 4.685315] ina2xx 4-0045: power monitor ina226 (Rshunt = 5000 uOhm) [ 4.692002] ina2xx 4-0046: power monitor ina226 (Rshunt = 5000 uOhm) [ 4.698700] ina2xx 4-0047: power monitor ina226 (Rshunt = 5000 uOhm) [ 4.705006] i2c i2c-0: Added multiplexed i2c bus 4 [ 4.726785] ata1: SATA link down (SStatus 0 SControl 330) [ 4.732133] ata2: SATA link down (SStatus 0 SControl 330) [ 4.755814] i2c i2c-0: Added multiplexed i2c bus 5 [ 4.760659] i2c i2c-0: Added multiplexed i2c bus 6 [ 4.765370] pca954x 0-0075: registered 4 multiplexed busses for I2C mux pca9544 [ 4.772689] cdns-i2c ff020000.i2c: 400 kHz mmio ff020000 irq 33 [ 4.780225] at24 7-0054: 1024 byte 24c08 EEPROM, writable, 1 bytes/write [ 4.786877] i2c i2c-1: Added multiplexed i2c bus 7 [ 4.791806] i2c i2c-1: Added multiplexed i2c bus 8 [ 4.798533] si570 9-005d: registered, current frequency 300000000 Hz [ 4.804840] i2c i2c-1: Added multiplexed i2c bus 9 [ 4.823501] si570 10-005d: registered, current frequency 148500000 Hz [ 4.829888] i2c i2c-1: Added multiplexed i2c bus 10 [ 4.834902] i2c i2c-1: Added multiplexed i2c bus 11 [ 4.839817] i2c i2c-1: Added multiplexed i2c bus 12 [ 4.844741] i2c i2c-1: Added multiplexed i2c bus 13 [ 4.849652] i2c i2c-1: Added multiplexed i2c bus 14 [ 4.854453] pca954x 1-0074: registered 8 multiplexed busses for I2C switch pca9548 [ 4.862312] i2c i2c-1: Added multiplexed i2c bus 15 [ 4.867238] i2c i2c-1: Added multiplexed i2c bus 16 [ 4.872156] i2c i2c-1: Added multiplexed i2c bus 17 [ 4.877372] i2c i2c-1: Added multiplexed i2c bus 18 [ 4.882292] i2c i2c-1: Added multiplexed i2c bus 19 [ 4.887212] i2c i2c-1: Added multiplexed i2c bus 20 [ 4.892131] i2c i2c-1: Added multiplexed i2c bus 21 [ 4.897050] i2c i2c-1: Added multiplexed i2c bus 22 [ 4.901850] pca954x 1-0075: registered 8 multiplexed busses for I2C switch pca9548 [ 4.909423] cdns-i2c ff030000.i2c: 400 kHz mmio ff030000 irq 34 [ 4.916471] input: gpio-keys as /devices/platform/gpio-keys/input/input0 [ 4.923285] rtc_zynqmp ffa60000.rtc: setting system clock to 2019-02-19 17:23:21 UTC (1550597001) [ 4.932200] clk: Not disabling unused clocks [ 4.936424] ALSA device list: [ 4.939338] #0: DisplayPort monitor [ 4.945701] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities [ 4.984740] EXT4-fs (mmcblk0p2): recovery complete [ 4.990687] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null) [ 4.998711] VFS: Mounted root (ext4 filesystem) on device 179:2. [ 5.008633] devtmpfs: mounted [ 5.011625] Freeing unused kernel memory: 512K INIT: version 2.88 booting Starting udev [ 5.406529] udevd[1877]: starting version 3.2.2 [ 5.445391] udevd[1878]: starting eudev-3.2.2 [ 5.468633] [drm] Cannot find any crtc or sizes [ 5.537214] mali: loading out-of-tree module taints kernel. [ 6.086307] EXT4-fs (mmcblk0p3): recovery complete [ 6.091036] EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: (null) [ 6.128927] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck. [ 6.164125] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null) Starting internet superserver: inetd. INIT: Entering runlevel: 5 Configuring network interfaces... [ 6.489027] pps pps0: new PPS source ptp0 [ 6.492985] macb ff0e0000.ethernet: gem-ptp-timer ptp clock registered. [ 6.499622] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready udhcpc (v1.24.1) started Sending discover... Sending discover... Sending discover... No lease, forking to background done. Starting system message bus: dbus. Starting Dropbear SSH server: dropbear. Starting syslogd/klogd: done Starting tcf-agent: OK

PetaLinux 2018.2 aidla /dev/ttyPS0

aidla login: root Password: root@aidla:~# ls root@aidla:~# cd / root@aidla:/# ls bin dev home lost+found mnt run sys usr boot etc lib media proc sbin tmp var root@aidla:/# cd usr root@aidla:/usr# I have boot success,But how to 根据rootfs目录结构更改此error log路径? 下板安装kmd驱动后,可以通过查看/dev/dri下是否存在renderD128, /proc/interrupts是否存在 nvdla相关的中断项,来确认kmd驱动是否正确安装. But have no 存在 nvdla相关的中断项. 查看/dev/dri have no renderD128. what can I do ? how to correct it?

VVViy commented 5 years ago

@peterzh2018888 O...K, 1) In "nvdla/sw/umd/include/ErrorMacros.h,line 60, #define NVDLA_UTILS_ERROR_PATH "nvidia/tegra/cv/dla/" ",default error path "nvidia/tegra/cv/dla/" is not existence in customized petalinux enviroment, so u have to rewrite it according to your rootfs, e.g., "/var/log/". 2) Actually, the correct way to check dri render and interrupts, i have stated in STEP 8, that is, u need insmod opendla driver, after that, type $ ls /dev/dri/ to look for "renderD128", and type $ cat /proc/interrupts to check whether there is INTERRUPT ID "121". Am i making sense?

Actually, u can ignore 2), even 1).

BTW, for such large log, maybe u can take advantage of some specific tools, say Pastebin, but not gist.

ghost commented 5 years ago

@VVViy I can't find out opendla.ko in /lib/modules/[kernel version]-xilinx-[petalinux version]/extra/ only see mali.ko and can't be insmod

VVViy commented 5 years ago

@peterzh2018888 @VVViy I can't find out opendla.ko in /lib/modules/[kernel version]-xilinx-[petalinux version]/extra/ only see mali.ko and can't be insmod

Seriously?Did u create opendla external module by following STEP 4?

ghost commented 5 years ago

@VVViy @peterzh2018888 O...K, 1) In "nvdla/sw/umd/include/ErrorMacros.h,line 60, #define NVDLA_UTILS_ERROR_PATH "nvidia/tegra/cv/dla/" ",default error path "nvidia/tegra/cv/dla/" is not existence in customized petalinux enviroment, so u have to rewrite it according to your rootfs, e.g., "/var/log/". 2) Actually, the correct way to check dri render and interrupts, i have stated in STEP 8, that is, u need insmod opendla driver, after that, type $ ls /dev/dri/ to look for "renderD128", and type $ cat /proc/interrupts to check whether there is INTERRUPT ID "121". Am i making sense?

Actually, u can ignore 2), even 1).

BTW, for such large log, maybe u can take advantage of some specific tools, say Pastebin, but not gist.

Maybe there was somthing wrong with the process of the petalinux build opendla . When petalinux build there was some WARNING :

WARNING: opendla-1.0-r0 do_package_qa: QA Issue: opendla: /opendla-lic/usr/share/licenses/opendla/COPYING is owned by gid 0, which is the same as the user running bitbake. This may be due to host contamination opendla: /opendla-lic/usr/share/licenses/opendla/generic_GPLv2 is owned by gid 0, which is the same as the user running bitbake. This may be due to host contamination [host-user-contaminated] WARNING: petalinux-user-image-1.0-r0 do_rootfs: [log_check] petalinux-user-image: found 1 warning message in the logfile: [log_check] warning: %post(sysvinit-inittab-2.88dsf-r10.plnx_zynqmp) scriptlet failed, exit status 1

ghost commented 5 years ago

@VVViy @peterzh2018888 O...K, 1) In "nvdla/sw/umd/include/ErrorMacros.h,line 60, #define NVDLA_UTILS_ERROR_PATH "nvidia/tegra/cv/dla/" ",default error path "nvidia/tegra/cv/dla/" is not existence in customized petalinux enviroment, so u have to rewrite it according to your rootfs, e.g., "/var/log/". 2) Actually, the correct way to check dri render and interrupts, i have stated in STEP 8, that is, u need insmod opendla driver, after that, type $ ls /dev/dri/ to look for "renderD128", and type $ cat /proc/interrupts to check whether there is INTERRUPT ID "121". Am i making sense?

Actually, u can ignore 2), even 1).

BTW, for such large log, maybe u can take advantage of some specific tools, say Pastebin, but not gist.

I can't find out opendla.ko in /lib/modules/[kernel version]-xilinx-[petalinux version]/extra/ only see mali.ko and can't be insmod

VVViy commented 5 years ago

Did u DEL COPYING file in.../project-spec/meta-user/recipes-modules/opendla/files/? If not, u need to debug it and google it.

ghost commented 5 years ago

sudo find . -name "opendla*" ./usr/share/licenses/opendla opendla only can find in ./usr/share/licenses/opendla but have no opendla.ko

ghost commented 5 years ago

@VVViy

@peterzh2018888 @VVViy I can't find out opendla.ko in /lib/modules/[kernel version]-xilinx-[petalinux version]/extra/ only see mali.ko and can't be insmod

Seriously?Did u create opendla external module by following STEP 4?

Yes I create opendla external module by following STEP 4. but no opendla.ko create