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.

Compiler/PROCESSOR-SDK-DRA8X-TDA4X: TDA4X kernel quickly start use init-demo.sh

Part Number: PROCESSOR-SDK-DRA8X-TDA4X
Other Parts Discussed in Thread: TDA4VM, TDA2

Tool/software: TI C/C++ Compiler

Hi all,

        we use init-demo.sh on tda2x platform, it can start the kernel quickly without some unnecessary services, so we hope to use similar script like init-demo.sh to start the kernel on the tda4x platform.Is it any scripts fix it? Thanks a lot!

Regards,

Jason

  • Hi Jason,

    Yes, you can use the same script or a similar script even on the TDA4 platform. 

    Regards

    Karthik

  • Hi Karthik,

          Thanks for your reply, but we know the init-demo.sh must work at falcon mode, could the tda4x work at falcon mode?

    Regards,

    Jason

  • Hi Jason,

    From a user space script perspective, it shouldn't matter whether it is falcon mode or not as long as the dependencies are met at the time of execution.

    If you need additional details, please provide further information on your trials with TDA4.

    Regards

    Karthik

  • Hi Karthik,

           I use TDA4VM chip. On tda2xx, we just need to config  CONFIG_SPL_OS_BOOT=y in the file u-boot/spl/include/autoconf.mk, so the falcon mode could be enable. But I can't found the file in the folder ~/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3 ,please tell me how to enable the falcon mode in the TDA4VM.

    Regards,

    Jason

  • Hi Jason

    Currently our SDK does not support falcon boot mode on TDA4VM. Hope this answers your question.

    - Keerthy

  • Hi Keerthy,

         Thanks for you help, would it be supported in the future?For the kernel started so slowly, we need to start it quickly.

    Regards,

    Jason

  • Hi Keerthy,

           I tried to set the falcon mode like TDA2, so I added CONFIG_SYS_SPL_ARGS_ADDR=0x82f80000 and CONFIG_SPL_OS_BOOT=y to the j721e_evm_a72_defconfig file, and set the environment variables like this:

    setenv falcon_image_file Image;

    setenv falcon_args_file single-stage-boot.dtb;

    setenv boot_os 1;

    and I put the single-stage-boot.dtb and Image files in the BOOT partition, but an error is reported when running boot:

    spl: falcon_args_file not set in environment, falling back to default
    spl_load_image_fat_os: error reading image args, err--2,

    and there are falcon_args_file=single-stage-boot.dtb and falcon_image_file=Image in the environment variables, I don’t know why it can’t be found.

    Anyway, if the falcon mode wouldn't be supported on the TDA4VM in the future, how could we started the kernel as quickly as on the TDA2X?  

    Regards,

    Jason

  • Hi Jason,

    TDA4 Boot architecture different compared to TDA2:

    Refer Section: 3.1.1.2.3
    Link: http://software-dl.ti.com/processor-sdk-linux/esd/docs/latest/linux/Foundational_Components_U-Boot.html#general-information

    So first we boot with the R5 SPL which in turn get ATF(Arm Trusted Firmware) on A72 followed by OPTEE & only
    then we get to A72 SPL Followed by A72 u-boot.

    Enabling falcon mode on TDA4 will not be same as TDA2. Hence i kindly advise you to not try based on TDA2.

    I will get back on the availability of falcon mode in the future releases.

    Best Regards,
    Keerthy

  • Hi keerthy,

           Thanks very much for you help.Our project needs to be applied to falcon mode of the kernel as soon as possible, like using init-demo.sh to start apps.out on TDA2X. We hope to receive further information from you. If there is any information, please tell me through this issue, or send an email to huangjiasheng@yihang.ai to inform me about how to obtain the release package including  the availability of falcon mode. Thanks.

    Best Regards,

    Jason

  • Hi Jason,

    There is a rtos based bootloader called SBL(Secondary boot loader). There is a way to jump from SBL
    to Linux which is a sort of falcon mode: One can jump from SBL to kernel Image.

    The next release PSDKRA 7.1 will have this supported. Hope you can resolve this.

    - Keerthy