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.

TDA4AL-Q1: [TDA4AL][J721S2] How to setup for tispl.bin is bigger than 2MB ?

Part Number: TDA4AL-Q1

Tool/software:

Hi TI

[TDA4AL][J721S2] How to setup for tispl.bin is bigger than 2MB ?

Because the size of our "mcu r5 fw" is increased from 200KB to 1.5MB
that make the size of tispl.bin is increased from 1.00MB tp 2.3MB
The 2.3MB is bigger than the size of tispl partition (2MB) in boot partition of eMMC (comment at a)

Now I have increase the size of tispl partition from 2MB to 3MB (comment at b)
and set the offset of uboot partition from 0x1400 to 0x1C00 (comment at c)

Then the device can boot to kernel, but it has errors !!
1)
"dfu 0 mmc 0" fail when tispl.bin is 2.3MB (comment at f)
"dfu 0 mmc 0" work when tispl.bin is 1MB (comment at g)

2)
there is no /sys/class/remoteproc/remoteproc when tispl.bin is 2.3MB
there is no /sys/kernel/debug/remoteproc when tispl.bin is 2.3MB

Is there any suggestion to fix or debug these ?

Does those error cause by the memory mapping of "mcu r5 fw" or somethings ?
Where is memeory address and size of "mcu r5 fw" ?


===============================

a)
software-dl.ti.com/.../UG-Memory.html
3.1.1.5.5. Booting tiboot3.bin, tispl.bin and u-boot.img from eMMC boot partition (For K3 class of SoCs)
eMMC boot partition layout:
- ti original design
sector addr(byte) size(byte)
0x00000 0x00000000 0x00080000 tiboot3 512 KB
0x00400 0x00080000 0x00200000 tispl 2 MB
0x01400 0x00280000 0x00400000 u-boot 4 MB
0x03400 0x00680000 0x00020000 env 128 KB
0x03500 0x006A0000 0x00020000 bak env 128 KB
0x03600
- we resize tispl and u-boot to 3MB
0x00000 0x00000000 0x00080000 tiboot3 512 KB
0x00400 0x00080000 0x00300000 tispl 3 MB
0x01C00 0x00380000 0x00300000 u-boot 3 MB
0x03400 0x00680000 0x00020000 env 128 KB
0x03500 0x006A0000 0x00020000 envbak 128 KB
0x03600

b) dfu: resize tispl and uboot to 3MB for download
setenv dfu_alt_info_emmc "rawemmc raw 0 0x800000 mmcpart 1; rootfs part 0 1; tiboot3.bin.raw raw 0x0 0x400 mmcpart 1; tispl.bin.raw raw 0x400 0x1800 mmcpart 1; u-boot.img.raw raw 0x1C00 0x1800 mmcpart 1; u-env.raw raw 0x3400 0x100 mmcpart 1; sysfw.itb.raw raw 0x3600 0x800 mmcpart 1"env.raw raw 0x3400 0x100 mmcpart 1; sysfw.itb.raw raw 0x3600 0x800 mmcpart 1"
setenv dfu_alt_info $dfu_alt_info_emmc
saveenv

c) offset of uboot in boot partition for booting
yocto-build/sources/src/u-boot/ti-u-boot/configs/j721s2_evm_a72_defconfig
-CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x1400
+CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x1C00

d) dfu flash image into boot partition
dfu-util.exe -a tispl -D tispl.bin
dfu-util.exe -a uboot -D u-boot.img

e) other informations
software-dl.ti.com/.../UG-General-Info.html
3.1.1.1.3. Image Formats
tispl.bin / "R5 DM FW"
3.1.1.1.4. Boot Flow
MCU R5: Load R5 firmware

f) dfu fail when tispl.bin is 2.3MB
=> dfu 0 mmc 0
cmd_process:603: dfu 0 mmc 0
device_probe:519: (jiahao)
device_probe:525: dev_power_domain_on (jiahao)
ti_sci_power_domain_on:57: pd=00000000fde8ef78 (jiahao)
ti_sci_power_domain_on:61: get_device_exclusive (jiahao)
ti_sci system-controller@44083000: Message not acknowledged
ti-sci-pm-domains power-controller: ti_sci_power_domain_on: get_device(360) failed (-19)
device_probe:622: fail (jiahao)
device_probe:622: fail (jiahao)
device_probe:519: (jiahao)
device_probe:525: dev_power_domain_on (jiahao)
ti_sci_power_domain_on:57: pd=00000000fde8ef78 (jiahao)
ti_sci_power_domain_on:61: get_device_exclusive (jiahao)
ti_sci system-controller@44083000: Message not acknowledged
ti-sci-pm-domains power-controller: ti_sci_power_domain_on: get_device(360) failed (-19)
device_probe:622: fail (jiahao)
device_probe:622: fail (jiahao)
No USB device found
udc_device_get_by_index failed
=>

g) dfu work when tispl.bin is 1MB

=> dfu 0 mmc 0
cmd_process:603: dfu 0 mmc 0
device_probe:519: (jiahao)
device_probe:525: dev_power_domain_on (jiahao)
device_probe:561: device_get_dma_constraints(usb@6000000) (jiahao)
device_probe:566: uclass_pre_probe_device(usb@6000000) (jiahao)
device_probe:589: drv->probe(usb@6000000) (jiahao)
cdns-usb3-peripheral usb@6000000: DRD version v1 (ID: 0004024e, rev: 00000200)
cdns-usb3-peripheral usb@6000000: Initialized ep0 support:
cdns-usb3-peripheral usb@6000000: Initialized ep1out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep2out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep3out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep4out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep5out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep6out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep7out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep8out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep9out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep10out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep11out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep12out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep13out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep14out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep15out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep1in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep2in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep3in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep4in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep5in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep6in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep7in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep8in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep9in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep10in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep11in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep12in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep13in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep14in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep15in support: BULK, INT ISO
device_probe:595: uclass_post_probe_device(usb@6000000) (jiahao)
device_probe:607: device_notify(usb@6000000) (jiahao)
device_probe:612: done (jiahao)
g_dnl_usb_id_change: g_dnl_driver.name = usb_dnl_dfu
g_dnl_usb_id_change: idProduct: 0x6168
g_dnl_usb_id_change: idVendor: 0x451


