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 build related query

Part Number: PROCESSOR-SDK-AM62A


Tool/software:

Hello Expert,

I added an image, custom model and a configuration file by, adding that files in tisdk/sources/meta-edgeai/recipes-tisdk/edgeai-components/files and make changes in .bb files install section. It worked well. But when I extracted the build .tar.gz I can't see apps_python in edgeai-gst-apps.

I removed everything added into sdk. I mean reverted the .bb file modified, removed files folder, cleaned the recipe, builded the recipe and rebuilded but no change in the folders in edgeai-gst-apps.


edgeai-gst-apps contains below folders and files.

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


How can I fix this problem.

Best Regards,
Sajan

  • One more thing. I tried to patch script/setup_wallpaper.sh. Which is the recipe related to it. Is it edgeai-gst-apps. 

    Steps followed:
    1. Added a .patch containing changes in files directory.
    2. Added .patch file name in SRC_URI of edgeai-gst-apps.bb file 
    3. bitbake -c clean edgeai-gst-apps
    4. bitbake edgeai-gst-apps

    But when trying bitbake edgeai-gst-apps. It print some error.

    Regards,
    Sajan

  • Hello,

    Okay, so you are only getting the contents of apps_cpp in this directory - I am curious if apps_cpp also contains all these same files. That would suggest that the copy was performed on the wrong directory. 

    But when trying bitbake edgeai-gst-apps. It print some error.

    Please show this error.

    What are the contents of your patch?

    2. Added .patch file name in SRC_URI of edgeai-gst-apps.bb file 

    This seems a bit questionable, since that original SRC_URI is pointing to the repository as the source to pull. 

  • Hello Reese,

    the copy was performed on the wrong directory

    I didn't get that.

    Please show this error.

    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.



    patch file contains:
    @@ -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 file modfication are:

    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
    }
    

    Regards,
    Sajan

  • so you are only getting the contents of apps_cpp in this directory - I am curious if apps_cpp also contains all these same files. That would suggest that the copy was performed on the wrong directory. 

    Can I revert everything that I changed or fix the same problem without build the sdk from scratch.

    I am also okay to get back into initial tisdk build if possible

  • Hello Reese,

    It is the issue because of wrong path in do_install in edgeai-gst-apps.bb file
    Thanks for your help

    Regards,
    Sajan

  • Hello Reese,

    show this error.

    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.
    

    Tried bitbake edgeai-gst-apps immediately after devtool modify edgeai-gst-apps. Still the error associated with QA persists.

    Regards,
    Sajan