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.

AM625: Flutter Enable

Part Number: AM625


Hi Team,

I am trying to build flutter by following the steps provided in "www.ti.com/.../sprt761.pdf

Ended with error as below

$ MACHINE=am62xx-evm bitbake tisdk-default-image
NOTE: Started PRServer with DBfile: /home/mmk/Projects/TI/03_Software/02_Linux/flutter/tisdk/build/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 44487, PID: 864544
ERROR: ExpansionError during parsing /home/mmk/Projects/TI/03_Software/02_Linux/flutter/tisdk/sources/meta-flutter/recipes-graphics/flutter-sdk/flutter-sdk_git.bb                          | ETA:  0:02:21
Traceback (most recent call last):
  File "/home/mmk/Projects/TI/03_Software/02_Linux/flutter/tisdk/sources/bitbake/lib/bb/data_smart.py", line 132, in VariableParse.python_sub(match=<re.Match object; span=(62, 88), match='${@get_flutter_archive(d)}'>):
                         self.contains[k].update(parser.contains[k])
    >            value = utils.better_eval(codeobj, DataContext(self.d), {'d' : self.d})
                 return str(value)
  File "/home/mmk/Projects/TI/03_Software/02_Linux/flutter/tisdk/sources/bitbake/lib/bb/utils.py", line 421, in better_eval(source=<code object <module> at 0x7f0ab6cd5f50, file "Var <SRC_URI>", line 1>, locals={'d': <bb.data_smart.DataSmart object at 0x7f0ab6a2cd00>}, extraglobals={'d': <bb.data_smart.DataSmart object at 0x7f0ab6a2cd00>}):
                 ctx[g] = extraglobals[g]
    >    return eval(source, ctx, locals)
     
  File "Var <SRC_URI>", line 1, in <module>
  File "/home/mmk/Projects/TI/03_Software/02_Linux/flutter/tisdk/sources/meta-flutter/conf/include/flutter-version.inc", line 6, in get_flutter_archive(d=<bb.data_smart.DataSmart object at 0x7f0ab6a2cd00>):
     def get_flutter_archive(d):
    >    return _get_flutter_release_info(d, "archive")
     
  File "/home/mmk/Projects/TI/03_Software/02_Linux/flutter/tisdk/sources/meta-flutter/conf/include/flutter-version.inc", line 33, in _get_flutter_release_info(d=<bb.data_smart.DataSmart object at 0x7f0ab6a2cd00>, key='archive'):
         if ret == "":
    >        raise ValueError("Could not get flutter sdk archive url")
     
bb.data_smart.ExpansionError: Failure expanding variable SRC_URI, expression was storage.googleapis.com/.../${@get_flutter_archive(d)};name=flutter-sdk which triggered exception ValueError: Could not get flutter sdk archive url

WARNING: /home/mmk/Projects/TI/03_Software/02_Linux/flutter/tisdk/sources/meta-flutter/recipes-graphics/agl-flutter-apps/flutter-app-igalia-homescreen_git.bb: Cooker received SIGTERM, shutting down...
WARNING: /home/mmk/Projects/TI/03_Software/02_Linux/flutter/tisdk/sources/meta-flutter/recipes-graphics/sony/flutter-drm-eglstream-backend_git.bb: Cooker received SIGTERM, shutting down...
WARNING: /home/mmk/Projects/TI/03_Software/02_Linux/flutter/tisdk/sources/meta-flutter/recipes-graphics/sony/flutter-external-texture-plugin_git.bb: Cooker received SIGTERM, shutting down...
WARNING: /home/mmk/Projects/TI/03_Software/02_Linux/flutter/tisdk/sources/meta-flutter/recipes-graphics/sony/flutter-video-player-plugin_git.bb: Cooker received SIGTERM, shutting down...
WARNING: Cooker received SIGTERM, shutting down...

Summary: There were 5 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

*****************************************************************************************************************************

