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-J721E: SBL for HLOS sd card fails in SCI client

Part Number: PROCESSOR-SDK-J721E

Hello.

Recently I have moved to SDK_08_05. The SBL created with "make sbl_mmcsd_img_hlos" creates an SBL that fails to run mulltiimage with FreeRtos image in MC1_0 and Arago in A72.

The same app was launched with a solution done in the compilation in SDK_08_04 that I was using before.

I have detected changes in the TIFS binary for every SDK version so that I also try to change it, but the issue is still happening.

Could you clarify how to solve this in 08_05 version?

Thanks

  • Hi Pablo,

    Can you please share more details?
    What app are you trying to boot? Is this a standard example available in the SDK or this is custom example?

    Also, can you please increase the log level for the SBL and share the logs?

    Regards,
    Parth

  • Hello Parh.

    App created with combined_img make option, including CAN_profile demo for MCU1_0 from MCUSW package (with minor changes for UART messages and loop iterations) and all needed to launch ARAGO in A72. 

    The situation is that the app is launched using SBL HLOS built from SDK 8.4 (UART_MCU and UART_MAIN0 show flow execution expected, but not for the one generated from 8.5 with same app. Content of SD card is always the same, only switching tiboot3.bin with SBL from SDK8.4 or SDK8.5

    Here log for SBL generated from 8.5 (compiled with LOG_LEVEL 3);

    Here is the one from 8.4 (SBL compiled with LOG_LEVEL 3):

    App in MCU is running:

    Thanks

  • Hi Pablo,

    Your apps are based on 8.5 or 8.4.
    Also, what about tifs.bin? Is it from 8.5 or 8.4 SDK?

    Regards,
    Parth

  • Hello. For the TIFS, I have tested both. Currently, TIFS in SD Card is the one provided in 8.5, and also leads sbl from 8.4 to run correctly:

    Thus, TIFS from 8.5 is ok for SBL for 8.4

    App, as I explained, is unvaried, so is the one generated when I used SDK 8.4. Should I generate new app (also compiling MCUSW project from the new SDK) from the new SDK (8.5)?

    BR

  • The problem appears during the SBL execution, prior to loading any application in MCU1_0. So why would the version of the application (SDK8.4 or SDK8.5) be relevant?

  • Hi Monica,

    From the logs it looks like the error occurred while loading the application. At the point of failure, some sections of the app have been copied into the memory. It could be some conflict due to which the SBL is crashing. Sometimes the memory mapping changes a little when moving between the versions. So it is good to try the app from the same version of the SDK.

    Regards,
    Parth

  • Hello.

    I have done your recomendation, so that, all used binaries are obtained from 8.5 sdk.

    Then, I have compiled MCUSW can profile and I did combined_image (linking IMG1 to that CANprofile) in 8.5 SDK. Tifs is also used from 8.5

    Fianlly, CAN Sciclient failure disappears in MCU1_0, but A72 is not running well. It looks like some issue is happening in uboot-SPL. I have created two different app, pointing to different uboot-SPL in config.mk for make combined_application:

    1) SPL_IMG ?= load_only,/home/fn5pva0/ti-processor-sdk-linux-j7-evm-08_05_00_08/board-support/u-boot_build/a72/spl/u-boot-spl.bin,0x80080000,0x80080000

    This binary is created after uboot is built (make u-boot)

    2) SPL_IMG ?= load_only,$(HLOS_BIN_PATH)/u-boot-spl.bin,0x80080000,0x80080000 

    For that, I renamed ti-processor-sdk-linux-j7-evm-08_05_00_08/board-support/prebuilt-images/u-boot-spl.bin-j7-evm to ti-processor-sdk-linux-j7-evm-08_05_00_08/board-support/prebuilt-images/u-boot-spl.bin (is that correct?)

    In both cases I am observing same issue (differing in date of build)

    U-Boot SPL 2021.01-g7996ed51f1 (Dec 18 2022 - 07:46:35 +0000)
    Model: Texas Instruments K3 J721E SoC
    ti_i2c_eeprom_am6_get: Ignoring record id 255
    ti_i2c_eeprom_am6_get: Ignoring record id 255
    ti_i2c_eeprom_am6_get: Ignoring record id 255
    ti_i2c_eeprom_am6_get: Ignoring record id 255
    ti_i2c_eeprom_am6_get: Ignoring record id 255
    ti_i2c_eeprom_am6_get: Ignoring record id 255
    ti_i2c_eeprom_am6_get: Ignoring record id 255
    ti_i2c_eeprom_am6_get: Ignoring record id 255
    ti_i2c_eeprom_am6_get: Ignoring record id 255
    ti_i2c_eeprom_am6_get: Ignoring record id 255
    Board: rev
    SYSFW ABI: 3.1 (firmware rev 0x0008 '8.5.2--v08.05.02 (Chill Capybar')
    ti_i2c_eeprom_am6_get: Ignoring record id 255
    ti_i2c_eeprom_am6_get: Ignoring record id 255
    ti_i2c_eeprom_am6_get: Ignoring record id 255
    ti_i2c_eeprom_am6_get: Ignoring record id 255
    ti_i2c_eeprom_am6_get: Ignoring record id 255
    ti_i2c_eeprom_am6_get: Ignoring record id 255
    ti_i2c_eeprom_am6_get: Ignoring record id 255
    ti_i2c_eeprom_am6_get: Ignoring record id 255
    ti_i2c_eeprom_am6_get: Ignoring record id 255
    ti_i2c_eeprom_am6_get: Ignoring record id 255
    ti_i2c_eeprom_am6_get: Ignoring record id 255
    ti_i2c_eeprom_am6_get: Ignoring record id 255
    ti_i2c_eeprom_am6_get: Ignoring record id 255
    ti_i2c_eeprom_am6_get: Ignoring record id 255
    ti_i2c_eeprom_am6_get: Ignoring record id 255
    ti_i2c_eeprom_am6_get: Ignoring record id 255
    ti_i2c_eeprom_am6_get: Ignoring record id 255
    ti_i2c_eeprom_am6_get: Ignoring record id 255
    ti_i2c_eeprom_am6_get: Ignoring record id 255
    ti_i2c_eeprom_am6_get: Ignoring record id 255
    Trying to boot from MMC2


    U-Boot 2021.01-dirty (Feb 24 2023 - 16:21:41 +0100)

    SoC: J721E SR1.1 GP
    Model: Texas Instruments K3 J721E SoC
    Board: rev
    DRAM: 4 GiB
    Flash:
    ERROR: Unhandled External Abort received on 0x80000000 from EL2
    ERROR: exception reason=0 syndrome=0xbf000002
    Unhandled Exception from EL2
    x0 = 0x00000000fdecc2d0
    x1 = 0x0000000000000000
    x2 = 0x0000000000000019
    x3 = 0x0000000500000000
    x4 = 0x00000000fff1227c
    x5 = 0x0000000000000000
    x6 = 0x0000000000000008
    x7 = 0x0000000000000002
    x8 = 0x00000000fdecc350
    x9 = 0x0000000000000008
    x10 = 0x0000000000000004
    x11 = 0x0000000000000002
    x12 = 0x0000000000000b38
    x13 = 0x00000000fdeaf4cc
    x14 = 0x00000000fdeaf730
    x15 = 0x0000000000000002
    x16 = 0x00000000fff2d798
    x17 = 0x0000000000000000
    x18 = 0x00000000fdec4df0
    x19 = 0x00000000fdec6740
    x20 = 0x0000000000000000
    x21 = 0x00000000fdecc2d0
    x22 = 0x00000000800bc738
    x23 = 0x00000000800b455e
    x24 = 0x00000000800b4546
    x25 = 0x00000000deadbeef
    x26 = 0x0000000000000005
    x27 = 0x0000000000000000
    x28 = 0x0000000000000000
    x29 = 0x00000000fdeaf5c0
    x30 = 0x00000000fff1b220
    scr_el3 = 0x000000000000073d
    sctlr_el3 = 0x0000000030cd183f
    cptr_el3 = 0x0000000000000000
    tcr_el3 = 0x0000000080803520
    daif = 0x00000000000002c0
    mair_el3 = 0x00000000x30 = 0x00000000fff1b220
    scr_el3 = 0x000000000000073d
    sctlr_el3 = 0x0000000030cd183f
    cptr_el3 = 0x0000000000000000
    tcr_el3 = 0x0000000080803520
    daif = 0x00000000000002c0
    mair_el3 = 0x00000000004404ff
    spsr_el3 = 0x00000000200002c9
    elr_el3 = 0x00000000fff1b284
    ttbr0_el3 = 0x0000000070011cc0
    esr_el3 = 0x00000000bf000002
    far_el3 = 0x0000000000000000
    spsr_el1 = 0x0000000000000000
    elr_el1 = 0x0000000000000000004404ff
    spsr_el3 = 0x00000000200002c9
    elr_el3 = 0x00000000fff1b284
    ttbr0_el3 = 0x0000000070011cc0
    esr_el3 = 0x00000000bf000002
    far_el3 = 0x0000000000000000
    spsr_el1 = 0x0000000000000000
    elr_el1 = 0x0000000000000000

    Thus, Kernel is not loaded, and also uboot command shell is not available.

    How can I solve this issue?

    Many thanks

  • Hi Pablo,

    Please find the changes required to run the can_profileapp alongside linux with combined boot app attached.

    can_profileApp.zip

    Regards,
    Parth

  • Issue solved partially using  HLOS_BOOT=optimized, as in debug call you recommended. CAN profile (for a while) and Arago are running.

    We would like to have Uboot and SPL, so that, using HLOS=development solution, that is not yet working.

    But Vision apps are not running because cores's images are not loaded by uboot. I guess all firmware images (R5F, DSPs, etc) should be referred in conf.mk file in order to create properly combined_image. Then SBL will be responsible to load images to correct addresses, won't be?I also guess these images would be elf. 

    Is there any documentation describing how to link all needed firmwares for vision apps in combined image?

    Another question is about DTB referred into combined_image when HLOS_BOOT = optimized, should it be also updated in rootfs/boot/k3-j721e-common-board.dtb?

    Thanks.

  • Hi Pablo,

    But Vision apps are not running because cores's images are not loaded by uboot. I guess all firmware images (R5F, DSPs, etc) should be referred in conf.mk file in order to create properly combined_image. Then SBL will be responsible to load images to correct addresses, won't be?I also guess these images would be elf

    In case of optimize, yes, you would have to point the vision_apps_binaries in config.mk file.

    Is there any documentation describing how to link all needed firmwares for vision apps in combined image

    Please refer the below attached config.mk file for reference. Please update the paths accordingly.

    /cfs-file/__key/communityserver-discussions-components-files/791/0211.config.mk

    Another question is about DTB referred into combined_image when HLOS_BOOT = optimized, should it be also updated in rootfs/boot/k3-j721e-common-board.dtb

    This need not be done, as the combined app generated should have this taken care.

    Regards,
    Nikhil

  • Hi Nikhil,

    Thank you for your help. We are going to add the images in the conf.mk today and get back to you. However, we have seen an issue when following your instructions:

    1) Having SBL HLOS in optimized mode (with the patch applied) and dts changed:

    CAN profile app and Arago runs for a while, then CAN profile app reports CAN DEM and stops. (This happens every time). Pablo can provide the logs later to that you can point us how to solve the problem.

    2) We need a way to run SBL HLOS development, as we need early CAN for our application. Could you please point us to what changes are needed?

    Many thanks in advance,

    Mònica

  • Hello Nikhil.

    Monica says that CAN DEM is happening every time, but is not. Sometimes happens, but I don't have log for that. As soon as it happens I will attach to the post. 

    Besides that, Arago most of the tries gets stuck in remote proc (not clear if is a timing occurrence or is happing because of specific operations on kernel load). We have done tries in 3 different setups, creating in each setup all binaries needed (SBL, patching, CAN profile, DTB, multi-image, etc) and we observed the same behavior in all of them. We don't have a clear statistic, but we assume that in around 90% of PowerOff-PowerON tests, A72 is stuck in remoteproc operations (before the stopping point failure "-22" is observed instead of result of "-2" in remote proc operations when is not stuck)

    (*) attached complete log for MCU and A72 in booting

    7144.remote_proc_A72_stuck.zip

    As it seemed that this failure could be caused by the absence of firmware for the rest of the cores, we modified conf.mk to generate an app with all of them integrated. Then, we assume that SBL (when HLOS_BOOT is optimized in multiimage creation) will be responsible for loading in proper allocation all binaries needed by kernel. We also assume that when SPL booting is used, loading binaries are done by Uboot (please, could you confirm if whole of this understanding is correct?)(**) 

    In this case, SBL gets stuck in loading some firmware at @0x400000. 

    (**) Attaching conf.mk with modifications

    4848.config.zip

  • Hi Pablo,

    So currently you are on SDK 8.5 right?

    Could you please refer the below config.mk file and add the same vision_apps binaries into your images? Are these binaries in vision_apps available at your end?
    I'm not sure about the files being pointed to for MCU2_0, MCU2_1 etc.
    Could you try as mentioned below?
    /cfs-file/__key/communityserver-discussions-components-files/791/4810.config.zip

    I hope you are still using Optimized. Let us bring up optimized first and ensure that everything is booting fine. Meanwhile let me look into development flow in the background.

    In order to get the contents of vision_apps overlays, you would have to integrate vision_apps into common_proc.dtsi file.
    Please refer the below patch for the same
    /cfs-file/__key/communityserver-discussions-components-files/791/2262.0001_2D00_vision_5F00_apps_2D00_Integrated.patch

    Rebuild the dtsi file after this change and generate the combined app image again.

    Please let me know what is output that you are observing after this.

    Regards,
    Nikhil

  • Hi Nikhil,
    We tried your patch and now the booting is fine. Here we have some questions, and to bring some context I will try to briefly explain the steps that we are doing (from a clean SDK v8.5).
    8272.Patches_applied.zip
    1. In the linux kernel source base path (board-support/linux-5.10.153+gitAUTOINC+90c3a58fd2-g90c3a58fd2) we apply the following patches:
        - Linux_changes.patch
        - 1616.0001_2D00_vision_5F00_apps_2D00_Integrated.patch
       The only conflict with these two paths are the bootargs line in k3-j721e-common-proc-board.dts (line 17), which we resolve as:
         `bootargs = "console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 root=/dev/mmcblk1p2 ew rootfstype=ext4 rootwait";`

    2. Apply mcusw_changes.patch in the mcusw folder of the sdk_rtos
    3. Clean SD partitions setup.
        - ./psdk_rtos/scripts/mk-linux-card.sh  /dev/mmcblk0
        - ./psdk_rtos/scripts/install_to_sd_card.sh
    4. Build the Linux Kernel DTBS (from ${SDK_LINUX})
        - make linux-dtbs

    5. Build CAN profile application (from ${PSDK_RTOS}/mcusw/build)
        - make -s can_profile_app BOARD=j721e_evm SOC=j721e BUILD_PROFILE=debug CORE=mcu1_0 BUILD_OS_TYPE=freertos
    6. Prepare combined image by modifying ${PSDK_RTOS}/pdk_jacinto_08_05_00_36/packages/ti/boot/sbl/tools/combined_appimage/config.mk
        - DTB_IMG to point to the previously compiled arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dtb
        - IMG1 to point to the previously compiled mcusw/binary/can_profile_app_freertos/bin/j721e/can_profile_app_freertos_mcu1_0_debug.xer5f

    7. Generate combined image
    8. Compile sbl_mmcsd_hlos
    make sbl_mmcsd_img_hlos BUILD_PROFILE=release BOARD=j721e_evm SOC=j721e

    9. Copy binaries to SD.
        - cp ti-processor-sdk-rtos-j721e-evm-08_05_00_11/pdk_jacinto_08_05_00_36/packages/ti/boot/sbl/binary/j721e_evm/mmcsd/bin/sbl_mmcsd_img_hlos_mcu1_0_debug.tiimage /media/$USER/BOOT/tiboot3.bin
        - cp ti-processor-sdk-rtos-j721e-evm-08_05_00_11/pdk_jacinto_08_05_00_36/packages/ti/drv/sciclient/soc/V1/tifs.bin /media/$USER/BOOT/
        - cp ti-processor-sdk-rtos-j721e-evm-08_05_00_11/pdk_jacinto_08_05_00_36/packages/ti/boot/sbl/tools/combined_appimage/bin/j721e_evm/combined.appimage /media/$USER/BOOT/app  


    Questions:
        - Could you please explain a bit the modifications done by the patch 1616.0001_2D00_vision_5F00_apps_2D00_Integrated.patch?
          We have little knowledge regarding Linux Kernel development and this platform and we want to understand more to be more independent in the future.

    After booting we tried to run vision apps (app_multicam), and we noticed some errors/we have more questions:
        - When we run the /opt/vision_apps/vision_apps_init.sh script, we see only remote messages from cores [MCU2_0, MCU2_1, C66X_1, C66X_2], but no C71 messages. Any idea?
        - When we run the multicam app, we get a segmentation fault (will attach logs in the next response).
        - Due to lack of knowledge of platform, we are not sure if we need to add the vision_apps images to the multiimage in order to be able to run multicam_app. Could you clarify this point?
        - We tested to add the vision_apps firmwares to the multiimage, but then the kernel booting got stuck for 2 minutes waiting for some initialization: `A start job is running for udev initialization (1min 55s / 2min 55s)`

  • Hi,

    Could you please explain a bit the modifications done by the patch 1616.0001_2D00_vision_5F00_apps_2D00_Integrated.patch

    This patch is basically including the contents of vision_apps.dtbo overlays (i.e., rtos_memory_map.dtsi and vision_apps.dtsi) into the common-proc.dtb.

    This is required as only the k3-j721e-common-proc-board.dtb is available/pointed by the combined app and there is no u-boot to detect any overlays such as vision_Apps.dtbo. Hence, we integrate this.

    When we run the /opt/vision_apps/vision_apps_init.sh script, we see only remote messages from cores [MCU2_0, MCU2_1, C66X_1, C66X_2], but no C71 messages. Any idea?

    Could you please confirm if you have pointed to the C7x binary in the config.mk and the same is available in the path mentioned?

    When we run the multicam app, we get a segmentation fault

    When integrating the vision_apps intergration patch, could you please confirm that the carved out memory regions for RTOS is matching with what you are using in the SDK?

    We tested to add the vision_apps firmwares to the multiimage, but then the kernel booting got stuck for 2 minutes waiting for some initialization: `A start job is running for udev initialization (1min 55s / 2min 55s)

    Could you please try adding status = "disabled"; as shown below in k3-j721e-som-p0.dtsi?

    &mcu_r5fss0_core0 {

    +    status = "disabled";
    +    memory-region = <&vision_apps_mcu_r5fss0_core0_dma_memory_region>,
    +            <&vision_apps_mcu_r5fss0_core0_memory_region>;
    +};

    Regards,
    Nikhil

  • Hi Nikhil,

    I will be replying to your questions separately:

    When we run the /opt/vision_apps/vision_apps_init.sh script, we see only remote messages from cores [MCU2_0, MCU2_1, C66X_1, C66X_2], but no C71 messages. Any idea?

    Could you please confirm if you have pointed to the C7x binary in the config.mk and the same is available in the path mentioned?

    Regarding this question, let me explain better:

    This happens when we have only the IMG1 (mcu1_0) in the config.mk, i.e:

    IMG1 ?= mcu1_0,${SDK_RTOS}/mcusw/binary/can_profile_app_freertos/bin/j721e/can_profile_app_freertos_mcu1_0_debug.xer5f
    IMG2 ?=
    IMG3 ?=
    IMG4 ?=
    IMG5 ?=
    IMG6 ?=
    IMG7 ?=
    IMG8 ?=

    In that case, we would expect not to see any remote log from any other core, since nobody should have started the firmware of them.

    But if we execute /opt/vision_apps/vision_apps_init.sh, we see the attached log:

    root@j7-evm:/lib/firmware# /opt/vision_apps/vision_apps_init.sh 
    root@j7-evm:/lib/firmware# [MCU2_0]     22.209947 s: CIO: Init ... Done !!!
    [MCU2_0]     22.210016 s: ### CPU Frequency = 1000000000 Hz
    [MCU2_0]     22.210056 s: CPU is running FreeRTOS
    [MCU2_0]     22.210082 s: APP: Init ... !!!
    [MCU2_0]     22.210105 s: SCICLIENT: Init ... !!!
    [MCU2_0]     22.213151 s: SCICLIENT: DMSC FW version [8.5.2--v08.05.02 (Chill Capybar]
    [MCU2_0]     22.213204 s: SCICLIENT: DMSC FW revision 0x8  
    [MCU2_0]     22.213240 s: SCICLIENT: DMSC FW ABI revision 3.1
    [MCU2_0]     22.213278 s: SCICLIENT: Init ... Done !!!
    [MCU2_0]     22.213306 s: UDMA: Init ... !!!
    [MCU2_0]     22.227802 s: UDMA: Init ... Done !!!
    [MCU2_0]     22.227872 s: MEM: Init ... !!!
    [MCU2_0]     22.227919 s: MEM: Created heap (DDR_LOCAL_MEM, id=0, flags=0x00000004) @ d9000000 of size 16777216 bytes !!!
    [MCU2_0]     22.227995 s: MEM: Created heap (L3_MEM, id=1, flags=0x00000000) @ 3600000 of size 262144 bytes !!!
    [MCU2_0]     22.228059 s: MEM: Init ... Done !!!
    [MCU2_0]     22.228084 s: IPC: Init ... !!!
    [MCU2_0]     22.228147 s: IPC: 6 CPUs participating in IPC !!!
    [MCU2_0]     22.228199 s: IPC: Waiting for HLOS to be ready ... !!!
    [MCU2_0]     22.228237 s: IPC: HLOS is ready !!!
    [MCU2_0]     22.250941 s: IPC: Init ... Done !!!
    [MCU2_0]     22.251004 s: APP: Syncing with 5 CPUs ... !!!
    [MCU2_1]     22.187537 s: CIO: Init ... Done !!!
    [MCU2_1]     22.187612 s: ### CPU Frequency = 1000000000 Hz
    [MCU2_1]     22.187656 s: CPU is running FreeRTOS
    [MCU2_1]     22.187684 s: APP: Init ... !!!
    [MCU2_1]     22.187708 s: SCICLIENT: Init ... !!!
    [MCU2_1]     22.189639 s: SCICLIENT: DMSC FW version [8.5.2--v08.05.02 (Chill Capybar]
    [MCU2_1]     22.189695 s: SCICLIENT: DMSC FW revision 0x8  
    [MCU2_1]     22.189730 s: SCICLIENT: DMSC FW ABI revision 3.1
    [MCU2_1]     22.189766 s: SCICLIENT: Init ... Done !!!
    [MCU2_1]     22.189793 s: UDMA: Init ... !!!
    [MCU2_1]     22.204592 s: UDMA: Init ... Done !!!
    [MCU2_1]     22.204661 s: MEM: Init ... !!!
    [MCU2_1]     22.204705 s: MEM: Created heap (DDR_LOCAL_MEM, id=0, flags=0x00000004) @ da000000 of size 16777216 bytes !!!
    [MCU2_1]     22.204780 s: MEM: Created heap (L3_MEM, id=1, flags=0x00000001) @ 3640000 of size 262144 bytes !!!
    [MCU2_1]     22.204843 s: MEM: Init ... Done !!!
    [MCU2_1]     22.204871 s: IPC: Init ... !!!
    [MCU2_1]     22.204937 s: IPC: 6 CPUs participating in IPC !!!
    [MCU2_1]     22.204991 s: IPC: Waiting for HLOS to be ready ... !!!
    [MCU2_1]     22.205030 s: IPC: HLOS is ready !!!
    [MCU2_1]     22.227845 s: IPC: Init ... Done !!!
    [MCU2_1]     22.227913 s: APP: Syncing with 5 CPUs ... !!!
    [C6x_1 ]     21.365798 s: CIO: Init ... Done !!!
    [C6x_1 ]     21.365824 s: ### CPU Frequency = 1350000000 Hz
    [C6x_1 ]     21.365835 s: CPU is running FreeRTOS
    [C6x_1 ]     21.365843 s: APP: Init ... !!!
    [C6x_1 ]     21.365851 s: SCICLIENT: Init ... !!!
    [C6x_1 ]     21.367617 s: SCICLIENT: DMSC FW version [8.5.2--v08.05.02 (Chill Capybar]
    [C6x_1 ]     21.367631 s: SCICLIENT: DMSC FW revision 0x8  
    [C6x_1 ]     21.367640 s: SCICLIENT: DMSC FW ABI revision 3.1
    [C6x_1 ]     21.367650 s: SCICLIENT: Init ... Done !!!
    [C6x_1 ]     21.367660 s: UDMA: Init ... !!!
    [C6x_1 ]     21.383486 s: UDMA: Init ... Done !!!
    [C6x_1 ]     21.383506 s: MEM: Init ... !!!
    [C6x_1 ]     21.383520 s: MEM: Created heap (DDR_LOCAL_MEM, id=0, flags=0x00000004) @ dc000000 of size 16777216 bytes !!!
    [C6x_1 ]     21.383537 s: MEM: Created heap (L2_MEM, id=2, flags=0x00000001) @ 800000 of size 229376 bytes !!!
    [C6x_1 ]     21.383553 s: MEM: Created heap (DDR_SCRATCH_MEM, id=4, flags=0x00000001) @ dd000000 of size 50331648 bytes !!!
    [C6x_1 ]     21.383569 s: MEM: Init ... Done !!!
    [C6x_1 ]     21.383577 s: IPC: Init ... !!!
    [C6x_1 ]     21.383597 s: IPC: 6 CPUs participating in IPC !!!
    [C6x_1 ]     21.383612 s: IPC: Waiting for HLOS to be ready ... !!!
    [C6x_1 ]     21.383624 s: IPC: HLOS is ready !!!
    [C6x_1 ]     21.403674 s: IPC: Init ... Done !!!
    [C6x_1 ]     21.403702 s: APP: Syncing with 5 CPUs ... !!!
    [C6x_2 ]     21.426534 s: CIO: Init ... Done !!!
    [C6x_2 ]     21.426560 s: ### CPU Frequency = 1350000000 Hz
    [C6x_2 ]     21.426571 s: CPU is running FreeRTOS
    [C6x_2 ]     21.426579 s: APP: Init ... !!!
    [C6x_2 ]     21.426587 s: SCICLIENT: Init ... !!!
    [C6x_2 ]     21.428570 s: SCICLIENT: DMSC FW version [8.5.2--v08.05.02 (Chill Capybar]
    [C6x_2 ]     21.428586 s: SCICLIENT: DMSC FW revision 0x8  
    [C6x_2 ]     21.428595 s: SCICLIENT: DMSC FW ABI revision 3.1
    [C6x_2 ]     21.428605 s: SCICLIENT: Init ... Done !!!
    [C6x_2 ]     21.428614 s: UDMA: Init ... !!!
    [C6x_2 ]     21.443901 s: UDMA: Init ... Done !!!
    [C6x_2 ]     21.443922 s: MEM: Init ... !!!
    [C6x_2 ]     21.443936 s: MEM: Created heap (DDR_LOCAL_MEM, id=0, flags=0x00000004) @ e0000000 of size 16777216 bytes !!!
    [C6x_2 ]     21.443953 s: MEM: Created heap (L2_MEM, id=2, flags=0x00000001) @ 800000 of size 229376 bytes !!!
    [C6x_2 ]     21.443968 s: MEM: Created heap (DDR_SCRATCH_MEM, id=4, flags=0x00000001) @ e1000000 of size 50331648 bytes !!!
    [C6x_2 ]     21.443985 s: MEM: Init ... Done !!!
    [C6x_2 ]     21.443993 s: IPC: Init ... !!!
    [C6x_2 ]     21.444013 s: IPC: 6 CPUs participating in IPC !!!
    [C6x_2 ]     21.444028 s: IPC: Waiting for HLOS to be ready ... !!!
    [C6x_2 ]     21.444041 s: IPC: HLOS is ready !!!
    [C6x_2 ]     21.464308 s: IPC: Init ... Done !!!
    [C6x_2 ]     21.464334 s: APP: Syncing with 5 CPUs ... !!!
    

    We have two main concerns:

      1. Why are we seeing remote logs from other cores if the multiimage does not contain any of the firmware for those cores?

      2. If seeing those logs is the expected behavior, then why we don't see any log for the C7 core?

    When we run the multicam app, we get a segmentation fault

    When integrating the vision_apps intergration patch, could you please confirm that the carved out memory regions for RTOS is matching with what you are using in the SDK?

    Sorry for our lack of knowledge, but we would appreciate if you could point us out where to check this.

    We will reply to the other topics later.

    Thanks in advance

  • Hi,

    I am suspecting that the Linux might be loading the remote cores here but the firmware for C7x might not be linked in rootfs/lib/firmware.

    In order to confirm this, could you please share the full linux boot logs too along with vision_apps_init.sh script logs?

    Also, could you please check if the c7x firmware in rootfs/lib/firmware is pointing to the vision_apps c7x.out file?

    To do this, could you go to rootfs/lib/firmware and do "ls -l". Please send me a screenshot of this too.

    Regards,
    Nikhil

  • Hi Nikhil,

    NOTICE:  BL31: Built : 07:46:16, Dec 18 2022
    ERROR:   GTC_CNTFID0 is 0! Assuming 200000000 Hz. Fix Bootloader
    I/TC: 
    I/TC: OP-TEE version: 3.19.0 (gcc version 9.2.1 20191025 (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10))) #1 Sun Dec 18 07:46:21 UTC 2022 aarch64
    I/TC: WARNING: This OP-TEE configuration might be insecure!
    I/TC: WARNING: Please check https://optee.readthedocs.io/en/latest/architecture/porting_guidelines.html
    I/TC: Primary CPU initializing
    I/TC: SYSFW ABI: 3.1 (firmware rev 0x0008 '8.5.2--v08.05.02 (Chill Capybar')
    I/TC: HUK Initialized
    I/TC: Activated SA2UL device
    I/TC: Fixing SA2UL firewall owner for GP device
    I/TC: Enabled firewalls for SA2UL TRNG device
    I/TC: SA2UL TRNG initialized
    I/TC: SA2UL Drivers initialized
    I/TC: Primary CPU switching to normal world boot
    [    0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd080]
    [    0.000000] Linux version 5.10.153-g90c3a58fd2 (f59arv0@ficosa.com@F59ARV0LIN) (aarch64-none-linux-gnu-gcc (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 9.2.1 20191025, GNU ld (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 2.33.1.20191209) #2 SMP PREEMPT Wed Mar 15 12:26:35 CET 2023
    [    0.000000] Machine model: Texas Instruments K3 J721E SoC
    [    0.000000] earlycon: ns16550a0 at MMIO32 0x0000000002800000 (options '')
    [    0.000000] printk: bootconsole [ns16550a0] enabled
    [    0.000000] efi: UEFI not found.
    [    0.000000] [Firmware Bug]: Kernel image misaligned at boot, please fix your bootloader!
    [    0.000000] OF: reserved mem: OVERLAP DETECTED!
    [    0.000000] vision-apps-c71-memory@aa100000 (0x00000000aa100000--0x00000000af000000) overlaps with r5f-virtual-eth-queues@ac000000 (0x00000000ac000000--0x00000000ac200000)
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a0000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-r5f-dma-memory@a0000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a0100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node vision_apps-r5f-memory@a0100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a1000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-r5f-dma-memory@a1000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a1100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-r5f-memory@a1100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a2000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-r5f-dma-memory@a2000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a2100000, size 31 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-r5f-memory@a2100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a4000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-r5f-dma-memory@a4000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a4100000, size 31 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-r5f-memory@a4100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a6000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-r5f-dma-memory@a6000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a6100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-r5f-memory@a6100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a7000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-r5f-dma-memory@a7000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a7100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-r5f-memory@a7100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a8000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-c66-dma-memory@a8000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a8100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-c66-memory@a8100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a9000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-c66-dma-memory@a9000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a9100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-c66-memory@a9100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000aa000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-c71-dma-memory@aa000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000aa100000, size 79 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-c71-memory@aa100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000ac000000, size 2 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-virtual-eth-queues@ac000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000ac200000, size 30 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-virtual-eth-buffers@ac200000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000b2000000, size 96 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-dma-memory@b2000000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: initialized node vision_apps_shared-memories, compatible id dma-heap-carveout
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000d8000000, size 576 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-core-heap-memory-lo@d8000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x0000000880000000, size 1024 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-core-heap-memory-hi@880000000, compatible id shared-dma-pool
    [    0.000000] Zone ranges:
    [    0.000000]   DMA      [mem 0x0000000080000000-0x00000000ffffffff]
    [    0.000000]   DMA32    empty
    [    0.000000]   Normal   [mem 0x0000000100000000-0x00000008ffffffff]
    [    0.000000] Movable zone start for each node
    [    0.000000] Early memory node ranges
    [    0.000000]   node   0: [mem 0x0000000080000000-0x000000009e7fffff]
    [    0.000000]   node   0: [mem 0x000000009e800000-0x00000000aeffffff]
    [    0.000000]   node   0: [mem 0x00000000af000000-0x00000000afffffff]
    [    0.000000]   node   0: [mem 0x00000000b0000000-0x00000000b7ffffff]
    [    0.000000]   node   0: [mem 0x00000000b8000000-0x00000000d7ffffff]
    [    0.000000]   node   0: [mem 0x00000000d8000000-0x00000000fbffffff]
    [    0.000000]   node   0: [mem 0x00000000fc000000-0x00000000ffffffff]
    [    0.000000]   node   0: [mem 0x0000000880000000-0x00000008bfffffff]
    [    0.000000]   node   0: [mem 0x00000008c0000000-0x00000008ffffffff]
    [    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000008ffffffff]
    [    0.000000] cma: Reserved 400 MiB at 0x0000000085800000
    [    0.000000] psci: probing for conduit method from DT.
    [    0.000000] psci: PSCIv1.1 detected in firmware.
    [    0.000000] psci: Using standard PSCI v0.2 function IDs
    [    0.000000] psci: Trusted OS migration not required
    [    0.000000] psci: SMC Calling Convention v1.2
    [    0.000000] percpu: Embedded 22 pages/cpu s50008 r8192 d31912 u90112
    [    0.000000] Detected PIPT I-cache on CPU0
    [    0.000000] CPU features: detected: GIC system register CPU interface
    [    0.000000] CPU features: detected: EL2 vector hardening
    [    0.000000] CPU features: kernel page table isolation forced ON by KASLR
    [    0.000000] CPU features: detected: Kernel page table isolation (KPTI)
    [    0.000000] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
    [    0.000000] CPU features: detected: Spectre-BHB
    [    0.000000] CPU features: detected: ARM erratum 1742098
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1032192
    [    0.000000] Kernel command line: console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 root=/dev/mmcblk1p2 rw rootfstype=ext4 rootwait
    [    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
    [    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
    [    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
    [    0.000000] software IO TLB: Cannot allocate buffer
    [    0.000000] Memory: 1125232K/4194304K available (10880K kernel code, 1148K rwdata, 4212K rodata, 1792K init, 432K bss, 2659472K reserved, 409600K cma-reserved)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
    [    0.000000] rcu: Preemptible hierarchical RCU implementation.
    [    0.000000] rcu: 	RCU event tracing is enabled.
    [    0.000000] rcu: 	RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=2.
    [    0.000000] 	Trampoline variant of Tasks RCU enabled.
    [    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
    [    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
    [    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
    [    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
    [    0.000000] GICv3: 960 SPIs implemented
    [    0.000000] GICv3: 0 Extended SPIs implemented
    [    0.000000] GICv3: Distributor has no Range Selector support
    [    0.000000] GICv3: 16 PPIs implemented
    [    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000001900000
    [    0.000000] ITS [mem 0x01820000-0x0182ffff]
    [    0.000000] GIC: enabling workaround for ITS: Socionext Synquacer pre-ITS
    [    0.000000] ITS@0x0000000001820000: Devices Table too large, reduce ids 20->19
    [    0.000000] ITS@0x0000000001820000: allocated 524288 Devices @8c0800000 (flat, esz 8, psz 64K, shr 0)
    [    0.000000] ITS: using cache flushing for cmd queue
    [    0.000000] GICv3: using LPI property table @0x00000008c0030000
    [    0.000000] GIC: using cache flushing for LPI property table
    [    0.000000] GICv3: CPU0: using allocated LPI pending table @0x00000008c0040000
    [    0.000000] arch_timer: cp15 timer(s) running at 200.00MHz (phys).
    [    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2e2049d3e8, max_idle_ns: 440795210634 ns
    [    0.000002] sched_clock: 56 bits at 200MHz, resolution 5ns, wraps every 4398046511102ns
    [    0.008415] Console: colour dummy device 80x25
    [    0.012980] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=800000)
    [    0.023651] pid_max: default: 32768 minimum: 301
    [    0.028407] LSM: Security Framework initializing
    [    0.033163] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
    [    0.040741] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
    [    0.049542] rcu: Hierarchical SRCU implementation.
    [    0.054597] Platform MSI: msi-controller@1820000 domain created
    [    0.060854] PCI/MSI: /bus@100000/interrupt-controller@1800000/msi-controller@1820000 domain created
    [    0.070163] EFI services will not be available.
    [    0.074900] smp: Bringing up secondary CPUs ...
    ERROR:   GTC_CNTFID0 is 0! Assuming 200000000 Hz. Fix Bootloader
    I/TC: Secondary CPU 1 initializing
    I/TC: Secondary CPU 1 switching to normal world boot
    [    0.094966] Detected PIPT I-cache on CPU1
    [    0.094992] GICv3: CPU1: found redistributor 1 region 0:0x0000000001920000
    [    0.095003] GICv3: CPU1: using allocated LPI pending table @0x00000008c0050000
    [    0.095038] CPU1: Booted secondary processor 0x0000000001 [0x411fd080]
    [    0.095089] smp: Brought up 1 node, 2 CPUs
    [    0.124435] SMP: Total of 2 processors activated.
    [    0.129241] CPU features: detected: 32-bit EL0 Support
    [    0.134495] CPU features: detected: CRC32 instructions
    [    0.148494] CPU: All CPU(s) started at EL2
    [    0.152691] alternatives: patching kernel code
    [    0.157776] devtmpfs: initialized
    [    0.167120] KASLR disabled due to lack of seed
    [    0.171768] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
    [    0.181732] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
    [    0.194975] pinctrl core: initialized pinctrl subsystem
    [    0.200642] DMI not present or invalid.
    [    0.204898] NET: Registered protocol family 16
    [    0.210134] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
    [    0.217408] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
    [    0.225402] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
    [    0.233701] thermal_sys: Registered thermal governor 'step_wise'
    [    0.233704] thermal_sys: Registered thermal governor 'power_allocator'
    [    0.240284] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
    [    0.253919] ASID allocator initialised with 32768 entries
    [    0.276578] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
    [    0.283433] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
    [    0.290282] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
    [    0.297129] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
    [    0.304595] cryptd: max_cpu_qlen set to 1000
    [    0.310665] k3-chipinfo 43000014.chipid: Family:J721E rev:SR2.0 JTAGID[0x1bb6402f] Detected
    [    0.319487] vsys_3v3: supplied by evm_12v0
    [    0.323852] vsys_5v0: supplied by evm_12v0
    [    0.328584] iommu: Default domain type: Translated 
    [    0.333751] SCSI subsystem initialized
    [    0.337876] mc: Linux media interface: v0.10
    [    0.342253] videodev: Linux video capture interface: v2.00
    [    0.347888] pps_core: LinuxPPS API ver. 1 registered
    [    0.352959] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.362296] PTP clock support registered
    [    0.366319] EDAC MC: Ver: 3.0.0
    [    0.370114] FPGA manager framework
    [    0.373627] Advanced Linux Sound Architecture Driver Initialized.
    [    0.380230] clocksource: Switched to clocksource arch_sys_counter
    [    0.386557] VFS: Disk quotas dquot_6.6.0
    [    0.390587] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
    [    0.400242] Carveout Heap: Exported 512 MiB at 0x00000000b8000000
    [    0.406531] NET: Registered protocol family 2
    [    0.411275] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
    [    0.419862] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
    [    0.428622] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
    [    0.436824] TCP bind hash table entries: 32768 (order: 7, 524288 bytes, linear)
    [    0.444637] TCP: Hash tables configured (established 32768 bind 32768)
    [    0.451437] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
    [    0.458330] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
    [    0.465734] NET: Registered protocol family 1
    [    0.470450] RPC: Registered named UNIX socket transport module.
    [    0.476506] RPC: Registered udp transport module.
    [    0.481321] RPC: Registered tcp transport module.
    [    0.486125] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.492709] PCI: CLS 0 bytes, default 64
    [    0.497091] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available
    [    0.507557] Initialise system trusted keyrings
    [    0.512194] workingset: timestamp_bits=46 max_order=19 bucket_order=0
    [    0.520427] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.526634] NFS: Registering the id_resolver key type
    [    0.531827] Key type id_resolver registered
    [    0.536101] Key type id_legacy registered
    [    0.540233] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
    [    0.547083] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
    [    0.554727] 9p: Installing v9fs 9p2000 file system support
    [    0.579731] Key type asymmetric registered
    [    0.583918] Asymmetric key parser 'x509' registered
    [    0.588917] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243)
    [    0.596476] io scheduler mq-deadline registered
    [    0.601101] io scheduler kyber registered
    [    0.606757] pinctrl-single 4301c000.pinctrl: 94 pins, size 376
    [    0.612946] pinctrl-single 11c000.pinctrl: 173 pins, size 692
    [    0.621700] k3-ringacc 2b800000.ringacc: Failed to get MSI domain
    [    0.627973] k3-ringacc 3c000000.ringacc: Failed to get MSI domain
    [    0.634318] ti-pat 31010000.pat: Found PAT Rev 1.0 with 16384 pages
    [    0.640734] debugfs: Directory '31010000.pat' with parent 'regmap' already present!
    [    0.648712] ti-pat 31011000.pat: Found PAT Rev 1.0 with 16384 pages
    [    0.655128] debugfs: Directory '31011000.pat' with parent 'regmap' already present!
    [    0.663074] ti-pat 31012000.pat: Found PAT Rev 1.0 with 16384 pages
    [    0.669494] debugfs: Directory '31012000.pat' with parent 'regmap' already present!
    [    0.677427] ti-pat 31013000.pat: Found PAT Rev 1.0 with 2048 pages
    [    0.683757] debugfs: Directory '31013000.pat' with parent 'regmap' already present!
    [    0.691704] ti-pat 31014000.pat: Found PAT Rev 1.0 with 2048 pages
    [    0.698029] debugfs: Directory '31014000.pat' with parent 'regmap' already present!
    [    0.707708] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
    [    0.715890] arm-smmu-v3 36600000.iommu: ias 48-bit, oas 48-bit (features 0x00001faf)
    [    0.724058] arm-smmu-v3 36600000.iommu: allocated 65536 entries for cmdq
    [    0.731238] arm-smmu-v3 36600000.iommu: allocated 32768 entries for evtq
    [    0.739941] arm-smmu-v3 36600000.iommu: msi_domain absent - falling back to wired irqs
    [    0.752989] brd: module loaded
    [    0.759540] loop: module loaded
    [    0.763271] megasas: 07.714.04.00-rc1
    [    0.769045] tun: Universal TUN/TAP device driver, 1.6
    [    0.774488] igbvf: Intel(R) Gigabit Virtual Function Network Driver
    [    0.780899] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
    [    0.786976] sky2: driver version 1.30
    [    0.791287] VFIO - User Level meta-driver version: 0.3
    [    0.797051] i2c /dev entries driver
    [    0.801484] sdhci: Secure Digital Host Controller Interface driver
    [    0.807806] sdhci: Copyright(c) Pierre Ossman
    [    0.812462] sdhci-pltfm: SDHCI platform and OF driver helper
    [    0.818841] ledtrig-cpu: registered to indicate activity on CPUs
    [    0.825176] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
    [    0.832561] optee: probing for conduit method.
    [    0.837115] optee: revision 3.19 (afacf356)
    [    0.837250] optee: dynamic shared memory is enabled
    [    0.846721] optee: initialized driver
    [    0.851844] NET: Registered protocol family 17
    [    0.856464] 9pnet: Installing 9P2000 support
    [    0.860866] Key type dns_resolver registered
    [    0.865316] Loading compiled-in X.509 certificates
    [    0.875623] k3-ringacc 2b800000.ringacc: Failed to get MSI domain
    [    0.881980] k3-ringacc 3c000000.ringacc: Failed to get MSI domain
    [    0.892546] ti-sci 44083000.dmsc: ABI: 3.1 (firmware rev 0x0008 '8.5.2--v08.05.02 (Chill Capybar')
    [    1.248750] davinci-mcasp 2ba0000.mcasp: IRQ common not found
    [    1.260016] omap_i2c 40b00000.i2c: bus 0 rev0.12 at 100 kHz
    [    1.267133] omap_i2c 40b10000.i2c: bus 1 rev0.12 at 100 kHz
    [    1.274022] omap_i2c 42120000.i2c: bus 2 rev0.12 at 100 kHz
    [    1.281364] pca953x 3-0020: supply vcc not found, using dummy regulator
    [    1.288196] pca953x 3-0020: using no AI
    [    1.312998] pca953x 3-0022: supply vcc not found, using dummy regulator
    [    1.319798] pca953x 3-0022: using AI
    [    1.324072] gpio-480 (CTRL_PM_I2C_OE): hogged as output/high
    [    1.330050] gpio-481 (MCASP/TRACE_MUX_S0): hogged as output/low
    [    1.336292] gpio-482 (MCASP/TRACE_MUX_S1): hogged as output/high
    [    1.342786] omap_i2c 2000000.i2c: bus 3 rev0.12 at 400 kHz
    [    1.351908] omap_i2c 2020000.i2c: bus 4 rev0.12 at 400 kHz
    [    1.359019] pca953x 5-0020: supply vcc not found, using dummy regulator
    [    1.365843] pca953x 5-0020: using no AI
    [    1.392816] omap_i2c 2030000.i2c: bus 5 rev0.12 at 400 kHz
    [    1.399831] omap_i2c 2040000.i2c: bus 6 rev0.12 at 100 kHz
    [    1.406550] omap_i2c 2050000.i2c: bus 7 rev0.12 at 100 kHz
    [    1.413819] ti-sci-intr bus@100000:bus@28380000:interrupt-controller2: Interrupt Router 137 domain created
    [    1.424936] ti-sci-intr bus@100000:interrupt-controller0: Interrupt Router 131 domain created
    [    1.434653] ti-sci-intr bus@100000:main-navss:interrupt-controller1: Interrupt Router 213 domain created
    [    1.445945] ti-sci-inta 33d00000.interrupt-controller: Interrupt Aggregator domain 209 created
    [    1.487021] j721e-pcie 2900000.pcie: host bridge /bus@100000/pcie@2900000 ranges:
    [    1.494720] j721e-pcie 2900000.pcie:       IO 0x0010001000..0x0010010fff -> 0x0010001000
    [    1.502998] j721e-pcie 2900000.pcie:      MEM 0x0010011000..0x0017ffffff -> 0x0010011000
    [    1.511274] j721e-pcie 2900000.pcie:   IB MEM 0x0000000000..0xffffffffffff -> 0x0000000000
    [    2.530636] j721e-pcie 2900000.pcie: PCI host bridge to bus 0000:00
    [    2.537054] pci_bus 0000:00: root bus resource [bus 00-ff]
    [    2.542660] pci_bus 0000:00: root bus resource [io  0x0000-0xffff] (bus address [0x10001000-0x10010fff])
    [    2.552352] pci_bus 0000:00: root bus resource [mem 0x10011000-0x17ffffff]
    [    2.559406] pci 0000:00:00.0: [104c:b00d] type 00 class 0x060400
    [    2.565544] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x4 may corrupt adjacent RW1C bits
    [    2.575414] pci 0000:00:00.0: ignoring class 0x060400 (doesn't match header type 00)
    [    2.583390] pci 0000:00:00.0: supports D1
    [    2.587484] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
    [    2.593371] pci 0000:00:00.0: reg 0x224: [mem 0x00000000-0x003fffff 64bit]
    [    2.600400] pci 0000:00:00.0: VF(n) BAR0 space: [mem 0x00000000-0x00ffffff 64bit] (contains BAR0 for 4 VFs)
    [    2.610398] pci 0000:00:00.0: 4.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x2 link at 0000:00:00.0 (capable of 31.506 Gb/s with 16.0 GT/s PCIe x2 link)
    [    2.629823] k3-ringacc 2b800000.ringacc: Ring Accelerator probed rings:286, gp-rings[96,20] sci-dev-id:235
    [    2.639722] k3-ringacc 2b800000.ringacc: dma-ring-reset-quirk: disabled
    [    2.646481] k3-ringacc 2b800000.ringacc: RA Proxy rev. 66346100, num_proxies:64
    [    2.656556] k3-ringacc 3c000000.ringacc: Ring Accelerator probed rings:1024, gp-rings[440,150] sci-dev-id:211
    [    2.666702] k3-ringacc 3c000000.ringacc: dma-ring-reset-quirk: disabled
    [    2.673463] k3-ringacc 3c000000.ringacc: RA Proxy rev. 66346100, num_proxies:64
    [    2.682113] printk: console [ttyS2] disabled
    [    2.686509] 2800000.serial: ttyS2 at MMIO 0x2800000 (irq = 26, base_baud = 3000000) is a 8250
    [    2.695251] printk: console [ttyS2] enabled
    [    2.695251] printk: console [ttyS2] enabled
    [    2.703688] printk: bootconsole [ns16550a0] disabled
    [    2.703688] printk: bootconsole [ns16550a0] disabled
    [    2.715230] 2810000.serial: ttyS3 at MMIO 0x2810000 (irq = 27, base_baud = 3000000) is a 8250
    [    2.724724] 2840000.serial: ttyS6 at MMIO 0x2840000 (irq = 28, base_baud = 3000000) is a 8250
    [    2.735943] cdns-ufshcd 4e84000.ufs: ufshcd_populate_vreg: Unable to find vdd-hba-supply regulator, assuming enabled
    [    2.746454] cdns-ufshcd 4e84000.ufs: ufshcd_populate_vreg: Unable to find vcc-supply regulator, assuming enabled
    [    2.756608] cdns-ufshcd 4e84000.ufs: ufshcd_populate_vreg: Unable to find vccq-supply regulator, assuming enabled
    [    2.766850] cdns-ufshcd 4e84000.ufs: ufshcd_populate_vreg: Unable to find vccq2-supply regulator, assuming enabled
    [    2.780741] scsi host0: ufshcd
    [    2.802541] cdns-ufshcd 4e84000.ufs: ufshcd_print_pwr_info:[RX, TX]: gear=[1, 1], lane[1, 1], pwr[SLOWAUTO_MODE, SLOWAUTO_MODE], rate = 0
    [    2.808937] davinci_mdio 46000f00.mdio: Configuring MDIO in manual mode
    [    2.844243] cdns-ufshcd 4e84000.ufs: ufshcd_print_pwr_info:[RX, TX]: gear=[3, 3], lane[2, 2], pwr[FAST MODE, FAST MODE], rate = 2
    [    2.855894] cdns-ufshcd 4e84000.ufs: ufshcd_find_max_sup_active_icc_level: Regulator capability was not set, actvIccLevel=0
    [    2.860232] davinci_mdio 46000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
    [    2.874785] scsi 0:0:0:49488: Well-known LUN    TOSHIBA  THGAF8G8T23BAILB 0300 PQ: 0 ANSI: 6
    [    2.875595] davinci_mdio 46000f00.mdio: phy[0]: device 46000f00.mdio:00, driver TI DP83867
    [    2.891567] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA00101, cpsw version 0x6BA80100 Ports: 2 quirks:00000000
    [    2.904367] scsi 0:0:0:49476: Well-known LUN    TOSHIBA  THGAF8G8T23BAILB 0300 PQ: 0 ANSI: 6
    [    2.904442] am65-cpsw-nuss 46000000.ethernet: initialized cpsw ale version 1.4
    [    2.920009] am65-cpsw-nuss 46000000.ethernet: ALE Table size 64
    [    2.926212] cdns-ufshcd 4e84000.ufs: ufshcd_scsi_add_wlus: BOOT WLUN not found
    [    2.927845] am65-cpsw-nuss 46000000.ethernet: CPTS ver 0x4e8a010a, freq:500000000, add_val:1 pps:0
    [    2.946687] am65-cpts 310d0000.cpts: CPTS ver 0x4e8a010a, freq:200000000, add_val:4 pps:0
    [    3.059501] davinci-mcasp 2ba0000.mcasp: IRQ common not found
    [    3.068926] mmc0: CQHCI version 5.10
    [    3.094496] vdd_mmc1: supplied by vsys_3v3
    [    3.101670] omap-mailbox 31f80000.mailbox: omap mailbox rev 0x66fc7100
    [    3.111026] omap-mailbox 31f81000.mailbox: omap mailbox rev 0x66fc7100
    [    3.113370] mmc0: SDHCI controller on 4f80000.mmc [4f80000.mmc] using ADMA 64-bit
    [    3.120178] omap-mailbox 31f82000.mailbox: omap mailbox rev 0x66fc7100
    [    3.134392] omap-mailbox 31f83000.mailbox: omap mailbox rev 0x66fc7100
    [    3.143518] omap-mailbox 31f84000.mailbox: omap mailbox rev 0x66fc7100
    [    3.160272] ti-udma 285c0000.dma-controller: Channels: 26 (tchan: 13, rchan: 13, gp-rflow: 8)
    [    3.174735] ti-udma 31150000.dma-controller: Channels: 122 (tchan: 61, rchan: 61, gp-rflow: 16)
    [    3.198067] spi-nor spi7.0: mt35xu512aba (65536 Kbytes)
    [    3.203320] 8 fixed-partitions partitions found on MTD device 47040000.spi.0
    [    3.210353] Creating 8 MTD partitions on "47040000.spi.0":
    [    3.215824] 0x000000000000-0x000000080000 : "ospi.tiboot3"
    [    3.221854] 0x000000080000-0x000000280000 : "ospi.tispl"
    [    3.227587] 0x000000280000-0x000000680000 : "ospi.u-boot"
    [    3.233400] 0x000000680000-0x0000006a0000 : "ospi.env"
    [    3.238934] 0x0000006a0000-0x0000006c0000 : "ospi.env.backup"
    [    3.245127] 0x0000006c0000-0x0000007c0000 : "ospi.sysfw"
    [    3.250840] 0x000000800000-0x000003fc0000 : "ospi.rootfs"
    [    3.256640] 0x000003fe0000-0x000004000000 : "ospi.phypattern"
    [    3.270498] mmc0: Command Queue Engine enabled
    [    3.272675] spi-nor spi8.0: mt25qu512a (65536 Kbytes)
    [    3.274949] mmc0: new HS200 MMC card at address 0001
    [    3.282375] davinci-mcasp 2ba0000.mcasp: IRQ common not found
    [    3.285233] mmcblk0: mmc0:0001 S0J56X 14.8 GiB 
    [    3.295310] mmcblk0boot0: mmc0:0001 S0J56X partition 1 31.5 MiB
    [    3.301342] mmcblk0boot1: mmc0:0001 S0J56X partition 2 31.5 MiB
    [    3.307342] mmcblk0rpmb: mmc0:0001 S0J56X partition 3 4.00 MiB, chardev (237:0)
    [    3.318746] debugfs: Directory 'pd:27' with parent 'pm_genpd' already present!
    [    3.321308] mmc1: CQHCI version 5.10
    [    3.326051] debugfs: Directory 'pd:26' with parent 'pm_genpd' already present!
    [    3.337941] debugfs: Directory 'pd:242' with parent 'pm_genpd' already present!
    [    3.345268] debugfs: Directory 'pd:241' with parent 'pm_genpd' already present!
    [    3.352585] debugfs: Directory 'pd:240' with parent 'pm_genpd' already present!
    [    3.359896] debugfs: Directory 'pd:239' with parent 'pm_genpd' already present!
    [    3.368271] input: gpio-keys as /devices/platform/gpio-keys/input/input0
    [    3.525159] ALSA device list:
    [    3.528118]   No soundcards found.
    [    4.388809] mmc1: SDHCI controller on 4fb0000.mmc [4fb0000.mmc] using ADMA 64-bit
    [    4.396976] Waiting for root device /dev/mmcblk1p2...
    [    4.454014] mmc1: new ultra high speed DDR50 SDHC card at address aaaa
    [    4.460884] mmcblk1: mmc1:aaaa SC16G 14.8 GiB 
    [    4.469495]  mmcblk1: p1 p2
    [    4.515002] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
    [    4.523117] VFS: Mounted root (ext4 filesystem) on device 179:98.
    [    4.533298] devtmpfs: mounted
    [    4.537136] Freeing unused kernel memory: 1792K
    [    4.541763] Run /sbin/init as init process
    [    4.741021] systemd[1]: System time before build time, advancing clock.
    [    4.790147] NET: Registered protocol family 10
    [    4.795091] Segment Routing with IPv6
    [    4.823426] systemd[1]: systemd 244.5+ running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR -SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN2 -IDN -PCRE2 default-hierarchy=hybrid)
    [    4.845162] systemd[1]: Detected architecture arm64.
    
    Welcome to Arago 2021.09!
    
    [    4.890779] systemd[1]: Set hostname to <j7-evm>.
    [    5.078910] systemd[1]: /lib/systemd/system/docker.socket:6: ListenStream= references a path below legacy directory /var/run/, updating /var/run/docker.sock → /run/docker.sock; please update the unit file accordingly.
    [    5.147909] random: systemd: uninitialized urandom read (16 bytes read)
    [    5.154667] systemd[1]: system-getty.slice: unit configures an IP firewall, but the local system does not support BPF/cgroup firewalling.
    [    5.167009] systemd[1]: (This warning is only shown for the first unit using IP firewalling.)
    [    5.177109] systemd[1]: Created slice system-getty.slice.
    [  OK  ] Created slice system-getty.slice.
    [    5.200309] random: systemd: uninitialized urandom read (16 bytes read)
    [    5.207647] systemd[1]: Created slice system-serial\x2dgetty.slice.
    [  OK  ] Created slice system-serial\x2dgetty.slice.
    [    5.228310] random: systemd: uninitialized urandom read (16 bytes read)
    [    5.235534] systemd[1]: Created slice User and Session Slice.
    [  OK  ] Created slice User and Session Slice.
    [    5.256448] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
    [  OK  ] Started Dispatch Password …ts to Console Directory Watch.
    [    5.280366] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
    [  OK  ] Started Forward Password R…uests to Wall Directory Watch.
    [    5.304359] systemd[1]: Reached target Paths.
    [  OK  ] Reached target Paths.
    [    5.320294] systemd[1]: Reached target Remote File Systems.
    [  OK  ] Reached target Remote File Systems.
    [    5.340287] systemd[1]: Reached target Slices.
    [  OK  ] Reached target Slices.
    [    5.356290] systemd[1]: Reached target Swap.
    [  OK  ] Reached target Swap.
    [    5.380869] systemd[1]: Listening on RPCbind Server Activation Socket.
    [  OK  ] Listening on RPCbind Server Activation Socket.
    [    5.404338] systemd[1]: Reached target RPC Port Mapper.
    [  OK  ] Reached target RPC Port Mapper.
    [    5.428478] systemd[1]: Listening on Process Core Dump Socket.
    [  OK  ] Listening on Process Core Dump Socket.
    [    5.448440] systemd[1]: Listening on initctl Compatibility Named Pipe.
    [  OK  ] Listening on initctl Compatibility Named Pipe.
    [    5.482207] systemd[1]: Condition check resulted in Journal Audit Socket being skipped.
    [    5.490583] systemd[1]: Listening on Journal Socket (/dev/log).
    [  OK  ] Listening on Journal Socket (/dev/log).
    [    5.512558] systemd[1]: Listening on Journal Socket.
    [  OK  ] Listening on Journal Socket.
    [    5.528630] systemd[1]: Listening on Network Service Netlink Socket.
    [  OK  ] Listening on Network Service Netlink Socket.
    [    5.552511] systemd[1]: Listening on udev Control Socket.
    [  OK  ] Listening on udev Control Socket.
    [    5.572425] systemd[1]: Listening on udev Kernel Socket.
    [  OK  ] Listening on udev Kernel Socket.
    [    5.594660] systemd[1]: Mounting Huge Pages File System...
             Mounting Huge Pages File System...
    [    5.614644] systemd[1]: Mounting POSIX Message Queue File System...
             Mounting POSIX Message Queue File System...
    [    5.638550] systemd[1]: Mounting Kernel Debug File System...
             Mounting Kernel Debug File System...
    [    5.661103] systemd[1]: Mounting Temporary Directory (/tmp)...
             Mounting Temporary Directory (/tmp)...
    [    5.678758] systemd[1]: Starting Create list of static device nodes for the current kernel...
             Starting Create list of st…odes for the current kernel...
    [    5.706536] systemd[1]: Starting Start psplash boot splash screen...
             Starting Start psplash boot splash screen...
    [    5.731235] systemd[1]: Starting RPC Bind...
             Starting RPC Bind...
    [    5.744492] systemd[1]: Condition check resulted in File System Check on Root Device being skipped.
    [    5.756393] systemd[1]: Starting Journal Service...
             Starting Journal Service...
    [    5.784934] systemd[1]: Starting Load Kernel Modules...
             Starting Load Kernel Modules...
    [    5.802684] systemd[1]: Starting Remount Root and Kernel File Systems...
             Starting Remount Root and Kernel File Systems cryptodev: loading out-of-tree module taints kernel.
    [0m...
    [    5.825395] cryptodev: driver 1.10 loaded.
    [    5.826212] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)
    [    5.837967] systemd[1]: Starting udev Coldplug all Devices...
             Starting udev Coldplug all Devices...
    [    5.852520] systemd[1]: Started RPC Bind.
    [  OK  ] Started RPC Bind.
    [    5.872687] systemd[1]: Started Journal Service.
    [  OK  ] Started Journal Service.
    [  OK  ] Mounted Huge Pages File System.
    [  OK  ] Mounted POSIX Message Queue File System.
    [  OK  ] Mounted Kernel Debug File System.
    [  OK  ] Mounted Temporary Directory (/tmp).
    [  OK  ] Started Create list of sta… nodes for the current kernel.
    [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.
    [  OK  ] Started Load Kernel Modules.
    [  OK  ] Started Remount Root and Kernel File Systems.
             Mounting Kernel Configuration File System...
             Starting Flush Journal to Persistent Storage...
    [    6.107055] systemd-journald[174]: Received client request to flush runtime journal.
             Starting Apply Kernel Variables...
             Starting Create Static Device Nodes in /dev...
    [  OK  ] Mounted Kernel Configuration File System.
    [  OK  ] Started Flush Journal to Persistent Storage.
    [  OK  ] Started Apply Kernel Variables.
    [  OK  ] Started Create Static Device Nodes in /dev.
    [    6.212912] random: systemd: uninitialized urandom read (16 bytes read)
    [  OK  ] Reached target Local File Systems (Pre).
    [    6.236560] random: systemd: uninitialized urandom read (16 bytes read)
             Mounting /media/ram...
    [    6.249388] random: systemd-journal: uninitialized urandom read (16 bytes read)
             Mounting /var/volatile...
             Starting udev Kernel Device Manager...
    [  OK  ] Started udev Coldplug all Devices.
    [  OK  ] Mounted /media/ram.
    [  OK  ] Mounted /var/volatile.
             Starting udev Wait for Complete Device Initialization...
             Starting Load/Save Random Seed...
    [  OK  ] Reached target Local File Systems.
             Starting Create Volatile Files and Directories...
    [  OK  ] Started udev Kernel Device Manager.
    [  OK  ] Started Create Volatile Files and Directories.
             Starting Network Time Synchronization...
             Starting Update UTMP about System Boot/Shutdown...
    [  OK  ] Started Update UTMP about System Boot/Shutdown.
    [  OK  ] Started Network Time Synchronization.
    [  OK  ] Reached target System Time Set.
    [  OK  ] Reached target System Time Synchronized.
    [    6.696046] random: crng init done
    [    6.699514] random: 66 urandom warning(s) missed due to ratelimiting
    [  OK  ] Started Load/Save Random Seed.
    [    6.816636] ina2xx 4-0040: power monitor ina226 (Rshunt = 10000 uOhm)
    [    6.833652] ina2xx 4-0041: power monitor ina226 (Rshunt = 10000 uOhm)
    [    6.845067] ina2xx 4-0042: power monitor ina226 (Rshunt = 10000 uOhm)
    [    6.858717] ina2xx 4-0043: power monitor ina226 (Rshunt = 10000 uOhm)
    [    6.866113] ina2xx 4-0044: power monitor ina226 (Rshunt = 10000 uOhm)
    [    6.873417] ina2xx 4-0045: power monitor ina226 (Rshunt = 5000 uOhm)
    [    6.880810] ina2xx 4-0046: power monitor ina226 (Rshunt = 10000 uOhm)
    [    6.888047] ina2xx 4-0047: power monitor ina226 (Rshunt = 10000 uOhm)
    [    6.895324] ina2xx 4-0048: power monitor ina226 (Rshunt = 10000 uOhm)
    [    6.902609] ina2xx 4-0049: power monitor ina226 (Rshunt = 10000 uOhm)
    [    6.909874] ina2xx 4-004a: power monitor ina226 (Rshunt = 10000 uOhm)
    [    6.917169] ina2xx 4-004b: power monitor ina226 (Rshunt = 10000 uOhm)
    [    6.924465] ina2xx 4-004c: power monitor ina226 (Rshunt = 10000 uOhm)
    [    6.931709] ina2xx 4-004d: power monitor ina226 (Rshunt = 10000 uOhm)
    [    6.939828] ina2xx 4-004e: power monitor ina226 (Rshunt = 10000 uOhm)
    [    6.947597] ina2xx 4-004f: power monitor ina226 (Rshunt = 10000 uOhm)
    [    7.175719] pci-endpoint-test 0000:00:00.0: Cannot perform PCI test without BAR0
    [    7.197123] k3-dsp-rproc 4d80800000.dsp: assigned reserved memory node vision-apps-c66-dma-memory@a9000000
    [    7.207425] pci-endpoint-test: probe of 0000:00:00.0 failed with error -12
    [    7.217626] k3-dsp-rproc 4d80800000.dsp: configured DSP for IPC-only mode
    [    7.228751] remoteproc remoteproc0: 4d80800000.dsp is available
    [    7.247657] img_enc 4200000.video-encoder: vxe_enc_probe: using heap 1 for internal alloc
    [    7.264487] remoteproc remoteproc0: attaching to 4d80800000.dsp
    [    7.272760] img_dec 4300000.video-decoder: decoder registered as /dev/video0
    [    7.299659] img_enc 4200000.video-encoder: encoder registered as /dev/video1
    [    7.306894] k3-dsp-rproc 4d80800000.dsp: DSP initialized in IPC-only mode
    [    7.315244]  remoteproc0#vdev0buffer: assigned reserved memory node vision-apps-c66-dma-memory@a9000000
    [    7.325675] virtio_rpmsg_bus virtio0: rpmsg host is online
    [    7.332418]  remoteproc0#vdev0buffer: registered virtio0 (type 7)
    [    7.338548] remoteproc remoteproc0: remote processor 4d80800000.dsp is now attached
    [    7.349213] virtio_rpmsg_bus virtio0: creating channel rpmsg_chrdev addr 0xd
    [    7.377497] pvrsrvkm 4e20000000.gpu: More than one power domain for this GPU, gpu driver manages power domains
    [    7.377680] k3-dsp-rproc 4d81800000.dsp: assigned reserved memory node vision-apps-c66-dma-memory@a8000000
    [    7.401916] k3-dsp-rproc 4d81800000.dsp: configured DSP for IPC-only mode
    [    7.422762] remoteproc remoteproc1: 4d81800000.dsp is available
    [    7.435274] PVR_K:  200: Read BVNC 22.104.208.318 from HW device registers
    [    7.479179] PVR_K:  200: RGX Device registered with BVNC 22.104.208.318
    [    7.487357] remoteproc remoteproc1: attaching to 4d81800000.dsp
    [    7.529893] k3-dsp-rproc 4d81800000.dsp: DSP initialized in IPC-only mode
    [    7.540049] [drm] Initialized pvr 1.15.6133109 20170530 for 4e20000000.gpu on minor 0
    [    7.575432]  remoteproc1#vdev0buffer: assigned reserved memory node vision-apps-c66-dma-memory@a8000000
    [    7.585622] virtio_rpmsg_bus virtio1: rpmsg host is online
    [    7.592680]  remoteproc1#vdev0buffer: registered virtio1 (type 7)
    [    7.607411] remoteproc remoteproc1: remote processor 4d81800000.dsp is now attached
    [    7.615147] virtio_rpmsg_bus virtio1: creating channel rpmsg_chrdev addr 0xd
    [    7.637983] k3-dsp-rproc 64800000.dsp: assigned reserved memory node vision-apps-c71-dma-memory@aa000000
    [    7.658270] k3-dsp-rproc 64800000.dsp: configured DSP for IPC-only mode
    [    7.705743] remoteproc remoteproc2: 64800000.dsp is available
    [    7.728645] remoteproc remoteproc2: attaching to 64800000.dsp
    [    7.755513] remoteproc remoteproc2: rsc table is truncated
    [    7.807713] remoteproc remoteproc2: Failed to process resources: -22
    [    7.867207] k3-dsp-rproc 64800000.dsp: failed to add register device with remoteproc core, status = -22
    [    7.934151] k3-dsp-rproc: probe of 64800000.dsp failed with error -22
    [    8.349934] platform 41000000.r5f: R5F core may have been powered on by a different host, programmed state (0) != actual state (1)
    [    8.440417] platform 41000000.r5f: configured R5F for IPC-only mode
    [    8.484750] platform 41000000.r5f: assigned reserved memory node vision-apps-r5f-dma-memory@a0000000
    [    8.504133] remoteproc remoteproc3: 41000000.r5f is available
    [    8.513305] remoteproc remoteproc3: attaching to 41000000.r5f
    [    8.519813] remoteproc remoteproc3: Failed to process resources: -22
    [    8.526945] k3_r5_rproc bus@100000:bus@28380000:r5fss@41000000: rproc_add failed, ret = -22
    [    8.536174] k3_r5_rproc bus@100000:bus@28380000:r5fss@41000000: k3_r5_cluster_rproc_init failed, ret = -22
    [    8.554831] k3_r5_rproc: probe of bus@100000:bus@28380000:r5fss@41000000 failed with error -22
    [    8.576066] platform 5c00000.r5f: R5F core may have been powered on by a different host, programmed state (0) != actual state (1)
    [    8.591369] platform 5c00000.r5f: configured R5F for IPC-only mode
    [    8.600889] platform 5c00000.r5f: assigned reserved memory node vision-apps-r5f-dma-memory@a2000000
    [    8.613533] remoteproc remoteproc4: 5c00000.r5f is available
    [    8.620715] remoteproc remoteproc4: attaching to 5c00000.r5f
    [    8.628725] platform 5c00000.r5f: R5F core initialized in IPC-only mode
    [    8.636985]  remoteproc4#vdev0buffer: assigned reserved memory node vision-apps-r5f-dma-memory@a2000000
    [    8.648045] virtio_rpmsg_bus virtio2: rpmsg host is online
    [    8.655678]  remoteproc4#vdev0buffer: registered virtio2 (type 7)
    [    8.662105] remoteproc remoteproc4: remote processor 5c00000.r5f is now attached
    [    8.671354] virtio_rpmsg_bus virtio2: creating channel rpmsg_chrdev addr 0xd
    [  OK  ] Created slice system-systemd\x2dfsc[    8.685329] platform 5d00000.r5f: R5F core may have been powered on by a different host, programmed state (0) != actual state (1)
    k.slice.
    [    8.705711] platform 5d00000.r5f: configured R5F for IPC-only mode
    [    8.721569] platform 5d00000.r5f: assigned reserved memory node vision-apps-r5f-dma-memory@a4000000
    [    8.733813] remoteproc remoteproc5: 5d00000.r5f is available
    [    8.756493] remoteproc remoteproc5: attaching to 5d00000.r5f
    [    8.799692] platform 5d00000.r5f: R5F core initialized in IPC-only mode
    [    8.825595]  remoteproc5#vdev0buffer: assigned reserved memory node vision-apps-r5f-dma-memory@a4000000
    [    8.884737] virtio_rpmsg_bus virtio3: rpmsg host is online
    [    8.892023]  remoteproc5#vdev0buffer: registered virtio3 (type 7)
    [    8.902003] remoteproc remoteproc5: remote processor 5d00000.r5f is now attached
    [    8.909481] virtio_rpmsg_bus virtio3: creating channel rpmsg_chrdev addr 0xd
    [    8.929645] platform 5e00000.r5f: configured R5F for remoteproc mode
    [    8.958730] platform 5e00000.r5f: assigned reserved memory node vision-apps-r5f-dma-memory@a6000000
    [    8.990231] remoteproc remoteproc6: 5e00000.r5f is available
    [    9.047363] remoteproc remoteproc6: loading /lib/firmware/j7-main-r5f1_0-fw failed with error -22
    [    9.060290] remoteproc remoteproc6: Direct firmware load for j7-main-r5f1_0-fw failed with error -22
    [    9.072354] remoteproc remoteproc6: powering up 5e00000.r5f
    [    9.074485] platform 5f00000.r5f: configured R5F for remoteproc mode
    [    9.080256] remoteproc remoteproc6: loading /lib/firmware/j7-main-r5f1_0-fw failed with error -22
    [    9.104256] remoteproc remoteproc6: Direct firmware load for j7-main-r5f1_0-fw failed with error -22
    [    9.123070] remoteproc remoteproc6: request_firmware failed: -22
    [  OK  ] Found device /dev/mmcblk1p1.
    [    9.165684] platform 5f00000.r5f: assigned reserved memory node vision-apps-r5f-dma-memory@a7000000
             Starting File System Check on /dev/mmcblk1p1...
    [    9.197613] remoteproc remoteproc7: 5f00000.r5f is available
    [    9.228490] remoteproc remoteproc7: loading /lib/firmware/j7-main-r5f1_1-fw failed with error -22
    [    9.241088] remoteproc remoteproc7: Direct firmware load for j7-main-r5f1_1-fw failed with error -22
    [    9.253438] remoteproc remoteproc7: powering up 5f00000.r5f
    [    9.264320] remoteproc remoteproc7: loading /lib/firmware/j7-main-r5f1_1-fw failed with error -22
    [    9.273272] remoteproc remoteproc7: Direct firmware load for j7-main-r5f1_1-fw failed with error -22
    [    9.288366] remoteproc remoteproc7: request_firmware failed: -22
    [  OK  ] Started File System Check on /dev/mmcblk1p1.
             Mounting /run/media/mmcblk1p1...
    [  OK  ] Mounted /run/media/mmcblk1p1.
    [    9.823181] usbcore: registered new interface driver usbfs
    [    9.864979] usbcore: registered new interface driver hub
    [    9.871536] remoteproc remoteproc8: b034000.pru is available
    [    9.880118] usbcore: registered new device driver usb
    [    9.885545] remoteproc remoteproc9: b004000.rtu is available
    [    9.894089] remoteproc remoteproc10: b00a000.txpru is available
    [    9.901869] remoteproc remoteproc11: b038000.pru is available
    [    9.921317] remoteproc remoteproc12: b006000.rtu is available
    [    9.942104] remoteproc remoteproc13: b00c000.txpru is available
    [    9.952748] remoteproc remoteproc14: b134000.pru is available
    [    9.981368] remoteproc remoteproc15: b104000.rtu is available
    [    9.993775] remoteproc remoteproc16: b10a000.txpru is available
    [   10.001196] remoteproc remoteproc17: b138000.pru is available
    [   10.010130] remoteproc remoteproc18: b106000.rtu is available
    [   10.019200] remoteproc remoteproc19: b10c000.txpru is available
    [   10.105627] omap_rng 4e10000.rng: Random Number Generator ver. 241b34c
    [   10.137256] cdns-csi2rx: probe of 4514000.csi-bridge failed with error -22
             Starting Start psplash boot splash screen...
    [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.
    [   10.735931] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
    [   10.741441] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 1
    [   10.749208] xhci-hcd xhci-hcd.2.auto: hcc params 0x200073c9 hci version 0x100 quirks 0x0000002000010010
    [   10.758634] xhci-hcd xhci-hcd.2.auto: irq 644, io mem 0x06410000
    [   10.764962] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
    [   10.773228] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [   10.780438] usb usb1: Product: xHCI Host Controller
    [   10.785308] usb usb1: Manufacturer: Linux 5.10.153-g90c3a58fd2 xhci-hcd
    [   10.791916] usb usb1: SerialNumber: xhci-hcd.2.auto
    [   10.797067] hub 1-0:1.0: USB hub found
    [   10.800855] hub 1-0:1.0: 1 port detected
    [   10.806232] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
    [   10.811731] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 2
    [   10.819389] xhci-hcd xhci-hcd.2.auto: Host supports USB 3.0 SuperSpeed
    [   10.825945] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
    [   10.834091] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.10
    [   10.843934] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [   10.851150] usb usb2: Product: xHCI Host Controller
    [   10.856019] usb usb2: Manufacturer: Linux 5.10.153-g90c3a58fd2 xhci-hcd
    [   10.862621] usb usb2: SerialNumber: xhci-hcd.2.auto
    [   10.867746] hub 2-0:1.0: USB hub found
    [   10.871512] hub 2-0:1.0: 1 port detected
    [   11.064243] usb 1-1: new high-speed USB device number 2 using xhci-hcd
    [   11.216513] usb 1-1: New USB device found, idVendor=0451, idProduct=8142, bcdDevice= 1.00
    [   11.224678] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=1
    [   11.231803] usb 1-1: SerialNumber: 01020071CDF1
    [   11.236846] hub 1-1:1.0: USB hub found
    [   11.240638] hub 1-1:1.0: 4 ports detected
    [  OK  ] Started udev Wait for Complete Device Initialization.
    [  OK  ] Started Hardware RNG Entropy Gatherer Daemon.
    [  OK  ] Reached target System Initialization.
    [  OK  ] Started Daily rotation of log files.
    [  OK  ] Started Daily Cleanup of Temporary Directories.
    [  OK  ] Reached target Timers.
    [  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
    [  OK  ] Listening on D-Bus System Message Bus Socket.
             Starting Docker Socket for the API.
    [  OK  ] Listening on dropbear.socket.
             Starting Reboot and dump vmcore via kexec...
    [  OK  ] Listening on Docker Socket for the API.
    [  OK  ] Started Reboot and dump vmcore via kexec.
    [  OK  ] Reached target Sockets.
    [  OK  ] Reached target Basic System.
             Starting Save/Restore Sound Card State...
    [  OK  ] Started Job spooling tools.
    [  OK  ] Started Periodic Command Scheduler.
    [  OK  ] Started D-Bus System Message Bus.
             Starting Print notice about GPLv3 packages...
             Starting set host name as per compatible name...
             Starting IPv6 Packet Filtering Framework...
             Starting IPv4 Packet Filtering Framework...
    [  OK  ] Started irqbalance daemon.
             Starting Telephony service...
             Starting Update pmic regis…fety feature on power rails...
             Starting rc.pvr.service...
             Starting startwlanap...
             Starting startwlansta...
             Starting Login Service...
    [  OK  ] Started TEE Supplicant.
             Starting Update weston ini… based on the platform name...
    [  OK  ] Started Save/Restore Sound Card State.
    [  OK  ] Started IPv6 Packet Filtering Framework.
    [  OK  ] Started IPv4 Packet Filtering Framework.
    [  OK  ] Started Update pmic regist…safety feature on power rails.
    [  OK  ] Reached target Network (Pre).
    [  OK  ] Reached target Sound Card.
             Starting Network Service...
    [  OK  ] Started startwlansta.
    [  OK  ] Started Telephony service.
    [  OK  ] Started set host name as per compatible name.
    [  OK  ] Started startwlanap.
    [  OK  ] Started Update weston ini …ge based on the platform name.
    [   11.889220] Bluetooth: Core ver 2.22
    [   11.892858] NET: Registered protocol family 31
    [   11.901429] Bluetooth: HCI device and connection manager initialized
    [   11.912267] Bluetooth: HCI socket layer initialized
    [   11.924283] Bluetooth: L2CAP socket layer initialized
    [   11.929569] Bluetooth: SCO socket layer initialized
    [  OK  ] Started Network Service.
             Starting Wait for Network to be Configured...
             Starting Network Name Resolution...[   11.958933] am65-cpsw-nuss 46000000.ethernet: down msc_sl f0000000 tmo 0
    
    [   11.988561] am65-cpsw-nuss 46000000.ethernet: set new flow-id-base 48
    [   12.010056] am65-cpsw-nuss 46000000.ethernet eth0: PHY [46000f00.mdio:00] driver [TI DP83867] (irq=POLL)
    [   12.024940] am65-cpsw-nuss 46000000.ethernet eth0: configuring for phy/rgmii-rxid link mode
    [  OK  ] Listening on Load/Save RF …itch Status /dev/rfkill Watch.
    [  OK  ] Started Login Service.
    [  OK  ] Started Network Name Resolution.
    [  OK  ] Reached target Network.
    [  OK  ] Reached target Host and Network Name Lookups.
             Starting Avahi mDNS/DNS-SD Stack...
             Starting Enable and configure wl18xx bluetooth stack...
    [  OK  ] Started NFS status monitor for NFSv2/3 locking..
             Starting Simple Network Ma…ent Protocol (SNMP) Daemon....
             Starting Permit User Sessions...
    [  OK  ] Started Permit User Sessions.
    [  OK  ] Started Getty on tty1.
    [  OK  ] Started Serial Getty on ttyS2.
    [  OK  ] Started Serial Getty on ttyS3.
    [  OK  ] Reached target Login Prompts.
             Starting Synchronize System and HW clocks...
    [  OK  ] Started Avahi mDNS/DNS-SD Stack.
    [FAILED] Failed to start Synchronize System and HW clocks.
    See 'systemctl status sync-clocks.service' for details.
    [  OK  ] Started Enable and configure wl18xx bluetooth stack.
    [  OK  ] Started rc.pvr.service.
             Starting weston.service...
    [  OK  ] Started weston.service.
             Starting DEMO...
             Starting telnetd.service...
    [  OK  ] Started DEMO.
    [  OK  ] Started telnetd.service.
    [   12.739074] PVR_K:  931: RGX Firmware image 'rgx.fw.22.104.208.318' loaded
    [   12.764540] PVR_K:  931: Shader binary image 'rgx.sh.22.104.208.318' loaded
    [  OK  ] Started Simple Network Man…ement Protocol (SNMP) Daemon..
    ***************************************************************
    ***************************************************************
    NOTICE: This file system contains the following GPLv3 packages:
    	autoconf
    	bash-dev
    	bash
    	bc
    	binutils
    	cifs-utils
    	coreutils-stdbuf
    	coreutils
    	cpio
    	cpp-symlinks
    	cpp
    	dosfstools
    	elfutils
    	g++-symlinks
    	g++
    	gawk
    	gcc-symlinks
    	gcc
    	gdb
    	gdbserver
    	gettext
    	glmark2
    	gstreamer1.0-libav-dev
    	gstreamer1.0-libav
    	gzip
    	less
    	libasm1
    	libbfd
    	libdw1
    	libelf1
    	libgdbm-compat4
    	libgdbm-dev
    	libgdbm6
    	libgettextlib
    	libgettextsrc
    	libgmp-dev
    	libgmp10
    	libgmpxx4
    	libidn2-0
    	libidn2-dev
    	libmpc3
    	libmpfr6
    	libreadline-dev
    	libreadline8
    	libunistring-dev
    	libunistring2
    	m4-dev
    	m4
    	make
    	nettle-dev
    	nettle
    	parted
    	python3-rfc3987
    	python3-strict-rfc3339
    	tar
    	which
    	zeromq
    
    If you do not wish to distribute GPLv3 components please remove
    the above packages prior to distribution.  This can be done using
    the opkg remove command.  i.e.:
        opkg remove <package>
    Where <package> is the name printed in the list above
    
    NOTE: If the package is a dependency of another package you
          will be notified of the dependent packages.  You should
          use the --force-removal-of-dependent-packages option to
          also remove the dependent packages as well
    ***************************************************************
    ***************************************************************
    [  OK  ] Started Print notice about GPLv3 packages.
    
     _____                    _____           _         _   
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_ 
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
                  |___|                    |___|            
    
    Arago Project j7-evm ttyS2
    
    Arago 2021.09 j7-evm ttyS2
    
    j7-evm login: 
    j7-evm login: root
    root@j7-evm:/opt/edge_ai_apps# cd ../vision_apps/
    root@j7-evm:/opt/vision_apps# ./vision_apps_init.sh 
    root@j7-evm:/opt/vision_apps# [MCU2_0]     21.811384 s: CIO: Init ... Done !!!
    [MCU2_0]     21.811461 s: ### CPU Frequency = 1000000000 Hz
    [MCU2_0]     21.811507 s: CPU is running FreeRTOS
    [MCU2_0]     21.811535 s: APP: Init ... !!!
    [MCU2_0]     21.811558 s: SCICLIENT: Init ... !!!
    [MCU2_0]     21.973032 s: SCICLIENT: DMSC FW version [8.5.2--v08.05.02 (Chill Capybar]
    [MCU2_0]     21.973087 s: SCICLIENT: DMSC FW revision 0x8  
    [MCU2_0]     21.973122 s: SCICLIENT: DMSC FW ABI revision 3.1
    [MCU2_0]     21.973157 s: SCICLIENT: Init ... Done !!!
    [MCU2_0]     21.973183 s: UDMA: Init ... !!!
    [MCU2_0]     22.019863 s: UDMA: Init ... Done !!!
    [MCU2_0]     22.019936 s: MEM: Init ... !!!
    [MCU2_0]     22.019982 s: MEM: Created heap (DDR_LOCAL_MEM, id=0, flags=0x00000004) @ d9000000 of size 16777216 bytes !!!
    [MCU2_0]     22.020059 s: MEM: Created heap (L3_MEM, id=1, flags=0x00000000) @ 3600000 of size 262144 bytes !!!
    [MCU2_0]     22.020122 s: MEM: Init ... Done !!!
    [MCU2_0]     22.020147 s: IPC: Init ... !!!
    [MCU2_0]     22.020205 s: IPC: 6 CPUs participating in IPC !!!
    [MCU2_0]     22.020265 s: IPC: Waiting for HLOS to be ready ... !!!
    [MCU2_0]     31.644540 s: IPC: HLOS is ready !!!
    [MCU2_0]     31.668251 s: IPC: Init ... Done !!!
    [MCU2_0]     31.668324 s: APP: Syncing with 5 CPUs ... !!!
    [MCU2_1]     21.968670 s: CIO: Init ... Done !!!
    [MCU2_1]     21.968741 s: ### CPU Frequency = 1000000000 Hz
    [MCU2_1]     21.968787 s: CPU is running FreeRTOS
    [MCU2_1]     21.968817 s: APP: Init ... !!!
    [MCU2_1]     21.968843 s: SCICLIENT: Init ... !!!
    [MCU2_1]     21.973595 s: SCICLIENT: DMSC FW version [8.5.2--v08.05.02 (Chill Capybar]
    [MCU2_1]     21.973648 s: SCICLIENT: DMSC FW revision 0x8  
    [MCU2_1]     21.973684 s: SCICLIENT: DMSC FW ABI revision 3.1
    [MCU2_1]     21.973723 s: SCICLIENT: Init ... Done !!!
    [MCU2_1]     21.973752 s: UDMA: Init ... !!!
    [MCU2_1]     22.029316 s: UDMA: Init ... Done !!!
    [MCU2_1]     22.029383 s: MEM: Init ... !!!
    [MCU2_1]     22.029428 s: MEM: Created heap (DDR_LOCAL_MEM, id=0, flags=0x00000004) @ da000000 of size 16777216 bytes !!!
    [MCU2_1]     22.029502 s: MEM: Created heap (L3_MEM, id=1, flags=0x00000001) @ 3640000 of size 262144 bytes !!!
    [MCU2_1]     22.029564 s: MEM: Init ... Done !!!
    [MCU2_1]     22.029593 s: IPC: Init ... !!!
    [MCU2_1]     22.029658 s: IPC: 6 CPUs participating in IPC !!!
    [MCU2_1]     22.029716 s: IPC: Waiting for HLOS to be ready ... !!!
    [MCU2_1]     31.881220 s: IPC: HLOS is ready !!!
    [MCU2_1]     31.903542 s: IPC: Init ... Done !!!
    [MCU2_1]     31.903612 s: APP: Syncing with 5 CPUs ... !!!
    [C6x_1 ]     21.979720 s: CIO: Init ... Done !!!
    [C6x_1 ]     21.979746 s: ### CPU Frequency = 1350000000 Hz
    [C6x_1 ]     21.979756 s: CPU is running FreeRTOS
    [C6x_1 ]     21.979765 s: APP: Init ... !!!
    [C6x_1 ]     21.979773 s: SCICLIENT: Init ... !!!
    [C6x_1 ]     21.984547 s: SCICLIENT: DMSC FW version [8.5.2--v08.05.02 (Chill Capybar]
    [C6x_1 ]     21.984561 s: SCICLIENT: DMSC FW revision 0x8  
    [C6x_1 ]     21.984571 s: SCICLIENT: DMSC FW ABI revision 3.1
    [C6x_1 ]     21.984582 s: SCICLIENT: Init ... Done !!!
    [C6x_1 ]     21.984592 s: UDMA: Init ... !!!
    [C6x_1 ]     22.043922 s: UDMA: Init ... Done !!!
    [C6x_1 ]     22.043946 s: MEM: Init ... !!!
    [C6x_1 ]     22.043961 s: MEM: Created heap (DDR_LOCAL_MEM, id=0, flags=0x00000004) @ dc000000 of size 16777216 bytes !!!
    [C6x_1 ]     22.043979 s: MEM: Created heap (L2_MEM, id=2, flags=0x00000001) @ 800000 of size 229376 bytes !!!
    [C6x_1 ]     22.043996 s: MEM: Created heap (DDR_SCRATCH_MEM, id=4, flags=0x00000001) @ dd000000 of size 50331648 bytes !!!
    [C6x_1 ]     22.044014 s: MEM: Init ... Done !!!
    [C6x_1 ]     22.044023 s: IPC: Init ... !!!
    [C6x_1 ]     22.044047 s: IPC: 6 CPUs participating in IPC !!!
    [C6x_1 ]     22.044061 s: IPC: Waiting for HLOS to be ready ... !!!
    [C6x_1 ]     30.322121 s: IPC: HLOS is ready !!!
    [C6x_1 ]     30.345852 s: IPC: Init ... Done !!!
    [C6x_1 ]     30.345879 s: APP: Syncing with 5 CPUs ... !!!
    [C6x_2 ]     21.980229 s: CIO: Init ... Done !!!
    [C6x_2 ]     21.980255 s: ### CPU Frequency = 1350000000 Hz
    [C6x_2 ]     21.980265 s: CPU is running FreeRTOS
    [C6x_2 ]     21.980274 s: APP: Init ... !!!
    [C6x_2 ]     21.980282 s: SCICLIENT: Init ... !!!
    [C6x_2 ]     21.985085 s: SCICLIENT: DMSC FW version [8.5.2--v08.05.02 (Chill Capybar]
    [C6x_2 ]     21.985099 s: SCICLIENT: DMSC FW revision 0x8  
    [C6x_2 ]     21.985109 s: SCICLIENT: DMSC FW ABI revision 3.1
    [C6x_2 ]     21.985120 s: SCICLIENT: Init ... Done !!!
    [C6x_2 ]     21.985129 s: UDMA: Init ... !!!
    [C6x_2 ]     22.044859 s: UDMA: Init ... Done !!!
    [C6x_2 ]     22.044882 s: MEM: Init ... !!!
    [C6x_2 ]     22.044898 s: MEM: Created heap (DDR_LOCAL_MEM, id=0, flags=0x00000004) @ e0000000 of size 16777216 bytes !!!
    [C6x_2 ]     22.044917 s: MEM: Created heap (L2_MEM, id=2, flags=0x00000001) @ 800000 of size 229376 bytes !!!
    [C6x_2 ]     22.044934 s: MEM: Created heap (DDR_SCRATCH_MEM, id=4, flags=0x00000001) @ e1000000 of size 50331648 bytes !!!
    [C6x_2 ]     22.044952 s: MEM: Init ... Done !!!
    [C6x_2 ]     22.044961 s: IPC: Init ... !!!
    [C6x_2 ]     22.044986 s: IPC: 6 CPUs participating in IPC !!!
    [C6x_2 ]     22.045001 s: IPC: Waiting for HLOS to be ready ... !!!
    [C6x_2 ]     30.582112 s: IPC: HLOS is ready !!!
    [C6x_2 ]     30.605559 s: IPC: Init ... Done !!!
    [C6x_2 ]     30.605584 s: APP: Syncing with 5 CPUs ... !!!
    [C7x_1 ]     21.970032 s: CIO: Init ... Done !!!
    [C7x_1 ]     21.970046 s: ### CPU Frequency = 1000000000 Hz
    [C7x_1 ]     21.970057 s: CPU is running FreeRTOS
    [C7x_1 ]     21.970066 s: APP: Init ... !!!
    [C7x_1 ]     21.970074 s: SCICLIENT: Init ... !!!
    [C7x_1 ]     21.974952 s: SCICLIENT: DMSC FW version [8.5.2--v08.05.02 (Chill Capybar]
    [C7x_1 ]     21.974967 s: SCICLIENT: DMSC FW revision 0x8  
    [C7x_1 ]     21.974979 s: SCICLIENT: DMSC FW ABI revision 3.1
    [C7x_1 ]     21.974991 s: SCICLIENT: Init ... Done !!!
    [C7x_1 ]     21.975000 s: UDMA: Init ... !!!
    [C7x_1 ]     22.032321 s: UDMA: Init ... Done !!!
    [C7x_1 ]     22.032334 s: MEM: Init ... !!!
    [C7x_1 ]     22.032347 s: MEM: Created heap (DDR_LOCAL_MEM, id=0, flags=0x00000004) @ 117000000 of size 268435456 bytes !!!
    [C7x_1 ]     22.032368 s: MEM: Created heap (L3_MEM, id=1, flags=0x00000001) @ 70020000 of size 8159232 bytes !!!
    [C7x_1 ]     22.032386 s: MEM: Created heap (L2_MEM, id=2, flags=0x00000001) @ 64800000 of size 458752 bytes !!!
    [C7x_1 ]     22.032404 s: MEM: Created heap (L1_MEM, id=3, flags=0x00000001) @ 64e00000 of size 16384 bytes !!!
    [C7x_1 ]     22.032421 s: MEM: Created heap (DDR_SCRATCH_MEM, id=4, flags=0x00000001) @ 100000000 of size 385875968 bytes !!!
    [C7x_1 ]     22.032440 s: MEM: Init ... Done !!!
    [C7x_1 ]     22.032449 s: [ARodera] APP: Called appIpcInit!
    [C7x_1 ]     22.032458 s: IPC: Init ... !!!
    [C7x_1 ]     22.032473 s: IPC: 6 CPUs participating in IPC !!!
    [C7x_1 ]     22.032488 s: IPC: Waiting for HLOS to be ready ... !!!
    
    

    Here is the log. It contains the full linux boot logs and the vision_apps_init.sh logs.

    Now I made sure to have the same vision_apps firmwares both in the combined image (/BOOT/app) and in the firmwares folder (rootfs/lib/firmware). This time we can see that the C7x_1 logs appear. But the app_multicam still don't work.

    By comparing the vision_apps_init.sh logs to the vision_apps_init.sh logs when booting with SPL+UBOOT (the one which we are able to run vision_apps), and noticed that the MCU2_0, MCU2_1, C6x_1, C6x_2 get stuck at this point: `APP: Syncing with 5 CPUs ... !!!`, and the C7x_1 gets stuck here: `IPC: Waiting for HLOS to be ready ... !!!`.

    Searching in the code, I saw that the other CPUS are waiting for the master CPU (which I assume is the A72) and the C7x_1 expects "the linux vdev status is 0x7". I have to say that this is beyond my current knowledge, just hope that it may help you to find the root cause of this issue.

    Thanks in advance

  • Hi,

    Thank you for sharing the Linux boot logs.

    Could you please confirm that you are pointing to C7x firmware as shown in the config file attached? Could you share your config.mk file?

    To do this, could you go to rootfs/lib/firmware and do "ls -l". Please send me a screenshot of this too

    Could you please share the screenshot of the above?

    From the logs below, it is clear that there was an issue during c7x firmware when being loaded from Linux kernel.

    [    7.637983] k3-dsp-rproc 64800000.dsp: assigned reserved memory node vision-apps-c71-dma-memory@aa000000
    [    7.658270] k3-dsp-rproc 64800000.dsp: configured DSP for IPC-only mode
    [    7.705743] remoteproc remoteproc2: 64800000.dsp is available
    [    7.728645] remoteproc remoteproc2: attaching to 64800000.dsp
    [    7.755513] remoteproc remoteproc2: rsc table is truncated
    [    7.807713] remoteproc remoteproc2: Failed to process resources: -22
    [    7.867207] k3-dsp-rproc 64800000.dsp: failed to add register device with remoteproc core, status = -22
    [    7.934151] k3-dsp-rproc: probe of 64800000.dsp failed with error -22

    Are you using the default C7x firmware from the SDK? Are there any memory related changes done? This is SDK 8.5 right?

    When integrating the vision_apps intergration patch, could you please confirm that the carved out memory regions for RTOS is matching with what you are using in the SDK?

    Could you please confirm the above?

    Regards,
    Nikhil

  • Hi Nikhil,

    In the older logs I was using firmwares compiled with our own build system, but without any modification. Now I did one more test with everything coming from a clean SDK version 8.5.

    Find attached the zip with the booting log and the config.mk

    2541.boot_log_and_config_mk.zip

    At the end of the booting log you will see that I run the script /opt/vision_apps.sh with the same result, and you will see also the result of "ls -l /lib/firmwares".

    In the config.mk I used every image from a clean SDK. (remember that the can profiling app and the device tree are patched with your recommendations)

    You can recall the patches and the steps done to reproduce this from this response:

    We tried your patch and now the booting is fine. Here we have some questions, and to bring some context I will try to briefly explain the steps that we are doing (from a clean SDK v8.5).
    Patches_applied.zip
    1. In the linux kernel source base path (board-support/linux-5.10.153+gitAUTOINC+90c3a58fd2-g90c3a58fd2) we apply the following patches:
        - Linux_changes.patch
        - 1616.0001_2D00_vision_5F00_apps_2D00_Integrated.patch
       The only conflict with these two paths are the bootargs line in k3-j721e-common-proc-board.dts (line 17), which we resolve as:
         `bootargs = "console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 root=/dev/mmcblk1p2 ew rootfstype=ext4 rootwait";`

    2. Apply mcusw_changes.patch in the mcusw folder of the sdk_rtos
    3. Clean SD partitions setup.
        - ./psdk_rtos/scripts/mk-linux-card.sh  /dev/mmcblk0
        - ./psdk_rtos/scripts/install_to_sd_card.sh
    4. Build the Linux Kernel DTBS (from ${SDK_LINUX})
        - make linux-dtbs

    5. Build CAN profile application (from ${PSDK_RTOS}/mcusw/build)
        - make -s can_profile_app BOARD=j721e_evm SOC=j721e BUILD_PROFILE=debug CORE=mcu1_0 BUILD_OS_TYPE=freertos
    6. Prepare combined image by modifying ${PSDK_RTOS}/pdk_jacinto_08_05_00_36/packages/ti/boot/sbl/tools/combined_appimage/config.mk
        - DTB_IMG to point to the previously compiled arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dtb
        - IMG1 to point to the previously compiled mcusw/binary/can_profile_app_freertos/bin/j721e/can_profile_app_freertos_mcu1_0_debug.xer5f

    7. Generate combined image
    8. Compile sbl_mmcsd_hlos
    make sbl_mmcsd_img_hlos BUILD_PROFILE=release BOARD=j721e_evm SOC=j721e

    9. Copy binaries to SD.
        - cp ti-processor-sdk-rtos-j721e-evm-08_05_00_11/pdk_jacinto_08_05_00_36/packages/ti/boot/sbl/binary/j721e_evm/mmcsd/bin/sbl_mmcsd_img_hlos_mcu1_0_debug.tiimage /media/$USER/BOOT/tiboot3.bin
        - cp ti-processor-sdk-rtos-j721e-evm-08_05_00_11/pdk_jacinto_08_05_00_36/packages/ti/drv/sciclient/soc/V1/tifs.bin /media/$USER/BOOT/
        - cp ti-processor-sdk-rtos-j721e-evm-08_05_00_11/pdk_jacinto_08_05_00_36/packages/ti/boot/sbl/tools/combined_appimage/bin/j721e_evm/combined.appimage /media/$USER/BOOT/app  

    Having all of this information I have to ask: are you able to reproduce the issue on your end? I think that the fastest approach to solve this will be to try to reproduce it on your end.

    I hope that this information is enough to reproduce the issue, and if not, I will gladly give more details.

    Thanks for your support

  • Hi Alejandro,

    I have tried this at my end.
    Please find the FAQ below for the details steps

    https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1210640/faq-tda4vm-run-vision_apps-in-sbl-boot-flow-with-combined_appimage

    There were few additional changes required to get the c7x logs (By disabling the mcu1_0 and mcu1_1 cores in the device tree as seen in the patch in the FAQ.

    Few other changes like setting the root with PARTUUID would only be required if you face any error in detecting /dev/mmcblk1p2. I think this is not throwing any error in your case right?

    After these changes, i am able to run vision_apps demo on my side.

    Could you please refer the FAQ and try the same at your end?

    I have used the IPC echo test as the firmware in mcu1_0. I think this shouldn't be any issue w.r.t to issue of C7x

    Regards,
    Nikhil

  • Hi Nikhil,

    Have tried the patches of the FAQ and it works now. We are facing now another issue regarding the can application, but this will be another topic.

    Thank you very much for your support,

    Alejandro

  • Hello Nikhil. Many thanks for your support.

    About issue observed some days ago, and comented by me and Monica (https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1198329/processor-sdk-j721e-sbl-for-hlos-sd-card-fails-in-sci-client/4544700#4544700) now (once vision APPs are running using SBL and combined image in optimized mode) we observe on every run one DEM error that stops CAN transmission.

    After some time running CAN_profile (that is patched with the pathc you provided), at some point of loading kernel in A72 CAN the transmission is stopped and DEM Event (internally coded as 7) is appearing. Busoff is deteted (Can_mcanCancelAllPendingMessages is called because of that in Can_mcanProcessISR)

    (I modified code to identify which DemConf_DemEventParameter_CAN_E_HARDWARE_ERROR was causing the error, then coded to 7)

    Debugging can profile it is observed MCU_MCAN0_CFG (@0x40528050) has value 0xB800000 when Can_mcanCancelAllPendingMessages is called, so PEA, BO, EW and EP are actived

    I guess this is happenign because of DTB  used by kernel (memories or clock path, etc). But I can not say at this exact A72 stage is this happening.

    Could you help on this?

    Thanks

  • Hi Pablo,

    As we have resolved your issue, please create a new thread with the last issue that you just encountered. It is a good practice to have a single issue per thread in the forum as this improves findability. Thank you.


    Best regards,
    François.

  • Hi François,

    As agreed internally with you the issue is not resolved and Pablo's post is related to the problem we originally tried to solve, so we'll keep the comment here.

    Many thanks,

    Mònica

  • Hi Nikhil,

    Thanks for the patch provided in:

    https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1210640/faq-tda4vm-run-vision_apps-in-sbl-boot-flow-with-combined_appimage

    Apart from the issue Pablo described three comments above (which is still pending to be solved), I have few questions from the changes in made in k3-j721e-som-p0.dtsi.

    1) When compiling the device tree "make linux-dtbs" I find the following warnings:

    arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi:29.63-33.5: Warning (unique_unit_address): /reserved-memory/r5f-dma-memory@a0000000: duplicate unit-address (also used in node /reserved-memory/vision-apps-r5f-dma-memory@a0000000)
      also defined at arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi:401.37-403.3
    arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi:35.55-39.5: Warning (unique_unit_address): /reserved-memory/r5f-memory@a0100000: duplicate unit-address (also used in node /reserved-memory/vision-apps-r5f-memory@a0100000)
      also defined at arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi:397.33-399.3
    arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi:41.63-45.5: Warning (unique_unit_address): /reserved-memory/r5f-dma-memory@a1000000: duplicate unit-address (also used in node /reserved-memory/vision-apps-r5f-dma-memory@a1000000)
      also defined at arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi:405.37-407.3
    arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi:47.55-51.5: Warning (unique_unit_address): /reserved-memory/r5f-memory@a1100000: duplicate unit-address (also used in node /reserved-memory/vision-apps-r5f-memory@a1100000)
      also defined at arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi:409.33-411.3
    arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi:53.64-57.5: Warning (unique_unit_address): /reserved-memory/r5f-dma-memory@a2000000: duplicate unit-address (also used in node /reserved-memory/vision-apps-r5f-dma-memory@a2000000)
      also defined at arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi:413.38-415.3
    arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi:59.56-63.5: Warning (unique_unit_address): /reserved-memory/r5f-memory@a2100000: duplicate unit-address (also used in node /reserved-memory/vision-apps-r5f-memory@a2100000)
      also defined at arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi:417.34-419.3
    arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi:77.64-81.5: Warning (unique_unit_address): /reserved-memory/r5f-dma-memory@a4000000: duplicate unit-address (also used in node /reserved-memory/vision-apps-r5f-dma-memory@a4000000)
      also defined at arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi:429.38-431.3
    arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi:83.56-87.5: Warning (unique_unit_address): /reserved-memory/r5f-memory@a4100000: duplicate unit-address (also used in node /reserved-memory/vision-apps-r5f-memory@a4100000)
      also defined at arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi:433.34-435.3
    arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi:101.52-105.5: Warning (unique_unit_address): /reserved-memory/c66-dma-memory@a6000000: duplicate unit-address (also used in node /reserved-memory/vision-apps-r5f-dma-memory@a6000000)
      also defined at arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi:453.26-455.3
    arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi:107.44-111.5: Warning (unique_unit_address): /reserved-memory/c66-memory@a6100000: duplicate unit-address (also used in node /reserved-memory/vision-apps-r5f-memory@a6100000)
      also defined at arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi:449.22-451.3
    arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi:113.52-117.5: Warning (unique_unit_address): /reserved-memory/c66-dma-memory@a7000000: duplicate unit-address (also used in node /reserved-memory/vision-apps-r5f-dma-memory@a7000000)
      also defined at arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi:445.26-447.3
    arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi:119.44-123.5: Warning (unique_unit_address): /reserved-memory/c66-memory@a7100000: duplicate unit-address (also used in node /reserved-memory/vision-apps-r5f-memory@a7100000)
      also defined at arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi:457.22-459.3
    arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi:125.52-129.5: Warning (unique_unit_address): /reserved-memory/c71-dma-memory@a8000000: duplicate unit-address (also used in node /reserved-memory/vision-apps-c66-dma-memory@a8000000)
      also defined at arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi:461.26-463.3
    arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi:131.44-135.5: Warning (unique_unit_address): /reserved-memory/c71-memory@a8100000: duplicate unit-address (also used in node /reserved-memory/vision-apps-c66-memory@a8100000)
      also defined at arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi:465.22-467.3
    arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi:143.80-147.5: Warning (unique_unit_address): /reserved-memory/r5f-virtual-eth-queues@ac000000: duplicate unit-address (also used in node /reserved-memory/vision-apps-dma-memory@ac000000)
      also defined at arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi:473.47-475.3

    There are some memory units that even though set to disabled might cause some trouble. Would it not be best to delete the ones not meant to be used?

    2 )Also, there's some problem with serdes: it is causing coredumps in the kernel. For example:

    [    1.625229] wiz: probe of bus@100000:wiz@5000000 failed with error -12
    [    1.641722] ------------[ cut here ]------------
    [    1.646494] wiz bus@100000:wiz@5010000: Unable to create SERDES platform device
    [    1.653988] WARNING: CPU: 0 PID: 61 at drivers/phy/ti/phy-j721e-wiz.c:1551 wiz_probe+0xbe8/0x1118
    [    1.663053] Modules linked in:
    [    1.666169] CPU: 0 PID: 61 Comm: kworker/0:2 Tainted: G        W         5.10.153-g90c3a58fd2 #1
    [    1.675144] Hardware name: Texas Instruments K3 J721E SoC (DT)
    [    1.681105] Workqueue: events deferred_probe_work_func
    [    1.686352] pstate: 60000005 (nZCv daif -PAN -UAO -TCO BTYPE=--)
    [    1.692486] pc : wiz_probe+0xbe8/0x1118
    [    1.696398] lr : wiz_probe+0xbe8/0x1118
    [    1.700310] sp : ffff800011713a80
    [    1.703688] x29: ffff800011713a80 x28: ffff00087fa1a880
    [    1.709112] x27: 0000000000000000 x26: 0000000000000002
    [    1.714536] x25: 0000000000000002 x24: ffff0008273e5c10
    [    1.719960] x23: ffff00082891d108 x22: ffff00082891d0e8
    [    1.725385] x21: 0000000000000002 x20: ffff0008273e5c10
    [    1.730808] x19: ffff00082891d080 x18: 0000000000000010
    [    1.736233] x17: 0000000000000000 x16: 0000000012117bb7
    [    1.741657] x15: ffff000827c9d930 x14: 0000000000000140
    [    1.747080] x13: ffff000827c9d930 x12: 00000000ffffffea
    [    1.752504] x11: ffff8000111b04b0 x10: ffff800011198470
    [    1.757928] x9 : ffff8000111984c8 x8 : 0000000000017fe8
    [    1.763352] x7 : c0000000ffffefff x6 : 0000000000000001
    [    1.768776] x5 : 0000000000000000 x4 : 0000000000000000
    [    1.774200] x3 : 00000000ffffffff x2 : ffff800011140440
    [    1.779623] x1 : d5be478556c6da00 x0 : 0000000000000000
    [    1.785048] Call trace:
    [    1.787540]  wiz_probe+0xbe8/0x1118
    [    1.791097]  platform_drv_probe+0x54/0xa8
    [    1.795187]  really_probe+0xec/0x3e0
    [    1.798833]  driver_probe_device+0x58/0xb8
    [    1.803012]  __device_attach_driver+0xb8/0xe0
    [    1.807457]  bus_for_each_drv+0x78/0xc8
    [    1.811370]  __device_attach+0xf8/0x188
    [    1.815282]  device_initial_probe+0x14/0x20
    [    1.819549]  bus_probe_device+0x9c/0xa8
    [    1.823462]  deferred_probe_work_func+0x88/0xc0
    [    1.828087]  process_one_work+0x1a0/0x328
    [    1.832177]  worker_thread+0x1f8/0x420
    [    1.836002]  kthread+0x140/0x160
    [    1.839293]  ret_from_fork+0x10/0x34
    [    1.842939] ---[ end trace f86c66cf3a0c6091 ]---
    [    1.847904] wiz: probe of bus@100000:wiz@5010000 failed with error -12
    [    1.864361] ------------[ cut here ]------------

    I attach full trace of the start up.

    3) Also, from the same trace, please note of the following message

    [    0.000000] [Firmware Bug]: Kernel image misaligned at boot, please fix your bootloader!

    Could you please explain what is happening here?

    5141.SBL_HLOS_logs.txt

    I'd be great if you could give some feedback on the above questions.

    Many thanks again

    Many thanks,

    Mònica

  • Hi Monica,

    There are some memory units that even though set to disabled might cause some trouble. Would it not be best to delete the ones not meant to be used?

    These are due to the repeated copied content of rtos memory map on the som.dtsi. Usually this should cause any issue. In order to remove the warning, could you replace the below k3-j721e-som-p0.dtsi file and then build the dtb?

    /cfs-file/__key/communityserver-discussions-components-files/791/7345.k3_2D00_j721e_2D00_som_2D00_p0.dtsi

    Also, there's some problem with serdes: it is causing coredumps in the kernel. For example:

    instead of disabling the serdes, could you disable serdes_wiz in k3-j721e-common-proc-board.dts and rebuild the dtb file as shown below 

    /cfs-file/__key/communityserver-discussions-components-files/791/4130.k3_2D00_j721e_2D00_common_2D00_proc_2D00_board.dts

    The serdes_wiz is disabled here because SBL configures the serdes for J721e and for a smooth configuration, we are disabling the serdes.

    [    0.000000] [Firmware Bug]: Kernel image misaligned at boot, please fix your bootloader!

    As there is no u-boot here, the kernel image is loaded in 0x80080000 location (as mentioned in the config.mk) as the ATF would jump to this location to pick up the image. Since the check here is to keep the base address of image at 2MB aligned, Hence this message is printed.

    Please let me know if you are able to run your usecase with the above changes.

    Regards,

    Nikhil

  • Hi Nikhil,

    Thank you, we are going to try that. Meanwhile, have you been able to look at the "DEM error" that stops CAN transmission (refer to last Pablo's comment)?

    Regards,

    Mònica

  • Hello Nikhil,

    We have applied your proposed changes, and we still observe SERDES core dumps and CAN DEM event is still present. Here the piece of kernel log when failure:

    [    1.454743] ------------[ cut here ]------------
    [    1.459470] wiz bus@100000:wiz@5000000: Unable to create SERDES platform device
    [    1.466977] WARNING: CPU: 0 PID: 21 at drivers/phy/ti/phy-j721e-wiz.c:1551 wiz_probe+0xbe8/0x1118
    [    1.476042] Modules linked in:
    [    1.479160] CPU: 0 PID: 21 Comm: kworker/0:1 Not tainted 5.10.153-g90c3a58fd2 #14
    [    1.486802] Hardware name: Texas Instruments K3 J721E SoC (DT)
    [    1.492766] Workqueue: events deferred_probe_work_func
    [    1.498013] pstate: 60000005 (nZCv daif -PAN -UAO -TCO BTYPE=--)
    [    1.504147] pc : wiz_probe+0xbe8/0x1118
    [    1.508060] lr : wiz_probe+0xbe8/0x1118
    [    1.511971] sp : ffff8000115cba80
    [    1.515349] x29: ffff8000115cba80 x28: ffff00087fa1d1c8 
    [    1.520774] x27: 0000000000000002 x26: 0000000000000002 
    [    1.526198] x25: ffff00082892b0d8 x24: ffff800010b8a9c0 
    [    1.531622] x23: ffff800010b8aca4 x22: ffff00082892b0c8 
    [    1.537046] x21: 0000000000000000 x20: ffff0008273a5810 
    [    1.542470] x19: ffff00082892b080 x18: 0000000000000010 
    [    1.547894] x17: 0000000063b3b1a2 x16: 0000000092274fdb 
    [    1.553318] x15: ffff000827149330 x14: 0000000000000115 
    [    1.558742] x13: ffff000827149330 x12: 00000000ffffffea 
    [    1.564166] x11: ffff8000111b04b0 x10: ffff800011198470 
    [    1.569590] x9 : ffff8000111984c8 x8 : 0000000000017fe8 
    [    1.575014] x7 : c0000000ffffefff x6 : 0000000000000001 
    [    1.580438] x5 : 0000000000000000 x4 : 0000000000000000 
    [    1.585861] x3 : 00000000ffffffff x2 : ffff800011140440 
    [    1.591285] x1 : cfee91d9e7945500 x0 : 0000000000000000 
    [    1.596710] Call trace:
    [    1.599202]  wiz_probe+0xbe8/0x1118
    [    1.602760]  platform_drv_probe+0x54/0xa8
    [    1.606850]  really_probe+0xec/0x3e0
    [    1.610496]  driver_probe_device+0x58/0xb8
    [    1.614676]  __device_attach_driver+0xb8/0xe0
    [    1.619121]  bus_for_each_drv+0x78/0xc8
    [    1.623033]  __device_attach+0xf8/0x188
    [    1.626946]  device_initial_probe+0x14/0x20
    [    1.631213]  bus_probe_device+0x9c/0xa8
    [    1.635126]  deferred_probe_work_func+0x88/0xc0
    [    1.639752]  process_one_work+0x1a0/0x328
    [    1.643842]  worker_thread+0x1f8/0x420
    [    1.647666]  kthread+0x140/0x160
    [    1.650957]  ret_from_fork+0x10/0x34
    [    1.654603] ---[ end trace 3cb30b023cced43b ]---
    [    1.659575] wiz: probe of bus@100000:wiz@5000000 failed with error -12
    [    1.676600] ------------[ cut here ]------------
    [    1.681372] wiz bus@100000:wiz@5010000: Unable to create SERDES platform device
    [    1.688866] WARNING: CPU: 0 PID: 21 at drivers/phy/ti/phy-j721e-wiz.c:1551 wiz_probe+0xbe8/0x1118
    [    1.697930] Modules linked in:
    [    1.701047] CPU: 0 PID: 21 Comm: kworker/0:1 Tainted: G        W         5.10.153-g90c3a58fd2 #14
    [    1.710111] Hardware name: Texas Instruments K3 J721E SoC (DT)
    [    1.716072] Workqueue: events deferred_probe_work_func
    [    1.721319] pstate: 60000005 (nZCv daif -PAN -UAO -TCO BTYPE=--)
    [    1.727453] pc : wiz_probe+0xbe8/0x1118
    [    1.731365] lr : wiz_probe+0xbe8/0x1118
    [    1.735276] sp : ffff8000115cba80
    [    1.738655] x29: ffff8000115cba80 x28: ffff00087fa1f240 
    [    1.744080] x27: 0000000000000000 x26: 0000000000000002 
    [    1.749504] x25: 0000000000000002 x24: ffff0008273a5c10 
    [    1.754928] x23: ffff00082892b108 x22: ffff00082892b0e8 
    [    1.760352] x21: 0000000000000002 x20: ffff0008273a5c10 
    [    1.765776] x19: ffff00082892b080 x18: 0000000000000010 
    [    1.771200] x17: 0000000063b3b1a2 x16: 0000000092274fdb 
    [    1.776623] x15: ffff000827149330 x14: 0000000000000140 
    [    1.782047] x13: ffff000827149330 x12: 00000000ffffffea 
    [    1.787471] x11: ffff8000111b04b0 x10: ffff800011198470 
    [    1.792895] x9 : ffff8000111984c8 x8 : 0000000000017fe8 
    [    1.798319] x7 : c0000000ffffefff x6 : 0000000000000001 
    [    1.803742] x5 : 0000000000000000 x4 : 0000000000000000 
    [    1.809166] x3 : 00000000ffffffff x2 : ffff800011140440 
    [    1.814590] x1 : cfee91d9e7945500 x0 : 0000000000000000 
    [    1.820014] Call trace:
    [    1.822505]  wiz_probe+0xbe8/0x1118
    [    1.826063]  platform_drv_probe+0x54/0xa8
    [    1.830153]  really_probe+0xec/0x3e0
    [    1.833799]  driver_probe_device+0x58/0xb8
    [    1.837978]  __device_attach_driver+0xb8/0xe0
    [    1.842423]  bus_for_each_drv+0x78/0xc8
    [    1.846335]  __device_attach+0xf8/0x188
    [    1.850247]  device_initial_probe+0x14/0x20
    [    1.854515]  bus_probe_device+0x9c/0xa8
    [    1.858427]  deferred_probe_work_func+0x88/0xc0
    [    1.863052]  process_one_work+0x1a0/0x328
    [    1.867141]  worker_thread+0x1f8/0x420
    [    1.870966]  kthread+0x140/0x160
    [    1.874257]  ret_from_fork+0x10/0x34
    [    1.877903] ---[ end trace 3cb30b023cced43c ]---
    [    1.882875] wiz: probe of bus@100000:wiz@5010000 failed with error -12

    NOTE: attached changes applied to dtsi and dts files

    7140.changes_proposed.zip

    Have you tried these changes and did they work for you?

    Thanks

  • Hi Pablo,

    A lot of communication has happened on this thread. So can you please summarize your current issue and then we can take it up from there. Please share the environment details and the patches that you have applied. Also, please share the logs if there are any.

    Regards,
    Parth

  • Summary of the ticket

    Goal: To be able to run a CAN application in MCU1_0 concurrently with one application from vision_apps in the Linux side.

               Due to the need of having early CAN we wanted to use SBL HLOS in development mode

    Current status / Steps to reproduce:

    • We were advised by Nikhil to first make it work with SBL HLOS optimized mode. We were ok with the approach but we need to move after to development mode.
    • We are working on SDK v8.5 using CAN_profile demo in debug mode and CAN_TX_ONLY_MODE (STD_ON)’ without Loopback ‘CAN_LOOPBACK_ENABLE  (STD_OFF)’ for MCU1_0 from MCUSW package with a minor change in can_profile.h were we changed the number of iterations from 2U to 300U

    #define APP_NUM_ITERATION (300U)

    • From a clean SDK v8.5 we have applied the following patches provided by TI (attached in Patches_applied.zip):
      • 0001-vision_apps-Integrated.patch
      • patch
      • patch
      • patch (this should be the last one to be applied)
      • 5141.Patches_applied.zip

    The steps we follow from a clean SDK to build and run the applications are:

    1. In the linux kernel source base path (board-support/linux-5.10.153+gitAUTOINC+90c3a58fd2-g90c3a58fd2) we apply the following patches:
        - Linux_changes.patch
        - 1616.0001_2D00_vision_5F00_apps_2D00_Integrated.patch
       The only conflict with these two paths are the bootargs line in k3-j721e-common-proc-board.dts (line 17), which we resolve as:
    `bootargs = "console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 root=/dev/mmcblk1p2 rw rootfstype=ext4 rootwait";`

         - Apply vision_apps_integrated.patch
     

    2. Apply mcusw_changes.patch in the mcusw folder of the sdk_rtos

    3. Clean SD partitions setup.
        - ./psdk_rtos/scripts/mk-linux-card.sh  /dev/mmcblk0
        - ./psdk_rtos/scripts/install_to_sd_card.sh

    4. Build the Linux Kernel DTBS (from ${SDK_LINUX})
        - make linux-dtbs

    5. Build CAN profile application (from ${PSDK_RTOS}/mcusw/build)
        - make -s can_profile_app BOARD=j721e_evm SOC=j721e BUILD_PROFILE=debug CORE=mcu1_0 BUILD_OS_TYPE=freertos

    6. Prepare combined image by modifying ${PSDK_RTOS}/pdk_jacinto_08_05_00_36/packages/ti/boot/sbl/tools/combined_appimage/config.mk (by default optimized mode for SBL_HLOS is set)
        - DTB_IMG to point to the previously compiled arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dtb
        - IMG1 to point to the previously compiled mcusw/binary/can_profile_app_freertos/bin/j721e/can_profile_app_freertos_mcu1_0_debug.xer5f

        - IMG2-IMG6 point to the vision apps binaries (MCU2_0, MCU2_1, C66_1, C66_2 and C7)

    7. Generate combined image
          - make

    8. Compile sbl_mmcsd_hlos in debug mode.  Since bulding SBL HLOS in debug mode (BUILD_PROFILE=debug option) gives an error, to bypass it we have commented these lines in ti-processor-sdk-rtos-j721e-evm-08_05_00_11/pdk_jacinto_08_05_00_36/packages/ti/boot/sbl/sbl_component.mk

     # SBL not supported for any profile
    
    # other than release
    
    # >>>>>> Comment these lines to enable debug build
    
    #ifneq ($(BUILD_PROFILE), release)
    
    #sbl_LIB_LIST =
    
    #sbl_EXAMPLE_LIST =
    
    #SBL_CFLAGS =
    
    #endif # ifneq ($(BUILD_PROFILE), release)

     also modify pdk_jacinto_08_05_00_36/packages/ti/boot/sbl/soc/k3/sbl_log.h to get all prints to UART

           //#define SBL_log(dbg_level, ...)  if ((int32_t)(dbg_level) <= SBL_LOG_LEVEL) { UART_printf(__VA_ARGS__); }
    
           #define SBL_log(dbg_level, ...) UART_printf(__VA_ARGS__);

         - make sbl_mmcsd_img_hlos BUILD_PROFILE=debug BOARD=j721e_evm SOC=j721e

    9. Copy binaries to SD.
        - cp ti-processor-sdk-rtos-j721e-evm-08_05_00_11/pdk_jacinto_08_05_00_36/packages/ti/boot/sbl/binary/j721e_evm/mmcsd       /bin/sbl_mmcsd_img_hlos_mcu1_0_debug.tiimage /media/$USER/BOOT/tiboot3.bin
        - cp ti-processor-sdk-rtos-j721e-evm-08_05_00_11/pdk_jacinto_08_05_00_36/packages/ti/drv/sciclient/soc/V1/tifs.bin /media/$USER/BOOT/
        - cp ti-processor-sdk-rtos-j721e-evm-08_05_00_11/pdk_jacinto_08_05_00_36/packages/ti/boot/sbl/tools/combined_appimage/bin/j721e_evm/combined.appimage /media/$USER/BOOT/app  

     

    Problems we are facing:

    1. DEM error reported in CAN Profile

    Once vision APPs are running using SBL and combined image in optimized mode we observe on every run one DEM error that stops CAN transmission.

     

    After some time running CAN_profile (that is patched with the patch provided), at some point of loading kernel in A72 CAN the transmission is stopped and DEM Event is appearing. To further debug, we instrument the code and see that the eventID of DEM is internally coded as 7. Busoff is deteted (Can_mcanCancelAllPendingMessages is called because of that in Can_mcanProcessISR)

     

     

    Debugging Can profile it is observed MCU_MCAN0_CFG (@0x40528050) has value 0x0B80000 when Can_mcanCancelAllPendingMessages is called, so PEA, BO, EW and EP are actived

    We think this is happening because of DTB used by kernel (memories or clock path, etc)

    Other tests we’ve tried:

    • Add a delay of 15s in the application and wait to start CAN after the initialization of A72 is completed. In this case CAN works and no DEMs appear
    • Setting CAN_TX_ONLY_MODE (STD_OFF) (test is on RX mode) we face the same problem (DEM appears)

    2. Coredumps in the Kernel (SERDES)

    We are facing some problems with SERDES as it is causing core-dumps in the Kernel

      

    [    1.625229] wiz: probe of bus@100000:wiz@5000000 failed with error -12
    
    [    1.641722] ------------[ cut here ]------------
    
    [    1.646494] wiz bus@100000:wiz@5010000: Unable to create SERDES platform device
    
    [    1.653988] WARNING: CPU: 0 PID: 61 at drivers/phy/ti/phy-j721e-wiz.c:1551 wiz_probe+0xbe8/0x1118
    
    [    1.663053] Modules linked in:
    
    [    1.666169] CPU: 0 PID: 61 Comm: kworker/0:2 Tainted: G        W         5.10.153-g90c3a58fd2 #1
    
    [    1.675144] Hardware name: Texas Instruments K3 J721E SoC (DT)
    
    [    1.681105] Workqueue: events deferred_probe_work_func
    
    [    1.686352] pstate: 60000005 (nZCv daif -PAN -UAO -TCO BTYPE=--)
    
    [    1.692486] pc : wiz_probe+0xbe8/0x1118
    
    [    1.696398] lr : wiz_probe+0xbe8/0x1118
    
    [    1.700310] sp : ffff800011713a80
    
    [    1.703688] x29: ffff800011713a80 x28: ffff00087fa1a880
    
    [    1.709112] x27: 0000000000000000 x26: 0000000000000002
    
    [    1.714536] x25: 0000000000000002 x24: ffff0008273e5c10
    
    [    1.719960] x23: ffff00082891d108 x22: ffff00082891d0e8
    
    [    1.725385] x21: 0000000000000002 x20: ffff0008273e5c10
    
    [    1.730808] x19: ffff00082891d080 x18: 0000000000000010
    
    [    1.736233] x17: 0000000000000000 x16: 0000000012117bb7
    
    [    1.741657] x15: ffff000827c9d930 x14: 0000000000000140
    
    [    1.747080] x13: ffff000827c9d930 x12: 00000000ffffffea
    
    [    1.752504] x11: ffff8000111b04b0 x10: ffff800011198470
    
    [    1.757928] x9 : ffff8000111984c8 x8 : 0000000000017fe8
    
    [    1.763352] x7 : c0000000ffffefff x6 : 0000000000000001
    
    [    1.768776] x5 : 0000000000000000 x4 : 0000000000000000
    
    [    1.774200] x3 : 00000000ffffffff x2 : ffff800011140440
    
    [    1.779623] x1 : d5be478556c6da00 x0 : 0000000000000000
    
    [    1.785048] Call trace:
    
    [    1.787540]  wiz_probe+0xbe8/0x1118
    
    [    1.791097]  platform_drv_probe+0x54/0xa8
    
    [    1.795187]  really_probe+0xec/0x3e0
    
    [    1.798833]  driver_probe_device+0x58/0xb8
    
    [    1.803012]  __device_attach_driver+0xb8/0xe0
    
    [    1.807457]  bus_for_each_drv+0x78/0xc8
    
    [    1.811370]  __device_attach+0xf8/0x188
    
    [    1.815282]  device_initial_probe+0x14/0x20
    
    [    1.819549]  bus_probe_device+0x9c/0xa8
    
    [    1.823462]  deferred_probe_work_func+0x88/0xc0
    
    [    1.828087]  process_one_work+0x1a0/0x328
    
    [    1.832177]  worker_thread+0x1f8/0x420
    
    [    1.836002]  kthread+0x140/0x160
    
    [    1.839293]  ret_from_fork+0x10/0x34
    
    [    1.842939] ---[ end trace f86c66cf3a0c6091 ]---
    
    [    1.847904] wiz: probe of bus@100000:wiz@5010000 failed with error -12
    
    [    1.864361] ------------[ cut here ]------------

    Nikhil provided some improvements in FAQ

    https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1210640/faq-tda4vm-run-vision_apps-in-sbl-boot-flow-with-combined_appimage 

    but we are still seeing the same problem, so we have not taken his change so far

  • Hi Pablo,

    Thanks for the summary, I'll try and reproduce the issue on my end. Meanwhile can you please check if you see this issue when vision apps are booted?

    Regards,
    Parth

  • Hello Parth

    Any update on this? Have you been able to reproduce it in your end?

    About your question, we don't understand why you ask that. We observe the issue when MCU1_0 is running and Kernel is loading. At some point, issue appears. Application is prepared with binaries (see point 6 described by Monica), that are loaded by SBL, but Vision app is not running till Arago is not available. 

    6. Prepare combined image by modifying ${PSDK_RTOS}/pdk_jacinto_08_05_00_36/packages/ti/boot/sbl/tools/combined_appimage/config.mk (by default optimized mode for SBL_HLOS is set)
        - DTB_IMG to point to the previously compiled arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dtb
        - IMG1 to point to the previously compiled mcusw/binary/can_profile_app_freertos/bin/j721e/can_profile_app_freertos_mcu1_0_debug.xer5f

        - IMG2-IMG6 point to the vision apps binaries (MCU2_0, MCU2_1, C66_1, C66_2 and C7)

    We assume issue is due to some configuration in Device Tree but may be is a wrong assumption.

    Thanks

  • Hi Pablo,

    Unlocking this issue for further discussion. Working on reproducing the issue, Will keep you posted. Meanwhile, please mention if there has been any progress on your end.

    Regards,
    Parth

  • Hello Parth.

    No, we don't have any progress on this. We have been working in other tasks. 

    Thanks for your support

  • Hello Pablo,

    Short update: Parth is still working on reproducing your issue as he has some trouble with some patches. We hope to post an update on Monday or Tuesday.


    Best regards,
    François.

  • Thanks for your update. 

  • Hi Pablo,

    Can you please share the k3-j721e-som-p0.dtsi and k3-j721e-common-proc-board.dts files that you are using at your end after all the modifications are done?

    Regards,
    Parth

  • Hello, Parth.

    It was already informed that changes to generate DTB are only the ones referred by TI in this post.

    Anyway, here the file we are using. 

    2744.DTS_and_DTSI_changes_propsed_by_TI.zip

    Many thanks

  • Hi Pablo,

    Goal: To be able to run a CAN application in MCU1_0 concurrently with one application from vision_apps in the Linux side.

    The goal is to run any CAN application or you specifically want the can profile app in TX only mode?
    If any can application is fine, you can run can profile app in loop back mode. It is working fine on my end.

    Coming to DEM error, do you have a can tool connected to the board that can receive the can messages? I am suspecting that error is reported as there is no acknowledgement from receiver.

    Regards,
    Parth

  • Hi Pablo,

    Sorry if I was not clear in my previous post.

    I am able to reproduce the error when running the app in TX only mode. The loop-back mode works fine on my end, so if you do not have a specific requirement for TX only mode, you can move ahead with Loopback mode test.

    Coming to DEM error, do you have a can tool connected to the board that can receive the can messages? I am suspecting that error is reported as there is no acknowledgement from receiver.

    Regarding this, the TX mode requires a CAN tool to be connected to the board which can receive the data, else it will keep waiting on a semaphore for the acknowledgement. I am suspecting this could be the reason you are seeing the DEM errors. I don't have a can tool with me currently so I could not verify that so I just want to ask you if you have it connected.

    Regards,
    Parth

  • Hello Parth,

    Thanks to try and to reproduce it, and to try to confirm the issue is reproducible in your side. Regading your last sentence "I don't have a can tool with me currently so I could not verify that so", I conclude you are not aligned with the context of the the issue.

    Probably we did not specifically inform you that we are working in the way of integrating the TDA4 system in one vehicle, and interat with it thorugh CANFD. Obviuosly we need TX and RX, then Loopback is obviously discarded. In issue observed and described, we were using your application demo (CAN Profile) in NO LOOPBACK and in only transmission:

    We are working on SDK v8.5 using CAN_profile demo in debug mode and CAN_TX_ONLY_MODE (STD_ON)’ without Loopback ‘CAN_LOOPBACK_ENABLE  (STD_OFF)’ for MCU1_0 from MCUSW package with a minor change in can_profile.h were we changed the number of iterations from 2U to 300U

    Parth, I would remark your statement:

    Regarding this, the TX mode requires a CAN tool to be connected to the board which can receive the data

    I am surprised you think we don't know it. The fact is we are conencting CAN tool and you don't. Then, you did not reproduce the issue, as you don't have knowledgement in real frames trasnmitted, that this does cause errors (according to specification).

    We were suspecting in some conflict with Kernel loading (some issues in PLLS?)

    After some time running CAN_profile (that is patched with the patch provided), at some point of loading kernel in A72 CAN the transmission is stopped and DEM Event is appearing.

    because we have observed that if initialization is done after linux is fully loaded in A72, the issue does not appear. Then this is the way we are now as workaround: wait for a while (20s) assuring KERNEL and ARAGO is fully loaded.

    We wanted support from TI as in previous activity to investigate in DTS/kernel etc.

    We would appreciate you try to reproduce with NO LOOPBACK mode and with ANY can tool connected.

    Thanks

  • Hi Parth,

    Please have a look at the Goal that was previously posted in this thread:

    Goal: To be able to run a CAN application in MCU1_0 concurrently with one application from vision_apps in the Linux side.

               Due to the need of having early CAN we wanted to use SBL HLOS in development mode

    We need to achieve the above as soon as possible and yes, CAN frames need to be transmitted and received. Please make sure you can get hold of a CAN tool to test this.

  • Hi Monica, Pablo,

    Thanks for the details. I have been able to reproduce the issue with can tool connected and resolve this as well. Just confirming a few things. Will be sharing the details in sometime.

    Regards,
    Parth

  • Thanks. We will wait for some more time 

  • Hi Pablo,

    The CAN transceiver seems to be getting probed by Linux, which is interfering with the CAN on RTOS. Please disable the CAN transceiver node from dts and try.

    Please see the changes required below:

    disable_transceiver.zip

    With these changes I have been able to run the CAN profile app without any issues for 300 iterations.

    Regards,
    Parth

  • Hi Parth.

    We applied your patch, and issue is solved finally. Thanks!

    Rewinding to the things listed by us as "Summary of the ticket" , there still are two important things to resolve our booting for early Can with no issues in Linux

    Summary of the ticket

    1.- Combined image can only be created for Optimized, and we want Development mode, in order to have U-Boot run in A72 startup

    2.- SERDES issue.

    We would apreciate any suggestions/tips/resolutions on that.

    Thanks

  • Hi Parth,

    Thanks for your reply. Please note the missing points to be fixed in this thread (above mentioned by Pablo)

    Forgive my lack of knowledge on DTS, maybe your next reply will help me understand better but in your patch:

     &mcu_mcan0 {
         status = "disabled";
    -    pinctrl-names = "default";
    -    pinctrl-0 = <&mcu_mcan0_pins_default>;
    -    phys = <&transceiver1>;
    +    //pinctrl-names = "default";
    +    //pinctrl-0 = <&mcu_mcan0_pins_default>;
    +    //phys = <&transceiver1>;
     };

    status for mcu_mcan0 is disabled. If this module is disabled, does it really matter its definitions/attributes?

  • Hi Pablo, Monica,

    Glad to know that you are unblocked for now. I'll work through the remaining open points in this thread and get back to you.

    Thanks & Regards,
    Parth

  • Hi Pablo,

    Please find the changes to fix serdes failures attached.

    0001-serdes_issue_fix.zip

    Regards,
    Parth