This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] PROCESSOR-SDK-AM62A:SDK 10.01构建相关查询

Guru**** 2378650 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1504230/processor-sdk-am62a-sdk-10-01-build-related-query

器件型号:PROCESSOR-SDK-AM62A

工具/软件:

您好专家、

我通过添加了图像、自定义模型和配置文件、并在中添加了这些文件  tisdk/sources/meta-edgeai/食谱-tisdk/edgeai-components/files 并在.bb 文件安装部分进行更改。 运行良好。 但是、当我提取编译.tar.gz 后、在 edgeai-gst-apps 中看不到 apps_python。

我删除了 SDK 中添加的所有内容。 我是指恢复修改的.bb 文件、删除的文件文件夹、清理配方、构建配方并重新构建、但 edgeai-gst-apps 中的文件夹没有变化。


edgeai-gst-apps 包含以下文件夹和文件。

app_config_checker  
app_edgeai  
apps_cpp  
Build_Instructions.txt  
cmake  
CMakeLists.txt  
common  
utils


如何解决此问题。

此致、
Sajan

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    还有一点。 我尝试修补 script/supetup_wallpage.sh。 这就是与其相关的配方。 它是 edgeai-gst-apps。  

    遵循的步骤:
    1.添加了一个包含文件目录更改的.patch。
    2.在 edgeai-gst-apps.bb 文件的 SRC_URI 中添加了.patch 文件名  
    3. bitbake -c clean edgeai-gst-apps
    4. bitbake edgeai-gst-apps

    但在尝试位烘烤 edgeai-gst-apps 时。 它打印出一些错误。

    此致、
    Sajan

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好:

    好的、所以您只能 在此目录中获取 apps_cpp 的内容-我很好奇 apps_cpp 是否也包含所有这些相同的文件。 这将表明复制是在错误的目录上执行的。  

    但在尝试 bitbake edgeai-gst-apps 时。 它会打印一些错误。

    请显示此错误。

    修补程序的内容是什么?

    2. 在 edgeai-gst-apps.bb 文件的 SRC_URI 中添加了.patch 文件名  
    [/报价]

    这似乎有点可疑、因为原始 SRC_URI 指向存储库作为要拉取的源。  

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好 Reese、

    复制在错误的目录上执行

    我没有明白。

    请显示此错误。

    NOTE: Executing Tasks
    ERROR: edgeai-gst-apps-1.0.0-r0_edgeai_2 do_patch: ExecutionError('/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/temp/run.do_patch.14988', 1, None, None)
    ERROR: Logfile of failure stored in: /home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/temp/log.do_patch.14988
    Log data follows:
    | DEBUG: Executing python function extend_recipe_sysroot
    | NOTE: Direct dependencies are ['/home/tisdk/tisdk/sources/oe-core/meta/recipes-devtools/quilt/quilt-native_0.67.bb:do_populate_sysroot', 'virtual:native:/home/tisdk/tisdk/sources/oe-core/meta/recipes-devtools/patch/patch_2.7.6.bb:do_populate_sysroot']
    | NOTE: Installed into sysroot: ['quilt-native', 'patch-native']
    | NOTE: Skipping as already exists in sysroot: ['gettext-minimal-native', 'libtool-native', 'texinfo-dummy-native', 'attr-native']
    | DEBUG: sed -e 's:^[^/]*/:/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/recipe-sysroot-native/:g' /home/tisdk/tisdk/build/arago-tmp-default-glibc/sysroots-components/x86_64/quilt-native/fixmepath | xargs sed -i -e 's:FIXMESTAGINGDIRTARGET:/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/recipe-sysroot:g; s:FIXMESTAGINGDIRHOST:/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/recipe-sysroot-native:g' -e 's:FIXME_PSEUDO_SYSROOT:/home/tisdk/tisdk/build/arago-tmp-default-glibc/sysroots-components/x86_64/pseudo-native:g' -e 's:FIXME_HOSTTOOLS_DIR:/home/tisdk/tisdk/build/arago-tmp-default-glibc/hosttools:g' -e 's:FIXME_PKGDATA_DIR:/home/tisdk/tisdk/build/arago-tmp-default-glibc/pkgdata/am62axx-evm:g' -e 's:FIXME_PSEUDO_LOCALSTATEDIR:/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/pseudo/:g' -e 's:FIXME_LOGFIFO:/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/temp/fifo.14988:g'
    | DEBUG: Python function extend_recipe_sysroot finished
    | DEBUG: Executing shell function do_patch
    | can't find file to patch at input line 5
    | Perhaps you used the wrong -p or --strip option?
    | The text leading up to this was:
    | --------------------------
    | |diff --git a/scripts/setup_wallpaper.sh b/scripts/setup_wallpaper.sh
    | |index 1222950..caa224a 100755
    | |--- a/scripts/setup_wallpaper.sh
    | |+++ b/scripts/setup_wallpaper.sh
    | --------------------------
    | File to patch:
    | Skip this patch? [y]
    | Skipping patch.
    | 4 out of 4 hunks ignored
    | WARNING: /home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/temp/run.do_patch.14988:139 exit 1 from 'patch -p1 < /home/tisdk/tisdk/sources/meta-edgeai/recipes-tisdk/edgeai-components/files/0001-setup_wallpaper.patch'
    | WARNING: Backtrace (BB generated script):
    | 	#1: do_patch, /home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/temp/run.do_patch.14988, line 139
    | 	#2: main, /home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/temp/run.do_patch.14988, line 143
    ERROR: Task (/home/tisdk/tisdk/sources/meta-edgeai/recipes-tisdk/edgeai-components/edgeai-gst-apps.bb:do_patch) failed with exit code '1'
    NOTE: Tasks Summary: Attempted 3519 tasks of which 3514 didn't need to be rerun and 1 failed.
    NOTE: Writing buildhistory
    NOTE: Writing buildhistory took: 3 seconds
    NOTE: Writing buildhistory
    NOTE: Writing buildhistory took: 3 seconds
    
    Summary: 1 task failed:
      /home/tisdk/tisdk/sources/meta-edgeai/recipes-tisdk/edgeai-components/edgeai-gst-apps.bb:do_patch
    Summary: There was 1 ERROR message, returning a non-zero exit code.



    补丁文件包含:
    @@ -30,7 +30,7 @@
     #  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
     #  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     
    -BG_IMAGE=$OOB_DEMO_ASSETS_PATH/wallpaper.jpg
    +BG_IMAGE=$OOB_DEMO_ASSETS_PATH/test.png
     
     if [ "$BG_IMAGE" != "" ]
     then
    @@ -40,7 +40,7 @@ ip_eth0=${arr[1]}
     arr=(`ifconfig wlp1s0 2>&1 | grep inet | grep -v inet6`)
     ip_wlp1s0=${arr[1]}
     
    -TEXTOVERLAY="textoverlay font-desc=\"Arial 8\" color=0xFF00FF00 \
    +TEXTOVERLAY="textoverlay font-desc=\"Arial 5\" color=0xFF00FF00 \
                 valignment=3 halignment=right draw-shadow=false \
                 draw-outline=false"
     
    @@ -57,9 +57,9 @@ fi
     
     if [ "$ip_eth0" != "" ]
     then
    -    GST_OVERLAY_STR+="$TEXTOVERLAY text=\"ip_eth0=$ip_eth0\" ypos=$YPOS !"
    +    GST_OVERLAY_STR+="$TEXTOVERLAY text=\"IP: $ip_eth0\" ypos=$YPOS !"
         YPOS=`bc <<< $YPOS+$STEP`
    -    GST_OVERLAY_STR+="$TEXTOVERLAY text=\"user:pwd=root:root\" ypos=$YPOS !"
    +    GST_OVERLAY_STR+="$TEXTOVERLAY text=\"Login: root\" ypos=$YPOS !"
         YPOS=`bc <<< $YPOS+2*$STEP`
     fi
     
    @@ -74,9 +74,9 @@ then
     fi
     
     gcc $EDGEAI_GST_APPS_PATH/scripts/get_fb_resolution.c -o get_fb_resolution
    -gst-launch-1.0 filesrc location=$BG_IMAGE ! jpegdec ! videoconvert ! \
    +gst-launch-1.0 filesrc location=$BG_IMAGE ! pngdec ! videoconvert ! \
     video/x-raw, format=BGRA ! videoscale ! `./get_fb_resolution` ! \
     $GST_OVERLAY_STR \
    


    edgeai-gst-apps.bb 文件修改为:

    SRC_URI = "git://github.com/TexasInstruments/edgeai-gst-apps.git;branch=${BRANCH};protocol=https"
    FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
    
    SRC_URI += " file://0001-setup_wallpaper.patch"
    
    
    
    S = "${WORKDIR}/git"
    
    
    
    do_patch() {
        patch -p1 < ${THISDIR}/files/0001-setup_wallpaper.patch
    }
    

    此致、
    Sajan

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    [引述 userid="360457" url="~/support/processors-group/processors/f/processors-forum/1504230/processor-sdk-am62a-sdk-10-01-build-related-query/5779671 #5779671"]

    因此、您只会 在此目录中获取 apps_cpp 的内容-我很好奇 apps_cpp 是否也包含所有这些相同的文件。 这将表明复制是在错误的目录上执行的。  

    [/报价]

    我可以恢复我更改的所有内容或解决相同问题而无需从头开始构建 SDK 吗?

    如果可能、我也可以恢复初始 tisdk 构建

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好 Reese、

    这是由于 edgeai-gst-apps.bb 文件中 do_install 的路径错误导致的问题
    感谢你的帮助

    此致、
    Sajan

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好 Reese、

    显示此错误。

    NOTE: Executing Tasks
    WARNING: edgeai-gst-apps-1.0.0-r0_edgeai_2 do_populate_lic: Could not copy license file /home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/git/LICENSE to /home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/license-destdir/aarch64/edgeai-gst-apps/LICENSE: [Errno 2] No such file or directory: '/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/git/LICENSE'
    ERROR: edgeai-gst-apps-1.0.0-r0_edgeai_2 do_populate_lic: QA Issue: edgeai-gst-apps: LIC_FILES_CHKSUM points to an invalid file: /home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/git/LICENSE [license-checksum]
    ERROR: edgeai-gst-apps-1.0.0-r0_edgeai_2 do_populate_lic: Fatal QA errors were found, failing task.
    ERROR: Logfile of failure stored in: /home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/temp/log.do_populate_lic.204350
    ERROR: Task (/home/tisdk/tisdk/sources/meta-edgeai/recipes-tisdk/edgeai-components/edgeai-gst-apps.bb:do_populate_lic) failed with exit code '1'
    NOTE: Tasks Summary: Attempted 3522 tasks of which 3513 didn't need to be rerun and 1 failed.
    

    已尝试 bitbake edgeai-gst-apps 之后立即更新 DevTool 修改 edgeai-gst-apps 。 与 QA 相关的误差仍然存在。

    此致、
    Sajan