Thanks
Jiahao

  • U-Boot SPL 2024.04-ti-g4a98663bc0d4 (May 08 2025 - 14:10:25 +0000)
    SYSFW ABI: 4.0 (firmware rev 0x000a '10.1.6--v10.01.06 (Fiery Fox)')
    Enable MCU ADC1 as GPI input
    MCU_CTRL_MMR_CFG0_MCU_ADC1_CTRL:10001
    MCU_ADC1_AIN0 value:0
    MCU_ADC1_AIN1 value:0
    MCU_ADC1_AIN2 value:0
    MCU_ADC1_AIN3 value:0
    hwid:0000
    hwid:0
    EEPROM not available at 0x50, trying to read at 0x51
    Reading on-board EEPROM at 0x51 failed -121
    SPL initial stack usage: 13456 bytes
    Trying to boot from MMC1
    alloc space exhausted
    Could not get FIT buffer of 2450944 bytes
            check CONFIG_SPL_SYS_MALLOC_SIZE
    Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
    Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
    Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
    Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
    Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
    Loading Environment from nowhere... OK
    init_env from device 17 not supported!
    Starting ATF on ARM64 core...
    
    NOTICE:  BL31: v2.11.0(release):v2.11.0-906-g58b25570c9-dirty
    NOTICE:  BL31: Built : 04:20:32, Nov  1 2024
    I/TC:
    I/TC: OP-TEE version: 4.4.0-dev (gcc version 13.3.0 (GCC)) #1 Fri Oct 18 17:45:27 UTC 2024 aarch64
    I/TC: WARNING: This OP-TEE configuration ▒ight be insecure!
    I/TC: WARNING: Please check https://optee.readthedocs.io/en/latest/architecture/porting_guidelines.html
    I/TC: Primary CPU initializing
    I/TC: GIC redistributor base address not provided
    I/TC: Assuming default GIC group status and modifier
    I/TC: SYSFW ABI: 4.0 (firmware rev 0x000a '10.1.6--v10.01.06 (Fiery Fox)')
    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: HUK Initialized
    I/TC: Primary CPU switching to normal world boot
    
    U-Boot SPL 2024.04-ti-g4a98663bc0d4 (May 14 2025 - 03:42:20 +0000)
    THIS: tispl
    k3_spl_init:235:  (jiahao)
    k3_spl_init:282: k3_sysfw_print_ver  (jiahao)
    SYSFW ABI: 4.0 (firmware rev 0x000a '10.1.6--v10.01.06 (Fiery Fox)')
    k3_spl_init:285: boot_read_hwid  (jiahao)
    Enable MCU ADC1 as GPI`input
    MCU_CTRL_MMR_CFG0_MCU_ADC1_CTRL:10001
    MCU_ADC1_AIN0 value:0
    MCU_ADC1_AIN1 value:0
    MCU_ADC1_AIN2 value:0
    MCU_ADC1_AIN3 value:0
    hwid:0000
    hwid:0
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    ti_sci_power_domain_on:57: pd=80477ae8  (jiahao)
    ti_sci_power_domain_on:61: get_device_exclusive  (jiahao)
    i2c_omap i2c@42120000: pinctrl_select_state_full: uclass_get_device_by_phandle_id: err=-19
    device_probe:561: device_get_dma_constraints(i2c@42120000)  (jiahao)
    device_probe:566: uclass_pre_probe_device(i2c@42120000)  (jiahao)
    device_probe:589: drv->probe(i2c@42120000)  (jiahao)
    device_probe:595: uclass_post_probe_device(i2c@42120000)  (jiahao)
    device_probe:607: device_notify(i2c@42120000)  (jiahao)
    device_probe:612: done  (jiahao)
    EEPROM not available at 0x50, trying to read at 0x51
    Reading on-board EEPROM at 0x51 failed -121
    board_init_r:707:  (jiahao)
    board_init_r:750: spl_board_init  (jiahao)
    board_init_r:796: boot_from_devices  (jiahao)
    boot_from_devices:638:  (jiahao)
    Trying to boot from MMC1
    spl_load_image:589: spl_image->name=()  (jiahao)
    spl_load_image:594: loader->load_image  (jiahao)
    spl_mmc_load_image:467: spl_mmc_load  (jiahao)
    spl_mmc_load:366: (, bootdev, u-boot.img, 0, 0x1c00)  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    ti_sci_power_domain_on:57: pd=81fffc68  (jiahao)
    ti_sci_power_domain_on:61: get_device_exclusive  (jiahao)
    device_probe:561: device_get_dma_constraints(mmc@4f80000)  (jiahao)
    device_probe:566: uclass_pre_probe_device(mmc@4f80000)  (jiahao)
    device_probe:589: drv->probe(mmc@4f80000)  (jiahao)
    device_probe:595: uclass_post_probe_device(mmc@4f80000)  (jiahao)
    device_probe:607: device_notify(mmc@4f80000)  (jiahao)
    device_probe:612: done  (jiahao)
    spl_mmc_load:390: MMCSD_MODE_EMMCBOOT  (jiahao)
    spl_mmc_load:392: spl_mmc_emmc_boot_partition  (jiahao)
    spl_mmc_load:408: MMCSD_MODE_RAW  (jiahao)
    spl_mmc_load:432: mmc_load_image_raw_sector('', bootdev, mmc, 0x1c00)  (jiahao)
    mmc_load_image_raw_sector:53: h_spl_load_read  (jiahao)
    Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
    Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
    mmc_load_image_raw_sector:64: return 0;  (jiahao)
    spl_mmc_load:436: return 0;  (jiahao)
    spl_load_image:610: spl_check_board_image  (jiahao)
    spl_load_image:614: return 0;  (jiahao)
    board_init_r:807:  (jiahao)
    board_init_r:809: spl_image.name=() (jiahao)
    board_init_r:811: spl_perform_fixups(&spl_image); (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    ti_sci_power_domain_on:57: pd=81fffc58  (jiahao)
    Jdevice_probe:519:  (jiahao)et_device_exclusive  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(pinctrl@4301c068)  (jiahao)
    device_probe:566: uclass_pre_probe_device(pinctrl@4301c068)  (jiahao)
    device_probe:589: drv->probe(pinctrl@4301c068)  (jiahao)
    device_probe:595: uclass_post_probe_device(pinctrl@4301c068)  (jiahao)
    device_probe:607: device_notify(pinctrl@4301c068)  (jiahao)
    device_probe:612: done  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(wkup_gpio_pins_default)  (jiahao)
    device_probe:566: uclass_pre_probe_device(wkup_gpio_pins_default)  (jiahao)
    device_probe:595: uclass_post_probe_device(wkup_gpio_pins_default)  (jiahao)
    device_probe:607: device_notify(wkup_gpio_pins_default)  (jiahao)
    device_probe:612: done  (jiahao)
    device_probe:561: device_get_dma_constraints(gpio@42110000)  (jiahao)
    device_probe:566: uclass_pre_probe_device(gpio@42110000)  (jiahao)
    device_probe:589: drv->probe(gpio@42110000)  (jiahao)
    device_probe:595: uclass_post_probe_device(gpio@42110000)  (jiahao)
    device_probe:607: device_notify(gpio@42110000)  (jiahao)
    device_probe:612: done  (jiahao)
    board_init_r:817: Jumping to U-Boot...  (jiahao)
    board_init_r:849: SPL malloc() used 0x1389e0 bytes (1250 KB)  (jiahao)
    board_init_r:883: spl_board_prepare_for_boot  (jiahao)
    board_init_r:886: spl_image.name=() (jiahao)
    board_init_r:887: spl_image.load_addr=0x80800000 (jiahao)
    board_init_r:888: spl_image.size=0x116820 (jiahao)
    board_init_r:890: jump_to_image(&spl_image);  (jiahao)
    
    
    U-Boot 2024.04-ti-g4a98663bc0d4 (May 14 2025 - 03:42:20 +0000)
    
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(sysreset)  (jiahao)
    device_probe:566: uclass_pre_probe_device(sysreset)  (jiahao)
    device_probe:589: drv->probe(sysreset)  (jiahao)
    device_probe:595: uclass_post_probe_device(sysreset)  (jiahao)
    device_probe:607: device_notify(sysreset)  (jiahao)
    device_probe:612: done  (jiahao)
    SoC:   J721S2 SR1.0 GP
    Model: Texas Instruments J721S2 EVM
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    ti_sci_power_domain_on:57: pd=0000000080477a58  (jiahao)
    ti_sci_power_domain_on:61: get_device_exclusive  (jiahao)
    i2c_omap i2c@42120000: pinctrl_select_state_full: uclass_get_device_by_phandle_id: err=-19
    device_probe:561: device_get_dma_constraints(i2c@42120000)  (jiahao)
    device_probe:566: uclass_pre_probe_device(i2c@42120000)  (jiahao)
    device_probe:589: drv->probe(i2c@42120000)  (jiahao)
    device_probe:595: uclass_post_probe_device(i2c@42120000)  (jiahao)
    device_probe:607: device_notify(i2c@42120000)  (jiahao)
    device_probe:612: done  (jiahao)
    EEPROM not available at 0x50, trying to read at 0x51
    Reading on-board EEPROM at 0x51 failed -121
    Board: J721S2X-PM1-SOM rev E1
    DRAM:  2 GiB (effective 8 GiB)
    dm_init:99:  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:561: device_get_dma_constraints(root_driver)  (jiahao)
    device_probe:566: uclass_pre_probe_device(root_driver)  (jiahao)
    device_probe:595: uclass_post_probe_device(root_driver)  (jiahao)
    device_probe:607: device_notify(root_driver)  (jiahao)
    device_probe:612: done  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(bus@100000)  (jiahao)
    device_probe:566: uclass_pre_probe_device(bus@100000)  (jiahao)
    device_probe:595: uclass_post_probe_device(bus@100000)  (jiahao)
    device_probe:607: device_notify(bus@100000)  (jiahao)
    device_probe:612: done  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(bus@28380000)  (jiahao)
    device_probe:566: uclass_pre_probe_device(bus@28380000)  (jiahao)
    device_probe:595: uclass_post_probe_device(bus@28380000)  (jiahao)
    device_probe:607: device_notify(bus@28380000)  (jiahao)
    device_probe:612: done  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(bus@43000000)  (jiahao)
    device_probe:566: uclass_pre_probe_device(bus@43000000)  (jiahao)
    device_probe:595: uclass_post_probe_device(bus@43000000)  (jiahao)
    device_probe:607: device_notify(bus@43000000)  (jiahao)
    device_probe:612: done  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(chipid@14)  (jiahao)
    device_probe:566: uclass_pre_probe_device(chipid@14)  (jiahao)
    device_probe:589: drv->probe(chipid@14)  (jiahao)
    device_probe:595: uclass_post_probe_device(chipid@14)  (jiahao)
    device_probe:607: device_notify(chipid@14)  (jiahao)
    device_probe:612: done  (jiahao)
    Enable MCU ADC1 as GPI input
    MCU_CTRL_MMR_CFG0_MCU_ADC1_CTRL:10001
    MCU_ADC1_AIN0 value:0
    MCU_ADC1_AIN1 value:0
    MCU_ADC1_AIN2 value:0
    MCU_ADC1_AIN3 value:0
    hwid:0000
    hwid:0
    board/ti/j721s2/evm.c:uboot_read_hwid:81: u-boot  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(system-controller@44083000)  (jiahao)
    device_probe:566: uclass_pre_probe_device(system-controller@44083000)  (jiahao)
    device_probe:589: drv->probe(system-controller@44083000)  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(bus@30000000)  (jiahao)
    device_probe:566: uclass_pre_probe_device(bus@30000000)  (jiahao)
    device_probe:595: uclass_post_probe_device(bus@30000000)  (jiahao)
    device_probe:607: device_notify(bus@30000000)  (jiahao)
    device_probe:612: done  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(mailbox@32c00000)  (jiahao)
    device_probe:566: uclass_pre_probe_device(mailbox@32c00000)  (jiahao)
    device_probe:589: drv->probe(mailbox@32c00000)  (jiahao)
    device_probe:595: uclass_post_probe_device(mailbox@32c00000)  (jiahao)
    device_probe:607: device_notify(mailbox@32c00000)  (jiahao)
    device_probe:612: done  (jiahao)
    device_probe:595: uclass_post_probe_device(system-controller@44083000)  (jiahao)
    device_probe:607: device_notify(system-controller@44083000)  (jiahao)
    device_probe:612: done  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(clock-controller)  (jiahao)
    device_probe:566: uclass_pre_probe_device(clock-controller)  (jiahao)
    device_probe:589: drv->probe(clock-controller)  (jiahao)
    device_probe:595: uclass_post_probe_device(clock-controller)  (jiahao)
    device_probe:607: device_notify(clock-controller)  (jiahao)
    device_probe:612: done  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:561: device_get_dma_constraints(power-controller)  (jiahao)
    device_probe:566: uclass_pre_probe_device(power-controller)  (jiahao)
    device_probe:589: drv->probe(power-controller)  (jiahao)
    ti_sci_power_domain_probe:35: dev=00000000fdeb04b0 (power-controller) (jiahao)
    device_probe:595: uclass_post_probe_device(power-controller)  (jiahao)
    device_probe:607: device_notify(power-controller)  (jiahao)
    device_probe:612: done  (jiahao)
    ti_sci_power_domain_on:57: pd=00000000fde8f498  (jiahao)
    ti_sci_power_domain_on:66: get_device  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(pinctrl@11c000)  (jiahao)
    device_probe:566: uclass_pre_probe_device(pinctrl@11c000)  (jiahao)
    device_probe:589: drv->probe(pinctrl@11c000)  (jiahao)
    device_probe:595: uclass_post_probe_device(pinctrl@11c000)  (jiahao)
    device_probe:607: device_notify(pinctrl@11c000)  (jiahao)
    device_probe:612: done  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(main-uart8-default-pins)  (jiahao)
    device_probe:566: uclass_pre_probe_device(main-uart8-default-pins)  (jiahao)
    device_probe:595: uclass_post_probe_device(main-uart8-default-pins)  (jiahao)
    device_probe:607: device_notify(main-uart8-default-pins)  (jiahao)
    device_probe:612: done  (jiahao)
    device_probe:561: device_get_dma_constraints(serial@2880000)  (jiahao)
    device_probe:566: uclass_pre_probe_device(serial@2880000)  (jiahao)
    device_probe:589: drv->probe(serial@2880000)  (jiahao)
    device_probe:595: uclass_post_probe_device(serial@2880000)  (jiahao)
    device_probe:607: device_notify(serial@2880000)  (jiahao)
    device_probe:612: done  (jiahao)
    Core:  111 devices, 31 uclasses, devicetree: separate
    Flash: 0 Bytes
    MMC:   device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    ti_sci_power_domain_on:57: pd=00000000fde8f488  (jiahao)
    ti_sci_power_domain_on:61: get_device_exclusive  (jiahao)
    device_probe:561: device_get_dma_constraints(mmc@4f80000)  (jiahao)
    device_probe:566: uclass_pre_probe_device(mmc@4f80000)  (jiahao)
    device_probe:589: drv->probe(mmc@4f80000)  (jiahao)
    device_probe:595: uclass_post_probe_device(mmc@4f80000)  (jiahao)
    device_probe:607: device_notify(mmc@4f80000)  (jiahao)
    device_probe:612: done  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    ti_sci_power_domain_on:57: pd=00000000fde8f488  (jiahao)
    ti_sci_power_domain_on:61: get_device_exclusive  (jiahao)
    ti_sci system-controller@44083000: Message not acknowledged
    ti-sci-pm-domains power-controller: ti_sci_power_domain_on: get_device(99) failed (-19)
    device_probe:622: fail  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    ti_sci_power_domain_on:57: pd=00000000fde8f4a8  (jiahao)
    ti_sci_power_domain_on:61: get_device_exclusive  (jiahao)
    ti_sci system-controller@44083000: Message not acknowledged
    ti-sci-pm-domains power-controller: ti_sci_power_domain_on: get_device(99) failed (-19)
    device_probe:622: fail  (jiahao)
    mmc@4fb0000 - probe failed: -19
    mmc@4f80000: 0device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    ti_sci_power_domain_on:57: pd=00000000fde8f428  (jiahao)
    ti_sci_power_domain_on:61: get_device_exclusive  (jiahao)
    ti_sci system-controller@44083000: Message not acknowledged
    ti-sci-pm-domains power-controller: ti_sci_power_domain_on: get_device(99) failed (-19)
    device_probe:622: fail  (jiahao)
    
    Loading Environment from MMC... device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(mmc@4f80000.blk)  (jiahao)
    device_probe:566: uclass_pre_probe_device(mmc@4f80000.blk)  (jiahao)
    device_probe:589: drv->probe(mmc@4f80000.blk)  (jiahao)
    device_probe:595: uclass_post_probe_device(mmc@4f80000.blk)  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(mmc@4f80000.blk:1)  (jiahao)
    device_probe:566: uclass_pre_probe_device(mmc@4f80000.blk:1)  (jiahao)
    device_probe:595: uclass_post_probe_device(mmc@4f80000.blk:1)  (jiahao)
    device_probe:607: device_notify(mmc@4f80000.blk:1)  (jiahao)
    device_probe:612: done  (jiahao)
    device_probe:607: device_notify(mmc@4f80000.blk)  (jiahao)
    device_probe:612: done  (jiahao)
    OK
    In:    serial@2880000
    Out:   serial@2880000
    Err:   serial@2880000
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    ti_sci_power_domain_on:57: pd=00000000fde8f478  (jiahao)
    ti_sci_power_domain_on:61: get_device_exclusive  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(pinctrl@4301c068)  (jiahao)
    device_probe:566: uclass_pre_probe_device(pinctrl@4301c068)  (jiahao)
    device_probe:589: drv->probe(pinctrl@4301c068)  (jiahao)
    device_probe:595: uclass_post_probe_device(pinctrl@4301c068)  (jiahao)
    device_probe:607: device_notify(pinctrl@4301c068)  (jiahao)
    device_probe:612: done  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(mcu-cpsw-default-pins)  (jiahao)
    device_probe:566: uclass_pre_probe_device(mcu-cpsw-default-pins)  (jiahao)
    device_probe:595: uclass_post_probe_device(mcu-cpsw-default-pins)  (jiahao)
    device_probe:607: device_notify(mcu-cpsw-default-pins)  (jiahao)
    device_probe:612: done  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(mcu-mdio-default-pins)  (jiahao)
    device_probe:566: uclass_pre_probe_device(mcu-mdio-default-pins)  (jiahao)
    device_probe:595: uclass_post_probe_device(mcu-mdio-default-pins)  (jiahao)
    device_probe:607: device_notify(mcu-mdio-default-pins)  (jiahao)
    device_probe:612: done  (jiahao)
    device_probe:561: device_get_dma_constraints(ethernet@46000000)  (jiahao)
    device_probe:566: uclass_pre_probe_device(ethernet@46000000)  (jiahao)
    device_probe:589: drv->probe(ethernet@46000000)  (jiahao)
    am65_cpsw_nuss ethernet@46000000: K3 CPSW: nuss_ver: 0x6BA02102 cpsw_ver: 0x6BA82102 ale_ver: 0x00293904 Ports:1
    device_probe:595: uclass_post_probe_device(ethernet@46000000)  (jiahao)
    device_probe:607: device_notify(ethernet@46000000)  (jiahao)
    device_probe:612: done  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    ti_sci_power_domain_on:57: pd=00000000fde8f198  (jiahao)
    ti_sci_power_domain_on:61: get_device_exclusive  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(wkup-i2c0-default-pins)  (jiahao)
    device_probe:566: uclass_pre_probe_device(wkup-i2c0-default-pins)  (jiahao)
    device_probe:595: uclass_post_probe_device(wkup-i2c0-default-pins)  (jiahao)
    device_probe:607: device_notify(wkup-i2c0-default-pins)  (jiahao)
    device_probe:612: done  (jiahao)
    device_probe:561: device_get_dma_constraints(i2c@42120000)  (jiahao)
    device_probe:566: uclass_pre_probe_device(i2c@42120000)  (jiahao)
    device_probe:589: drv->probe(i2c@42120000)  (jiahao)
    device_probe:595: uclass_post_probe_device(i2c@42120000)  (jiahao)
    device_probe:607: device_notify(i2c@42120000)  (jiahao)
    device_probe:612: done  (jiahao)
    EEPROM not available at 0x50, trying to read at 0x51
    Reading on-board EEPROM at 0x51 failed -121
    swid is  1
    name dtb is  ti/k3-j721s2-common-proc-board.dtb
    global hwid is  0
    Net:   device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(port@1)  (jiahao)
    device_probe:566: uclass_pre_probe_device(port@1)  (jiahao)
    device_probe:589: drv->probe(port@1)  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(mdio@f00)  (jiahao)
    device_probe:566: uclass_pre_probe_device(mdio@f00)  (jiahao)
    device_probe:589: drv->probe(mdio@f00)  (jiahao)
    device_probe:595: uclass_post_probe_device(mdio@f00)  (jiahao)
    device_probe:607: device_notify(mdio@f00)  (jiahao)
    device_probe:612: done  (jiahao)
    Could not get PHY for mdio@f00: addr 0
    am65_cpsw_nuss_port ethernet@46000000port@1: phy_connect() failed
    device_probe:622: fail  (jiahao)
    No ethernet found.
    
    Press ESCESCESC to abort autoboot in 2 seconds
    Force enable fastboot mode
    cmd_process:603: fastboot usb 0
    fastboot_init:225: [buf] addr=0x0000000000000000 size=0x00000000  (jiahao)
    fastboot_init:226: [def] addr=0x0000000083000000 size=0x2e000000  (jiahao)
    fastboot_init:232: [cur] addr=0x0000000083000000 size=0x2e000000  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    ti_sci_power_domain_on:57: pd=00000000fde8efb8  (jiahao)
    ti_sci_power_domain_on:61: get_device_exclusive  (jiahao)
    ti_sci system-controller@44083000: Message not acknowledged
    ti-sci-pm-domains power-controller: ti_sci_power_domain_on: get_device(360) failed (-19)
    device_probe:622: fail  (jiahao)
    device_probe:622: fail  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    ti_sci_power_domain_on:57: pd=00000000fde8efb8  (jiahao)
    ti_sci_power_domain_on:61: get_device_exclusive  (jiahao)
    ti_sci system-controller@44083000: Message not acknowledged
    ti-sci-pm-domains power-controller: ti_sci_power_domain_on: get_device(360) failed (-19)
    device_probe:622: fail  (jiahao)
    device_probe:622: fail  (jiahao)
    No USB device found
    USB init failed: -19
    => dfu 0 mmc 0
    cmd_process:603: dfu 0 mmc 0
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    ti_sci_power_domain_on:57: pd=00000000fde8ef78  (jiahao)
    ti_sci_power_domain_on:61: get_device_exclusive  (jiahao)
    ti_sci system-controller@44083000: Message not acknowledged
    ti-sci-pm-domains power-controller: ti_sci_power_domain_on: get_device(360) failed (-19)
    device_probe:622: fail  (jiahao)
    device_probe:622: fail  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    ti_sci_power_domain_on:57: pd=00000000fde8ef78  (jiahao)
    ti_sci_power_domain_on:61: get_device_exclusive  (jiahao)
    ti_sci system-controller@44083000: Message not acknowledged
    ti-sci-pm-domains power-controller: ti_sci_power_domain_on: get_device(360) failed (-19)
    device_probe:622: fail  (jiahao)
    device_probe:622: fail  (jiahao)
    No USB device found
    udc_device_get_by_index failed
    =>
    

  • ▒
    U-Boot SPL 2024.04-ti-g4a98663bc0d4 (May 08 2025 - 14:10:25 +0000)
    SYSFW ABI: 4.0 (firmware rev 0x000a '10.1.6--v10.01.06 (Fiery Fox)')
    Enable MCU ADC1 as GPI input
    MCU_CTRL_MMR_CFG0_MCU_ADC1_CTRL:10001
    MCU_ADC1_AIN0 value:0
    MCU_ADC1_AIN1 value:0
    MCU_ADC1_AIN2 value:0
    MCU_ADC1_AIN3 value:0
    hwid:0000
    hwid:0
    EEPROM not available at 0x50, trying to read at 0x51
    Reading on-board EEPROM at 0x51 failed -121
    SPL initial stack usage: 13456 bytes
    Trying to boot from MMC1
    Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
    Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
    Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
    Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
    Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
    Loading Environment from nowhere... OK
    init_env from device 17 not supported!
    Starting ATF on ARM64 core...
    
    NOTICE:  BL31: v2.11.0(release):v2.11.0-906-g58b25570c9-dirty
    NOTICE:  BL31: Built : 04:20:32, Nov  1 2024
    I/TC:
    I/TC: OP-TEE version: 4.4.0-dev (gcc version 13.3.0 (GCC)) #1 Fri Oct 18 17:45:27 UTC 2024 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: GIC redistributor base address not provided
    I/TC: Assuming default GIC group status and modifier
    I/TC: SYSFW ABI: 4.0 (firmware rev 0x000a '10.1.6--v10.01.06 (Fiery Fox)')
    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: HUK Initialized
    I/TC: Primary CPU switching to normal world boot
    
    U-Boot SPL 2024.04-ti-g4a98663bc0d4 (May 13 2025 - 04:31:02 +0000)
    THIS: tispl
    k3_spl_init:235:  (jiahao)
    k3_spl_init:282: k3_sysfw_print_ver  (jiahao)
    SYSFW ABI: 4.0 (firmware rev 0x000a '10.1.6--v10.01.06 (Fiery Fox)')
    k3_spl_init:285: boot_read_hwid  (jiahao)
    Enable MCU ADC1 as GPI input
    MCU_CTRL_MMR_CFG0_MCU_ADC1_CTRL:10001
    MCU_ADC1_AIN0 value:0
    MCU_ADC1_AIN1 value:0
    MCU_ADC1_AIN2 value:0
    MCU_ADC1_AIN3 value:0
    hwid:0000
    hwid:0
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    i2c_omap i2c@42120000: pinctrl_select_state_full: uclass_get_device_by_phandle_id: err=-19
    device_probe:561: device_get_dma_constraints(i2c@42120000)  (jiahao)
    device_probe:566: uclass_pre_probe_device(i2c@42120000)  (jiahao)
    uclass_pre_probe_device:746: dev->name=(i2c@42120000)  (jiahao)
    device_probe:589: drv->probe(i2c@42120000)  (jiahao)
    device_probe:595: uclass_post_probe_device(i2c@42120000)  (jiahao)
    uclass_post_probe_device:772: dev->name=(i2c@42120000)  (jiahao)
    device_probe:607: device_notify(i2c@42120000)  (jiahao)
    device_probe:612: done  (jiahao)
    EEPROM not available at 0x50, trying to read at 0x51
    Reading on-board EEPROM at 0x51 failed -121
    board_init_r:707:  (jiahao)
    board_init_r:750: spl_board_init  (jiahao)
    board_init_r:796: boot_from_devices  (jiahao)
    boot_from_devices:638:  (jiahao)
    Trying to boot from MMC1
    spl_load_image:589: spl_image->name=()  (jiahao)
    spl_load_image:594: loader->load_image  (jiahao)
    spl_mmc_load_image:467: spl_mmc_load  (jiahao)
    spl_mmc_load:366: (, bootdev, u-boot.img, 0, 0x1c00)  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(mmc@4f80000)  (jiahao)
    device_probe:566: uclass_pre_probe_device(mmc@4f80000)  (jiahao)
    uclass_pre_probe_device:746: dev->name=(mmc@4f80000)  (jiahao)
    device_probe:589: drv->probe(mmc@4f80000)  (jiahao)
    device_probe:595: uclass_post_probe_device(mmc@4f80000)  (jiahao)
    uclass_post_probe_device:772: dev->name=(mmc@4f80000)  (jiahao)
    device_probe:607: device_notify(mmc@4f80000)  (jiahao)
    device_probe:612: done  (jiahao)
    spl_mmc_load:390: MMCSD_MODE_EMMCBOOT  (jiahao)
    spl_mmc_load:392: spl_mmc_emmc_boot_partition  (jiahao)
    spl_mmc_load:408: MMCSD_MODE_RAW  (jiahao)
    spl_mmc_load:432: mmc_load_image_raw_sector('', bootdev, mmc, 0x1c00)  (jiahao)
    mmc_load_image_raw_sector:53: h_spl_load_read  (jiahao)
    Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
    Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
    mmc_load_image_raw_sector:64: return 0;  (jiahao)
    spl_mmc_load:436: return 0;  (jiahao)
    spl_load_image:610: spl_check_board_image  (jiahao)
    spl_load_image:614: return 0;  (jiahao)
    board_init_r:807:  (jiahao)
    board_init_r:809: spl_image.name=() (jiahao)
    board_init_r:811: spl_perform_fixups(&spl_image); (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(pinctrl@4301c068)  (jiahao)
    device_probe:566: uclass_pre_probe_device(pinctrl@4301c068)  (jiahao)
    uclass_pre_probe_device:746: dev->name=(pinctrl@4301c068)  (jiahao)
    device_probe:589: drv->probe(pinctrl@4301c068)  (jiahao)
    device_probe:595: uclass_post_probe_device(pinctrl@4301c068)  (jiahao)
    uclass_post_probe_device:772: dev->name=(pinctrl@4301c068)  (jiahao)
    device_probe:607: device_notify(pinctrl@4301c068)  (jiahao)
    device_probe:612: done  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(wkup_gpio_pins_default)  (jiahao)
    device_probe:566: uclass_pre_probe_device(wkup_gpio_pins_default)  (jiahao)
    uclass_pre_probe_device:746: dev->name=(wkup_gpio_pins_default)  (jiahao)
    device_probe:595: uclass_post_probe_device(wkup_gpio_pins_default)  (jiahao)
    uclass_post_probe_device:772: dev->name=(wkup_gpio_pins_default)  (jiahao)
    device_probe:607: device_notify(wkup_gpio_pins_default)  (jiahao)
    device_probe:612: done  (jiahao)
    device_probe:561: device_get_dma_constraints(gpio@42110000)  (jiahao)
    device_probe:566: uclass_pre_probe_device(gpio@42110000)  (jiahao)
    uclass_pre_probe_device:746: dev->name=(gpio@42110000)  (jiahao)
    device_probe:589: drv->probe(gpio@42110000)  (jiahao)
    device_probe:595: uclass_post_probe_device(gpio@42110000)  (jiahao)
    uclass_post_probe_device:772: dev->name=(gpio@42110000)  (jiahao)
    device_probe:607: device_notify(gpio@42110000)  (jiahao)
    device_probe:612: done  (jiahao)
    board_init_r:817: Jumping to U-Boot...  (jiahao)
    board_init_r:849: SPL malloc() used 0x1385e0 bytes (1249 KB)  (jiahao)
    board_init_r:883: spl_board_prepare_for_boot  (jiahao)
    board_init_r:886: spl_image.name=() (jiahao)
    board_init_r:887: spl_image.load_addr=0x80800000 (jiahao)
    board_init_r:888: spl_image.size=0x116430 (jiahao)
    board_init_r:890: jump_to_image(&spl_image);  (jiahao)
    
    
    U-Boot 2024.04-ti-g4a98663bc0d4 (May 13 2025 - 09:56:07 +0000)
    
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(sysreset)  (jiahao)
    device_probe:566: uclass_pre_probe_device(sysreset)  (jiahao)
    device_probe:589: drv->probe(sysreset)  (jiahao)
    device_probe:595: uclass_post_probe_device(sysreset)  (jiahao)
    device_probe:607: device_notify(sysreset)  (jiahao)
    device_probe:612: done  (jiahao)
    SoC:   J721S2 SR1.0 GP
    Model: Texas Instruments J721S2 EVM
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    ti_sci_power_domain_on:57: pd=0000000080477a58  (jiahao)
    ti_sci_power_domain_on:61: get_device_exclusive  (jiahao)
    i2c_omap i2c@42120000: pinctrl_select_state_full: uclass_get_device_by_phandle_id: err=-19
    device_probe:561: device_get_dma_constraints(i2c@42120000)  (jiahao)
    device_probe:566: uclass_pre_probe_device(i2c@42120000)  (jiahao)
    device_probe:589: drv->probe(i2c@42120000)  (jiahao)
    device_probe:595: uclass_post_probe_device(i2c@42120000)  (jiahao)
    device_probe:607: device_notify(i2c@42120000)  (jiahao)
    device_probe:612: done  (jiahao)
    EEPROM not available at 0x50, trying to read at 0x51
    Reading on-board EEPROM at 0x51 failed -121
    Board: J721S2X-PM1-SOM rev E1
    DRAM:  2 GiB (effective 8 GiB)
    dm_init:99:  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:561: device_get_dma_constraints(root_driver)  (jiahao)
    device_probe:566: uclass_pre_probe_device(root_driver)  (jiahao)
    device_probe:595: uclass_post_probe_device(root_driver)  (jiahao)
    device_probe:607: device_notify(root_driver)  (jiahao)
    device_probe:612: done  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(bus@100000)  (jiahao)
    device_probe:566: uclass_pre_probe_device(bus@100000)  (jiahao)
    device_probe:595: uclass_post_probe_device(bus@100000)  (jiahao)
    device_probe:607: device_notify(bus@100000)  (jiahao)
    device_probe:612: done  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(bus@28380000)  (jiahao)
    device_probe:566: uclass_pre_probe_device(bus@28380000)  (jiahao)
    device_probe:595: uclass_post_probe_device(bus@28380000)  (jiahao)
    device_probe:607: device_notify(bus@28380000)  (jiahao)
    device_probe:612: done  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(bus@43000000)  (jiahao)
    device_probe:566: uclass_pre_probe_device(bus@43000000)  (jiahao)
    device_probe:595: uclass_post_probe_device(bus@43000000)  (jiahao)
    device_probe:607: device_notify(bus@43000000)  (jiahao)
    device_probe:612: done  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(chipid@14)  (jiahao)
    device_probe:566: uclass_pre_probe_device(chipid@14)  (jiahao)
    device_probe:589: drv->probe(chipid@14)  (jiahao)
    device_probe:595: uclass_post_probe_device(chipid@14)  (jiahao)
    device_probe:607: device_notify(chipid@14)  (jiahao)
    device_probe:612: done  (jiahao)
    Enable MCU ADC1 as GPI input
    MCU_CTRL_MMR_CFG0_MCU_ADC1_CTRL:10001
    MCU_ADC1_AIN0 value:0
    MCU_ADC1_AIN1 value:0
    MCU_ADC1_AIN2 value:0
    MCU_ADC1_AIN3 value:0
    hwid:0000
    hwid:0
    board/ti/j721s2/evm.c:uboot_read_hwid:81: u-boot  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(system-controller@44083000)  (jiahao)
    device_probe:566: uclass_pre_probe_device(system-controller@44083000)  (jiahao)
    device_probe:589: drv->probe(system-controller@44083000)  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(bus@30000000)  (jiahao)
    device_probe:566: uclass_pre_probe_device(bus@30000000)  (jiahao)
    device_probe:595: uclass_post_probe_device(bus@30000000)  (jiahao)
    device_probe:607: device_notify(bus@30000000)  (jiahao)
    device_probe:612: done  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(mailbox@32c00000)  (jiahao)
    device_probe:566: uclass_pre_probe_device(mailbox@32c00000)  (jiahao)
    device_probe:589: drv->probe(mailbox@32c00000)  (jiahao)
    device_probe:595: uclass_post_probe_device(mailbox@32c00000)  (jiahao)
    device_probe:607: device_notify(mailbox@32c00000)  (jiahao)
    device_probe:612: done  (jiahao)
    device_probe:595: uclass_post_probe_device(system-controller@44083000)  (jiahao)
    device_probe:607: device_notify(system-controller@44083000)  (jiahao)
    device_probe:612: done  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(clock-controller)  (jiahao)
    device_probe:566: uclass_pre_probe_device(clock-controller)  (jiahao)
    device_probe:589: drv->probe(clock-controller)  (jiahao)
    device_probe:595: uclass_post_probe_device(clock-controller)  (jiahao)
    device_probe:607: device_notify(clock-controller)  (jiahao)
    device_probe:612: done  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:561: device_get_dma_constraints(power-controller)  (jiahao)
    device_probe:566: uclass_pre_probe_device(power-controller)  (jiahao)
    device_probe:589: drv->probe(power-controller)  (jiahao)
    ti_sci_power_domain_probe:35: dev=00000000fdeb14b0 (power-controller) (jiahao)
    device_probe:595: uclass_post_probe_device(power-controller)  (jiahao)
    device_probe:607: device_notify(power-controller)  (jiahao)
    device_probe:612: done  (jiahao)
    ti_sci_power_domain_on:57: pd=00000000fde90098  (jiahao)
    ti_sci_power_domain_on:66: get_device  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(pinctrl@11c000)  (jiahao)
    device_probe:566: uclass_pre_probe_device(pinctrl@11c000)  (jiahao)
    device_probe:589: drv->probe(pinctrl@11c000)  (jiahao)
    device_probe:595: uclass_post_probe_device(pinctrl@11c000)  (jiahao)
    device_probe:607: device_notify(pinctrl@11c000)  (jiahao)
    device_probe:612: done  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(main-uart8-default-pins)  (jiahao)
    device_probe:566: uclass_pre_probe_device(main-uart8-default-pins)  (jiahao)
    device_probe:595: uclass_post_probe_device(main-uart8-default-pins)  (jiahao)
    device_probe:607: device_notify(main-uart8-default-pins)  (jiahao)
    device_probe:612: done  (jiahao)
    device_probe:561: device_get_dma_constraints(serial@2880000)  (jiahao)
    device_probe:566: uclass_pre_probe_device(serial@2880000)  (jiahao)
    device_probe:589: drv->probe(serial@2880000)  (jiahao)
    device_probe:595: uclass_post_probe_device(serial@2880000)  (jiahao)
    device_probe:607: device_notify(serial@2880000)  (jiahao)
    device_probe:612: done  (jiahao)
    Core:  111 devices, 31 uclasses, devicetree: separate
    Flash: 0 Bytes
    MMC:   device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    ti_sci_power_domain_on:57: pd=00000000fde90088  (jiahao)
    ti_sci_power_domain_on:61: get_device_exclusive  (jiahao)
    device_probe:561: device_get_dma_constraints(mmc@4f80000)  (jiahao)
    device_probe:566: uclass_pre_probe_device(mmc@4f80000)  (jiahao)
    device_probe:589: drv->probe(mmc@4f80000)  (jiahao)
    device_probe:595: uclass_post_probe_device(mmc@4f80000)  (jiahao)
    device_probe:607: device_notify(mmc@4f80000)  (jiahao)
    device_probe:612: done  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    ti_sci_power_domain_on:57: pd=00000000fde90088  (jiahao)
    ti_sci_power_domain_on:61: get_device_exclusive  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(main-mmc1-default-pins)  (jiahao)
    device_probe:566: uclass_pre_probe_device(main-mmc1-default-pins)  (jiahao)
    device_probe:595: uclass_post_probe_device(main-mmc1-default-pins)  (jiahao)
    device_probe:607: device_notify(main-mmc1-default-pins)  (jiahao)
    device_probe:612: done  (jiahao)
    device_probe:561: device_get_dma_constraints(mmc@4fb0000)  (jiahao)
    device_probe:566: uclass_pre_probe_device(mmc@4fb0000)  (jiahao)
    device_probe:589: drv->probe(mmc@4fb0000)  (jiahao)
    device_probe:595: uclass_post_probe_device(mmc@4fb0000)  (jiahao)
    device_probe:607: device_notify(mmc@4fb0000)  (jiahao)
    device_probe:612: done  (jiahao)
    mmc@4f80000: 0, mmc@4fb0000: 1
    Loading Environment from MMC... device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(mmc@4f80000.blk)  (jiahao)
    device_probe:566: uclass_pre_probe_device(mmc@4f80000.blk)  (jiahao)
    device_probe:589: drv->probe(mmc@4f80000.blk)  (jiahao)
    device_probe:595: uclass_post_probe_device(mmc@4f80000.blk)  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(mmc@4f80000.blk:1)  (jiahao)
    device_probe:566: uclass_pre_probe_device(mmc@4f80000.blk:1)  (jiahao)
    device_probe:595: uclass_post_probe_device(mmc@4f80000.blk:1)  (jiahao)
    device_probe:607: device_notify(mmc@4f80000.blk:1)  (jiahao)
    device_probe:612: done  (jiahao)
    device_probe:607: device_notify(mmc@4f80000.blk)  (jiahao)
    device_probe:612: done  (jiahao)
    OK
    In:    serial@2880000
    Out:   serial@2880000
    Err:   serial@2880000
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    ti_sci_power_domain_on:57: pd=00000000fde90078  (jiahao)
    ti_sci_power_domain_on:61: get_device_exclusive  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(pinctrl@4301c068)  (jiahao)
    device_probe:566: uclass_pre_probe_device(pinctrl@4301c068)  (jiahao)
    device_probe:589: drv->probe(pinctrl@4301c068)  (jiahao)
    device_probe:595: uclass_post_probe_device(pinctrl@4301c068)  (jiahao)
    device_probe:607: device_notify(pinctrl@4301c068)  (jiahao)
    device_probe:612: done  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(mcu-cpsw-default-pins)  (jiahao)
    device_probe:566: uclass_pre_probe_device(mcu-cpsw-default-pins)  (jiahao)
    device_probe:595: uclass_post_probe_device(mcu-cpsw-default-pins)  (jiahao)
    device_probe:607: device_notify(mcu-cpsw-default-pins)  (jiahao)
    device_probe:612: done  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(mcu-mdio-default-pins)  (jiahao)
    device_probe:566: uclass_pre_probe_device(mcu-mdio-default-pins)  (jiahao)
    device_probe:595: uclass_post_probe_device(mcu-mdio-default-pins)  (jiahao)
    device_probe:607: device_notify(mcu-mdio-default-pins)  (jiahao)
    device_probe:612: done  (jiahao)
    device_probe:561: device_get_dma_constraints(ethernet@46000000)  (jiahao)
    device_probe:566: uclass_pre_probe_device(ethernet@46000000)  (jiahao)
    device_probe:589: drv->probe(ethernet@46000000)  (jiahao)
    am65_cpsw_nuss ethernet@46000000: K3 CPSW: nuss_ver: 0x6BA02102 cpsw_ver: 0x6BA82102 ale_ver: 0x00293904 Ports:1
    device_probe:595: uclass_post_probe_device(ethernet@46000000)  (jiahao)
    device_probe:607: device_notify(ethernet@46000000)  (jiahao)
    device_probe:612: done  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    ti_sci_power_domain_on:57: pd=00000000fde8fd98  (jiahao)
    ti_sci_power_domain_on:61: get_device_exclusive  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(wkup-i2c0-default-pins)  (jiahao)
    device_probe:566: uclass_pre_probe_device(wkup-i2c0-default-pins)  (jiahao)
    device_probe:595: uclass_post_probe_device(wkup-i2c0-default-pins)  (jiahao)
    device_probe:607: device_notify(wkup-i2c0-default-pins)  (jiahao)
    device_probe:612: done  (jiahao)
    device_probe:561: device_get_dma_constraints(i2c@42120000)  (jiahao)
    device_probe:566: uclass_pre_probe_device(i2c@42120000)  (jiahao)
    device_probe:589: drv->probe(i2c@42120000)  (jiahao)
    device_probe:595: uclass_post_probe_device(i2c@42120000)  (jiahao)
    device_probe:607: device_notify(i2c@42120000)  (jiahao)
    device_probe:612: done  (jiahao)
    EEPROM not available at 0x50, trying to read at 0x51
    Reading on-board EEPROM at 0x51 failed -121
    swid is  1
    name dtb is  ti/k3-j721s2-common-proc-board.dtb
    global hwid is  0
    Net:   device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(port@1)  (jiahao)
    device_probe:566: uclass_pre_probe_device(port@1)  (jiahao)
    device_probe:589: drv->probe(port@1)  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(mdio@f00)  (jiahao)
    device_probe:566: uclass_pre_probe_device(mdio@f00)  (jiahao)
    device_probe:589: drv->probe(mdio@f00)  (jiahao)
    device_probe:595: uclass_post_probe_device(mdio@f00)  (jiahao)
    device_probe:607: device_notify(mdio@f00)  (jiahao)
    device_probe:612: done  (jiahao)
    Could not get PHY for mdio@f00: addr 0
    am65_cpsw_nuss_port ethernet@46000000port@1: phy_connect() failed
    device_probe:622: fail  (jiahao)
    No ethernet found.
    
    Press ESCESCESC to abort autoboot in 2 seconds
    Force enable fastboot mode
    cmd_process:603: fastboot usb 0
    fastboot_init:225: [buf] addr=0x0000000000000000 size=0x00000000  (jiahao)
    fastboot_init:226: [def] addr=0x0000000083000000 size=0x2e000000  (jiahao)
    fastboot_init:232: [cur] addr=0x0000000083000000 size=0x2e000000  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    ti_sci_power_domain_on:57: pd=00000000fde8fbb8  (jiahao)
    ti_sci_power_domain_on:61: get_device_exclusive  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(main-usbss0-default-pins)  (jiahao)
    device_probe:566: uclass_pre_probe_device(main-usbss0-default-pins)  (jiahao)
    device_probe:595: uclass_post_probe_device(main-usbss0-default-pins)  (jiahao)
    device_probe:607: device_notify(main-usbss0-default-pins)  (jiahao)
    device_probe:612: done  (jiahao)
    device_probe:561: device_get_dma_constraints(cdns-usb@4104000)  (jiahao)
    device_probe:566: uclass_pre_probe_device(cdns-usb@4104000)  (jiahao)
    device_probe:589: drv->probe(cdns-usb@4104000)  (jiahao)
    device_probe:595: uclass_post_probe_device(cdns-usb@4104000)  (jiahao)
    device_probe:607: device_notify(cdns-usb@4104000)  (jiahao)
    device_probe:612: done  (jiahao)
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(usb@6000000)  (jiahao)
    device_probe:566: uclass_pre_probe_device(usb@6000000)  (jiahao)
    device_probe:589: drv->probe(usb@6000000)  (jiahao)
    cdns-usb3-peripheral usb@6000000: DRD version v1 (ID: 0004024e, rev: 00000200)
    cdns-usb3-peripheral usb@6000000: Initialized  ep0 support:
    cdns-usb3-peripheral usb@6000000: Initialized  ep1out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep2out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep3out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep4out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep5out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep6out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep7out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep8out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep9out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep10out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep11out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep12out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep13out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep14out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep15out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep1in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep2in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep3in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep4in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep5in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep6in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep7in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep8in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep9in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep10in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep11in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep12in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep13in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep14in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep15in support: BULK, INT ISO
    device_probe:595: uclass_post_probe_device(usb@6000000)  (jiahao)
    device_probe:607: device_notify(usb@6000000)  (jiahao)
    device_probe:612: done  (jiahao)
    g_dnl_usb_id_change: g_dnl_driver.name = usb_dnl_fastboot
    g_dnl_usb_id_change: idProduct: 0xc009
    g_dnl_usb_id_change: idVendor: 0x489
    => dfu 0 mmc 0
    cmd_process:603: dfu 0 mmc 0
    device_probe:519:  (jiahao)
    device_probe:525: dev_power_domain_on  (jiahao)
    device_probe:561: device_get_dma_constraints(usb@6000000)  (jiahao)
    device_probe:566: uclass_pre_probe_device(usb@6000000)  (jiahao)
    device_probe:589: drv->probe(usb@6000000)  (jiahao)
    cdns-usb3-peripheral usb@6000000: DRD version v1 (ID: 0004024e, rev: 00000200)
    cdns-usb3-peripheral usb@6000000: Initialized  ep0 support:
    cdns-usb3-peripheral usb@6000000: Initialized  ep1out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep2out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep3out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep4out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep5out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep6out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep7out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep8out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep9out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep10out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep11out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep12out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep13out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep14out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep15out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep1in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep2in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep3in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep4in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep5in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep6in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep7in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep8in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep9in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep10in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep11in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep12in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep13in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep14in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep15in support: BULK, INT ISO
    device_probe:595: uclass_post_probe_device(usb@6000000)  (jiahao)
    device_probe:607: device_notify(usb@6000000)  (jiahao)
    device_probe:612: done  (jiahao)
    g_dnl_usb_id_change: g_dnl_driver.name = usb_dnl_dfu
    g_dnl_usb_id_change: idProduct: 0x6168
    g_dnl_usb_id_change: idVendor: 0x451
    

  • UART log when tispl.bin is 1MB
    - ege_9901_3mb_ipc_fast_dfu_20250514_0934.txt ( dfu 0 mmc 0, work )
    - ege_9901_3mb_ipc_kernel_20250514_0944.txt ( kernel log , remoteproc driver work)

    UART log when tispl.bin is 2.3MB
    - ege_9901_3mb_lib_fast_dfu_20250514_1156.txt ( dfu 0 mmc 0, fail )
    - ege_9901_3mb_lib_kernel_20250514_1157.txt ( kernel log , remoteproc driver fail)

  • HI Jiahao,

    Sorry for the delayed response.

    Can you check if you are including SCI server in the mcu 5 firmware?

    MCU1_0 is a DM core which requires SCI Server task to run on it. You cannot run a baremetal example of only mcu without sciserver since all the other cores have sciclient calls and will be waiting for sciserver to be addressed.

    Can you also provide the changes made in the mcu r5f firmware?

    Regards

    Gokul

  • Hi Gokul

    When device stop at u-boot shell, there are logs from MCU R5 UART

    Thanks

  • Hi Gokul,

    When load 2.3MB tispl.bin, it has error message
    When load 1.0MB tispl.bin, it has NO this error message

    Is there suggestion for this error, thanks

    a)
    ege_9901_3mb_lib_fast_dfu_20250515_1005.txt
    >>
    board_init_r:750: boot_from_devices (jiahao)
    Trying to boot from MMC1
    boot_from_devices:641: spl_load_image(, MMC1) (jiahao)
    spl_load_image:579: loader->load_image (jiahao)
    spl_mmc_load_image:463: spl_mmc_load (jiahao)
    spl_mmc_load:366: (, bootdev, tispl.bin, 0, 0x400) (jiahao)
    spl_mmc_load:428: mmc_load_image_raw_sector('', bootdev, mmc, 0x400) (jiahao)
    mmc_load_image_raw_sector:54: spl_load (jiahao)
    spl_load:380: _spl_load(size=0x0 offset=0x80000) (jiahao)
    spl_simple_fit_read:674: board_spl_fit_buffer_addr(0xfffffe00, 0x1, 1) (jiahao)
    spl_get_fit_load_buffer:550: malloc_cache_aligned(0x256000) (jiahao)
    alloc space exhausted
    Could not get FIT buffer of 2449408 bytes
    check CONFIG_SPL_SYS_MALLOC_SIZE 0x1000000

    spl_get_fit_load_buffer:557: buf=0x80800000 (jiahao)
    spl_simple_fit_read:681: fit read offset 0x80000, size=2449408, dst=80800000, count=2449408 (jiahao)

    b)
    yocto-build\sources\src\u-boot\ti-u-boot\common\spl\spl_fit.c

    /*
    * The purpose of the FIT load buffer is to provide a memory location that is
    * independent of the load address of any FIT component.
    */
    static void *spl_get_fit_load_buffer(size_t size)
    {
    void *buf;

    buf = malloc_cache_aligned(size);
    if (!buf) {
    pr_err("Could not get FIT buffer of %lu bytes\n", (ulong)size);
    pr_err("\tcheck CONFIG_SPL_SYS_MALLOC_SIZE 0x%x\n", CONFIG_SPL_SYS_MALLOC_SIZE);
    buf = spl_get_load_buffer(0, size);
    }

    return buf;
    }

    c)

    yocto-build\sources\src\u-boot\ti-u-boot\common\malloc_simple.c

    static void *alloc_simple(size_t bytes, int align)
    {
    ulong addr, new_ptr;
    void *ptr;

    addr = ALIGN(gd->malloc_base + gd->malloc_ptr, align);
    new_ptr = addr + bytes - gd->malloc_base;
    log_debug("size=%lx, ptr=%lx, limit=%lx: ", (ulong)bytes, new_ptr,
    gd->malloc_limit);
    if (new_ptr > gd->malloc_limit) {
    log_err("alloc space exhausted\n");
    return NULL;
    }

    ptr = map_sysmem(addr, bytes);
    gd->malloc_ptr = ALIGN(new_ptr, sizeof(new_ptr));

    return ptr;
    }


    Thanks
    Jiahao

  • ege_9901_3mb_lib_fast_dfu_20250515_1005.txt

    U-Boot SPL 2024.04-ti-g4a98663bc0d4 (May 15 2025 - 01:14:32 +0000)
    THIS: tispl
    k3_spl_init:255: k3_sysfw_loader (jiahao)
    k3_start_system_controller:126: rproc_dev_init(id=0)  (jiahao)
    k3_start_system_controller:138: rproc_start(0)  (jiahao)
    SYSFW ABI: 4.0 (firmware rev 0x000a '10.1.6--v10.01.06 (Fiery Fox)')
    Enable MCU ADC1 as GPI input
    MCU_CTRL_MMR_CFG0_MCU_ADC1_CTRL:10001
    MCU_ADC1_AIN0 value:0
    MCU_ADC1_AIN1 value:0
    MCU_ADC1_AIN2 value:0
    MCU_ADC1_AIN3 value:0
    hwid:0000
    hwid:0
    EEPROM not available at 0x50, trying to read at 0x51
    Reading on-board EEPROM at 0x51 failed -121
    SPL initial stack usage: 13456 bytes
    board_init_r:750: boot_from_devices  (jiahao)
    Trying to boot from MMC1
    boot_from_devices:641: spl_load_image(, MMC1)  (jiahao)
    spl_load_image:579: loader->load_image  (jiahao)
    spl_mmc_load_image:463: spl_mmc_load  (jiahao)
    spl_mmc_load:366: (, bootdev, tispl.bin, 0, 0x400)  (jiahao)
    spl_mmc_load:428: mmc_load_image_raw_sector('', bootdev, mmc, 0x400)  (jiahao)
    mmc_load_image_raw_sector:54: spl_load  (jiahao)
    spl_load:380: _spl_load(size=0x0 offset=0x80000)  (jiahao)
    spl_simple_fit_read:674: board_spl_fit_buffer_addr(0xfffffe00, 0x1, 1)  (jiahao)
    spl_get_fit_load_buffer:550: malloc_cache_aligned(0x256000)  (jiahao)
    alloc space exhausted
    Could not get FIT buffer of 2449408 bytes
            check CONFIG_SPL_SYS_MALLOC_SIZE 0x1000000
    spl_get_fit_load_buffer:557: buf=0x80800000  (jiahao)
    spl_simple_fit_read:681: fit read offset 80000, size=2449408, dst=80800000, count=2449408  (jiahao)
    Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
    Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
    Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
    Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
    Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
    mmc_load_image_raw_sector:64: return 0;  (jiahao)
    spl_mmc_load:432: return 0;  (jiahao)
    spl_load_image:595: return 0;  (jiahao)
    board_init_r:791: Unsupported OS image.. Jumping nevertheless..  (jiahao)
    board_init_r:830: jump_to_image(); addr=0x70000000 , size=0xce78 (jiahao)
    jump_to_image_no_args:301: rproc_init  (jiahao)
    rproc_init:355: for_each_remoteproc_device  (jiahao)
    k3_arm64 a72@0: k3_arm64_probe:251: a72@0 success  (jiahao)
    rproc_init:358: return 0;  (jiahao)
    jump_to_image_no_args:306: init_env  (jiahao)
    Loading Environment from nowhere... OK
    init_env from device 17 not supported!
    rproc_load:405: Loading to 'a72@0' from address 0x00000000 size of 1879048192 bytes (jiahao)
    jump_to_image_no_args:334: ATF: addr=70000000, size=54758, os=arm-trusted-firmware  (jiahao)
    jump_to_image_no_args:349: OPTEE: addr=9e800000, size=488790, os=tee  (jiahao)
    jump_to_image_no_args:357: DM_FW: addr=89000000, size=1602964, os=DM  (jiahao)
    jump_to_image_no_args:376: load_elf_image_phdr(0x89000000)  (jiahao)
    load_elf_image_phdr:154: Loading phdr 0 to 0x41010000 (2696 bytes) (jiahao)
    load_elf_image_phdr:158: memcpy(0x41010000, 0x89000038, 0xa88) (jiahao)
    load_elf_image_phdr:154: Loading phdr 1 to 0xa0100000 (0 bytes) (jiahao)
    load_elf_image_phdr:162: memset(0xa0100000, 0x0, 0x80004) (jiahao)
    load_elf_image_phdr:154: Loading phdr 2 to 0xa0400000 (1432512 bytes) (jiahao)
    load_elf_image_phdr:158: memcpy(0xa0400000, 0x89000c00, 0x15dbc0) (jiahao)
    load_elf_image_phdr:154: Loading phdr 3 to 0xa055dbc0 (0 bytes) (jiahao)
    load_elf_image_phdr:162: memset(0xa055dbc0, 0x0, 0x13c5) (jiahao)
    load_elf_image_phdr:154: Loading phdr 4 to 0xa0560000 (0 bytes) (jiahao)
    load_elf_image_phdr:162: memset(0xa0560000, 0x0, 0xbba54) (jiahao)
    load_elf_image_phdr:154: Loading phdr 5 to 0xa061ba80 (0 bytes) (jiahao)
    load_elf_image_phdr:162: memset(0xa061ba80, 0x0, 0x22880) (jiahao)
    load_elf_image_phdr:154: Loading phdr 6 to 0xa063e300 (102912 bytes) (jiahao)
    load_elf_image_phdr:158: memcpy(0xa063e300, 0x89160000, 0x19200) (jiahao)
    load_elf_image_phdr:154: Loading phdr 7 to 0xa0657500 (0 bytes) (jiahao)
    load_elf_image_phdr:162: memset(0xa0657500, 0x0, 0x8000) (jiahao)
    load_elf_image_phdr:154: Loading phdr 8 to 0xa065f500 (17880 bytes) (jiahao)
    load_elf_image_phdr:158: memcpy(0xa065f500, 0x89179200, 0x45d8) (jiahao)
    load_elf_image_phdr:154: Loading phdr 9 to 0xa0663b00 (35528 bytes) (jiahao)
    load_elf_image_phdr:158: memcpy(0xa0663b00, 0x8917d800, 0x8ac8) (jiahao)
    load_elf_image_phdr:154: Loading phdr 10 to 0xa0f9ac00 (0 bytes) (jiahao)
    load_elf_image_phdr:162: memset(0xa0f9ac00, 0x0, 0x1400) (jiahao)
    load_elf_image_phdr:154: Loading phdr 11 to 0xa0f9c000 (0 bytes) (jiahao)
    load_elf_image_phdr:162: memset(0xa0f9c000, 0x0, 0x4000) (jiahao)
    jump_to_image_no_args:382: jumping to address 41010000  (jiahao)
    Starting ATF on ARM64 core...
    
    jump_to_image_no_args:388: rproc_start(1)  (jiahao)
    NOTICE:  BL31: v2.11.0(release):v2.11.0-906-g58b25570c9-dirty
    NOTICE:  BL31: Built : 04:20:32, Nov  1 2024
    I/TC:
    I/TC: OP-TEE version: 4.4.0-dev (gcc version 13.3.0 (GCC)) #1 Fri Oct 18 17:45:27 UTC 2024 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: GIC redistributor base address not provided
    I/TC: Assuming default GIC group status and modifier
    I/TC: SYSFW ABI: 4.0 (firmware(rev 0x000a '10.1.6--v10.01.06 (Fiery Fox)')
    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: HUK Initialized
    I/TC: Primary CPU switching to normal world boot
    
    U-Boot SPL 2024.04-ti-g4a98663bc0d4 (May 15 2025 - 01:14:32 +0000)
    THIS: tispl
    SYSFW ABI: 4.0 (firmware rev 0x000a '10.1.6--v10.01.06 (Fiery Fox)')
    Enable MCU ADC1 as GPI input
    MCU_CTRL_MMR_CFG0_MCU_ADC1_CTRL:10001
    MCU_ADC1_AIN0 value:0
    MCU_ADC1_AIN1 value:0
    MCU_ADC1_AIN2 value:0
    MCU_ADC1_AIN3 value:0
    hwid:0000
    hwid:0
    i2c_omap i2c@42120000: pinctrl_select_state_full: uclass_get_dev▒ce_by_phandle_id: err=-19
    EEPROM not available at 0x50, trying to read at 0x51
    Reading on-board EEPROM at 0x51 failed -121
    board_init_r:750: boot_from_devices  (jiahao)
    Trying to boot from MMC1
    boot_from_devices:641: spl_load_image(, MMC1)  (jiahao)
    spl_load_image:579: loader->load_image  (jiahao)
    spl_mmc_load_image:463: spl_mmc_load  (jiahao)
    spl_mmc_load:366: (, bootdev, u-boot.img, 0, 0x1c00)  (jiahao)
    spl_mmc_load:428: mmc_load_image_raw_sector('', bootdev, mmc, 0x1c00)  (jiahao)
    mmc_load_image_raw_sector:54: spl_load  (jiahao)
    spl_load:380: _spl_load(size=0x0 offset=0x380000)  (jiahao)
    spl_simple_fit_read:674: board_spl_fit_buffer_addr(0x807fffc0, 0x80, 1)  (jiahao)
    spl_get_fit_load_buffer:550: malloc_cache_aligned(0x135a00)  (jiahao)
    spl_get_fit_load_buffer:557: buf=0x81c02380  (jiahao)
    spl_simple_fit_read:681: fit read offset 380000, size=1268224, dst=81c02380, count=1268224  (jiahao)
    Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
    Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
    mmc_load_image_raw_sector:64: return 0;  (jiahao)
    spl_mmc_load:432: return 0;  (jiahao)
    spl_load_image:595: return 0;  (jiahao)
    board_init_r:767: Jumping to U-Boot...  (jiahao)
    board_init_r:830: jump_to_image(); addr=0x80800000 , size=0x115f68 (jiahao)
    
    
    U-Boot 2024.04-ti-g4a98663bc0d4 (May 15 2025 - 01:14:32 +0000)
    
    SoC:   J721S2 SR1.0 GP
    Model: Texas Instruments J721S2 EVM
    i2c_omap i2c@42120000: pinctrl_select_state_full: uclass_get_device_by_phandle_id: err=-19
    EEPROM not available at 0x50, trying to read at 0x51
    Reading on-board EEPROM at 0x51 failed -121
    Board: J721S2X-PM1-SOM rev E1
    DRAM:  2 GiB (effective 8 GiB)
    Enable MCU ADC1 as GPI input
    MCU_CTRL_MMR_CFG0_MCU_ADC1_CTRL:10001
    MCU_ADC1_AIN0 value:0
    MCU_ADC1_AIN1 value:0
    MCU_ADC1_AIN2 value:0
    MCU_ADC1_AIN3 value:0
    hwid:0000
    hwid:0
    Core:  111 devices, 31 uclasses, devicetree: separate
    Flash: 0 Bytes
    MMC:   ti_sci system-controller@44083000: Message not acknowledged
    ti-sci-pm-domains power-controller: ti_sci_power_domain_on: get_device(99) failed (-19)
    ti_sci system-controller@44083000: Message not acknowledged
    ti-sci-pm-domains power-controller: ti_sci_power_domain_on: get_device(99) failed (-19)
    mmc@4fb0000 - probe failed: -19
    mmc@4f80000: 0ti_sci system-controller@44083000: Message not acknowledged
    ti-sci-pm-domains power-controller: ti_sci_power_domain_on: get_device(99) failed (-19)
    
    Loading Environment from MMC... OK
    In:    serial@2880000
    Out:   serial@2880000
    Err:   serial@2880000
    am65_cpsw_nuss ethernet@46000000: K3 CPSW: nuss_ver: 0x6BA02102 cpsw_ver: 0x6BA82102 ale_ver: 0x00293904 Ports:1
    EEPROM not available at 0x50, trying to read at 0x51
    Reading on-board EEPROM at 0x51 failed -121
    swid is  1
    name dtb is  ti/k3-j721s2-common-proc-board.dtb
    global hwid is  0
    Net:   Could not get PHY for mdio@f00: addr 0
    am65_cpsw_nuss_port ethernet@46000000port@1: phy_connect() failed
    No ethernet found.
    
    Press ESCESCESC to abort autoboot in 2 seconds
    Force enable fastboot mode
    cmd_process:603: fastboot usb 0
    ti_sci system-controller@44083000: Message not acknowledged
    ti-sci-pm-domains power-controller: ti_sci_power_domain_on: get_device(360) failed (-19)
    ti_sci system-controller@44083000: Message not acknowledged
    ti-sci-pm-domains power-controller: ti_sci_power_domain_on: get_device(360) failed (-19)
    No USB device found
    USB init failed: -19
    =>
    

  • Hi Jiahao,

    Can you also provide the changes made in the mcu r5f firmware,because it can be seen that TISCI is clearly failing here from the logs?

    I suspect you have made some changes to MCU R5 firmware that is causing TISCI to crash.

    Regards

    Gokul

  • Hi Gokul

    1. Attachment file main_rtos.c  was my MCU domain main() function.
    2. We have run the sci server in the MCU.
    3. The ids use the btcm. linker_r5f_mcu1_0_btcm_freertos.lds

    So I think I have run the SCI server on the MCU domain. Could you please help check that?

    /*
     *  Copyright (c) Texas Instruments Incorporated 2018-2023
     *  All rights reserved.
     *
     *  Redistribution and use in source and binary forms, with or without
     *  modification, are permitted provided that the following conditions
     *  are met:
     *
     *    Redistributions of source code must retain the above copyright
     *    notice, this list of conditions and the following disclaimer.
     *
     *    Redistributions in binary form must reproduce the above copyright
     *    notice, this list of conditions and the following disclaimer in the
     *    documentation and/or other materials provided with the
     *    distribution.
     *
     *    Neither the name of Texas Instruments Incorporated nor the names of
     *    its contributors may be used to endorse or promote products derived
     *    from this software without specific prior written permission.
     *
     *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
     *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
     *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
     *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
     *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
     *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
     *  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     */
    
    /**
     *  \file main_tirtos.c
     *
     *  \brief Main file for TI-RTOS build
     */
    
    /* ========================================================================== */
    /*                             Include Files                                  */
    /* ========================================================================== */
    
    #include <stdio.h>
    #include <stdint.h>
    #include <string.h>
    
    #include <ti/osal/osal.h>
    #include <ti/osal/TaskP.h>
    
    #include "ipc_utils.h"
    #include "ipc_setup.h"
    #include <ti/csl/csl_types.h>
    
    #include <ti/drv/sciclient/sciclient.h>
    #include <ti/board/board.h>
    #include <ti/board/src/j721s2_evm/include/board_cfg.h>
    #include <ti/board/src/j721s2_evm/include/board_pinmux.h>
    
    #include <ti/drv/uart/UART.h>
    #include <ti/drv/uart/UART_stdio.h>
    
    /* Include Files for mcan */
    #include "main_mcan_k3.h"
    
    #if (defined (BUILD_MCU1_0) && (defined (SOC_J721E) || defined (SOC_J7200) || defined (SOC_J721S2) || defined (SOC_J784S4) || defined (SOC_J742S2)))
    #include <ti/drv/sciclient/src/sciclient/sciclient_priv.h>
    #include <ti/drv/sciclient/sciserver_tirtos.h>
    #endif
    
    /* This needs to be enabled only for negative test cases */
    #ifdef IPC_NEGATIVE_TEST
    #include <ti/drv/ipc/examples/rtos/ipc_negative_test/ipc_neg_setup.h>
    #endif
    
    /* This needs to be enabled only for extended test cases */
    #ifdef IPC_EXTENDED_TEST
    #include <ti/drv/ipc/examples/rtos/ipc_extended_test/ipc_extended_setup.h>
    #endif
    
    #include "adas.h"
    #include "can_unpack.h"
    #include "main_xcp.h"
    
    
    /* ========================================================================== */
    /*                           Macros & Typedefs                                */
    /* ========================================================================== */
    
    #define APP_TSK_STACK_MAIN              (32U * 1024U)
    /**< Test application stack size */
    
    #if (defined (BUILD_MCU1_0) && (defined (SOC_J721E) || defined (SOC_J7200) || defined (SOC_J721S2) || defined (SOC_J784S4) || defined (SOC_J742S2)))
    /**< SCI Server Init Task stack size */
    #define APP_SCISERVER_INIT_TSK_STACK        (32U * 1024U)
    /* SCI Server Init Task Priority - must be higher than High priority Sciserver task */
    #define IPC_INIT_SCISERVER_TASK_PRI         (6)
    #endif
    
    /* High Priority for SCI Server - must be higher than Low priority task */
    #define IPC_SETUP_SCISERVER_TASK_PRI_HIGH   (5)
    /*
     * Low Priority for SCI Server - must be higher than IPC echo test tasks
     * to prevent delay in handling Sciserver requests when test is performing
     * multicore ping/pong.
     */
    #define IPC_SETUP_SCISERVER_TASK_PRI_LOW    (4)
    
    /* ========================================================================== */
    /*                         Structure Declarations                             */
    /* ========================================================================== */
    
    /* None */
    
    /* ========================================================================== */
    /*                          Function Declarations                             */
    /* ========================================================================== */
    
    static void taskFxn(void* a0, void* a1);
    
    #if (defined (BUILD_MCU1_0) && (defined (SOC_J721E) || defined (SOC_J7200) || defined (SOC_J721S2) || defined (SOC_J784S4) || defined (SOC_J742S2)))
    void Ipc_setupSciServer(void *arg0, void *arg1);
    /**< Initialize SCI Server, to process RM/PM Requests by other cores */
    #endif
    
    /* ========================================================================== */
    /*                            Global Variables                                */
    /* ========================================================================== */
    
    /* Test application stack */
    /* For SafeRTOS on R5F with FFI Support, task stack should be aligned to the stack size */
    #if defined(SAFERTOS) && defined (BUILD_MCU)
    static uint8_t  gAppTskStackMain[APP_TSK_STACK_MAIN]
    __attribute__ ((aligned(APP_TSK_STACK_MAIN)));
    #else
    static uint8_t  gAppTskStackMain[APP_TSK_STACK_MAIN]
    __attribute__ ((aligned(8192)));
    #endif
    
    /* Variable to check if ipc_boardInit has completed or not*/
    uint8_t  gBoardinit=0;
    
    #if (defined (BUILD_MCU1_0) && (defined (SOC_J721E) || defined (SOC_J7200) || defined (SOC_J721S2) || defined (SOC_J784S4) || defined (SOC_J742S2)))
    /* Sciserver Init TAsk stack */
    #if defined(SAFERTOS)
    static uint8_t  gSciserverInitTskStack[APP_SCISERVER_INIT_TSK_STACK]
    __attribute__ ((aligned(APP_SCISERVER_INIT_TSK_STACK)));
    #else
    static uint8_t  gSciserverInitTskStack[APP_SCISERVER_INIT_TSK_STACK]
    __attribute__ ((aligned(8192)));
    #endif
    extern Sciclient_ServiceHandle_t gSciclientHandle;
    #endif
    
    
    
    /* ========================================================================== */
    /*                          Function Definitions                              */
    /* ========================================================================== */
    
    
    void ipc_initSciclient()
    {
        int32_t ret = CSL_PASS;
        Sciclient_ConfigPrms_t        config;
    
        /* Now reinitialize it as default parameter */
        ret = Sciclient_configPrmsInit(&config);
        if (ret != CSL_PASS)
        {
            App_printf("Sciclient_configPrmsInit Failed\n");
        }
    
    #if (defined (BUILD_MCU1_0) && (defined (SOC_J721E) || defined (SOC_J7200) || defined (SOC_J721S2) || defined (SOC_J784S4) || defined (SOC_J742S2)))
        if (ret == CSL_PASS)
        {
            ret = Sciclient_boardCfgParseHeader(
                (uint8_t *)SCISERVER_COMMON_X509_HEADER_ADDR,
                &config.inPmPrms, &config.inRmPrms);
            if (ret != CSL_PASS)
            {
                App_printf("Sciclient_boardCfgParseHeader Failed\n");
            }
        }
    #endif
    
        if (ret == CSL_PASS)
        {
            ret = Sciclient_init(&config);
            if (ret != CSL_PASS)
            {
                App_printf("Sciclient_init Failed\n");
            }
    #if (defined (BUILD_MCU1_0) && (defined (SOC_J721E) || defined (SOC_J7200) || defined (SOC_J721S2) || defined (SOC_J784S4) || defined (SOC_J742S2)))
            if (gSciclientHandle.rmBoardConfigComplete == SCICLIENT_FT_PASS)
            {
                App_printf("Sciclient_boardCfgRm init Passed\n");
            }
            else
            {
                App_printf("Sciclient_boardCfgRm init FAILED!\n");
            }
    #endif
        }
    }
    
    void ipc_boardInit()
    {
        Board_initCfg           boardCfg;
    
        boardCfg = BOARD_INIT_UART_STDIO;
    #if defined(A72_LINUX_OS)
        /* Configure UART TX pinmux only. Linux doesn't support full pinmux config */
        Board_uartTxPinmuxConfig();
    #else
        boardCfg |= BOARD_INIT_PINMUX_CONFIG;
    #endif
    
        Board_init(boardCfg);
    
        /* Mark Board_init() has been called */
        gBoardinit = 1;
    }
    
    int main(void)
    {
        TaskP_Handle task;
        TaskP_Params taskParams;
    
    
    
    #if defined ECHO_TEST_BTCM && defined FREERTOS && defined BUILD_MCU
        /* Relocate FreeRTOS Reset Vectors from BTCM*/
        void _freertosresetvectors (void);
        memcpy((void *)0x0, (void *)_freertosresetvectors, 0x40);
    #endif
    
    #if defined ECHO_TEST_BTCM && defined SAFERTOS && defined BUILD_MCU
        /* Relocate FreeRTOS Reset Vectors from BTCM*/
        void _axSafeRTOSresetVectors (void);
        memcpy((void *)0x0, (void *)_axSafeRTOSresetVectors, 0x40);
    #endif
    
        /*  This should be called before any other OS calls (like Task creation, OS_start, etc..) */
        OS_init();
    
        /* Initialize the task params */
        TaskP_Params_init(&taskParams);
        /* Set the task priority higher than the default priority (1) */
        taskParams.priority = 2;
        taskParams.stack        = gAppTskStackMain;
        taskParams.stacksize    = sizeof (gAppTskStackMain);
    
        task = TaskP_create(&taskFxn, &taskParams);
        if(NULL == task)
        {
            OS_stop();
        }
        OS_start();    /* does not return */
    
        return(0);
    }
    
    #if 0//tcm_data/ocmc_data/ocmc_code test
    /* Place frequently accessed data in TCM */
    __attribute__((section(".tcm_data"), aligned(8)))
    volatile int32_t criticalData[8];
    
    /* Place larger but still important arrays in OCMC */
    __attribute__((section(".ocmc_data"), aligned(8)))
    uint8_t fastAccessBuffer[64];
    
    /* Place time-critical function in OCMC */
    __attribute__((section(".ocmc_code")))
    #endif
    static void taskFxn(void* a0, void* a1)
    {
    
        /* Initialize SCI Client - It must be called before board init */
        ipc_initSciclient();
        /* IPC Board Init should be done only for MCU1_0 for Linux,
         * unconditionally for RTOS
         */
    #if defined(A72_LINUX_OS) && defined(BUILD_MCU1_0)
        ipc_boardInit();
    #elif !defined(A72_LINUX_OS)
        ipc_boardInit();
    #endif
    
    #if (defined (BUILD_MCU1_0) && (defined (SOC_J721E) || defined (SOC_J7200) || defined (SOC_J721S2) || defined (SOC_J784S4) || defined (SOC_J742S2)))
        TaskP_Handle sciserverInitTask;
        TaskP_Params sciserverInitTaskParams;
    
        /* Initialize SCI Client Server */
        TaskP_Params_init(&sciserverInitTaskParams);
        sciserverInitTaskParams.priority     = IPC_INIT_SCISERVER_TASK_PRI;
        sciserverInitTaskParams.stack        = gSciserverInitTskStack;
        sciserverInitTaskParams.stacksize    = sizeof (gSciserverInitTskStack);
    
        sciserverInitTask = TaskP_create(&Ipc_setupSciServer, &sciserverInitTaskParams);
        if(NULL == sciserverInitTask)
        {
            OS_stop();
        }
    #endif
    
    #if 0//tcm_data/ocmc_data/ocmc_code test
    	criticalData[0]=11;
    	criticalData[7]=88;
    	fastAccessBuffer[0]=1;
    	fastAccessBuffer[63]=64;
    #endif
    
    //MCAN part
    UART_printf("\n mcan_main ENTRY... \n");
    //main_mcan();
    UART_printf("\n mcan_main EXIT... \n");
    //Ipc_echo_test(); 
    
    App_printf("\n adas_main ENTRY... \n");
    adas_main();
    //initCanTasks();
    App_printf("\n adas_main EXIT... \n");
    // XCP task part
    //App_printf("\n main_xcp ENTRY... \n");
    //main_xcp();
    //App_printf("\n main_xcp EXIT... \n");
    }
    
    #if (defined (BUILD_MCU1_0) && (defined (SOC_J721E) || defined (SOC_J7200) || defined (SOC_J721S2) || defined (SOC_J784S4) || defined (SOC_J742S2)))
    void Ipc_setupSciServer(void *arg0, void *arg1)
    {
    
        Sciserver_TirtosCfgPrms_t appPrms;
        int32_t ret = CSL_PASS;
        char *version_str = NULL;
        char *rmpmhal_version_str = NULL;
    
        ret = Sciserver_tirtosInitPrms_Init(&appPrms);
    
        appPrms.taskPriority[SCISERVER_TASK_USER_LO] =
                                                IPC_SETUP_SCISERVER_TASK_PRI_LOW;
        appPrms.taskPriority[SCISERVER_TASK_USER_HI] =
                                                IPC_SETUP_SCISERVER_TASK_PRI_HIGH;
    
        if (ret == CSL_PASS)
        {
            ret = Sciserver_tirtosInit(&appPrms);
        }
    
        version_str = Sciserver_getVersionStr();
        rmpmhal_version_str = Sciserver_getRmPmHalVersionStr();
        App_printf("DM Built On: %s %s\n", __DATE__, __TIME__);
        App_printf("Sciserver Version: %s\n", version_str);
        App_printf("RM_PM_HAL Version: %s\n", rmpmhal_version_str);
    
        if (ret == CSL_PASS)
        {
            App_printf("Starting Sciserver..... PASSED\n");
        }
        else
        {
            App_printf("Starting Sciserver..... FAILED\n");
        }
    
        return;
    }
    #endif
    

     

    Thanks

    Jiahao

  • HI Jiahao,

    I have assigned the respective expert regarding the same.

    Regards

    Gokul