Where could be the issue ?

  • Hello,

    I need to update the app note but I am assuming you are using the 9.0 SDK. If yes, you do not need to specify SDK TAG and/or the SRCREV. Simply, clone the meta-flutter Kirkstone branch and bitbake flutter-engine.

    Regards,
    Krunal

  • Hi,

    I just ran below steps

    $git clone git.ti.com/.../oe-layersetup.git tisdk
    $cd tisdk
    $cp configs/processor-sdk/processor-sdk-08.05.00.21-config.txt configs/flutter-config.txt
    $echo "meta-flutter,">github.com/.../meta-flutter.git,dunfell,HEAD" >> configs/flutter-config.txt
    $./oe-layertool-setup.sh -f configs/flutter-config.txt
    $cd build/
    $export TOOLCHAIN_PATH_ARMV7=$HOME/gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf
    $export TOOLCHAIN_PATH_ARMV8=$HOME/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu
    $echo 'IMAGE_INSTALL_append = " flutter-pi-runtimedebug flutter-gallery-runtimedebug "' >> conf/local.conf
    $echo 'TOOLCHAIN_HOST_TASK:append = " nativesdk-flutter-sdk"' >> conf/local.conf
    $echo 'FLUTTER_SDK_TAG = "stable"' >> conf/local.conf
    $echo 'SRCREV_pn-flutter-gallery-runtimedebug ="9776b9fd916635e10a32bd426fcd7a20c3841faf"' >> conf/local.conf
    $. conf/setenv
    $MACHINE=am62xx-evm bitbake-layers add-layer ../sources/meta-flutter
    $MACHINE=am62xx-evm bitbake tisdk-default-image

  • Hello,

    It seems like they updated the meta-flutter repo and you need to remove the following from your conf/local.conf file "FLUTTER_SDK_TAG = "stable".

    My recommendation would be to switch to Kriktone because the build process is straightforward.

    git clone git.ti.com/.../oe-layersetup.git tisdk
    cd tisdk
    ./oe-layertool-setup.sh -f configs/processor-sdk/processor-sdk-09.00.00-config.txt
    cd sources/
    git clone https://github.com/meta-flutter/meta-flutter.git
    cd ../tisdk
    . conf/setenv
    MACHINE=am62xx-evm bitbake-layers add-layer ../sources/meta-flutter/
    MACHINE=am62xx-evm bitbake flutter-pi

    Regards,

    Krunal

  • Hi

    with the steps provide I was able to compile it successfully.

    Can you tell me how to test it ?

    Output of "flutter-pi" search in the build is as below:

    $ find . -iname "flutter-pi"
    ./arago-tmp-default-glibc/pkgdata/am62pxx-evm/runtime-reverse/flutter-pi
    ./arago-tmp-default-glibc/pkgdata/am62pxx-evm/runtime/flutter-pi
    ./arago-tmp-default-glibc/pkgdata/am62pxx-evm/flutter-pi
    ./arago-tmp-default-glibc/deploy/licenses/flutter-pi
    ./arago-tmp-default-glibc/work/aarch64-oe-linux/flutter-pi
    ./arago-tmp-default-glibc/work/aarch64-oe-linux/flutter-pi/git-r0/pkgdata/runtime-reverse/flutter-pi
    ./arago-tmp-default-glibc/work/aarch64-oe-linux/flutter-pi/git-r0/pkgdata/runtime/flutter-pi
    ./arago-tmp-default-glibc/work/aarch64-oe-linux/flutter-pi/git-r0/pkgdata/flutter-pi
    ./arago-tmp-default-glibc/work/aarch64-oe-linux/flutter-pi/git-r0/package/usr/src/debug/flutter-pi
    ./arago-tmp-default-glibc/work/aarch64-oe-linux/flutter-pi/git-r0/package/usr/bin/.debug/flutter-pi
    ./arago-tmp-default-glibc/work/aarch64-oe-linux/flutter-pi/git-r0/package/usr/bin/flutter-pi
    ./arago-tmp-default-glibc/work/aarch64-oe-linux/flutter-pi/git-r0/pkgdata-pdata-input/runtime-reverse/flutter-pi
    ./arago-tmp-default-glibc/work/aarch64-oe-linux/flutter-pi/git-r0/pkgdata-pdata-input/runtime/flutter-pi
    ./arago-tmp-default-glibc/work/aarch64-oe-linux/flutter-pi/git-r0/pkgdata-pdata-input/flutter-pi
    ./arago-tmp-default-glibc/work/aarch64-oe-linux/flutter-pi/git-r0/packages-split/flutter-pi-src/usr/src/debug/flutter-pi
    ./arago-tmp-default-glibc/work/aarch64-oe-linux/flutter-pi/git-r0/packages-split/flutter-pi-dbg/usr/bin/.debug/flutter-pi
    ./arago-tmp-default-glibc/work/aarch64-oe-linux/flutter-pi/git-r0/packages-split/flutter-pi
    ./arago-tmp-default-glibc/work/aarch64-oe-linux/flutter-pi/git-r0/packages-split/flutter-pi/usr/bin/flutter-pi
    ./arago-tmp-default-glibc/work/aarch64-oe-linux/flutter-pi/git-r0/sysroot-destdir/sysroot-providers/flutter-pi
    ./arago-tmp-default-glibc/work/aarch64-oe-linux/flutter-pi/git-r0/license-destdir/flutter-pi
    ./arago-tmp-default-glibc/work/aarch64-oe-linux/flutter-pi/git-r0/image/usr/bin/flutter-pi
    ./arago-tmp-default-glibc/work/aarch64-oe-linux/flutter-pi/git-r0/build/flutter-pi
    ./arago-tmp-default-glibc/sysroots-components/aarch64/flutter-pi
    ./arago-tmp-default-glibc/sysroots-components/aarch64/flutter-pi/sysroot-providers/flutter-pi
    ./arago-tmp-default-glibc/stamps/aarch64-oe-linux/flutter-pi
    ./buildhistory/packages/aarch64-oe-linux/flutter-pi
    ./buildhistory/packages/aarch64-oe-linux/flutter-pi/flutter-pi

    Thanks

  • Hello,

    Are you familiar with Yocto? In general, you have two ways to install the packge. Method 1: Manually install all the packages using the command "opkg install <name_of_file>.ipk". Method 2: add IMAGE_INSTALL:append = flutter-pi and Yocto will install all the packages in your target filesystem.

    Regards,
    Krunal

  • Hi,

    I was able to add the package into rfs.

    Can you provide me the command line to test flutter def app.

    Tried $flutter-pi --release /usr/share/flutter/3.13.9/gallery/release

    Got drm error.

  • Is weston running and if yes, you need to disable weston using command systemctl stop weston?

    Regards,
    Krunal

  • Hi

    I was able to run the app with command $flutter-pi --release /usr/share/flutter/gallery/3.3.10/release/

    I was using 8" LVDS(800x480) in which the screen is not fit to the display.

    Will work it out.

    Thanks.

  • Thanks for the update! Also, out of curiosity, is there a reason why you are testing Flutter? Do you plan to design your UI with Flutter?

    Regards,
    Krunal

  • Hi

    Yes planning to demonstrate flutter for automotive platform.

    Thanks.