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.

SK-AM62A-LP: ARAGO_BRAND for tisdk-thinlinux-image image

Part Number: SK-AM62A-LP

Hi,

I want to build tisdk-thinlinux-image image (I use in the 1.2. Building the SDK with Yocto — Processor SDK AM62Ax Documentation manual),

Which ARAGO_BRAND I need to define for this?

Thanks,

Rachel

  • Hi Rachel,

    I'd go with what's in the SDK documentation, and use that for any of the images that can be generated.

    echo 'ARAGO_BRAND = "edgeai"' >> conf/local.conf

    If you have any issues with this, let me know.

    Regards, Andreas

  • Hi Andreas,
    Thanks for your answer.

    The build failed with error:

    NOTE: Resolving any missing task queue dependencies
    ERROR: Nothing RPROVIDES 'seva-launcher' (but /home/rachel/ti-processor-sdk-linux-rt-edgeai-am62axx-evm-09_01_00_02/yocto-build/sources/meta-arago/meta-arago-distro/recipes-core/images/tisdk-thinlinux-image.bb RDEPENDS on or otherwise requires it)
    seva-launcher was skipped: incompatible with machine am62axx-evm (not in COMPATIBLE_MACHINE)
    NOTE: Runtime target 'seva-launcher' is unbuildable, removing...
    Missing or unbuildable dependency chain was: ['seva-launcher']
    ERROR: Required build target 'tisdk-thinlinux-image' has no buildable providers.
    Missing or unbuildable dependency chain was: ['tisdk-thinlinux-image', 'seva-launcher']

    Summary: There were 2 WARNING messages.
    Summary: There were 2 ERROR messages, returning a non-zero exit code.

    Can you help me please with this issue?

    Thanks,

    Rachel

  • Missing or unbuildable dependency chain was: ['seva-launcher']

    For all practical purposes for people trying trying to build an actual product based on an SDK this is a useless dependency. It's basically the on-device TI-specific "app store" that can pull in some extra demos, with this being it's only purposes. I assume you won't need that right?

    Regards, Andreas

  • Digging some more into the sources and the associated TI Git repo at https://github.com/TexasInstruments/seva/releases/ it seems like the "seva" app store store is not supported on AM62A, therefore those dependencies should be removed. I did that successfully using the changes below, and was able to build the target image without any issues (w/ branding applied!):

    $ git diff
    diff --git a/recipes-core/images/tisdk-thinlinux-image.bbappend b/recipes-core/images/tisdk-thinlinux-image.bbappend
    index 2a9989a..7838b71 100644
    --- a/recipes-core/images/tisdk-thinlinux-image.bbappend
    +++ b/recipes-core/images/tisdk-thinlinux-image.bbappend
    @@ -4,7 +4,6 @@ IMAGE_INSTALL:append = " resize-rootfs"
    
     IMAGE_INSTALL:append:am62xx = " seva-launcher"
     IMAGE_INSTALL:append:am62pxx = " seva-launcher"
    -IMAGE_INSTALL:append:am62axx = " seva-launcher"
     IMAGE_INSTALL:append:j721s2 = " seva-launcher"
     IMAGE_INSTALL:append:j784s4 = " seva-launcher"
    
    diff --git a/recipes-demos/ti-apps-launcher/ti-apps-launcher.bb b/recipes-demos/ti-apps-launcher/ti-apps-launcher.bb
    index cb18a96..f9cea72 100644
    --- a/recipes-demos/ti-apps-launcher/ti-apps-launcher.bb
    +++ b/recipes-demos/ti-apps-launcher/ti-apps-launcher.bb
    @@ -13,6 +13,7 @@ LIC_FILES_CHKSUM = "file://${WORKDIR}/git/LICENSE;md5=5c3a7f5f6886ba6f33ec3d214d
     DEPENDS = "qtbase qtquick3d qtmultimedia"
     RDEPENDS:${PN} = "qtquick3d qtmultimedia bash seva-launcher pulseaudio-service"
     RDEPENDS:${PN}:remove:am62xxsip-evm = "seva-launcher"
    +RDEPENDS:${PN}:remove:am62axx-evm = "seva-launcher"
     RDEPENDS:${PN}:append:am62xx = " powervr-graphics"
     RDEPENDS:${PN}:append:am62pxx = " powervr-graphics"

    I filed an internal ticket to have this fixed in a future SDK release (SITSW-3727).

    Regards, Andreas

  • Hi Andreas,

    I get some errors when the image is loaded:


    1. [FAILED] Failed to start Start psplash boot splash screen.
      See 'systemctl status psplash-start.service' for details.
      [DEPEND] Dependency failed for Star…progress communication helper.
    2. [    5.643788] remoteproc remoteproc0: Direct firmware load for am62a-c71_0-fw f                                                                                                                                                             ailed with error -2
      Do you know why(I tried tisdk-base-image and tisdk-thinlinux-image targets)?
  • Hi Rachel,

    I get some errors when the image is loaded:

    Do you get the same errors with the full image for AM62A, which is tisdk-edgeai-image?

    I suppose the errors come from missing file(s) specific to the smaller images you build, making these services fail to start. The fix is likely to either remove the associated packages/services if you don't need them, or re-add the missing files. It really depends what you are trying to do.

    Regards, Andreas

  • Hi Andreas,

    I need AM62A image with Linux that can be flashed in U-BOOT.

    How I know if I need the above missing files?

  • I need AM62A image with Linux that can be flashed in U-BOOT.

    Flash to where?

    How I know if I need the above missing files?

    Well the first error is regarding to the splash screen, and the second error is regarding to some embedded C7x co-processor FW blob. If I was to take a guess it is likely related to EdgeAI acceleration.

    Regards, Andreas

  • Hi Andreas,

    I flash to the EMMC.
    Sorry but I didn't succeed to understand if I need those files or not.
    Can you help me, please, to know it? I need AM62A image with Linux.

  • Hi Rachel.

    I flash to the EMMC.

    See here corresponding section in the AM62A Linux Academy:

    https://dev.ti.com/tirex/explore/node?node=A__AQkwMvG9F0GKWPdIDOFokg__AM62A-ACADEMY__WeZ9SsL__LATEST

    Sorry but I didn't succeed to understand if I need those files or not.

    The splash screen is just a visual effect during boot, you probably don't care about, especially during early development. The EdgeAI firmware will be needed if you do any TIDL related work. I'd say try ignoring those warnings for now, and if certain features related to TIDL that you want to use dont' work you'll know where to look and what to fix. But for evaluation purposes it's usually the best to start out with the full-featured image (tisdk-edgeai-image).

    Regards, Andreas

  • Hi Andreas,


    Thanks on your answer!
    I need to flash the image on EMMC in U-boot(On our custom board there is no SD card).
    How can I flash the tisdk-edgeai-image image in U-Boot(It is a big image)?
    Or how I can add the missing files to the thinlinux image(am62a-c71_0-fw, am62a-mcu-r5f0_0-fw)?

    Thanks,

    Rachel

  • I need to flash the image on EMMC in U-boot(On our custom board there is no SD card).
    How can I flash the tisdk-edgeai-image image in U-Boot(It is a big image)?

    You can use USB-DFU based flashing. In this mode U-Boot should be able to receive any size of image.

    Or how I can add the missing files to the thinlinux image(am62a-c71_0-fw, am62a-mcu-r5f0_0-fw)?

    One easy way to do is is to just connect your board over Ethernet, and then use `scp`.

    Regards, Andreas

  • Hi Andreas,

    You can use USB-DFU based flashing. In this mode U-Boot should be able to receive any size of image

    Can you refer me please to guide how flashing via USB?

    Thanks,
    Rachel

  • Hi Rachel,

    You can boot up the device all the way to U-Boot prompt using USB-DFU. For this you'll need to re-build your first boot stage (R5 SPL a.k.a. tiboot3.bin) using the configs/am62ax_evm_r5_usbdfu_defconfig defconfig file. Then, you can follow the steps for USB DFU from the SDK User's Guide at https://software-dl.ti.com/processor-sdk-linux/esd/AM62X/09_01_00_08/exports/docs/linux/Foundational_Components/U-Boot/UG-DFU.html

    (Note the link I provided is for the AM62 SDK documentation, currently the corresponding section in the AM62A SDK documentation seems missing/corrupted --> I filed an internal ticket SITSW-3819 to have this fixed).

    Also using the SK-AM62A board, the following boot mode settings should work for this:

    BOOTMODE [ 8 : 15 ] (SW3) = 0000 0000
    BOOTMODE [ 0 :  7 ] (SW2) = 1100 1010
    When you configure the board like this and plug it in you should see a USB device enumerating on your Linux PC (check the `dmesg` log). If you see that then it means you should be ready to go to start the USB DFU process.
    After you booted to U-Boot prompt using USB-DFU you can Flash the eMMC over USB-DFU by following the steps here https://software-dl.ti.com/processor-sdk-linux/esd/AM62X/09_01_00_08/exports/docs/linux/Foundational_Components/U-Boot/UG-Memory.html#updating-an-sd-card-or-emmc-using-dfu 
    Regards, Andreas
  • Hi Andreas,


    When I tried to rebuild the u-boot: make configs/am62ax_evm_r5_usbdfu_defconfig O=/home/rachel/ti/tiboot_for_DFU
    I get the error:" ti/ti-processor-sdk-linux-edgeai-am62axx-evm-09_01_00_07/board-support/ti-u-boot-2023.04+gitAUTOINC+b0d717b732-gb0d717b732/scripts/gcc-version.sh: line 26: arm-none-linux-gnueabihf-gcc: command not found"
    Do you know why?

    Thanks,

    Rachel

  • Hi Rachel,

    arm-none-linux-gnueabihf-gcc: command not found"

    You are missing the cross-toolchain needed for compiling U-Boot that needs to get downloaded and setup first. Unfortunately it looks like the related AM62A SDK v9.1-specific documentation page is broken but just yesterday I just filed an internal issue report (SITSW-3818) to have this fixed. In the meantime, you can reference the corresponding page from the AM62 SDK documentation at https://software-dl.ti.com/processor-sdk-linux/esd/AM62X/09_01_00_08/exports/docs/linux/Overview/GCC_ToolChain.html#location-in-sdk

    Also, can you please file new/separate support tickets for anything unrelated to your OP. It is very important to keep the threads on-topic for findability an future reference, and this is also important from a subject-matter-expert/ownership assignment at TI.

    Thanks, Andreas